@opensystemslab/map 0.7.3 → 0.7.5
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/LICENSE +3 -4
- package/dist/component-lib.es.js +1 -1
- package/dist/component-lib.umd.js +321 -88
- package/dist/{html2canvas.esm-f5b1510b.mjs → html2canvas.esm-1a1724a1.mjs} +1750 -1357
- package/dist/index-c7aa277b.mjs +47112 -0
- package/dist/{index.es-ded369f5.mjs → index.es-f278d6d5.mjs} +1265 -1112
- package/dist/index.html +104 -71
- package/dist/{purify.es-22c1781a.mjs → purify.es-00aa4070.mjs} +28 -8
- package/dist/style.css +1 -1
- package/package.json +22 -25
- package/types/components/address-autocomplete/index.d.ts +3 -3
- package/types/components/my-map/drawing.d.ts +2 -2
- package/types/components/my-map/index.d.ts +8 -2
- package/types/components/my-map/projections.d.ts +1 -1
- package/types/components/my-map/utils.d.ts +1 -1
- package/types/lib/ordnanceSurvey.d.ts +1 -1
- package/dist/index-fe50023b.mjs +0 -37561
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opensystemslab/map",
|
3
|
-
"version": "0.7.
|
4
|
-
"license": "
|
3
|
+
"version": "0.7.5",
|
4
|
+
"license": "MPL-2.0",
|
5
5
|
"private": false,
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -29,44 +29,41 @@
|
|
29
29
|
"@turf/union": "^6.5.0",
|
30
30
|
"accessible-autocomplete": "^2.0.4",
|
31
31
|
"file-saver": "^2.0.5",
|
32
|
-
"govuk-frontend": "^4.0
|
32
|
+
"govuk-frontend": "^4.7.0",
|
33
33
|
"jspdf": "^2.5.1",
|
34
|
-
"lit": "^2.
|
35
|
-
"ol": "^7.
|
36
|
-
"ol-ext": "^4.0.
|
37
|
-
"ol-mapbox-style": "^
|
34
|
+
"lit": "^2.7.6",
|
35
|
+
"ol": "^7.4.0",
|
36
|
+
"ol-ext": "^4.0.11",
|
37
|
+
"ol-mapbox-style": "^10.0.0",
|
38
38
|
"postcode": "^5.1.0",
|
39
|
-
"proj4": "^2.
|
39
|
+
"proj4": "^2.9.0",
|
40
40
|
"rambda": "^7.0.1"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
43
|
"@glorious/pitsby": "^1.30.16",
|
44
|
-
"@testing-library/dom": "^9.
|
44
|
+
"@testing-library/dom": "^9.3.1",
|
45
45
|
"@testing-library/user-event": "^14.4.3",
|
46
46
|
"@types/file-saver": "^2.0.5",
|
47
|
-
"@types/node": "^
|
47
|
+
"@types/node": "^20.4.4",
|
48
48
|
"@types/ol-ext": "npm:@siedlerchr/types-ol-ext@^3.0.9",
|
49
49
|
"@types/proj4": "^2.5.2",
|
50
|
-
"@vitest/ui": "^0.
|
51
|
-
"happy-dom": "^
|
52
|
-
"husky": "^8.0.
|
53
|
-
"lint-staged": "^13.
|
54
|
-
"prettier": "^
|
55
|
-
"rollup-plugin-postcss-lit": "^2.
|
56
|
-
"sass": "^1.
|
57
|
-
"typescript": "^
|
58
|
-
"vite": "^4.
|
59
|
-
"vitest": "0.
|
50
|
+
"@vitest/ui": "^0.32.4",
|
51
|
+
"happy-dom": "^9.1.9",
|
52
|
+
"husky": "^8.0.3",
|
53
|
+
"lint-staged": "^13.2.3",
|
54
|
+
"prettier": "^3.0.0",
|
55
|
+
"rollup-plugin-postcss-lit": "^2.1.0",
|
56
|
+
"sass": "^1.64.2",
|
57
|
+
"typescript": "^5.0.4",
|
58
|
+
"vite": "^4.4.4",
|
59
|
+
"vitest": "0.34.1",
|
60
60
|
"wait-for-expect": "^3.0.2"
|
61
61
|
},
|
62
|
-
"engines": {
|
63
|
-
"node": "^16",
|
64
|
-
"pnpm": "^7.8.0"
|
65
|
-
},
|
66
62
|
"lint-staged": {
|
67
63
|
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md,html}": "prettier --write"
|
68
64
|
},
|
69
65
|
"stackblitz": {
|
70
66
|
"startCommand": "npm run test:ui"
|
71
|
-
}
|
67
|
+
},
|
68
|
+
"packageManager": "pnpm@7.13.4"
|
72
69
|
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { LitElement, TemplateResult } from "lit";
|
2
|
-
|
2
|
+
type Address = {
|
3
3
|
LPI: any;
|
4
4
|
};
|
5
|
-
|
6
|
-
|
5
|
+
type ArrowStyleEnum = "default" | "light";
|
6
|
+
type LabelStyleEnum = "responsive" | "static";
|
7
7
|
export declare class AddressAutocomplete extends LitElement {
|
8
8
|
static styles: import("lit").CSSResult;
|
9
9
|
id: string;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Draw, Modify, Snap } from "ol/interaction";
|
2
2
|
import { Vector as VectorLayer } from "ol/layer";
|
3
3
|
import { Vector as VectorSource } from "ol/source";
|
4
|
-
export
|
5
|
-
export
|
4
|
+
export type DrawTypeEnum = "Polygon" | "Point";
|
5
|
+
export type DrawPointerEnum = "crosshair" | "dot";
|
6
6
|
export declare const drawingSource: VectorSource<import("ol/geom/Geometry").default>;
|
7
7
|
export declare function configureDrawingLayer(drawType: DrawTypeEnum, pointColor: string): VectorLayer<VectorSource<import("ol/geom/Geometry").default>>;
|
8
8
|
export declare function configureDraw(drawType: DrawTypeEnum, pointerStyle: DrawPointerEnum, pointColor: string): Draw;
|
@@ -3,8 +3,8 @@ import Map from "ol/Map";
|
|
3
3
|
import { DrawPointerEnum, DrawTypeEnum } from "./drawing";
|
4
4
|
import { ProjectionEnum } from "./projections";
|
5
5
|
import { AreaUnitEnum } from "./utils";
|
6
|
-
|
7
|
-
|
6
|
+
type MarkerImageEnum = "circle" | "pin";
|
7
|
+
type ResetControlImageEnum = "unicode" | "trash";
|
8
8
|
export declare class MyMap extends LitElement {
|
9
9
|
static styles: import("lit").CSSResult;
|
10
10
|
id: string;
|
@@ -54,6 +54,12 @@ export declare class MyMap extends LitElement {
|
|
54
54
|
useScaleBarStyle: boolean;
|
55
55
|
showNorthArrow: boolean;
|
56
56
|
showPrint: boolean;
|
57
|
+
clipGeojsonData: {
|
58
|
+
type: string;
|
59
|
+
geometry: {
|
60
|
+
coordinates: never[];
|
61
|
+
};
|
62
|
+
};
|
57
63
|
map?: Map;
|
58
64
|
constructor();
|
59
65
|
firstUpdated(): void;
|
@@ -5,7 +5,7 @@ import Map from "ol/Map";
|
|
5
5
|
import { Vector } from "ol/source";
|
6
6
|
import VectorSource from "ol/source/Vector";
|
7
7
|
import { ProjectionEnum } from "./projections";
|
8
|
-
export
|
8
|
+
export type AreaUnitEnum = "m2" | "ha";
|
9
9
|
/**
|
10
10
|
* Calculate & format the area of a polygon
|
11
11
|
* @param polygon
|