mobility-toolbox-js 3.0.0-beta.17 → 3.0.0-beta.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/api/HttpAPI.js +0 -1
- package/common/mixins/RealtimeLayerMixin.d.ts +29 -28
- package/common/mixins/RealtimeLayerMixin.js +2 -2
- package/common/typedefs.d.ts +4 -4
- package/maplibre/layers/RealtimeLayer.d.ts +35 -38
- package/mbt.js +12315 -3803
- package/mbt.js.map +4 -4
- package/mbt.min.js +62 -59
- package/mbt.min.js.map +4 -4
- package/ol/controls/RoutingControl.d.ts +2 -3
- package/ol/layers/Layer.d.ts +15 -15
- package/ol/layers/MaplibreLayer.d.ts +15 -25
- package/ol/layers/MaplibreStyleLayer.d.ts +15 -15
- package/ol/layers/MaplibreStyleLayer.js +4 -4
- package/ol/layers/RealtimeLayer.d.ts +52 -52
- package/ol/layers/RealtimeLayer.js +8 -7
- package/ol/mixins/MobilityLayerMixin.d.ts +15 -15
- package/ol/mixins/PropertiesLayerMixin.d.ts +15 -15
- package/package.json +24 -24
- package/types/common.d.ts +3 -0
|
@@ -24,7 +24,7 @@ export type PropertiesLayerMixinOptions = Options & {
|
|
|
24
24
|
*/
|
|
25
25
|
declare function PropertiesLayerMixin<TBase extends Layerable>(Base: TBase): {
|
|
26
26
|
new (...args: any[]): {
|
|
27
|
-
options?: PropertiesLayerMixinOptions
|
|
27
|
+
options?: PropertiesLayerMixinOptions;
|
|
28
28
|
olEventsKeys: EventsKey[];
|
|
29
29
|
/** @deprecated */
|
|
30
30
|
children: Layer<import("ol/source").Source, import("ol/renderer/Layer").default<any>>[];
|
|
@@ -43,7 +43,7 @@ declare function PropertiesLayerMixin<TBase extends Layerable>(Base: TBase): {
|
|
|
43
43
|
/** @deprecated */
|
|
44
44
|
readonly name: string;
|
|
45
45
|
/** @deprecated */
|
|
46
|
-
olLayer: Layer
|
|
46
|
+
olLayer: Layer;
|
|
47
47
|
/** @deprecated */
|
|
48
48
|
parent: Layer<import("ol/source").Source, import("ol/renderer/Layer").default<any>>;
|
|
49
49
|
/** @deprecated */
|
|
@@ -68,30 +68,30 @@ declare function PropertiesLayerMixin<TBase extends Layerable>(Base: TBase): {
|
|
|
68
68
|
flat(): any[];
|
|
69
69
|
addEventListener: (type: string, listener: import("ol/events").Listener) => void;
|
|
70
70
|
removeEventListener: (type: string, listener: import("ol/events").Listener) => void;
|
|
71
|
-
on: import("ol/layer/Layer").LayerOnSignature<EventsKey>;
|
|
71
|
+
on: import("ol/layer/Layer").LayerOnSignature<import("ol/events").EventsKey>;
|
|
72
72
|
render: (frameState: import("ol/Map").FrameState | null, target: HTMLElement) => HTMLElement | null;
|
|
73
|
-
once: import("ol/layer/Layer").LayerOnSignature<EventsKey>;
|
|
73
|
+
once: import("ol/layer/Layer").LayerOnSignature<import("ol/events").EventsKey>;
|
|
74
74
|
un: import("ol/layer/Layer").LayerOnSignature<void>;
|
|
75
75
|
getSource: () => import("ol/source").Source | null;
|
|
76
76
|
getRenderSource: () => import("ol/source").Source | null;
|
|
77
|
-
getFeatures: (pixel: import("ol/pixel").Pixel) => Promise<import("ol/Feature").FeatureLike
|
|
78
|
-
getData: (pixel: import("ol/pixel").Pixel) =>
|
|
77
|
+
getFeatures: (pixel: import("ol/pixel").Pixel) => Promise<Array<import("ol/Feature").FeatureLike>>;
|
|
78
|
+
getData: (pixel: import("ol/pixel").Pixel) => Uint8ClampedArray | Uint8Array | Float32Array | DataView | null;
|
|
79
79
|
isVisible: (view?: import("ol").View | import("ol/View").ViewStateLayerStateExtent | undefined) => boolean;
|
|
80
|
-
getAttributions: (view?: import("ol").View | import("ol/View").ViewStateLayerStateExtent | undefined) => string
|
|
80
|
+
getAttributions: (view?: import("ol").View | import("ol/View").ViewStateLayerStateExtent | undefined) => Array<string>;
|
|
81
81
|
unrender: () => void;
|
|
82
82
|
getDeclutter: () => string;
|
|
83
83
|
renderDeclutter: (frameState: import("ol/Map").FrameState, layerState: import("ol/layer/Layer").State) => void;
|
|
84
84
|
renderDeferred: (frameState: import("ol/Map").FrameState) => void;
|
|
85
|
-
getMapInternal: () => Map | null;
|
|
86
|
-
setMap: (map: Map | null) => void;
|
|
85
|
+
getMapInternal: () => import("ol/Map").default | null;
|
|
86
|
+
setMap: (map: import("ol/Map").default | null) => void;
|
|
87
87
|
setSource: (source: import("ol/source").Source | null) => void;
|
|
88
88
|
getRenderer: () => import("ol/renderer/Layer").default<any> | null;
|
|
89
89
|
hasRenderer: () => boolean;
|
|
90
|
-
getBackground: () =>
|
|
90
|
+
getBackground: () => import("ol/layer/Base").BackgroundColor | false;
|
|
91
91
|
getClassName: () => string;
|
|
92
92
|
getLayerState: (managed?: boolean | undefined) => import("ol/layer/Layer").State;
|
|
93
|
-
getLayersArray: (array?: Layer<import("ol/source").
|
|
94
|
-
getLayerStatesArray: (states?: import("ol/layer/Layer").State[] | undefined) => import("ol/layer/Layer").State
|
|
93
|
+
getLayersArray: (array?: import("ol/layer/Layer").default<import("ol/source").default, import("ol/renderer/Layer").default<any>>[] | undefined) => Array<import("ol/layer/Layer").default>;
|
|
94
|
+
getLayerStatesArray: (states?: import("ol/layer/Layer").State[] | undefined) => Array<import("ol/layer/Layer").State>;
|
|
95
95
|
getExtent: () => import("ol/extent").Extent | undefined;
|
|
96
96
|
getMaxResolution: () => number;
|
|
97
97
|
getMinResolution: () => number;
|
|
@@ -111,7 +111,7 @@ declare function PropertiesLayerMixin<TBase extends Layerable>(Base: TBase): {
|
|
|
111
111
|
setVisible: (visible: boolean) => void;
|
|
112
112
|
setZIndex: (zindex: number) => void;
|
|
113
113
|
get: (key: string) => any;
|
|
114
|
-
getKeys: () => string
|
|
114
|
+
getKeys: () => Array<string>;
|
|
115
115
|
getProperties: () => {
|
|
116
116
|
[x: string]: any;
|
|
117
117
|
};
|
|
@@ -129,8 +129,8 @@ declare function PropertiesLayerMixin<TBase extends Layerable>(Base: TBase): {
|
|
|
129
129
|
unset: (key: string, silent?: boolean | undefined) => void;
|
|
130
130
|
changed: () => void;
|
|
131
131
|
getRevision: () => number;
|
|
132
|
-
dispatchEvent: (event:
|
|
133
|
-
getListeners: (type: string) => import("ol/events").Listener
|
|
132
|
+
dispatchEvent: (event: import("ol/events/Event").default | string) => boolean | undefined;
|
|
133
|
+
getListeners: (type: string) => Array<import("ol/events").Listener> | undefined;
|
|
134
134
|
hasListener: (type?: string | undefined) => boolean;
|
|
135
135
|
dispose: () => void;
|
|
136
136
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "mobility-toolbox-js",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"description": "Toolbox for JavaScript applications in the domains of mobility and logistics.",
|
|
5
|
-
"version": "3.0.0-beta.
|
|
5
|
+
"version": "3.0.0-beta.18",
|
|
6
6
|
"homepage": "https://mobility-toolbox-js.geops.io/",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./index.js",
|
|
@@ -13,19 +13,19 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@geoblocks/ol-maplibre-layer": "^1.0.0",
|
|
16
|
-
"@turf/helpers": "
|
|
17
|
-
"@turf/transform-rotate": "
|
|
16
|
+
"@turf/helpers": "7.0.0",
|
|
17
|
+
"@turf/transform-rotate": "7.0.0",
|
|
18
18
|
"lodash.debounce": "4.0.8",
|
|
19
19
|
"lodash.throttle": "4.1.1",
|
|
20
|
-
"uuid": "
|
|
20
|
+
"uuid": "10.0.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"maplibre-gl": ">=1",
|
|
24
24
|
"ol": ">=7"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@babel/preset-env": "^7.24.
|
|
28
|
-
"@babel/preset-typescript": "^7.24.
|
|
27
|
+
"@babel/preset-env": "^7.24.7",
|
|
28
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
29
29
|
"@commitlint/cli": "19.3.0",
|
|
30
30
|
"@commitlint/config-conventional": "19.2.2",
|
|
31
31
|
"@types/geojson": "7946.0.14",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@types/mapbox-gl": "3.1.0",
|
|
35
35
|
"@types/offscreencanvas": "2019.7.3",
|
|
36
36
|
"@types/topojson": "3.2.6",
|
|
37
|
-
"@types/uuid": "
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
39
|
-
"@typescript-eslint/parser": "7.
|
|
40
|
-
"cypress": "13.
|
|
41
|
-
"esbuild": "0.21.
|
|
37
|
+
"@types/uuid": "10.0.0",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "7.13.1",
|
|
39
|
+
"@typescript-eslint/parser": "7.13.1",
|
|
40
|
+
"cypress": "13.12.0",
|
|
41
|
+
"esbuild": "0.21.5",
|
|
42
42
|
"esdoc": "1.1.0",
|
|
43
43
|
"esdoc-ecmascript-proposal-plugin": "1.0.0",
|
|
44
44
|
"esdoc-publish-html-plugin": "1.1.2",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"eslint-config-airbnb": "19.0.4",
|
|
49
49
|
"eslint-config-airbnb-typescript": "18.0.0",
|
|
50
50
|
"eslint-config-prettier": "9.1.0",
|
|
51
|
-
"eslint-plugin-cypress": "3.
|
|
51
|
+
"eslint-plugin-cypress": "3.3.0",
|
|
52
52
|
"eslint-plugin-import": "2.29.1",
|
|
53
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
53
|
+
"eslint-plugin-jsx-a11y": "6.9.0",
|
|
54
54
|
"eslint-plugin-prettier": "5.1.3",
|
|
55
|
-
"eslint-plugin-react": "7.34.
|
|
55
|
+
"eslint-plugin-react": "7.34.3",
|
|
56
56
|
"fixpack": "4.0.0",
|
|
57
57
|
"husky": "9.0.11",
|
|
58
58
|
"is-ci": "3.0.1",
|
|
@@ -63,23 +63,23 @@
|
|
|
63
63
|
"jest-serializer-html": "7.1.0",
|
|
64
64
|
"jest-transformer-svg": "2.0.2",
|
|
65
65
|
"jest-websocket-mock": "2.5.0",
|
|
66
|
-
"lint-staged": "15.2.
|
|
67
|
-
"maplibre-gl": "4.
|
|
66
|
+
"lint-staged": "15.2.7",
|
|
67
|
+
"maplibre-gl": "4.4.1",
|
|
68
68
|
"mock-socket": "9.3.1",
|
|
69
|
-
"next": "14.2.
|
|
69
|
+
"next": "14.2.4",
|
|
70
70
|
"next-transpile-modules": "10.0.1",
|
|
71
|
-
"ol": "9.
|
|
71
|
+
"ol": "9.2.4",
|
|
72
72
|
"openapi-typescript": "6.7.5",
|
|
73
|
-
"prettier": "3.2
|
|
73
|
+
"prettier": "3.3.2",
|
|
74
74
|
"raw-loader": "4.0.2",
|
|
75
75
|
"sort-json": "2.0.1",
|
|
76
76
|
"standard-version": "9.5.0",
|
|
77
|
-
"start-server-and-test": "2.0.
|
|
78
|
-
"stylelint": "16.
|
|
77
|
+
"start-server-and-test": "2.0.4",
|
|
78
|
+
"stylelint": "16.6.1",
|
|
79
79
|
"stylelint-config-recommended-scss": "14.0.0",
|
|
80
|
-
"stylelint-config-standard": "36.0.
|
|
81
|
-
"stylelint-scss": "6.3.
|
|
82
|
-
"typescript": "5.
|
|
80
|
+
"stylelint-config-standard": "36.0.1",
|
|
81
|
+
"stylelint-scss": "6.3.2",
|
|
82
|
+
"typescript": "5.5.2"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"apidoc": "esdoc && cp apidoc/index.json doc/src/components/Esdoc",
|
package/types/common.d.ts
CHANGED
|
@@ -101,6 +101,9 @@ export type GConstructor2<T extends OlLayer> = new (options?: any) => T;
|
|
|
101
101
|
export type OlLayerClass = GConstructor<AnyOlLayer>;
|
|
102
102
|
export type AnyLayerClass = GConstructor<AnyLayer>;
|
|
103
103
|
|
|
104
|
+
type GConstructor3<T = {}> = new (...args: any[]) => T;
|
|
105
|
+
export type AnyLayerable = GConstructor3<Omit<AnyLayer, keyof string>>;
|
|
106
|
+
|
|
104
107
|
export type AnyMapboxLayerClass = GConstructor<AnyMapboxLayer>;
|
|
105
108
|
export type AnyRealtimeLayerClass = GConstructor<AnyRealtimeLayer>;
|
|
106
109
|
export type AnyMapGlMapClass = GConstructor<AnyMapGlMap>;
|