terra-draw 0.0.1-alpha.11 → 0.0.1-alpha.13

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,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.13](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.12...v0.0.1-alpha.13) (2022-12-20)
6
+
7
+
8
+ ### Chore
9
+
10
+ * add initial tests feature styling tests for circle, freehand and polygon ([066967c](https://github.com/JamesLMilner/terra-draw/commit/066967cd56c879186207dad9f912a1e6435904e5))
11
+ * add TerraDrawMapLibreGLAdapter and TerraDrawOpenLayersAdapter to docs ([6b78c01](https://github.com/JamesLMilner/terra-draw/commit/6b78c01df8f9bad83738bf560a9b365c7fa01290))
12
+ * add TerraDrawOpenLayersAdapter to terra-draw exports ([c5f3ade](https://github.com/JamesLMilner/terra-draw/commit/c5f3ade9b9cf51b99aa78d3730581dac6f37f0fd))
13
+ * remove default controls from all maps ([6ffde55](https://github.com/JamesLMilner/terra-draw/commit/6ffde55b4c8cf95b1fb46f76db07d47d37504c96))
14
+ * remove outdated list of adapters in README introduction ([21a6aca](https://github.com/JamesLMilner/terra-draw/commit/21a6aca27f15f0f7d90bc434865f4d362960d8d9))
15
+
16
+ ### [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)
17
+
18
+
19
+ ### Features
20
+
21
+ * add openlayers adapter ([1454086](https://github.com/JamesLMilner/terra-draw/commit/1454086220e0b18eb504e23cca433c5db51075e3))
22
+ * add rectangle mode as a builtin mode ([ca9a12b](https://github.com/JamesLMilner/terra-draw/commit/ca9a12b449dc9ce35a268a92e8d3cdb06ba07aee))
23
+ * disable double click when a drawing mode is enabled ([ba02ac6](https://github.com/JamesLMilner/terra-draw/commit/ba02ac689052726f8a059b0548ad541bd842555f))
24
+
25
+
26
+ ### Chore
27
+
28
+ * add keywords to package.json ([1270f26](https://github.com/JamesLMilner/terra-draw/commit/1270f26f0d650c97fc8c264d730231c5aac9fe43))
29
+ * add openlayers to development example ([0d24796](https://github.com/JamesLMilner/terra-draw/commit/0d24796754819bc622a071eae9af4c40d7fd1d16))
30
+ * do not use git add . with husky pre-commit hook ([032d002](https://github.com/JamesLMilner/terra-draw/commit/032d002a9212e767715876f63e4ca5bc90857a3a))
31
+ * update list of supported libraries in README ([2825d6c](https://github.com/JamesLMilner/terra-draw/commit/2825d6cb095f6709cae15887cb56a7ed26b1ef3d))
32
+
5
33
  ### [0.0.1-alpha.11](https://github.com/JamesLMilner/terra-draw/compare/v0.0.1-alpha.10...v0.0.1-alpha.11) (2022-11-29)
6
34
 
7
35
 
package/README.md CHANGED
@@ -4,7 +4,17 @@
4
4
 
5
5
  Frictionless map drawing across mapping libraries.
6
6
 
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.
7
+ TerraDraw 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
+ ### Support
10
+
11
+ Terra Draw uses the concept of 'adapters' to allow it to work with a host of different mapping libraries. Currently supported are:
12
+
13
+ * [Leaflet](https://leafletjs.com/) v1
14
+ * [OpenLayers](https://openlayers.org/) v7
15
+ * [Mapbox GL JS](https://www.mapbox.com/mapbox-gljs) v2
16
+ * [MapLibre](https://maplibre.org/projects/maplibre-gl-js/) v2
17
+ * [Google Maps JS API](https://developers.google.com/maps/documentation/javascript/overview) v3
8
18
 
9
19
  ### Install
10
20
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "terra-draw",
3
- "version": "0.0.1-alpha.11",
3
+ "version": "0.0.1-alpha.13",
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",
@@ -32,6 +32,20 @@
32
32
  "author": "James Milner",
33
33
  "license": "MIT",
34
34
  "repository": "JamesLMilner/terra-draw",
35
+ "keywords": [
36
+ "map",
37
+ "drawing",
38
+ "draw",
39
+ "map drawing",
40
+ "geometry",
41
+ "leaflet",
42
+ "leafletjs",
43
+ "mapbox",
44
+ "mapboxgl",
45
+ "google maps",
46
+ "openlayers",
47
+ "maplibre"
48
+ ],
35
49
  "devDependencies": {
36
50
  "@commitlint/cli": "^17.1.2",
37
51
  "@commitlint/config-conventional": "^17.1.0",
@@ -54,6 +68,7 @@
54
68
  "mapbox-gl": "^2.9.1",
55
69
  "maplibre-gl": "^2.4.0",
56
70
  "microbundle": "^0.15.0",
71
+ "ol": "^7.1.0",
57
72
  "serve": "^13.0.4",
58
73
  "standard-version": "^9.5.0",
59
74
  "ts-jest": "^28.0.5",
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
+ }