terra-draw 0.0.1-alpha.25 → 0.0.1-alpha.27

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 CHANGED
@@ -2,6 +2,27 @@
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.27](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.26...v0.0.1-alpha.27) (2023-05-06)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * address potential issue with spreading Sets for the held keys ([7fdf0b0](https://github.com/JamesLMilner/terra-draw/commit/7fdf0b0e9acfb108dd45e3a23f0e1d2160ca9b53))
11
+ * ensure that container coordinates are correct when they are nested ([13aef09](https://github.com/JamesLMilner/terra-draw/commit/13aef09abfbab22815790a4968b365a2e3c06176))
12
+
13
+
14
+ ### Chore
15
+
16
+ * add leaflet adapter unit tests ([8f4e6f3](https://github.com/JamesLMilner/terra-draw/commit/8f4e6f35771cd82d89823c66878a4e64732397b0))
17
+ * update docs ([1a8b15b](https://github.com/JamesLMilner/terra-draw/commit/1a8b15b82ba5b14eba9bcdfb225941611dc5d4bd))
18
+
19
+ ### [0.0.1-alpha.26](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.25...v0.0.1-alpha.26) (2023-04-10)
20
+
21
+
22
+ ### Features
23
+
24
+ * avoid mass creation and deletion of geometries in leaflet adapter render ([773208a](https://github.com/JamesLMilner/terra-draw/commit/773208a9350069849fab45e814a4ba8ad20187dd))
25
+
5
26
  ### [0.0.1-alpha.25](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.24...v0.0.1-alpha.25) (2023-04-07)
6
27
 
7
28
 
@@ -16,6 +16,10 @@ export declare abstract class TerraDrawBaseAdapter {
16
16
  protected _dragState: "not-dragging" | "pre-dragging" | "dragging";
17
17
  protected _currentModeCallbacks: TerraDrawCallbacks | undefined;
18
18
  protected getButton(event: PointerEvent | MouseEvent): "neither" | "left" | "middle" | "right";
19
+ protected getContainerXYPosition(event: PointerEvent | MouseEvent): {
20
+ containerX: number;
21
+ containerY: number;
22
+ };
19
23
  protected getDrawEventFromEvent(event: PointerEvent | MouseEvent): TerraDrawMouseEvent | null;
20
24
  /**
21
25
  * Registers the provided callbacks for the current drawing mode and attaches
@@ -10,9 +10,9 @@ export declare class TerraDrawLeafletAdapter extends TerraDrawBaseAdapter {
10
10
  });
11
11
  private _lib;
12
12
  private _map;
13
- private _layer;
14
13
  private _panes;
15
14
  private _container;
15
+ private _layers;
16
16
  /**
17
17
  * Creates a pane and its associated style sheet
18
18
  * @param pane - The pane name
@@ -20,6 +20,7 @@ export declare class TerraDrawLeafletAdapter extends TerraDrawBaseAdapter {
20
20
  * @returns The created style element
21
21
  */
22
22
  private createPaneStyleSheet;
23
+ private styleGeoJSONLayer;
23
24
  /**
24
25
  * Returns the longitude and latitude coordinates from a given PointerEvent on the map.
25
26
  * @param event The PointerEvent or MouseEvent containing the screen coordinates of the pointer.