ol 10.3.2-dev.1734392869342 → 10.3.2-dev.1734394936325
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/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/format/GPX.d.ts +5 -1
- package/format/GPX.d.ts.map +1 -1
- package/format/GPX.js +5 -1
- package/interaction/Extent.d.ts +5 -1
- package/interaction/Extent.d.ts.map +1 -1
- package/interaction/Extent.js +6 -2
- package/layer/BaseVector.d.ts +2 -3
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/BaseVector.js +1 -2
- package/package.json +1 -1
- package/proj/Projection.d.ts +18 -5
- package/proj/Projection.d.ts.map +1 -1
- package/proj/Projection.js +11 -3
- package/renderer/canvas/VectorLayer.d.ts +1 -1
- package/renderer/canvas/VectorLayer.js +1 -1
- package/util.js +1 -1
package/format/GPX.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export type LayoutOptions = {
|
|
|
92
92
|
*/
|
|
93
93
|
hasM?: boolean | undefined;
|
|
94
94
|
};
|
|
95
|
+
export type ReadExtensions = (arg0: Feature, arg1: Node) => void;
|
|
95
96
|
/**
|
|
96
97
|
* @typedef {Object} Options
|
|
97
98
|
* @property {function(Feature, Node):void} [readExtensions] Callback function
|
|
@@ -106,6 +107,9 @@ export type LayoutOptions = {
|
|
|
106
107
|
* @property {boolean} [hasZ] HasZ.
|
|
107
108
|
* @property {boolean} [hasM] HasM.
|
|
108
109
|
*/
|
|
110
|
+
/**
|
|
111
|
+
* @typedef {function(Feature, Node): void} ReadExtensions
|
|
112
|
+
*/
|
|
109
113
|
/**
|
|
110
114
|
* @classdesc
|
|
111
115
|
* Feature format for reading and writing data in the GPX format.
|
|
@@ -128,7 +132,7 @@ declare class GPX extends XMLFeature {
|
|
|
128
132
|
*/
|
|
129
133
|
constructor(options?: Options);
|
|
130
134
|
/**
|
|
131
|
-
* @type {
|
|
135
|
+
* @type {ReadExtensions|undefined}
|
|
132
136
|
* @private
|
|
133
137
|
*/
|
|
134
138
|
private readExtensions_;
|
package/format/GPX.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPX.d.ts","sourceRoot":"","sources":["GPX.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA2KuB,OAAO,QAAE,IAAI,KAAE,IAAI;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GPX.d.ts","sourceRoot":"","sources":["GPX.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA2KuB,OAAO,QAAE,IAAI,KAAE,IAAI;;;;;;;;;;;;6BAe7B,CAAS,IAAO,EAAP,OAAO,EAAE,IAAI,EAAJ,IAAI,KAAG,IAAI;AAjB1C;;;;;;;;GAQG;AAEH;;;;GAIG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;;GAeG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,EAiBjB;IALC;;;OAGG;IACH,wBAA6C;IAG/C;;;OAGG;IACH,8BAYC;IAED;;;;;;;;;;;OAWG;IACH,qBAJW,QAAQ,GAAC,OAAO,SAAQ,MAAM,GAC7B,WAAW,GAAG,IAAI,CAc7B;IAED;;;OAGG;IACH,8BAHW,QAAQ,GACP,WAAW,GAAG,IAAI,CAY7B;IAED;;;OAGG;IACH,2BAHW,OAAO,OAgBjB;CAmFF;oBA9XmB,eAAe;uBAuBZ,iBAAiB"}
|
package/format/GPX.js
CHANGED
|
@@ -183,6 +183,10 @@ const GPX_SERIALIZERS = makeStructureNS(NAMESPACE_URIS, {
|
|
|
183
183
|
* @property {boolean} [hasM] HasM.
|
|
184
184
|
*/
|
|
185
185
|
|
|
186
|
+
/**
|
|
187
|
+
* @typedef {function(Feature, Node): void} ReadExtensions
|
|
188
|
+
*/
|
|
189
|
+
|
|
186
190
|
/**
|
|
187
191
|
* @classdesc
|
|
188
192
|
* Feature format for reading and writing data in the GPX format.
|
|
@@ -214,7 +218,7 @@ class GPX extends XMLFeature {
|
|
|
214
218
|
this.dataProjection = getProjection('EPSG:4326');
|
|
215
219
|
|
|
216
220
|
/**
|
|
217
|
-
* @type {
|
|
221
|
+
* @type {ReadExtensions|undefined}
|
|
218
222
|
* @private
|
|
219
223
|
*/
|
|
220
224
|
this.readExtensions_ = options.readExtensions;
|
package/interaction/Extent.d.ts
CHANGED
|
@@ -50,11 +50,15 @@ export type Options = {
|
|
|
50
50
|
*/
|
|
51
51
|
wrapX?: boolean | undefined;
|
|
52
52
|
};
|
|
53
|
+
export type PointerHandler = (arg0: import("../coordinate.js").Coordinate) => import("../extent.js").Extent;
|
|
53
54
|
/**
|
|
54
55
|
* *
|
|
55
56
|
*/
|
|
56
57
|
export type ExtentOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("../ObjectEventType").Types | "change:active", import("../Object").ObjectEvent, Return> & import("../Observable").OnSignature<"extentchanged", ExtentEvent, Return> & import("../Observable").CombinedOnSignature<import("../Observable").EventTypes | import("../ObjectEventType").Types | "change:active" | "extentchanged", Return>;
|
|
57
58
|
import Event from '../events/Event.js';
|
|
59
|
+
/**
|
|
60
|
+
* @typedef {function (import("../coordinate.js").Coordinate): import("../extent.js").Extent} PointerHandler
|
|
61
|
+
*/
|
|
58
62
|
/***
|
|
59
63
|
* @template Return
|
|
60
64
|
* @typedef {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> &
|
|
@@ -104,7 +108,7 @@ declare class Extent extends PointerInteraction {
|
|
|
104
108
|
private extent_;
|
|
105
109
|
/**
|
|
106
110
|
* Handler for pointer move events
|
|
107
|
-
* @type {
|
|
111
|
+
* @type {PointerHandler|null}
|
|
108
112
|
* @private
|
|
109
113
|
*/
|
|
110
114
|
private pointerHandler_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Extent.d.ts","sourceRoot":"","sources":["Extent.js"],"names":[],"mappings":"AAsDA;;;;GAIG;AACH;IACE;;OAEG;IACH,oBAFW,OAAO,cAAc,EAAE,MAAM,EAWvC;IANC;;;;OAIG;IACH,QAHU,OAAO,cAAc,EAAE,MAAM,CAGnB;CAEvB
|
|
1
|
+
{"version":3,"file":"Extent.d.ts","sourceRoot":"","sources":["Extent.js"],"names":[],"mappings":"AAsDA;;;;GAIG;AACH;IACE;;OAEG;IACH,oBAFW,OAAO,cAAc,EAAE,MAAM,EAWvC;IANC;;;;OAIG;IACH,QAHU,OAAO,cAAc,EAAE,MAAM,CAGnB;CAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAGY,CAAU,IAAqC,EAArC,OAAO,kBAAkB,EAAE,UAAU,KAAG,OAAO,cAAc,EAAE,MAAM;;;;8BAI/E,MAAM,IACN,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,GAC1E,eAAqB,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC/D,OAAW,eAAe,EAAE,WAAW,CAAC,eAAe,EAAE,WAAW,EAAE,MAAM,CAAC,GAC7E,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,oBAAoB,EAAE,KAAK,GACrH,eAAqB,GAAC,eAAe,EAAE,MAAM,CAAC;kBA3E7B,oBAAoB;AAgEtC;;GAEG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,EAiHjB;IA1GC;;OAEG;IACH,IAFU,iBAAiB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAEnD;IAEP;;OAEG;IACH,MAFU,iBAAiB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAEjD;IAET;;OAEG;IACH,IAFU,iBAAiB,CAAC,IAAI,CAAC,CAE1B;IAEP;;;;OAIG;IACH,mBAAgE;IAEhE;;;;OAIG;IACH,gBAAmB;IAEnB;;;;OAIG;IACH,wBAA2B;IAE3B;;;;OAIG;IACH,wBACoE;IAEpE;;;;OAIG;IACH,yBAA6B;IAE7B;;;;OAIG;IACH,uBAA0B;IAE1B;;;;OAIG;IACH,uBAA0B;IAM1B;;;;OAIG;IACH,uBAUE;IAEF;;;;OAIG;IACH,uBAUE;IAOJ;;;;;OAKG;IACH,sBAmCC;IAED;;;OAGG;IACH,2BASC;IAED;;;;OAIG;IACH,qCAmBC;IAED;;;;OAIG;IACH,sCAWC;IAmHD;;;;;;OAMG;IACH,qBAHW,OAAO,WAAW,EAAE,OAAO,QAOrC;IAED;;;;;OAKG;IACH,aAHY,OAAO,cAAc,EAAE,MAAM,CAQxC;IAED;;;;;OAKG;IACH,qBAHY,OAAO,cAAc,EAAE,MAAM,CAKxC;IAED;;;;;OAKG;IACH,kBAHW,OAAO,cAAc,EAAE,MAAM,QAQvC;CACF;+BA1c8B,cAAc"}
|
package/interaction/Extent.js
CHANGED
|
@@ -73,6 +73,10 @@ export class ExtentEvent extends Event {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
/**
|
|
77
|
+
* @typedef {function (import("../coordinate.js").Coordinate): import("../extent.js").Extent} PointerHandler
|
|
78
|
+
*/
|
|
79
|
+
|
|
76
80
|
/***
|
|
77
81
|
* @template Return
|
|
78
82
|
* @typedef {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> &
|
|
@@ -132,7 +136,7 @@ class Extent extends PointerInteraction {
|
|
|
132
136
|
|
|
133
137
|
/**
|
|
134
138
|
* Handler for pointer move events
|
|
135
|
-
* @type {
|
|
139
|
+
* @type {PointerHandler|null}
|
|
136
140
|
* @private
|
|
137
141
|
*/
|
|
138
142
|
this.pointerHandler_ = null;
|
|
@@ -511,7 +515,7 @@ function getPointHandler(fixedPoint) {
|
|
|
511
515
|
/**
|
|
512
516
|
* @param {import("../coordinate.js").Coordinate} fixedP1 first corner that will be unchanged in the new extent
|
|
513
517
|
* @param {import("../coordinate.js").Coordinate} fixedP2 second corner that will be unchanged in the new extent
|
|
514
|
-
* @return {
|
|
518
|
+
* @return {PointerHandler|null} event handler
|
|
515
519
|
*/
|
|
516
520
|
function getEdgeHandler(fixedP1, fixedP2) {
|
|
517
521
|
if (fixedP1[0] == fixedP2[0]) {
|
package/layer/BaseVector.d.ts
CHANGED
|
@@ -164,10 +164,9 @@ declare class BaseVectorLayer<FeatureType extends import("../Feature").FeatureLi
|
|
|
164
164
|
*/
|
|
165
165
|
getRenderBuffer(): number | undefined;
|
|
166
166
|
/**
|
|
167
|
-
* @return {
|
|
168
|
-
* order.
|
|
167
|
+
* @return {import("../render.js").OrderFunction|null|undefined} Render order.
|
|
169
168
|
*/
|
|
170
|
-
getRenderOrder():
|
|
169
|
+
getRenderOrder(): import("../render.js").OrderFunction | null | undefined;
|
|
171
170
|
/**
|
|
172
171
|
* Get the style for features. This returns whatever was passed to the `style`
|
|
173
172
|
* option at construction or to the `setStyle` method.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseVector.d.ts","sourceRoot":"","sources":["BaseVector.js"],"names":[],"mappings":";;;;iCAea,CAAC,IACD,CAAC,SAAS,OAAO,qBAAqB,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,OAAO,eAAe,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,KAAK;oBAI7E,WAAW,SAA9C,OAAQ,YAAY,EAAE,WAAY,EAC0E,gBAAgB,SAA3H,OAAO,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAC,GAAC,OAAO,yBAAyB,EAAE,OAAO,C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IAAI,QAS7F;IAED;;;OAGG;IACH,wBAHW,OAAO,GAAC,MAAM,GAAC,MAAM,QAM/B;CACF;kBAvRiB,YAAY"}
|
package/layer/BaseVector.js
CHANGED
|
@@ -187,8 +187,7 @@ class BaseVectorLayer extends Layer {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
|
-
* @return {
|
|
191
|
-
* order.
|
|
190
|
+
* @return {import("../render.js").OrderFunction|null|undefined} Render order.
|
|
192
191
|
*/
|
|
193
192
|
getRenderOrder() {
|
|
194
193
|
return /** @type {import("../render.js").OrderFunction|null|undefined} */ (
|
package/package.json
CHANGED
package/proj/Projection.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export default Projection;
|
|
2
|
+
/**
|
|
3
|
+
* The function is called with a `number` view resolution and a
|
|
4
|
+
* {@link module :ol/coordinate~Coordinate} as arguments, and returns the `number` resolution
|
|
5
|
+
* in projection units at the passed coordinate.
|
|
6
|
+
*/
|
|
7
|
+
export type GetPointResolution = (arg0: number, arg1: import("../coordinate.js").Coordinate) => number;
|
|
2
8
|
export type Options = {
|
|
3
9
|
/**
|
|
4
10
|
* The SRS identifier code, e.g. `EPSG:4326`.
|
|
@@ -36,8 +42,15 @@ export type Options = {
|
|
|
36
42
|
* the `number` resolution in projection units at the passed coordinate. If this is `undefined`,
|
|
37
43
|
* the default {@link module :ol/proj.getPointResolution} function will be used.
|
|
38
44
|
*/
|
|
39
|
-
getPointResolution?:
|
|
45
|
+
getPointResolution?: GetPointResolution | undefined;
|
|
40
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* The function is called with a `number` view resolution and a
|
|
49
|
+
* {@link module:ol/coordinate~Coordinate} as arguments, and returns the `number` resolution
|
|
50
|
+
* in projection units at the passed coordinate.
|
|
51
|
+
* @typedef {function(number, import("../coordinate.js").Coordinate):number} GetPointResolution
|
|
52
|
+
* @api
|
|
53
|
+
*/
|
|
41
54
|
/**
|
|
42
55
|
* @typedef {Object} Options
|
|
43
56
|
* @property {string} code The SRS identifier code, e.g. `EPSG:4326`.
|
|
@@ -50,7 +63,7 @@ export type Options = {
|
|
|
50
63
|
* If not provided, the `units` are used to get the meters per unit from the {@link METERS_PER_UNIT}
|
|
51
64
|
* lookup table.
|
|
52
65
|
* @property {import("../extent.js").Extent} [worldExtent] The world extent for the SRS.
|
|
53
|
-
* @property {
|
|
66
|
+
* @property {GetPointResolution} [getPointResolution]
|
|
54
67
|
* Function to determine resolution at a point. The function is called with a
|
|
55
68
|
* `number` view resolution and a {@link module:ol/coordinate~Coordinate} as arguments, and returns
|
|
56
69
|
* the `number` resolution in projection units at the passed coordinate. If this is `undefined`,
|
|
@@ -136,7 +149,7 @@ declare class Projection {
|
|
|
136
149
|
private canWrapX_;
|
|
137
150
|
/**
|
|
138
151
|
* @private
|
|
139
|
-
* @type {
|
|
152
|
+
* @type {GetPointResolution|undefined}
|
|
140
153
|
*/
|
|
141
154
|
private getPointResolutionFunc_;
|
|
142
155
|
/**
|
|
@@ -239,9 +252,9 @@ declare class Projection {
|
|
|
239
252
|
setGetPointResolution(func: (arg0: number, arg1: import("../coordinate.js").Coordinate) => number): void;
|
|
240
253
|
/**
|
|
241
254
|
* Get the custom point resolution function for this projection (if set).
|
|
242
|
-
* @return {
|
|
255
|
+
* @return {GetPointResolution|undefined} The custom point
|
|
243
256
|
* resolution function (if set).
|
|
244
257
|
*/
|
|
245
|
-
getPointResolutionFunc():
|
|
258
|
+
getPointResolutionFunc(): GetPointResolution | undefined;
|
|
246
259
|
}
|
|
247
260
|
//# sourceMappingURL=Projection.d.ts.map
|
package/proj/Projection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Projection.d.ts","sourceRoot":"","sources":["Projection.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Projection.d.ts","sourceRoot":"","sources":["Projection.js"],"names":[],"mappings":";;;;;;iCASa,CAAS,IAAM,EAAN,MAAM,EAAE,IAAqC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IAAM,EAAN,MAAM,EAAE,IAAqC,EAArC,OAAO,kBAAkB,EAAE,UAAU,KAAE,MAAM,QAKxE;IAED;;;;OAIG;IACH,0BAHY,kBAAkB,GAAC,SAAS,CAKvC;CACF"}
|
package/proj/Projection.js
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import {METERS_PER_UNIT} from './Units.js';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* The function is called with a `number` view resolution and a
|
|
8
|
+
* {@link module:ol/coordinate~Coordinate} as arguments, and returns the `number` resolution
|
|
9
|
+
* in projection units at the passed coordinate.
|
|
10
|
+
* @typedef {function(number, import("../coordinate.js").Coordinate):number} GetPointResolution
|
|
11
|
+
* @api
|
|
12
|
+
*/
|
|
13
|
+
|
|
6
14
|
/**
|
|
7
15
|
* @typedef {Object} Options
|
|
8
16
|
* @property {string} code The SRS identifier code, e.g. `EPSG:4326`.
|
|
@@ -15,7 +23,7 @@ import {METERS_PER_UNIT} from './Units.js';
|
|
|
15
23
|
* If not provided, the `units` are used to get the meters per unit from the {@link METERS_PER_UNIT}
|
|
16
24
|
* lookup table.
|
|
17
25
|
* @property {import("../extent.js").Extent} [worldExtent] The world extent for the SRS.
|
|
18
|
-
* @property {
|
|
26
|
+
* @property {GetPointResolution} [getPointResolution]
|
|
19
27
|
* Function to determine resolution at a point. The function is called with a
|
|
20
28
|
* `number` view resolution and a {@link module:ol/coordinate~Coordinate} as arguments, and returns
|
|
21
29
|
* the `number` resolution in projection units at the passed coordinate. If this is `undefined`,
|
|
@@ -111,7 +119,7 @@ class Projection {
|
|
|
111
119
|
|
|
112
120
|
/**
|
|
113
121
|
* @private
|
|
114
|
-
* @type {
|
|
122
|
+
* @type {GetPointResolution|undefined}
|
|
115
123
|
*/
|
|
116
124
|
this.getPointResolutionFunc_ = options.getPointResolution;
|
|
117
125
|
|
|
@@ -262,7 +270,7 @@ class Projection {
|
|
|
262
270
|
|
|
263
271
|
/**
|
|
264
272
|
* Get the custom point resolution function for this projection (if set).
|
|
265
|
-
* @return {
|
|
273
|
+
* @return {GetPointResolution|undefined} The custom point
|
|
266
274
|
* resolution function (if set).
|
|
267
275
|
*/
|
|
268
276
|
getPointResolutionFunc() {
|
|
@@ -73,7 +73,7 @@ declare class CanvasVectorLayerRenderer extends CanvasLayerRenderer<any> {
|
|
|
73
73
|
private renderedPixelRatio_;
|
|
74
74
|
/**
|
|
75
75
|
* @private
|
|
76
|
-
* @type {
|
|
76
|
+
* @type {import("../../render.js").OrderFunction|null}
|
|
77
77
|
*/
|
|
78
78
|
private renderedRenderOrder_;
|
|
79
79
|
/**
|
|
@@ -131,7 +131,7 @@ class CanvasVectorLayerRenderer extends CanvasLayerRenderer {
|
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* @private
|
|
134
|
-
* @type {
|
|
134
|
+
* @type {import("../../render.js").OrderFunction|null}
|
|
135
135
|
*/
|
|
136
136
|
this.renderedRenderOrder_ = null;
|
|
137
137
|
|
package/util.js
CHANGED