Skip to content

Commit 7f83ab5

Browse files
committed
version 1.1.2
1 parent a640be5 commit 7f83ab5

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

README.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ plots[3].data = [1, 0, -1, 0, 1, 0, -1]
7171
#### Table of Contents
7272

7373
* [HTMLPlotElement](#htmlplotelement)
74+
* [width](#width)
75+
* [height](#height)
7476
* [pixelRatio](#pixelratio)
7577
* [data](#data)
7678
* [zoom](#zoom)
@@ -81,7 +83,7 @@ plots[3].data = [1, 0, -1, 0, 1, 0, -1]
8183

8284
### HTMLPlotElement
8385

84-
[src/index.ts:16-31](https://github.com/stagas/x-plot/blob/ee44628f82ef104d66d92f586d1fe092c56c922c/src/index.ts#L16-L31 "Source code on GitHub")
86+
[src/index.ts:16-35](https://github.com/stagas/x-plot/blob/a640be5f18b0fcb72a1f4c74d00d651b0f2950d2/src/index.ts#L16-L35 "Source code on GitHub")
8587

8688
Plot settings.
8789

@@ -93,57 +95,73 @@ i.e lineWidth => line-width
9395
The `data` can only be set directly at the element instance
9496
for example acquiring it through a `querySelector()`.
9597

98+
#### width
99+
100+
[src/index.ts:18-18](https://github.com/stagas/x-plot/blob/a640be5f18b0fcb72a1f4c74d00d651b0f2950d2/src/index.ts#L18-L18 "Source code on GitHub")
101+
102+
Width of plot
103+
104+
Type: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)
105+
106+
#### height
107+
108+
[src/index.ts:20-20](https://github.com/stagas/x-plot/blob/a640be5f18b0fcb72a1f4c74d00d651b0f2950d2/src/index.ts#L20-L20 "Source code on GitHub")
109+
110+
Height of plot
111+
112+
Type: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)
113+
96114
#### pixelRatio
97115

98-
[src/index.ts:18-18](https://github.com/stagas/x-plot/blob/ee44628f82ef104d66d92f586d1fe092c56c922c/src/index.ts#L18-L18 "Source code on GitHub")
116+
[src/index.ts:22-22](https://github.com/stagas/x-plot/blob/a640be5f18b0fcb72a1f4c74d00d651b0f2950d2/src/index.ts#L22-L22 "Source code on GitHub")
99117

100118
The pixel ratio. Defaults to `window.devicePixelRatio`
101119

102120
Type: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)
103121

104122
#### data
105123

106-
[src/index.ts:20-20](https://github.com/stagas/x-plot/blob/ee44628f82ef104d66d92f586d1fe092c56c922c/src/index.ts#L20-L20 "Source code on GitHub")
124+
[src/index.ts:24-24](https://github.com/stagas/x-plot/blob/a640be5f18b0fcb72a1f4c74d00d651b0f2950d2/src/index.ts#L24-L24 "Source code on GitHub")
107125

108126
Array-like number data to plot
109127

110128
Type: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)>
111129

112130
#### zoom
113131

114-
[src/index.ts:22-22](https://github.com/stagas/x-plot/blob/ee44628f82ef104d66d92f586d1fe092c56c922c/src/index.ts#L22-L22 "Source code on GitHub")
132+
[src/index.ts:26-26](https://github.com/stagas/x-plot/blob/a640be5f18b0fcb72a1f4c74d00d651b0f2950d2/src/index.ts#L26-L26 "Source code on GitHub")
115133

116134
Zoom amount
117135

118136
Type: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)
119137

120138
#### autoresize
121139

122-
[src/index.ts:24-24](https://github.com/stagas/x-plot/blob/ee44628f82ef104d66d92f586d1fe092c56c922c/src/index.ts#L24-L24 "Source code on GitHub")
140+
[src/index.ts:28-28](https://github.com/stagas/x-plot/blob/a640be5f18b0fcb72a1f4c74d00d651b0f2950d2/src/index.ts#L28-L28 "Source code on GitHub")
123141

124142
Autoresize
125143

126144
Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
127145

128146
#### lineWidth
129147

130-
[src/index.ts:26-26](https://github.com/stagas/x-plot/blob/ee44628f82ef104d66d92f586d1fe092c56c922c/src/index.ts#L26-L26 "Source code on GitHub")
148+
[src/index.ts:30-30](https://github.com/stagas/x-plot/blob/a640be5f18b0fcb72a1f4c74d00d651b0f2950d2/src/index.ts#L30-L30 "Source code on GitHub")
131149

132150
Line width
133151

134152
Type: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)
135153

136154
#### background
137155

138-
[src/index.ts:28-28](https://github.com/stagas/x-plot/blob/ee44628f82ef104d66d92f586d1fe092c56c922c/src/index.ts#L28-L28 "Source code on GitHub")
156+
[src/index.ts:32-32](https://github.com/stagas/x-plot/blob/a640be5f18b0fcb72a1f4c74d00d651b0f2950d2/src/index.ts#L32-L32 "Source code on GitHub")
139157

140158
Background color
141159

142160
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
143161

144162
#### color
145163

146-
[src/index.ts:30-30](https://github.com/stagas/x-plot/blob/ee44628f82ef104d66d92f586d1fe092c56c922c/src/index.ts#L30-L30 "Source code on GitHub")
164+
[src/index.ts:34-34](https://github.com/stagas/x-plot/blob/a640be5f18b0fcb72a1f4c74d00d651b0f2950d2/src/index.ts#L34-L34 "Source code on GitHub")
147165

148166
Stroke color
149167

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "stagas",
44
"short": "stagas/x-plot",
55
"description": "a web component that plots zoomable waveforms",
6-
"version": "1.1.1",
6+
"version": "1.1.2",
77
"license": "MIT",
88
"repository": {
99
"type": "git",

0 commit comments

Comments
 (0)