terra-draw 0.0.1-alpha.12 → 0.0.1-alpha.14

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,37 @@
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.14](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.13...v0.0.1-alpha.14) (2023-01-08)
6
+
7
+
8
+ ### Features
9
+
10
+ * add clear to the public API ([6a8fa72](https://github.com/JamesLMilner/terra-draw/commit/6a8fa722b52047bdf7bc4cfb42d1432eaf7ff038))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * ensure that terra draw is enabled before calling setMode ([deff0fb](https://github.com/JamesLMilner/terra-draw/commit/deff0fb34888fd8a36778254ed8448e7711abdb8))
16
+ * make sure circle mode respects configured coordinate precision ([cba0aa7](https://github.com/JamesLMilner/terra-draw/commit/cba0aa73d2d623f53b66e2d503077519f920dc96))
17
+
18
+
19
+ ### Chore
20
+
21
+ * add npm badge to README, shorten CI badge text ([e9d7b66](https://github.com/JamesLMilner/terra-draw/commit/e9d7b6611f7b342d2dc65a381f940babcea4f889))
22
+ * bump dependency packages ([a7a2bcf](https://github.com/JamesLMilner/terra-draw/commit/a7a2bcfdee6c9da773f4cf973c7f342f75822a12))
23
+ * fix the README logo ([b48d6d7](https://github.com/JamesLMilner/terra-draw/commit/b48d6d7d4da0dbc43da86bf43d08bc17c1463073))
24
+
25
+ ### [0.0.1-alpha.13](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.12...v0.0.1-alpha.13) (2022-12-20)
26
+
27
+
28
+ ### Chore
29
+
30
+ * add initial tests feature styling tests for circle, freehand and polygon ([066967c](https://github.com/JamesLMilner/terra-draw/commit/066967cd56c879186207dad9f912a1e6435904e5))
31
+ * add TerraDrawMapLibreGLAdapter and TerraDrawOpenLayersAdapter to docs ([6b78c01](https://github.com/JamesLMilner/terra-draw/commit/6b78c01df8f9bad83738bf560a9b365c7fa01290))
32
+ * add TerraDrawOpenLayersAdapter to terra-draw exports ([c5f3ade](https://github.com/JamesLMilner/terra-draw/commit/c5f3ade9b9cf51b99aa78d3730581dac6f37f0fd))
33
+ * remove default controls from all maps ([6ffde55](https://github.com/JamesLMilner/terra-draw/commit/6ffde55b4c8cf95b1fb46f76db07d47d37504c96))
34
+ * remove outdated list of adapters in README introduction ([21a6aca](https://github.com/JamesLMilner/terra-draw/commit/21a6aca27f15f0f7d90bc434865f4d362960d8d9))
35
+
5
36
  ### [0.0.1-alpha.12](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.11...v0.0.1-alpha.12) (2022-12-11)
6
37
 
7
38
 
package/README.md CHANGED
@@ -1,12 +1,13 @@
1
- <img src="https://terradraw.io/imgs/logo.png" alt="Terra Draw Logo" width="400"/>
1
+ <img src="./logo.png" alt="Terra Draw Logo" width="400"/>
2
2
 
3
3
  ![Terra Draw CI Badge](https://github.com/JamesLMilner/terra-draw/actions/workflows/ci.yml/badge.svg)
4
+ [![npm version](https://badge.fury.io/js/terra-draw.svg)](https://badge.fury.io/js/terra-draw)
4
5
 
5
6
  Frictionless map drawing across mapping libraries.
6
7
 
7
- TerraDraw centralises map drawing logic and provides a host of out the box drawing modes that work across map providers (currently Leaflet, Mapbox, Google) via adapters.
8
+ Terra Draw centralises map drawing logic and provides a host of out the box drawing modes that work across different JavaScript mapping libraries. It also also you bring your own modes!
8
9
 
9
- ### Support
10
+ ### Library Support
10
11
 
11
12
  Terra Draw uses the concept of 'adapters' to allow it to work with a host of different mapping libraries. Currently supported are:
12
13
 
package/logo.png ADDED
Binary file
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "terra-draw",
3
- "version": "0.0.1-alpha.12",
3
+ "version": "0.0.1-alpha.14",
4
4
  "description": "Frictionless map drawing across mapping provider",
5
5
  "scripts": {
6
- "docs": "typedoc --out docs src/terra-draw.ts --exclude 'src/geometry/**/*.ts' --exclude 'src/test/**/*.ts' --exclude 'src/util/**/*.ts'",
6
+ "docs": "typedoc",
7
7
  "docs:serve": "serve ./docs",
8
8
  "release": "standard-version",
9
9
  "build": "microbundle",
@@ -50,31 +50,31 @@
50
50
  "@commitlint/cli": "^17.1.2",
51
51
  "@commitlint/config-conventional": "^17.1.0",
52
52
  "@googlemaps/js-api-loader": "^1.14.3",
53
- "@swc/jest": "^0.2.22",
53
+ "@swc/jest": "^0.2.24",
54
54
  "@types/geojson": "^7946.0.8",
55
55
  "@types/google.maps": "^3.49.2",
56
56
  "@types/jest": "^28.1.5",
57
57
  "@types/leaflet": "^1.7.11",
58
58
  "@types/mapbox-gl": "^2.7.3",
59
59
  "@types/rbush": "^3.0.0",
60
- "@typescript-eslint/eslint-plugin": "^5.38.1",
61
- "@typescript-eslint/parser": "^5.38.1",
60
+ "@typescript-eslint/eslint-plugin": "^5.48.0",
61
+ "@typescript-eslint/parser": "^5.48.0",
62
62
  "eslint": "^8.24.0",
63
63
  "eslint-config-prettier": "^8.5.0",
64
64
  "eslint-plugin-prettier": "^4.2.1",
65
65
  "husky": "^7.0.0",
66
- "jest": "^28.1.2",
66
+ "jest": "^29.3.1",
67
67
  "leaflet": "^1.8.0",
68
68
  "mapbox-gl": "^2.9.1",
69
69
  "maplibre-gl": "^2.4.0",
70
70
  "microbundle": "^0.15.0",
71
71
  "ol": "^7.1.0",
72
- "serve": "^13.0.4",
72
+ "serve": "^14.1.2",
73
73
  "standard-version": "^9.5.0",
74
- "ts-jest": "^28.0.5",
75
- "ts-loader": "^9.3.1",
74
+ "ts-jest": "^29.0.3",
75
+ "ts-loader": "^9.4.2",
76
76
  "typedoc": "^0.23.21",
77
- "typescript": "^4.7.4"
77
+ "typescript": "^4.9.4"
78
78
  },
79
79
  "commitlint": {
80
80
  "extends": [
package/tsconfig.json CHANGED
@@ -1,14 +1,29 @@
1
1
  {
2
- "compilerOptions": {
3
- "outDir": "./dist/",
4
- "strict": true,
5
- "noImplicitAny": true,
6
- "module": "es6",
7
- "target": "es6",
8
- "jsx": "react",
9
- "sourceMap": true,
10
- "allowJs": true,
11
- "moduleResolution": "node",
12
- "allowSyntheticDefaultImports": true
13
- }
14
- }
2
+ "compilerOptions": {
3
+ "outDir": "./dist/",
4
+ "strict": true,
5
+ "noImplicitAny": true,
6
+ "module": "es6",
7
+ "target": "es6",
8
+ "jsx": "react",
9
+ "sourceMap": true,
10
+ "allowJs": true,
11
+ "moduleResolution": "node",
12
+ "allowSyntheticDefaultImports": true
13
+ },
14
+ "typedocOptions": {
15
+ "entryPoints": [
16
+ "src/terra-draw.ts"
17
+ ],
18
+ "exclude": [
19
+ "src/geometry/**/*.ts",
20
+ "src/test/**/*.ts",
21
+ "src/util/**/*.ts"
22
+ ],
23
+ "out": "docs",
24
+ "skipErrorChecking": true
25
+ // "compilerOptions": {
26
+ // "skipLibCheck": true
27
+ // }
28
+ }
29
+ }