terra-draw 0.0.1-alpha.17 → 0.0.1-alpha.18
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 +13 -0
- package/dist/adapters/common/adapter-listener.d.ts +1 -1
- package/dist/adapters/openlayers.adapter.d.ts +7 -7
- package/dist/geometry/shape/great-circle-line.d.ts +1 -1
- package/dist/modes/linestring/linestring.mode.d.ts +1 -0
- package/dist/modes/polygon/polygon.mode.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 +1 -1
- 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/jest.config.ts +22 -25
- package/package.json +150 -155
- package/tsconfig.json +22 -28
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
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.18](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.17...v0.0.1-alpha.18) (2023-03-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* better parity between mouse and pointer experiences ([00c219d](https://github.com/JamesLMilner/terra-draw/commit/00c219de114383d7e3f7ad58d91fc6de9c2bb7c9))
|
|
11
|
+
* ensure that closing points for polygons are update on click ([25c0886](https://github.com/JamesLMilner/terra-draw/commit/25c0886237c56881073e44da839b07527362662c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Chore
|
|
15
|
+
|
|
16
|
+
* fix issues with prettier conflicting with eslint ([9849bce](https://github.com/JamesLMilner/terra-draw/commit/9849bce825f2073d1b72b0dc9a29718a0cb994d9))
|
|
17
|
+
|
|
5
18
|
### [0.0.1-alpha.17](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.16...v0.0.1-alpha.17) (2023-03-12)
|
|
6
19
|
|
|
7
20
|
|
|
@@ -5,7 +5,7 @@ export declare class AdapterListener {
|
|
|
5
5
|
register: any;
|
|
6
6
|
unregister: any;
|
|
7
7
|
private listeners;
|
|
8
|
-
constructor({ name, callback, unregister, register }: {
|
|
8
|
+
constructor({ name, callback, unregister, register, }: {
|
|
9
9
|
name: string;
|
|
10
10
|
callback: (...args: any[]) => any;
|
|
11
11
|
unregister: (...callbacks: any[]) => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { TerraDrawCallbacks, TerraDrawAdapter, TerraDrawModeRegisterConfig, TerraDrawAdapterStyling, TerraDrawChanges } from "../common";
|
|
2
2
|
import { GeoJSONStoreFeatures } from "../store/store";
|
|
3
|
-
import CircleGeom from
|
|
4
|
-
import Feature from
|
|
5
|
-
import GeoJSON from
|
|
6
|
-
import Map from
|
|
7
|
-
import Circle from
|
|
8
|
-
import Stroke from
|
|
9
|
-
import Style from
|
|
3
|
+
import CircleGeom from "ol/geom/Circle";
|
|
4
|
+
import Feature from "ol/Feature";
|
|
5
|
+
import GeoJSON from "ol/format/GeoJSON";
|
|
6
|
+
import Map from "ol/Map";
|
|
7
|
+
import Circle from "ol/style/Circle";
|
|
8
|
+
import Stroke from "ol/style/Stroke";
|
|
9
|
+
import Style from "ol/style/Style";
|
|
10
10
|
import VectorSource from "ol/source/Vector";
|
|
11
11
|
import VectorLayer from "ol/layer/Vector";
|
|
12
12
|
import { toLonLat } from "ol/proj";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Feature, LineString, Position } from "geojson";
|
|
2
2
|
import { JSONObject } from "../../store/store";
|
|
3
|
-
export declare function greatCircleLine<Properties extends JSONObject>({ start, end, options }: {
|
|
3
|
+
export declare function greatCircleLine<Properties extends JSONObject>({ start, end, options, }: {
|
|
4
4
|
start: Position;
|
|
5
5
|
end: Position;
|
|
6
6
|
options?: {
|
|
@@ -23,10 +23,10 @@ export declare class TerraDrawPolygonMode extends TerraDrawBaseDrawMode<PolygonS
|
|
|
23
23
|
private allowSelfIntersections;
|
|
24
24
|
private keyEvents;
|
|
25
25
|
private snappingEnabled;
|
|
26
|
-
private isClosed;
|
|
27
26
|
private snapping;
|
|
28
27
|
private pixelDistance;
|
|
29
28
|
private closingPoints;
|
|
29
|
+
private mouseMove;
|
|
30
30
|
constructor(options?: {
|
|
31
31
|
allowSelfIntersections?: boolean;
|
|
32
32
|
snapping?: boolean;
|