ol-elevation-profile 2.0.1 → 2.1.1
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 -0
- package/dist/css.d.ts +4 -0
- package/dist/ol-elevation-profile.css +6 -0
- package/dist/ol-elevation-profile.d.ts +947 -0
- package/dist/ol-elevation-profile.esm.js +286 -36
- package/dist/ol-elevation-profile.esm.min.js +3 -3
- package/dist/ol-elevation-profile.js +285 -35
- package/dist/ol-elevation-profile.min.js +2 -2
- package/package.json +13 -6
- package/src/css.d.ts +4 -0
- package/src/ol-elevation-profile.css +6 -0
- package/src/ol-elevation-profile.js +284 -34
package/README.md
CHANGED
|
@@ -45,6 +45,9 @@ import OlElevationProfile from 'ol-elevation-profile'
|
|
|
45
45
|
import 'ol-elevation-profile/css'
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
TypeScript needs nothing extra: the package ships its own declarations, generated from the
|
|
49
|
+
source's JSDoc, and both lines above are typed — the stylesheet subpath included.
|
|
50
|
+
|
|
48
51
|
## Usage
|
|
49
52
|
|
|
50
53
|
```js
|
package/dist/css.d.ts
ADDED
|
@@ -83,6 +83,12 @@
|
|
|
83
83
|
/* ---- terrain-model loading spinner ---- */
|
|
84
84
|
/* Takes --oep-area, so it wears the theme colour - and the track colour under color:'auto'. */
|
|
85
85
|
.oep-loading { display: flex; align-items: center; justify-content: center; }
|
|
86
|
+
/* Same box as the spinner, and for the same reason: it holds the chart's height, so the
|
|
87
|
+
panel does not jump if a profile turns up afterwards. */
|
|
88
|
+
.oep-noelev {
|
|
89
|
+
display: flex; align-items: center; justify-content: center;
|
|
90
|
+
font-size: 13px; opacity: .65; text-align: center; padding: 0 12px;
|
|
91
|
+
}
|
|
86
92
|
.oep-spinner {
|
|
87
93
|
width: 26px; height: 26px; box-sizing: border-box;
|
|
88
94
|
border: 3px solid var(--oep-area);
|