ol 7.0.0-dev.1660596165805 → 7.0.0-dev.1660645542164
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/Map.d.ts +1 -1
- package/Map.js +1 -1
- package/layer/VectorTile.d.ts +1 -1
- package/layer/VectorTile.js +1 -1
- package/package.json +1 -1
- package/proj/Projection.d.ts +4 -4
- package/proj/Projection.js +2 -2
- package/render/canvas/Immediate.d.ts +2 -2
- package/render/canvas/Immediate.js +3 -3
- package/source/Vector.d.ts +1 -1
- package/source/Vector.js +1 -1
- package/util.js +1 -1
- package/webgl/Helper.d.ts +1 -1
- package/webgl/Helper.js +1 -1
package/Map.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ export type AtPixelOptions = {
|
|
|
111
111
|
*/
|
|
112
112
|
hitTolerance?: number | undefined;
|
|
113
113
|
/**
|
|
114
|
-
* Check-Wrapped Will check for
|
|
114
|
+
* Check-Wrapped Will check for wrapped geometries inside the range of
|
|
115
115
|
* +/- 1 world width. Works only if a projection is used that can be wrapped.
|
|
116
116
|
*/
|
|
117
117
|
checkWrapped?: boolean | undefined;
|
package/Map.js
CHANGED
|
@@ -81,7 +81,7 @@ import {removeNode} from './dom.js';
|
|
|
81
81
|
* will be tested for features. By default, all visible layers will be tested.
|
|
82
82
|
* @property {number} [hitTolerance=0] Hit-detection tolerance in css pixels. Pixels
|
|
83
83
|
* inside the radius around the given position will be checked for features.
|
|
84
|
-
* @property {boolean} [checkWrapped=true] Check-Wrapped Will check for
|
|
84
|
+
* @property {boolean} [checkWrapped=true] Check-Wrapped Will check for wrapped geometries inside the range of
|
|
85
85
|
* +/- 1 world width. Works only if a projection is used that can be wrapped.
|
|
86
86
|
*/
|
|
87
87
|
|
package/layer/VectorTile.d.ts
CHANGED
|
@@ -216,7 +216,7 @@ export type Options = {
|
|
|
216
216
|
/**
|
|
217
217
|
* @classdesc
|
|
218
218
|
* Layer for vector tile data that is rendered client-side.
|
|
219
|
-
* Note that any property set in the options is set as a {@link module:ol/Object~BaseObject
|
|
219
|
+
* Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}
|
|
220
220
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
221
221
|
* options means that `title` is observable, and has get/set accessors.
|
|
222
222
|
*
|
package/layer/VectorTile.js
CHANGED
|
@@ -89,7 +89,7 @@ import {assert} from '../asserts.js';
|
|
|
89
89
|
/**
|
|
90
90
|
* @classdesc
|
|
91
91
|
* Layer for vector tile data that is rendered client-side.
|
|
92
|
-
* Note that any property set in the options is set as a {@link module:ol/Object~BaseObject
|
|
92
|
+
* Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}
|
|
93
93
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
94
94
|
* options means that `title` is observable, and has get/set accessors.
|
|
95
95
|
*
|
package/package.json
CHANGED
package/proj/Projection.d.ts
CHANGED
|
@@ -32,9 +32,9 @@ export type Options = {
|
|
|
32
32
|
worldExtent?: import("../extent.js").Extent | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* Function to determine resolution at a point. The function is called with a
|
|
35
|
-
* `number` view resolution and a {@link module :ol/coordinate~Coordinate
|
|
35
|
+
* `number` view resolution and a {@link module :ol/coordinate~Coordinate} as arguments, and returns
|
|
36
36
|
* the `number` resolution in projection units at the passed coordinate. If this is `undefined`,
|
|
37
|
-
* the default {@link module :ol/proj.getPointResolution
|
|
37
|
+
* the default {@link module :ol/proj.getPointResolution} function will be used.
|
|
38
38
|
*/
|
|
39
39
|
getPointResolution?: ((arg0: number, arg1: import("../coordinate.js").Coordinate) => number) | undefined;
|
|
40
40
|
};
|
|
@@ -52,9 +52,9 @@ export type Options = {
|
|
|
52
52
|
* @property {import("../extent.js").Extent} [worldExtent] The world extent for the SRS.
|
|
53
53
|
* @property {function(number, import("../coordinate.js").Coordinate):number} [getPointResolution]
|
|
54
54
|
* Function to determine resolution at a point. The function is called with a
|
|
55
|
-
* `number` view resolution and a {@link module:ol/coordinate~Coordinate
|
|
55
|
+
* `number` view resolution and a {@link module:ol/coordinate~Coordinate} as arguments, and returns
|
|
56
56
|
* the `number` resolution in projection units at the passed coordinate. If this is `undefined`,
|
|
57
|
-
* the default {@link module:ol/proj.getPointResolution
|
|
57
|
+
* the default {@link module:ol/proj.getPointResolution} function will be used.
|
|
58
58
|
*/
|
|
59
59
|
/**
|
|
60
60
|
* @classdesc
|
package/proj/Projection.js
CHANGED
|
@@ -17,9 +17,9 @@ import {METERS_PER_UNIT} from './Units.js';
|
|
|
17
17
|
* @property {import("../extent.js").Extent} [worldExtent] The world extent for the SRS.
|
|
18
18
|
* @property {function(number, import("../coordinate.js").Coordinate):number} [getPointResolution]
|
|
19
19
|
* Function to determine resolution at a point. The function is called with a
|
|
20
|
-
* `number` view resolution and a {@link module:ol/coordinate~Coordinate
|
|
20
|
+
* `number` view resolution and a {@link module:ol/coordinate~Coordinate} as arguments, and returns
|
|
21
21
|
* the `number` resolution in projection units at the passed coordinate. If this is `undefined`,
|
|
22
|
-
* the default {@link module:ol/proj.getPointResolution
|
|
22
|
+
* the default {@link module:ol/proj.getPointResolution} function will be used.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export default CanvasImmediateRenderer;
|
|
2
2
|
/**
|
|
3
3
|
* @classdesc
|
|
4
|
-
* A concrete subclass of {@link module:ol/render/VectorContext~VectorContext
|
|
4
|
+
* A concrete subclass of {@link module:ol/render/VectorContext~VectorContext} that implements
|
|
5
5
|
* direct rendering of features and geometries to an HTML5 Canvas context.
|
|
6
6
|
* Instances of this class are created internally by the library and
|
|
7
7
|
* provided to application code as vectorContext member of the
|
|
8
|
-
* {@link module:ol/render/Event~RenderEvent
|
|
8
|
+
* {@link module:ol/render/Event~RenderEvent} object associated with postcompose, precompose and
|
|
9
9
|
* render events emitted by layers and maps.
|
|
10
10
|
*/
|
|
11
11
|
declare class CanvasImmediateRenderer extends VectorContext {
|
|
@@ -31,11 +31,11 @@ import {transformGeom2D} from '../../geom/SimpleGeometry.js';
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* @classdesc
|
|
34
|
-
* A concrete subclass of {@link module:ol/render/VectorContext~VectorContext
|
|
34
|
+
* A concrete subclass of {@link module:ol/render/VectorContext~VectorContext} that implements
|
|
35
35
|
* direct rendering of features and geometries to an HTML5 Canvas context.
|
|
36
36
|
* Instances of this class are created internally by the library and
|
|
37
37
|
* provided to application code as vectorContext member of the
|
|
38
|
-
* {@link module:ol/render/Event~RenderEvent
|
|
38
|
+
* {@link module:ol/render/Event~RenderEvent} object associated with postcompose, precompose and
|
|
39
39
|
* render events emitted by layers and maps.
|
|
40
40
|
*/
|
|
41
41
|
class CanvasImmediateRenderer extends VectorContext {
|
|
@@ -600,7 +600,7 @@ class CanvasImmediateRenderer extends VectorContext {
|
|
|
600
600
|
* Render a feature into the canvas. Note that any `zIndex` on the provided
|
|
601
601
|
* style will be ignored - features are rendered immediately in the order that
|
|
602
602
|
* this method is called. If you need `zIndex` support, you should be using an
|
|
603
|
-
* {@link module:ol/layer/Vector~VectorLayer
|
|
603
|
+
* {@link module:ol/layer/Vector~VectorLayer} instead.
|
|
604
604
|
*
|
|
605
605
|
* @param {import("../../Feature.js").default} feature Feature.
|
|
606
606
|
* @param {import("../../style/Style.js").default} style Style.
|
package/source/Vector.d.ts
CHANGED
|
@@ -402,7 +402,7 @@ declare class VectorSource<Geometry extends import("../geom/Geometry.js").defaul
|
|
|
402
402
|
private bindFeaturesCollection_;
|
|
403
403
|
/**
|
|
404
404
|
* Remove all features from the source.
|
|
405
|
-
* @param {boolean} [fast] Skip dispatching of {@link module:ol/source/Vector.VectorSourceEvent#event:removefeature
|
|
405
|
+
* @param {boolean} [fast] Skip dispatching of {@link module:ol/source/Vector.VectorSourceEvent#event:removefeature} events.
|
|
406
406
|
* @api
|
|
407
407
|
*/
|
|
408
408
|
clear(fast?: boolean | undefined): void;
|
package/source/Vector.js
CHANGED
|
@@ -526,7 +526,7 @@ class VectorSource extends Source {
|
|
|
526
526
|
|
|
527
527
|
/**
|
|
528
528
|
* Remove all features from the source.
|
|
529
|
-
* @param {boolean} [fast] Skip dispatching of {@link module:ol/source/Vector.VectorSourceEvent#event:removefeature
|
|
529
|
+
* @param {boolean} [fast] Skip dispatching of {@link module:ol/source/Vector.VectorSourceEvent#event:removefeature} events.
|
|
530
530
|
* @api
|
|
531
531
|
*/
|
|
532
532
|
clear(fast) {
|
package/util.js
CHANGED
package/webgl/Helper.d.ts
CHANGED
|
@@ -226,7 +226,7 @@ import { FLOAT } from "../webgl.js";
|
|
|
226
226
|
*
|
|
227
227
|
* The GPU only receives the data as arrays of numbers. These numbers must be handled differently depending on what it describes (position, texture coordinate...).
|
|
228
228
|
* Attributes are used to specify these uses. Specify the attribute names with
|
|
229
|
-
* {@link module:ol/webgl/Helper~WebGLHelper#enableAttributes
|
|
229
|
+
* {@link module:ol/webgl/Helper~WebGLHelper#enableAttributes} (see code snippet below).
|
|
230
230
|
*
|
|
231
231
|
* Please note that you will have to specify the type and offset of the attributes in the data array. You can refer to the documentation of [WebGLRenderingContext.vertexAttribPointer](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) for more explanation.
|
|
232
232
|
* ```js
|
package/webgl/Helper.js
CHANGED
|
@@ -268,7 +268,7 @@ function releaseCanvas(key) {
|
|
|
268
268
|
*
|
|
269
269
|
* The GPU only receives the data as arrays of numbers. These numbers must be handled differently depending on what it describes (position, texture coordinate...).
|
|
270
270
|
* Attributes are used to specify these uses. Specify the attribute names with
|
|
271
|
-
* {@link module:ol/webgl/Helper~WebGLHelper#enableAttributes
|
|
271
|
+
* {@link module:ol/webgl/Helper~WebGLHelper#enableAttributes} (see code snippet below).
|
|
272
272
|
*
|
|
273
273
|
* Please note that you will have to specify the type and offset of the attributes in the data array. You can refer to the documentation of [WebGLRenderingContext.vertexAttribPointer](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) for more explanation.
|
|
274
274
|
* ```js
|