ol 10.2.2-dev.1730888074380 → 10.2.2-dev.1730915520848
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/layer/BaseVector.d.ts +4 -0
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/BaseVector.js +5 -0
- package/layer/Vector.d.ts +4 -12
- package/layer/Vector.d.ts.map +1 -1
- package/layer/Vector.js +2 -7
- package/layer/VectorImage.d.ts +8 -8
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorImage.js +5 -5
- package/package.json +1 -1
- package/util.js +1 -1
package/layer/BaseVector.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default BaseVectorLayer;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
export type ExtractedFeatureType<T> = T extends import("../source/Vector.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never;
|
|
2
6
|
export type Options<FeatureType extends import("../Feature").FeatureLike, VectorSourceType extends import("../source/Vector.js").default<FeatureType> | import("../source/VectorTile.js").default<FeatureType>> = {
|
|
3
7
|
/**
|
|
4
8
|
* A CSS class name to set to the layer element.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseVector.d.ts","sourceRoot":"","sources":["BaseVector.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"BaseVector.d.ts","sourceRoot":"","sources":["BaseVector.js"],"names":[],"mappings":";;;;iCAea,CAAC,IACD,CAAC,SAAS,OAAO,qBAAqB,EAAE,OAAO,CAAC,MAAM,CAA6C,SAAnC,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,yB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,IAAI,GAAC,SAAS,QAK7D;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,4HAMC;CACF;kBAxRiB,YAAY"}
|
package/layer/BaseVector.js
CHANGED
|
@@ -12,6 +12,11 @@ import {
|
|
|
12
12
|
rulesToStyleFunction,
|
|
13
13
|
} from '../render/canvas/style.js';
|
|
14
14
|
|
|
15
|
+
/***
|
|
16
|
+
* @template T
|
|
17
|
+
* @typedef {T extends import("../source/Vector.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never} ExtractedFeatureType
|
|
18
|
+
*/
|
|
19
|
+
|
|
15
20
|
/**
|
|
16
21
|
* @template {import('../Feature').FeatureLike} FeatureType
|
|
17
22
|
* @template {import("../source/Vector.js").default<FeatureType>|import("../source/VectorTile.js").default<FeatureType>} VectorSourceType<FeatureType>
|
package/layer/Vector.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
export default VectorLayer;
|
|
2
|
-
|
|
3
|
-
* *
|
|
4
|
-
*/
|
|
5
|
-
export type ExtractedFeatureType<T> = T extends import("../source/Vector.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never;
|
|
6
|
-
export type Options<VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = ExtractedFeatureType<VectorSourceType>> = {
|
|
2
|
+
export type Options<VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>> = {
|
|
7
3
|
/**
|
|
8
4
|
* A CSS class name to set to the layer element.
|
|
9
5
|
*/
|
|
@@ -109,13 +105,9 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
|
|
|
109
105
|
[x: string]: any;
|
|
110
106
|
} | undefined;
|
|
111
107
|
};
|
|
112
|
-
/***
|
|
113
|
-
* @template T
|
|
114
|
-
* @typedef {T extends import("../source/Vector.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never} ExtractedFeatureType
|
|
115
|
-
*/
|
|
116
108
|
/**
|
|
117
109
|
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
118
|
-
* @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
|
|
110
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
119
111
|
* @typedef {Object} Options
|
|
120
112
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
121
113
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
@@ -175,11 +167,11 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
|
|
|
175
167
|
* options means that `title` is observable, and has get/set accessors.
|
|
176
168
|
*
|
|
177
169
|
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
178
|
-
* @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
|
|
170
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
179
171
|
* @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer>}
|
|
180
172
|
* @api
|
|
181
173
|
*/
|
|
182
|
-
declare class VectorLayer<VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = ExtractedFeatureType<VectorSourceType>> extends BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer> {
|
|
174
|
+
declare class VectorLayer<VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>> extends BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer> {
|
|
183
175
|
/**
|
|
184
176
|
* @param {Options<VectorSourceType, FeatureType>} [options] Options.
|
|
185
177
|
*/
|
package/layer/Vector.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["Vector.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["Vector.js"],"names":[],"mappings":";oBAOmE,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE,+CACb,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAFlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,0BALmE,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE,+CACb,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;IAKhD;;OAEG;IACH,0EAEC;CAQF;sCAnFqC,mCAAmC;4BAD7C,iBAAiB"}
|
package/layer/Vector.js
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
import BaseVectorLayer from './BaseVector.js';
|
|
5
5
|
import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
|
|
6
6
|
|
|
7
|
-
/***
|
|
8
|
-
* @template T
|
|
9
|
-
* @typedef {T extends import("../source/Vector.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never} ExtractedFeatureType
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
7
|
/**
|
|
13
8
|
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
14
|
-
* @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
|
|
9
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
15
10
|
* @typedef {Object} Options
|
|
16
11
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
17
12
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
@@ -72,7 +67,7 @@ import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
|
|
|
72
67
|
* options means that `title` is observable, and has get/set accessors.
|
|
73
68
|
*
|
|
74
69
|
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
75
|
-
* @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
|
|
70
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
76
71
|
* @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer>}
|
|
77
72
|
* @api
|
|
78
73
|
*/
|
package/layer/VectorImage.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default VectorImageLayer;
|
|
2
|
-
export type Options<
|
|
2
|
+
export type Options<VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>> = {
|
|
3
3
|
/**
|
|
4
4
|
* A CSS class name to set to the layer element.
|
|
5
5
|
*/
|
|
@@ -99,8 +99,8 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike = im
|
|
|
99
99
|
} | undefined;
|
|
100
100
|
};
|
|
101
101
|
/**
|
|
102
|
-
* @template {import("../
|
|
103
|
-
* @template {import(
|
|
102
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
103
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
104
104
|
* @typedef {Object} Options
|
|
105
105
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
106
106
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
@@ -155,16 +155,16 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike = im
|
|
|
155
155
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
156
156
|
* options means that `title` is observable, and has get/set accessors.
|
|
157
157
|
*
|
|
158
|
-
* @template {import("../
|
|
159
|
-
* @template {import(
|
|
158
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
159
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
160
160
|
* @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorImageLayerRenderer>}
|
|
161
161
|
* @api
|
|
162
162
|
*/
|
|
163
|
-
declare class VectorImageLayer<
|
|
163
|
+
declare class VectorImageLayer<VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>> extends BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorImageLayerRenderer> {
|
|
164
164
|
/**
|
|
165
|
-
* @param {Options<
|
|
165
|
+
* @param {Options<VectorSourceType, FeatureType>} [options] Options.
|
|
166
166
|
*/
|
|
167
|
-
constructor(options?: Options<
|
|
167
|
+
constructor(options?: Options<VectorSourceType, FeatureType> | undefined);
|
|
168
168
|
/**
|
|
169
169
|
* @type {number}
|
|
170
170
|
* @private
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorImage.d.ts","sourceRoot":"","sources":["VectorImage.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"VectorImage.d.ts","sourceRoot":"","sources":["VectorImage.js"],"names":[],"mappings":";oBAOmE,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE,+CACb,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAFlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,+BALmE,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE,+CACb,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;IAKhD;;OAEG;IACH,0EAaC;IANC;;;OAGG;IACH,oBAC2D;IAG7D;;OAEG;IACH,iBAFY,MAAM,CAIjB;CAQF;2CAjG0C,wCAAwC;4BADvD,iBAAiB"}
|
package/layer/VectorImage.js
CHANGED
|
@@ -5,8 +5,8 @@ import BaseVectorLayer from './BaseVector.js';
|
|
|
5
5
|
import CanvasVectorImageLayerRenderer from '../renderer/canvas/VectorImageLayer.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @template {import("../
|
|
9
|
-
* @template {import(
|
|
8
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
9
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
10
10
|
* @typedef {Object} Options
|
|
11
11
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
12
12
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
@@ -62,14 +62,14 @@ import CanvasVectorImageLayerRenderer from '../renderer/canvas/VectorImageLayer.
|
|
|
62
62
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
63
63
|
* options means that `title` is observable, and has get/set accessors.
|
|
64
64
|
*
|
|
65
|
-
* @template {import("../
|
|
66
|
-
* @template {import(
|
|
65
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
66
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
67
67
|
* @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorImageLayerRenderer>}
|
|
68
68
|
* @api
|
|
69
69
|
*/
|
|
70
70
|
class VectorImageLayer extends BaseVectorLayer {
|
|
71
71
|
/**
|
|
72
|
-
* @param {Options<
|
|
72
|
+
* @param {Options<VectorSourceType, FeatureType>} [options] Options.
|
|
73
73
|
*/
|
|
74
74
|
constructor(options) {
|
|
75
75
|
options = options ? options : {};
|
package/package.json
CHANGED
package/util.js
CHANGED