terra-draw 1.9.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.
@@ -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;