terra-draw 1.9.0 → 1.10.0
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/modes/angled-rectangle/angled-rectangle.mode.d.ts +1 -0
- package/dist/modes/base.mode.d.ts +1 -0
- package/dist/modes/circle/circle.mode.d.ts +1 -0
- package/dist/modes/freehand/freehand.mode.d.ts +1 -0
- package/dist/modes/line-snapping.behavior.d.ts +2 -2
- package/dist/modes/linestring/linestring.mode.d.ts +4 -1
- package/dist/modes/point/point.mode.d.ts +1 -0
- package/dist/modes/polygon/polygon.mode.d.ts +3 -0
- package/dist/modes/rectangle/rectangle.mode.d.ts +1 -0
- package/dist/modes/sector/sector.mode.d.ts +1 -0
- package/dist/modes/select/select.mode.d.ts +1 -0
- package/dist/modes/sensor/sensor.mode.d.ts +1 -0
- package/dist/terra-draw.cjs +1 -1
- package/dist/terra-draw.cjs.map +1 -1
- package/dist/terra-draw.d.ts +9 -0
- 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/terra-draw.d.ts
CHANGED
|
@@ -59,7 +59,9 @@ declare class TerraDraw {
|
|
|
59
59
|
private checkEnabled;
|
|
60
60
|
private getModeStyles;
|
|
61
61
|
private featuresAtLocation;
|
|
62
|
+
private getSelectModeOrThrow;
|
|
62
63
|
private getSelectMode;
|
|
64
|
+
private isGuidanceFeature;
|
|
63
65
|
/**
|
|
64
66
|
* @deprecated This method is scheduled for removal in the next major version. Instead use the 'updateModeOptions' method passing the
|
|
65
67
|
* styles property in the options object, and this will dynamically update the styles for the mode.
|
|
@@ -161,6 +163,13 @@ declare class TerraDraw {
|
|
|
161
163
|
* @returns a boolean determining if the instance has a feature with the given id
|
|
162
164
|
*/
|
|
163
165
|
hasFeature(id: FeatureId): boolean;
|
|
166
|
+
/**
|
|
167
|
+
* Updates a features geometry. This an be used to programmatically change the coordinates of a feature. This
|
|
168
|
+
* can be useful for if you want to modify a geometry via a button or some similar user interaction.
|
|
169
|
+
* @param id - the id of the feature to update the geometry for
|
|
170
|
+
* @param geometry - the new geometry that will replace the existing geometry
|
|
171
|
+
*/
|
|
172
|
+
updateFeatureGeometry(id: FeatureId, geometry: GeoJSONStoreGeometries): void;
|
|
164
173
|
/**
|
|
165
174
|
* A method for adding features to the store. This method will validate the features
|
|
166
175
|
* returning an array of validation results. Features must match one of the modes enabled
|