@geoblocks/elevation-profile 0.0.25-beta.8 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/package.json +1 -1
- package/dist/elevation-profile.1e043dac.js +0 -5830
- package/dist/elevation-profile.1e043dac.js.map +0 -1
- package/dist/index.html +0 -1959
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ npm i --save @geoblocks/elevation-profile
|
|
|
28
28
|
| `points` | `number[][]` | | Points to be displayed on the profile
|
|
29
29
|
| `lineSegments` | `SegmentData` | `undefined` | Segments for the elevation line with different visual properties
|
|
30
30
|
| `xAxisSegments` | `SegmentData` | `undefined` | Segments for trail bands below the x-axis
|
|
31
|
-
| `margin` | `Object` | `{top: 20, right: 20, bottom: 20, left:
|
|
31
|
+
| `margin` | `Object` | `{top: 20, right: 20, bottom: 20, left: 20}` | Margin in pixels around the elevation profile
|
|
32
32
|
| `pointerEvents` | `Boolean` | `true` | Whether to emit pointer events
|
|
33
33
|
| `tickSize` | `Object` | `{x: 100, y: 40}` | Size of the ticks in pixels
|
|
34
34
|
| `locale` | `string` | `navigator.language` | Locale for the axis numbers formatting
|
|
@@ -140,7 +140,7 @@ If `pointerEvents` is `true`, the component will emit the following custom event
|
|
|
140
140
|
|
|
141
141
|
| Name | When | Detail type | Description
|
|
142
142
|
| --------------- | ------------------------------------------- | ---------------------------------------------------------- | -----------
|
|
143
|
-
| `over` | The pointer is over the profile | `{coordinate: number[], position: {x: number, y: number}, segments?: {line
|
|
143
|
+
| `over` | The pointer is over the profile | `{coordinate: number[], position: {x: number, y: number}, segments?: {line: string | null, xAxis: string | null}}` | `coordinate` is the coordinate of the point on the MultiLineString, `position` is the position of the pointer relative to the component, and `segments` contains the segment values at the pointer location
|
|
144
144
|
| `out` | The pointer leaves the profile | |
|
|
145
145
|
|
|
146
146
|
### Styling
|
|
@@ -157,3 +157,4 @@ FIXME: TBD
|
|
|
157
157
|
| `.pointer-line.y` | `line` | On pointer over, the horizontal that follows the pointer
|
|
158
158
|
| `.pointer-circle` | `circle` | On pointer over, the circle that follows the pointer
|
|
159
159
|
| `.pointer-circle-outline` | `circle` | On pointer over, the outline of the circle that follows the pointer
|
|
160
|
+
| `.trail-band` | `rect` | The trail category bands below the x-axis
|