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 +1 -0
- package/dist/modes/line-snapping.behavior.d.ts +2 -2
- package/dist/store/store.d.ts +1 -1
- package/dist/terra-draw.cjs +1 -1
- package/dist/terra-draw.cjs.map +1 -1
- package/dist/terra-draw.d.ts +10 -8
- package/dist/terra-draw.modern.js +1 -1
- package/dist/terra-draw.modern.js.map +1 -1
- package/dist/terra-draw.module.js +1 -1
- package/dist/terra-draw.module.js.map +1 -1
- package/dist/terra-draw.umd.js +1 -1
- package/dist/terra-draw.umd.js.map +1 -1
- package/dist/test/mock-behavior-config.d.ts +1 -1
- package/package.json +1 -1
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) =>
|
|
14
|
-
getSnappableCoordinate: (event: TerraDrawMouseEvent, currentFeatureId: FeatureId) =>
|
|
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;
|
package/dist/store/store.d.ts
CHANGED
|
@@ -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;
|