terra-draw 0.0.1-alpha.67 → 0.0.1-alpha.69

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.
Files changed (44) hide show
  1. package/dist/adapters/google-maps.adapter.d.ts +0 -1
  2. package/dist/common.d.ts +14 -2
  3. package/dist/geometry/measure/bearing.d.ts +2 -0
  4. package/dist/geometry/measure/destination.d.ts +2 -0
  5. package/dist/geometry/measure/slice-along.d.ts +2 -0
  6. package/dist/geometry/shape/create-bbox.d.ts +1 -1
  7. package/dist/geometry/shape/create-circle.d.ts +6 -0
  8. package/dist/geometry/shape/great-circle-coordinates.d.ts +2 -0
  9. package/dist/geometry/shape/web-mercator-distortion.d.ts +2 -0
  10. package/dist/modes/base.mode.d.ts +4 -2
  11. package/dist/modes/circle/circle.mode.d.ts +6 -5
  12. package/dist/modes/insert-coordinates.behavior.d.ts +9 -0
  13. package/dist/modes/linestring/linestring.mode.d.ts +16 -3
  14. package/dist/modes/polygon/polygon.mode.d.ts +1 -2
  15. package/dist/modes/static/static.mode.d.ts +5 -5
  16. package/dist/terra-draw.cjs +1 -1
  17. package/dist/terra-draw.cjs.map +1 -1
  18. package/dist/terra-draw.d.ts +6 -6
  19. package/dist/terra-draw.modern.js +1 -1
  20. package/dist/terra-draw.modern.js.map +1 -1
  21. package/dist/terra-draw.module.js +1 -1
  22. package/dist/terra-draw.module.js.map +1 -1
  23. package/dist/terra-draw.umd.js +1 -1
  24. package/dist/terra-draw.umd.js.map +1 -1
  25. package/dist/validations/linestring.validation.d.ts +2 -0
  26. package/dist/validations/max-size.validation.d.ts +2 -2
  27. package/dist/validations/min-size.validation.d.ts +2 -2
  28. package/dist/validations/not-self-intersecting.validation.d.ts +2 -0
  29. package/dist/validations/point.validation.d.ts +2 -0
  30. package/dist/validations/polygon.validation.d.ts +3 -0
  31. package/e2e/package-lock.json +231 -206
  32. package/e2e/package.json +9 -9
  33. package/e2e/public/favicon.ico +0 -0
  34. package/e2e/public/index.html +0 -1
  35. package/e2e/tests/leaflet.spec.ts +276 -46
  36. package/e2e/tests/setup.ts +18 -10
  37. package/package.json +33 -32
  38. package/tsconfig.json +9 -1
  39. package/dist/geometry/boolean/is-valid-linestring-feature.d.ts +0 -2
  40. package/dist/geometry/boolean/is-valid-point.d.ts +0 -2
  41. package/dist/geometry/boolean/is-valid-polygon-feature.d.ts +0 -3
  42. package/dist/geometry/shape/great-circle-line.d.ts +0 -12
  43. package/dist/modes/great-circle-snapping.behavior.d.ts +0 -14
  44. package/dist/modes/greatcircle/great-circle.mode.d.ts +0 -64
@@ -0,0 +1,2 @@
1
+ import { GeoJSONStoreFeatures } from "../terra-draw";
2
+ export declare function ValidateLineStringFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): boolean;
@@ -1,2 +1,2 @@
1
- import { Polygon } from "geojson";
2
- export declare const ValidateMaxSizeSquareMeters: (polygon: Polygon, minSize: number) => boolean;
1
+ import { GeoJSONStoreFeatures } from "../terra-draw";
2
+ export declare const ValidateMaxAreaSquareMeters: (feature: GeoJSONStoreFeatures, maxSize: number) => boolean;
@@ -1,2 +1,2 @@
1
- import { Polygon } from "geojson";
2
- export declare const ValidateMinSizeSquareMeters: (polygon: Polygon, minSize: number) => boolean;
1
+ import { GeoJSONStoreFeatures } from "../terra-draw";
2
+ export declare const ValidateMinAreaSquareMeters: (feature: GeoJSONStoreFeatures, minSize: number) => boolean;
@@ -0,0 +1,2 @@
1
+ import { GeoJSONStoreFeatures } from "../terra-draw";
2
+ export declare const ValidateNotSelfIntersecting: (feature: GeoJSONStoreFeatures) => boolean;
@@ -0,0 +1,2 @@
1
+ import { GeoJSONStoreFeatures } from "../terra-draw";
2
+ export declare function ValidatePointFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): boolean;
@@ -0,0 +1,3 @@
1
+ import { GeoJSONStoreFeatures } from "../terra-draw";
2
+ export declare function ValidatePolygonFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): boolean;
3
+ export declare function ValidateNonIntersectingPolygonFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): boolean;