@opensystemslab/map 0.7.5 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensystemslab/map",
3
- "version": "0.7.5",
3
+ "version": "0.7.7",
4
4
  "license": "MPL-2.0",
5
5
  "private": false,
6
6
  "repository": {
@@ -32,30 +32,30 @@
32
32
  "govuk-frontend": "^4.7.0",
33
33
  "jspdf": "^2.5.1",
34
34
  "lit": "^2.7.6",
35
- "ol": "^7.4.0",
35
+ "ol": "^7.5.1",
36
36
  "ol-ext": "^4.0.11",
37
- "ol-mapbox-style": "^10.0.0",
37
+ "ol-mapbox-style": "^11.0.3",
38
38
  "postcode": "^5.1.0",
39
39
  "proj4": "^2.9.0",
40
- "rambda": "^7.0.1"
40
+ "rambda": "^8.3.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@glorious/pitsby": "^1.30.16",
43
+ "@glorious/pitsby": "^1.36.1",
44
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
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.32.4",
50
+ "@vitest/ui": "^0.34.3",
51
51
  "happy-dom": "^9.1.9",
52
52
  "husky": "^8.0.3",
53
53
  "lint-staged": "^13.2.3",
54
- "prettier": "^3.0.0",
54
+ "prettier": "^3.0.2",
55
55
  "rollup-plugin-postcss-lit": "^2.1.0",
56
56
  "sass": "^1.64.2",
57
- "typescript": "^5.0.4",
58
- "vite": "^4.4.4",
57
+ "typescript": "^5.1.6",
58
+ "vite": "^4.4.9",
59
59
  "vitest": "0.34.1",
60
60
  "wait-for-expect": "^3.0.2"
61
61
  },
@@ -4,7 +4,7 @@ import { Vector as VectorSource } from "ol/source";
4
4
  export type DrawTypeEnum = "Polygon" | "Point";
5
5
  export type DrawPointerEnum = "crosshair" | "dot";
6
6
  export declare const drawingSource: VectorSource<import("ol/geom/Geometry").default>;
7
- export declare function configureDrawingLayer(drawType: DrawTypeEnum, pointColor: string): VectorLayer<VectorSource<import("ol/geom/Geometry").default>>;
8
- export declare function configureDraw(drawType: DrawTypeEnum, pointerStyle: DrawPointerEnum, pointColor: string): Draw;
7
+ export declare function configureDrawingLayer(drawType: DrawTypeEnum, pointColor: string, drawColor: string, drawFillColor: string): VectorLayer<VectorSource<import("ol/geom/Geometry").default>>;
8
+ export declare function configureDraw(drawType: DrawTypeEnum, pointerStyle: DrawPointerEnum, pointColor: string, drawColor: string, drawFillColor: string): Draw;
9
9
  export declare const snap: Snap;
10
- export declare function configureModify(pointerStyle: DrawPointerEnum): Modify;
10
+ export declare function configureModify(pointerStyle: DrawPointerEnum, drawColor: string): Modify;
@@ -25,6 +25,8 @@ export declare class MyMap extends LitElement {
25
25
  drawPointer: DrawPointerEnum;
26
26
  showFeaturesAtPoint: boolean;
27
27
  clickFeatures: boolean;
28
+ drawColor: string;
29
+ drawFillColor: string;
28
30
  featureColor: string;
29
31
  featureFill: boolean;
30
32
  featureBorderNone: boolean;