@watergis/maplibre-gl-terradraw 0.0.1 → 0.0.2

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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # maplibre-gl-terradraw
2
2
 
3
+ ![License](https://img.shields.io/github/license/watergis/maplibre-gl-terradraw)
4
+ [![version](https://img.shields.io/npm/v/@watergis/maplibre-gl-terradraw.svg)](https://www.npmjs.com/package/@watergis/maplibre-gl-terradraw)
3
5
  [![CI](https://github.com/watergis/maplibre-gl-terradraw/actions/workflows/ci.yml/badge.svg)](https://github.com/watergis/maplibre-gl-terradraw/actions/workflows/ci.yml)
4
6
  [![Netlify Status](https://api.netlify.com/api/v1/badges/3486d35f-7a74-4c1c-a94a-6db0f7250583/deploy-status)](https://app.netlify.com/sites/maplibre-gl-terradraw/deploys)
5
7
 
@@ -15,7 +17,7 @@ npm i -D @watergis/maplibre-gl-terradraw
15
17
 
16
18
  ```ts
17
19
  import { MaplibreTerradrawControl } from '@watergis/maplibre-gl-terradraw';
18
- import '@watergis/maplibre-gl-terradraw/package/maplibre-gl-terradraw.scss';
20
+ import '@watergis/maplibre-gl-terradraw/dist/maplibre-gl-terradraw.css';
19
21
 
20
22
  map.addControl(
21
23
  new MaplibreTerradrawControl({
@@ -2714,6 +2714,8 @@ const oi = {
2714
2714
  const t = [];
2715
2715
  return s.point === !0 && t.push(new Oe()), s.line === !0 && t.push(new Fe()), s.polygon === !0 && t.push(
2716
2716
  new Le({
2717
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2718
+ // @ts-ignore
2717
2719
  validation: (e, i) => {
2718
2720
  const o = i.updateType;
2719
2721
  return o === "finish" || o === "commit" ? ti(e) : !0;