terra-draw 0.0.1-alpha.33 → 0.0.1-alpha.35
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/CHANGELOG.md +28 -0
- package/dist/adapters/mapbox-gl.adapter.d.ts +3 -0
- package/dist/modes/select/behaviors/drag-feature.behavior.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 +8 -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/package.json +1 -1
- package/scratch/release.sh +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.1-alpha.35](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.34...v0.0.1-alpha.35) (2023-06-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* fix clearLayers not working correctly for mapbox/maplibre adapters ([f80db0e](https://github.com/JamesLMilner/terra-draw/commit/f80db0e4162826c6d9d4ef817de76b25fdaf80f1))
|
|
11
|
+
* fix failing polygon mode unit test ([65ba076](https://github.com/JamesLMilner/terra-draw/commit/65ba076741e610a1b9c9eaa6baa5d71d4a1a85b8))
|
|
12
|
+
* fix styling issues for polygon and select modes ([d8e852c](https://github.com/JamesLMilner/terra-draw/commit/d8e852cbac3f76dfbc3dabc09d1aa4d0cc541ca3))
|
|
13
|
+
|
|
14
|
+
### [0.0.1-alpha.34](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.33...v0.0.1-alpha.34) (2023-06-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add removeFeatures method to terra draw API ([b0999d2](https://github.com/JamesLMilner/terra-draw/commit/b0999d25ce0970852aa230181b9a949589e7b6d2))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* don't update closing points on mouse move ([c2b7ce8](https://github.com/JamesLMilner/terra-draw/commit/c2b7ce8fdc0260fc09e84b3372cb4101c6f6564e))
|
|
25
|
+
* fix issue with mapboxgl adapter where geometry renders were lost ([bc1a937](https://github.com/JamesLMilner/terra-draw/commit/bc1a9371d92871c8b5b4fe29fb07b53c0e78c99f))
|
|
26
|
+
* for mapbox/maplibre adapter, only update data for layers that have changes ([a3f5c8a](https://github.com/JamesLMilner/terra-draw/commit/a3f5c8a742e76f23634a79346d2797f44927fb95))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Chore
|
|
30
|
+
|
|
31
|
+
* update docs ([701a66a](https://github.com/JamesLMilner/terra-draw/commit/701a66a0243ecdccf448b59cfbe90ed9474253db))
|
|
32
|
+
|
|
5
33
|
### [0.0.1-alpha.33](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.32...v0.0.1-alpha.33) (2023-06-04)
|
|
6
34
|
|
|
7
35
|
|
|
@@ -23,6 +23,9 @@ export declare class TerraDrawMapboxGLAdapter extends TerraDrawBaseAdapter {
|
|
|
23
23
|
private _addLayer;
|
|
24
24
|
private _addGeoJSONLayer;
|
|
25
25
|
private _setGeoJSONLayerData;
|
|
26
|
+
private getEmptyGeometries;
|
|
27
|
+
private changedIds;
|
|
28
|
+
private updateChangedIds;
|
|
26
29
|
/**
|
|
27
30
|
* Returns the longitude and latitude coordinates from a given PointerEvent on the map.
|
|
28
31
|
* @param event The PointerEvent or MouseEvent containing the screen coordinates of the pointer.
|
|
@@ -13,5 +13,6 @@ export declare class DragFeatureBehavior extends TerraDrawModeBehavior {
|
|
|
13
13
|
private dragPosition;
|
|
14
14
|
get position(): undefined | Position;
|
|
15
15
|
set position(newPosition: undefined | Position);
|
|
16
|
+
checkCanDrag(event: TerraDrawMouseEvent, selectedId: string): boolean | undefined;
|
|
16
17
|
drag(event: TerraDrawMouseEvent, selectedId: string): false | undefined;
|
|
17
18
|
}
|