terra-draw 1.8.0 → 1.9.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/dist/common.d.ts CHANGED
@@ -132,6 +132,7 @@ export declare const SELECT_PROPERTIES: {
132
132
  readonly SELECTION_POINT: "selectionPoint";
133
133
  };
134
134
  export declare const COMMON_PROPERTIES: {
135
+ readonly CURRENTLY_DRAWING: "currentlyDrawing";
135
136
  readonly EDITED: "edited";
136
137
  readonly CLOSING_POINT: "closingPoint";
137
138
  readonly SNAPPING_POINT: "snappingPoint";
@@ -10,8 +10,8 @@ export declare class LineSnappingBehavior extends TerraDrawModeBehavior {
10
10
  private readonly clickBoundingBox;
11
11
  constructor(config: BehaviorConfig, pixelDistance: PixelDistanceBehavior, clickBoundingBox: ClickBoundingBoxBehavior);
12
12
  /** Returns the nearest snappable coordinate - on first click there is no currentId so no need to provide */
13
- getSnappableCoordinateFirstClick: (event: TerraDrawMouseEvent) => Position | undefined;
14
- getSnappableCoordinate: (event: TerraDrawMouseEvent, currentFeatureId: FeatureId) => Position | undefined;
13
+ getSnappableCoordinateFirstClick: (event: TerraDrawMouseEvent) => number[] | undefined;
14
+ getSnappableCoordinate: (event: TerraDrawMouseEvent, currentFeatureId: FeatureId) => number[] | undefined;
15
15
  getSnappable(event: TerraDrawMouseEvent, filter?: (feature: Feature) => boolean): {
16
16
  coordinate: undefined | Position;
17
17
  minDistance: number;
@@ -45,7 +45,7 @@ export declare class GeoJSONStore<OnChangeContext extends Record<string, JSON> |
45
45
  updateProperty(propertiesToUpdate: {
46
46
  id: FeatureId;
47
47
  property: string;
48
- value: JSON;
48
+ value: JSON | undefined;
49
49
  }[], context?: OnChangeContext): void;
50
50
  updateGeometry(geometriesToUpdate: {
51
51
  id: FeatureId;