ol 7.0.0-dev.1658257118421 → 7.0.0-dev.1658343947608
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/control/ScaleLine.d.ts +9 -17
- package/control/ScaleLine.d.ts.map +1 -1
- package/control/ScaleLine.js +12 -20
- package/control/ScaleLine.js.map +1 -1
- package/format/EsriJSON.d.ts.map +1 -1
- package/format/EsriJSON.js +16 -16
- package/format/EsriJSON.js.map +1 -1
- package/format/GML3.d.ts.map +1 -1
- package/format/GML3.js +2 -3
- package/format/GML3.js.map +1 -1
- package/format/GMLBase.d.ts.map +1 -1
- package/format/GMLBase.js +4 -5
- package/format/GMLBase.js.map +1 -1
- package/format/GPX.d.ts.map +1 -1
- package/format/GPX.js +9 -9
- package/format/GPX.js.map +1 -1
- package/format/IGC.d.ts +6 -2
- package/format/IGC.d.ts.map +1 -1
- package/format/IGC.js +7 -15
- package/format/IGC.js.map +1 -1
- package/format/KML.d.ts +3 -3
- package/format/KML.d.ts.map +1 -1
- package/format/KML.js +29 -30
- package/format/KML.js.map +1 -1
- package/format/MVT.d.ts.map +1 -1
- package/format/MVT.js +6 -7
- package/format/MVT.js.map +1 -1
- package/format/OSMXML.d.ts.map +1 -1
- package/format/OSMXML.js +2 -3
- package/format/OSMXML.js.map +1 -1
- package/format/Polyline.d.ts +3 -8
- package/format/Polyline.d.ts.map +1 -1
- package/format/Polyline.js +3 -4
- package/format/Polyline.js.map +1 -1
- package/format/WKB.d.ts +3 -3
- package/format/WKB.d.ts.map +1 -1
- package/format/WKB.js +48 -21
- package/format/WKB.js.map +1 -1
- package/format/WKT.d.ts.map +1 -1
- package/format/WKT.js +12 -12
- package/format/WKT.js.map +1 -1
- package/geom/Circle.d.ts +4 -4
- package/geom/Circle.d.ts.map +1 -1
- package/geom/Circle.js +2 -2
- package/geom/Geometry.d.ts +5 -0
- package/geom/Geometry.d.ts.map +1 -1
- package/geom/Geometry.js +5 -0
- package/geom/Geometry.js.map +1 -1
- package/geom/LineString.d.ts +4 -4
- package/geom/LineString.d.ts.map +1 -1
- package/geom/LineString.js +4 -6
- package/geom/LineString.js.map +1 -1
- package/geom/LinearRing.d.ts +4 -4
- package/geom/LinearRing.d.ts.map +1 -1
- package/geom/LinearRing.js +3 -4
- package/geom/LinearRing.js.map +1 -1
- package/geom/MultiLineString.d.ts +4 -9
- package/geom/MultiLineString.d.ts.map +1 -1
- package/geom/MultiLineString.js +4 -6
- package/geom/MultiLineString.js.map +1 -1
- package/geom/MultiPoint.d.ts +4 -4
- package/geom/MultiPoint.d.ts.map +1 -1
- package/geom/MultiPoint.js +2 -2
- package/geom/MultiPolygon.d.ts +4 -4
- package/geom/MultiPolygon.d.ts.map +1 -1
- package/geom/MultiPolygon.js +4 -5
- package/geom/MultiPolygon.js.map +1 -1
- package/geom/Point.d.ts +2 -2
- package/geom/Point.d.ts.map +1 -1
- package/geom/Point.js +2 -2
- package/geom/Polygon.d.ts +4 -4
- package/geom/Polygon.d.ts.map +1 -1
- package/geom/Polygon.js +6 -11
- package/geom/Polygon.js.map +1 -1
- package/geom/SimpleGeometry.d.ts +13 -13
- package/geom/SimpleGeometry.d.ts.map +1 -1
- package/geom/SimpleGeometry.js +17 -18
- package/geom/SimpleGeometry.js.map +1 -1
- package/interaction/Draw.d.ts +7 -7
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Draw.js +34 -42
- package/interaction/Draw.js.map +1 -1
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Graticule.js +4 -5
- package/layer/Graticule.js.map +1 -1
- package/package.json +1 -1
- package/render/Feature.d.ts.map +1 -1
- package/render/Feature.js +5 -6
- package/render/Feature.js.map +1 -1
- package/render/canvas/TextBuilder.d.ts.map +1 -1
- package/render/canvas/TextBuilder.js +1 -2
- package/render/canvas/TextBuilder.js.map +1 -1
- package/render/canvas/hitdetect.d.ts.map +1 -1
- package/render/canvas/hitdetect.js +2 -3
- package/render/canvas/hitdetect.js.map +1 -1
- package/render/canvas.d.ts +2 -11
- package/render/canvas.d.ts.map +1 -1
- package/render/canvas.js +1 -14
- package/render/canvas.js.map +1 -1
- package/source/Zoomify.d.ts +6 -2
- package/source/Zoomify.d.ts.map +1 -1
- package/source/Zoomify.js +5 -9
- package/source/Zoomify.js.map +1 -1
- package/src/control/ScaleLine.js +12 -20
- package/src/format/EsriJSON.js +16 -19
- package/src/format/GML3.js +2 -3
- package/src/format/GMLBase.js +4 -5
- package/src/format/GPX.js +9 -9
- package/src/format/IGC.js +7 -16
- package/src/format/KML.js +29 -30
- package/src/format/MVT.js +6 -7
- package/src/format/OSMXML.js +2 -3
- package/src/format/Polyline.js +3 -4
- package/src/format/WKB.js +55 -21
- package/src/format/WKT.js +12 -12
- package/src/geom/Circle.js +2 -2
- package/src/geom/Geometry.js +6 -0
- package/src/geom/LineString.js +4 -8
- package/src/geom/LinearRing.js +3 -4
- package/src/geom/MultiLineString.js +4 -10
- package/src/geom/MultiPoint.js +2 -2
- package/src/geom/MultiPolygon.js +4 -12
- package/src/geom/Point.js +2 -2
- package/src/geom/Polygon.js +6 -15
- package/src/geom/SimpleGeometry.js +17 -18
- package/src/interaction/Draw.js +34 -42
- package/src/layer/Graticule.js +4 -5
- package/src/render/Feature.js +5 -12
- package/src/render/canvas/TextBuilder.js +1 -2
- package/src/render/canvas/hitdetect.js +2 -3
- package/src/render/canvas.js +1 -15
- package/src/source/Zoomify.js +5 -9
- package/src/style/Icon.js +36 -36
- package/src/style/Text.js +13 -6
- package/style/Icon.d.ts +28 -12
- package/style/Icon.d.ts.map +1 -1
- package/style/Icon.js +34 -36
- package/style/Icon.js.map +1 -1
- package/style/Text.d.ts +14 -7
- package/style/Text.d.ts.map +1 -1
- package/style/Text.js +12 -6
- package/style/Text.js.map +1 -1
- package/util.js +1 -1
- package/geom/GeometryLayout.d.ts +0 -8
- package/geom/GeometryLayout.d.ts.map +0 -1
- package/geom/GeometryLayout.js +0 -16
- package/geom/GeometryLayout.js.map +0 -1
- package/src/geom/GeometryLayout.js +0 -16
- package/src/style/IconAnchorUnits.js +0 -20
- package/src/style/IconOrigin.js +0 -30
- package/src/style/TextPlacement.js +0 -15
- package/style/IconAnchorUnits.d.ts +0 -6
- package/style/IconAnchorUnits.d.ts.map +0 -1
- package/style/IconAnchorUnits.js +0 -20
- package/style/IconAnchorUnits.js.map +0 -1
- package/style/IconOrigin.d.ts +0 -8
- package/style/IconOrigin.d.ts.map +0 -1
- package/style/IconOrigin.js +0 -30
- package/style/IconOrigin.js.map +0 -1
- package/style/TextPlacement.d.ts +0 -6
- package/style/TextPlacement.d.ts.map +0 -1
- package/style/TextPlacement.js +0 -15
- package/style/TextPlacement.js.map +0 -1
package/src/render/canvas.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* @module ol/render/canvas
|
|
3
3
|
*/
|
|
4
4
|
import BaseObject from '../Object.js';
|
|
5
|
-
import EventTarget from '../events/Target.js';
|
|
6
5
|
import {WORKER_OFFSCREEN_CANVAS} from '../has.js';
|
|
7
6
|
import {clear} from '../obj.js';
|
|
8
7
|
import {createCanvasContext2D} from '../dom.js';
|
|
@@ -62,7 +61,7 @@ import {getFontParameters} from '../css.js';
|
|
|
62
61
|
* @property {string} [textAlign] TextAlign.
|
|
63
62
|
* @property {string} [justify] Justify.
|
|
64
63
|
* @property {string} textBaseline TextBaseline.
|
|
65
|
-
* @property {
|
|
64
|
+
* @property {import('../style/Text.js').TextPlacement} [placement] Placement.
|
|
66
65
|
* @property {number} [maxAngle] MaxAngle.
|
|
67
66
|
* @property {boolean} [overflow] Overflow.
|
|
68
67
|
* @property {import("../style/Fill.js").default} [backgroundFill] BackgroundFill.
|
|
@@ -162,19 +161,6 @@ export const defaultLineWidth = 1;
|
|
|
162
161
|
*/
|
|
163
162
|
export const checkedFonts = new BaseObject();
|
|
164
163
|
|
|
165
|
-
/**
|
|
166
|
-
* The label cache for text rendering. To change the default cache size of 2048
|
|
167
|
-
* entries, use {@link module:ol/structs/LRUCache~LRUCache#setSize cache.setSize()}.
|
|
168
|
-
* Deprecated - there is no label cache any more.
|
|
169
|
-
* @type {?}
|
|
170
|
-
* @api
|
|
171
|
-
* @deprecated
|
|
172
|
-
*/
|
|
173
|
-
export const labelCache = new EventTarget();
|
|
174
|
-
labelCache.setSize = function () {
|
|
175
|
-
console.warn('labelCache is deprecated.'); //eslint-disable-line
|
|
176
|
-
};
|
|
177
|
-
|
|
178
164
|
/**
|
|
179
165
|
* @type {CanvasRenderingContext2D}
|
|
180
166
|
*/
|
package/src/source/Zoomify.js
CHANGED
|
@@ -14,12 +14,8 @@ import {getCenter} from '../extent.js';
|
|
|
14
14
|
import {toSize} from '../size.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* @
|
|
17
|
+
* @typedef {'default' | 'truncated'} TierSizeCalculation
|
|
18
18
|
*/
|
|
19
|
-
const TierSizeCalculation = {
|
|
20
|
-
DEFAULT: 'default',
|
|
21
|
-
TRUNCATED: 'truncated',
|
|
22
|
-
};
|
|
23
19
|
|
|
24
20
|
export class CustomTile extends ImageTile {
|
|
25
21
|
/**
|
|
@@ -105,7 +101,7 @@ export class CustomTile extends ImageTile {
|
|
|
105
101
|
* `http://my.zoomify.info?FIF=IMAGE.TIF&JTL={z},{tileIndex}`.
|
|
106
102
|
* A `{?-?}` template pattern, for example `subdomain{a-f}.domain.com`, may be
|
|
107
103
|
* used instead of defining each one separately in the `urls` option.
|
|
108
|
-
* @property {
|
|
104
|
+
* @property {TierSizeCalculation} [tierSizeCalculation] Tier size calculation method: `default` or `truncated`.
|
|
109
105
|
* @property {import("../size.js").Size} size Size.
|
|
110
106
|
* @property {import("../extent.js").Extent} [extent] Extent for the TileGrid that is created.
|
|
111
107
|
* Default sets the TileGrid in the
|
|
@@ -143,7 +139,7 @@ class Zoomify extends TileImage {
|
|
|
143
139
|
const tierSizeCalculation =
|
|
144
140
|
options.tierSizeCalculation !== undefined
|
|
145
141
|
? options.tierSizeCalculation
|
|
146
|
-
:
|
|
142
|
+
: 'default';
|
|
147
143
|
|
|
148
144
|
const tilePixelRatio = options.tilePixelRatio || 1;
|
|
149
145
|
const imageWidth = size[0];
|
|
@@ -153,7 +149,7 @@ class Zoomify extends TileImage {
|
|
|
153
149
|
let tileSizeForTierSizeCalculation = tileSize * tilePixelRatio;
|
|
154
150
|
|
|
155
151
|
switch (tierSizeCalculation) {
|
|
156
|
-
case
|
|
152
|
+
case 'default':
|
|
157
153
|
while (
|
|
158
154
|
imageWidth > tileSizeForTierSizeCalculation ||
|
|
159
155
|
imageHeight > tileSizeForTierSizeCalculation
|
|
@@ -165,7 +161,7 @@ class Zoomify extends TileImage {
|
|
|
165
161
|
tileSizeForTierSizeCalculation += tileSizeForTierSizeCalculation;
|
|
166
162
|
}
|
|
167
163
|
break;
|
|
168
|
-
case
|
|
164
|
+
case 'truncated':
|
|
169
165
|
let width = imageWidth;
|
|
170
166
|
let height = imageHeight;
|
|
171
167
|
while (
|
package/src/style/Icon.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
* @module ol/style/Icon
|
|
3
3
|
*/
|
|
4
4
|
import EventType from '../events/EventType.js';
|
|
5
|
-
import IconAnchorUnits from './IconAnchorUnits.js';
|
|
6
|
-
import IconOrigin from './IconOrigin.js';
|
|
7
5
|
import ImageState from '../ImageState.js';
|
|
8
6
|
import ImageStyle from './Image.js';
|
|
9
7
|
import {asArray} from '../color.js';
|
|
@@ -11,15 +9,25 @@ import {assert} from '../asserts.js';
|
|
|
11
9
|
import {get as getIconImage} from './IconImage.js';
|
|
12
10
|
import {getUid} from '../util.js';
|
|
13
11
|
|
|
12
|
+
/**
|
|
13
|
+
* @typedef {'fraction' | 'pixels'} IconAnchorUnits
|
|
14
|
+
* Anchor unit can be either a fraction of the icon size or in pixels.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @typedef {'bottom-left' | 'bottom-right' | 'top-left' | 'top-right'} IconOrigin
|
|
19
|
+
* Icon origin. One of 'bottom-left', 'bottom-right', 'top-left', 'top-right'.
|
|
20
|
+
*/
|
|
21
|
+
|
|
14
22
|
/**
|
|
15
23
|
* @typedef {Object} Options
|
|
16
24
|
* @property {Array<number>} [anchor=[0.5, 0.5]] Anchor. Default value is the icon center.
|
|
17
|
-
* @property {
|
|
25
|
+
* @property {IconOrigin} [anchorOrigin='top-left'] Origin of the anchor: `bottom-left`, `bottom-right`,
|
|
18
26
|
* `top-left` or `top-right`.
|
|
19
|
-
* @property {
|
|
27
|
+
* @property {IconAnchorUnits} [anchorXUnits='fraction'] Units in which the anchor x value is
|
|
20
28
|
* specified. A value of `'fraction'` indicates the x value is a fraction of the icon. A value of `'pixels'` indicates
|
|
21
29
|
* the x value in pixels.
|
|
22
|
-
* @property {
|
|
30
|
+
* @property {IconAnchorUnits} [anchorYUnits='fraction'] Units in which the anchor y value is
|
|
23
31
|
* specified. A value of `'fraction'` indicates the y value is a fraction of the icon. A value of `'pixels'` indicates
|
|
24
32
|
* the y value in pixels.
|
|
25
33
|
* @property {import("../color.js").Color|string} [color] Color to tint the icon. If not specified,
|
|
@@ -33,7 +41,7 @@ import {getUid} from '../util.js';
|
|
|
33
41
|
* @property {Array<number>} [offset=[0, 0]] Offset, which, together with the size and the offset origin, define the
|
|
34
42
|
* sub-rectangle to use from the original icon image.
|
|
35
43
|
* @property {Array<number>} [displacement=[0,0]] Displacement of the icon.
|
|
36
|
-
* @property {
|
|
44
|
+
* @property {IconOrigin} [offsetOrigin='top-left'] Origin of the offset: `bottom-left`, `bottom-right`,
|
|
37
45
|
* `top-left` or `top-right`.
|
|
38
46
|
* @property {number} [opacity=1] Opacity of the icon.
|
|
39
47
|
* @property {number|import("../size.js").Size} [scale=1] Scale.
|
|
@@ -104,30 +112,24 @@ class Icon extends ImageStyle {
|
|
|
104
112
|
|
|
105
113
|
/**
|
|
106
114
|
* @private
|
|
107
|
-
* @type {
|
|
115
|
+
* @type {IconOrigin}
|
|
108
116
|
*/
|
|
109
117
|
this.anchorOrigin_ =
|
|
110
|
-
options.anchorOrigin !== undefined
|
|
111
|
-
? options.anchorOrigin
|
|
112
|
-
: IconOrigin.TOP_LEFT;
|
|
118
|
+
options.anchorOrigin !== undefined ? options.anchorOrigin : 'top-left';
|
|
113
119
|
|
|
114
120
|
/**
|
|
115
121
|
* @private
|
|
116
|
-
* @type {
|
|
122
|
+
* @type {IconAnchorUnits}
|
|
117
123
|
*/
|
|
118
124
|
this.anchorXUnits_ =
|
|
119
|
-
options.anchorXUnits !== undefined
|
|
120
|
-
? options.anchorXUnits
|
|
121
|
-
: IconAnchorUnits.FRACTION;
|
|
125
|
+
options.anchorXUnits !== undefined ? options.anchorXUnits : 'fraction';
|
|
122
126
|
|
|
123
127
|
/**
|
|
124
128
|
* @private
|
|
125
|
-
* @type {
|
|
129
|
+
* @type {IconAnchorUnits}
|
|
126
130
|
*/
|
|
127
131
|
this.anchorYUnits_ =
|
|
128
|
-
options.anchorYUnits !== undefined
|
|
129
|
-
? options.anchorYUnits
|
|
130
|
-
: IconAnchorUnits.FRACTION;
|
|
132
|
+
options.anchorYUnits !== undefined ? options.anchorYUnits : 'fraction';
|
|
131
133
|
|
|
132
134
|
/**
|
|
133
135
|
* @private
|
|
@@ -192,12 +194,10 @@ class Icon extends ImageStyle {
|
|
|
192
194
|
this.offset_ = options.offset !== undefined ? options.offset : [0, 0];
|
|
193
195
|
/**
|
|
194
196
|
* @private
|
|
195
|
-
* @type {
|
|
197
|
+
* @type {IconOrigin}
|
|
196
198
|
*/
|
|
197
199
|
this.offsetOrigin_ =
|
|
198
|
-
options.offsetOrigin !== undefined
|
|
199
|
-
? options.offsetOrigin
|
|
200
|
-
: IconOrigin.TOP_LEFT;
|
|
200
|
+
options.offsetOrigin !== undefined ? options.offsetOrigin : 'top-left';
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
203
|
* @private
|
|
@@ -255,22 +255,22 @@ class Icon extends ImageStyle {
|
|
|
255
255
|
anchor = this.anchor_;
|
|
256
256
|
const size = this.getSize();
|
|
257
257
|
if (
|
|
258
|
-
this.anchorXUnits_ ==
|
|
259
|
-
this.anchorYUnits_ ==
|
|
258
|
+
this.anchorXUnits_ == 'fraction' ||
|
|
259
|
+
this.anchorYUnits_ == 'fraction'
|
|
260
260
|
) {
|
|
261
261
|
if (!size) {
|
|
262
262
|
return null;
|
|
263
263
|
}
|
|
264
264
|
anchor = this.anchor_.slice();
|
|
265
|
-
if (this.anchorXUnits_ ==
|
|
265
|
+
if (this.anchorXUnits_ == 'fraction') {
|
|
266
266
|
anchor[0] *= size[0];
|
|
267
267
|
}
|
|
268
|
-
if (this.anchorYUnits_ ==
|
|
268
|
+
if (this.anchorYUnits_ == 'fraction') {
|
|
269
269
|
anchor[1] *= size[1];
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
if (this.anchorOrigin_ !=
|
|
273
|
+
if (this.anchorOrigin_ != 'top-left') {
|
|
274
274
|
if (!size) {
|
|
275
275
|
return null;
|
|
276
276
|
}
|
|
@@ -278,14 +278,14 @@ class Icon extends ImageStyle {
|
|
|
278
278
|
anchor = this.anchor_.slice();
|
|
279
279
|
}
|
|
280
280
|
if (
|
|
281
|
-
this.anchorOrigin_ ==
|
|
282
|
-
this.anchorOrigin_ ==
|
|
281
|
+
this.anchorOrigin_ == 'top-right' ||
|
|
282
|
+
this.anchorOrigin_ == 'bottom-right'
|
|
283
283
|
) {
|
|
284
284
|
anchor[0] = -anchor[0] + size[0];
|
|
285
285
|
}
|
|
286
286
|
if (
|
|
287
|
-
this.anchorOrigin_ ==
|
|
288
|
-
this.anchorOrigin_ ==
|
|
287
|
+
this.anchorOrigin_ == 'bottom-left' ||
|
|
288
|
+
this.anchorOrigin_ == 'bottom-right'
|
|
289
289
|
) {
|
|
290
290
|
anchor[1] = -anchor[1] + size[1];
|
|
291
291
|
}
|
|
@@ -369,7 +369,7 @@ class Icon extends ImageStyle {
|
|
|
369
369
|
}
|
|
370
370
|
let offset = this.offset_;
|
|
371
371
|
|
|
372
|
-
if (this.offsetOrigin_ !=
|
|
372
|
+
if (this.offsetOrigin_ != 'top-left') {
|
|
373
373
|
const size = this.getSize();
|
|
374
374
|
const iconImageSize = this.iconImage_.getSize();
|
|
375
375
|
if (!size || !iconImageSize) {
|
|
@@ -377,14 +377,14 @@ class Icon extends ImageStyle {
|
|
|
377
377
|
}
|
|
378
378
|
offset = offset.slice();
|
|
379
379
|
if (
|
|
380
|
-
this.offsetOrigin_ ==
|
|
381
|
-
this.offsetOrigin_ ==
|
|
380
|
+
this.offsetOrigin_ == 'top-right' ||
|
|
381
|
+
this.offsetOrigin_ == 'bottom-right'
|
|
382
382
|
) {
|
|
383
383
|
offset[0] = iconImageSize[0] - size[0] - offset[0];
|
|
384
384
|
}
|
|
385
385
|
if (
|
|
386
|
-
this.offsetOrigin_ ==
|
|
387
|
-
this.offsetOrigin_ ==
|
|
386
|
+
this.offsetOrigin_ == 'bottom-left' ||
|
|
387
|
+
this.offsetOrigin_ == 'bottom-right'
|
|
388
388
|
) {
|
|
389
389
|
offset[1] = iconImageSize[1] - size[1] - offset[1];
|
|
390
390
|
}
|
package/src/style/Text.js
CHANGED
|
@@ -2,9 +2,16 @@
|
|
|
2
2
|
* @module ol/style/Text
|
|
3
3
|
*/
|
|
4
4
|
import Fill from './Fill.js';
|
|
5
|
-
import TextPlacement from './TextPlacement.js';
|
|
6
5
|
import {toSize} from '../size.js';
|
|
7
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {'point' | 'line'} TextPlacement
|
|
9
|
+
* Default text placement is `'point'`. Note that
|
|
10
|
+
* `'line'` requires the underlying geometry to be a {@link module:ol/geom/LineString~LineString},
|
|
11
|
+
* {@link module:ol/geom/Polygon~Polygon}, {@link module:ol/geom/MultiLineString~MultiLineString} or
|
|
12
|
+
* {@link module:ol/geom/MultiPolygon~MultiPolygon}.
|
|
13
|
+
*/
|
|
14
|
+
|
|
8
15
|
/**
|
|
9
16
|
* The default fill color to use if no fill was set at construction time; a
|
|
10
17
|
* blackish `#333`.
|
|
@@ -23,7 +30,7 @@ const DEFAULT_FILL_COLOR = '#333';
|
|
|
23
30
|
* @property {number} [offsetY=0] Vertical text offset in pixels. A positive will shift the text down.
|
|
24
31
|
* @property {boolean} [overflow=false] For polygon labels or when `placement` is set to `'line'`, allow text to exceed
|
|
25
32
|
* the width of the polygon at the label position or the length of the path that it follows.
|
|
26
|
-
* @property {
|
|
33
|
+
* @property {TextPlacement} [placement='point'] Text placement.
|
|
27
34
|
* @property {number|import("../size.js").Size} [scale] Scale.
|
|
28
35
|
* @property {boolean} [rotateWithView=false] Whether to rotate the text with the view.
|
|
29
36
|
* @property {number} [rotation=0] Rotation in radians (positive rotation clockwise).
|
|
@@ -135,10 +142,10 @@ class Text {
|
|
|
135
142
|
|
|
136
143
|
/**
|
|
137
144
|
* @private
|
|
138
|
-
* @type {
|
|
145
|
+
* @type {TextPlacement}
|
|
139
146
|
*/
|
|
140
147
|
this.placement_ =
|
|
141
|
-
options.placement !== undefined ? options.placement :
|
|
148
|
+
options.placement !== undefined ? options.placement : 'point';
|
|
142
149
|
|
|
143
150
|
/**
|
|
144
151
|
* @private
|
|
@@ -249,7 +256,7 @@ class Text {
|
|
|
249
256
|
|
|
250
257
|
/**
|
|
251
258
|
* Get the label placement.
|
|
252
|
-
* @return {
|
|
259
|
+
* @return {TextPlacement} Text placement.
|
|
253
260
|
* @api
|
|
254
261
|
*/
|
|
255
262
|
getPlacement() {
|
|
@@ -443,7 +450,7 @@ class Text {
|
|
|
443
450
|
/**
|
|
444
451
|
* Set the text placement.
|
|
445
452
|
*
|
|
446
|
-
* @param {
|
|
453
|
+
* @param {TextPlacement} placement Placement.
|
|
447
454
|
* @api
|
|
448
455
|
*/
|
|
449
456
|
setPlacement(placement) {
|
package/style/Icon.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export default Icon;
|
|
2
|
+
/**
|
|
3
|
+
* Anchor unit can be either a fraction of the icon size or in pixels.
|
|
4
|
+
*/
|
|
5
|
+
export type IconAnchorUnits = 'fraction' | 'pixels';
|
|
6
|
+
/**
|
|
7
|
+
* Icon origin. One of 'bottom-left', 'bottom-right', 'top-left', 'top-right'.
|
|
8
|
+
*/
|
|
9
|
+
export type IconOrigin = 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
|
|
2
10
|
export type Options = {
|
|
3
11
|
/**
|
|
4
12
|
* Anchor. Default value is the icon center.
|
|
@@ -8,19 +16,19 @@ export type Options = {
|
|
|
8
16
|
* Origin of the anchor: `bottom-left`, `bottom-right`,
|
|
9
17
|
* `top-left` or `top-right`.
|
|
10
18
|
*/
|
|
11
|
-
anchorOrigin?:
|
|
19
|
+
anchorOrigin?: IconOrigin | undefined;
|
|
12
20
|
/**
|
|
13
21
|
* Units in which the anchor x value is
|
|
14
22
|
* specified. A value of `'fraction'` indicates the x value is a fraction of the icon. A value of `'pixels'` indicates
|
|
15
23
|
* the x value in pixels.
|
|
16
24
|
*/
|
|
17
|
-
anchorXUnits?:
|
|
25
|
+
anchorXUnits?: IconAnchorUnits | undefined;
|
|
18
26
|
/**
|
|
19
27
|
* Units in which the anchor y value is
|
|
20
28
|
* specified. A value of `'fraction'` indicates the y value is a fraction of the icon. A value of `'pixels'` indicates
|
|
21
29
|
* the y value in pixels.
|
|
22
30
|
*/
|
|
23
|
-
anchorYUnits?:
|
|
31
|
+
anchorYUnits?: IconAnchorUnits | undefined;
|
|
24
32
|
/**
|
|
25
33
|
* Color to tint the icon. If not specified,
|
|
26
34
|
* the icon will be left as is.
|
|
@@ -51,7 +59,7 @@ export type Options = {
|
|
|
51
59
|
* Origin of the offset: `bottom-left`, `bottom-right`,
|
|
52
60
|
* `top-left` or `top-right`.
|
|
53
61
|
*/
|
|
54
|
-
offsetOrigin?:
|
|
62
|
+
offsetOrigin?: IconOrigin | undefined;
|
|
55
63
|
/**
|
|
56
64
|
* Opacity of the icon.
|
|
57
65
|
*/
|
|
@@ -87,15 +95,23 @@ export type Options = {
|
|
|
87
95
|
*/
|
|
88
96
|
declutterMode?: "declutter" | "obstacle" | "none" | undefined;
|
|
89
97
|
};
|
|
98
|
+
/**
|
|
99
|
+
* @typedef {'fraction' | 'pixels'} IconAnchorUnits
|
|
100
|
+
* Anchor unit can be either a fraction of the icon size or in pixels.
|
|
101
|
+
*/
|
|
102
|
+
/**
|
|
103
|
+
* @typedef {'bottom-left' | 'bottom-right' | 'top-left' | 'top-right'} IconOrigin
|
|
104
|
+
* Icon origin. One of 'bottom-left', 'bottom-right', 'top-left', 'top-right'.
|
|
105
|
+
*/
|
|
90
106
|
/**
|
|
91
107
|
* @typedef {Object} Options
|
|
92
108
|
* @property {Array<number>} [anchor=[0.5, 0.5]] Anchor. Default value is the icon center.
|
|
93
|
-
* @property {
|
|
109
|
+
* @property {IconOrigin} [anchorOrigin='top-left'] Origin of the anchor: `bottom-left`, `bottom-right`,
|
|
94
110
|
* `top-left` or `top-right`.
|
|
95
|
-
* @property {
|
|
111
|
+
* @property {IconAnchorUnits} [anchorXUnits='fraction'] Units in which the anchor x value is
|
|
96
112
|
* specified. A value of `'fraction'` indicates the x value is a fraction of the icon. A value of `'pixels'` indicates
|
|
97
113
|
* the x value in pixels.
|
|
98
|
-
* @property {
|
|
114
|
+
* @property {IconAnchorUnits} [anchorYUnits='fraction'] Units in which the anchor y value is
|
|
99
115
|
* specified. A value of `'fraction'` indicates the y value is a fraction of the icon. A value of `'pixels'` indicates
|
|
100
116
|
* the y value in pixels.
|
|
101
117
|
* @property {import("../color.js").Color|string} [color] Color to tint the icon. If not specified,
|
|
@@ -109,7 +125,7 @@ export type Options = {
|
|
|
109
125
|
* @property {Array<number>} [offset=[0, 0]] Offset, which, together with the size and the offset origin, define the
|
|
110
126
|
* sub-rectangle to use from the original icon image.
|
|
111
127
|
* @property {Array<number>} [displacement=[0,0]] Displacement of the icon.
|
|
112
|
-
* @property {
|
|
128
|
+
* @property {IconOrigin} [offsetOrigin='top-left'] Origin of the offset: `bottom-left`, `bottom-right`,
|
|
113
129
|
* `top-left` or `top-right`.
|
|
114
130
|
* @property {number} [opacity=1] Opacity of the icon.
|
|
115
131
|
* @property {number|import("../size.js").Size} [scale=1] Scale.
|
|
@@ -144,17 +160,17 @@ declare class Icon extends ImageStyle {
|
|
|
144
160
|
private normalizedAnchor_;
|
|
145
161
|
/**
|
|
146
162
|
* @private
|
|
147
|
-
* @type {
|
|
163
|
+
* @type {IconOrigin}
|
|
148
164
|
*/
|
|
149
165
|
private anchorOrigin_;
|
|
150
166
|
/**
|
|
151
167
|
* @private
|
|
152
|
-
* @type {
|
|
168
|
+
* @type {IconAnchorUnits}
|
|
153
169
|
*/
|
|
154
170
|
private anchorXUnits_;
|
|
155
171
|
/**
|
|
156
172
|
* @private
|
|
157
|
-
* @type {
|
|
173
|
+
* @type {IconAnchorUnits}
|
|
158
174
|
*/
|
|
159
175
|
private anchorYUnits_;
|
|
160
176
|
/**
|
|
@@ -184,7 +200,7 @@ declare class Icon extends ImageStyle {
|
|
|
184
200
|
private offset_;
|
|
185
201
|
/**
|
|
186
202
|
* @private
|
|
187
|
-
* @type {
|
|
203
|
+
* @type {IconOrigin}
|
|
188
204
|
*/
|
|
189
205
|
private offsetOrigin_;
|
|
190
206
|
/**
|
package/style/Icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../src/style/Icon.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../src/style/Icon.js"],"names":[],"mappings":";;;;8BAYa,UAAU,GAAG,QAAQ;;;;yBAKrB,aAAa,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAqCxD,WAAW,GAAC,UAAU,GAAC,MAAM,GAAC,SAAS;;AA3CrD;;;GAGG;AAEH;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,+CAkJC;IAhHC;;;OAGG;IACH,gBAAyE;IAEzE;;;OAGG;IACH,0BAA6B;IAE7B;;;OAGG;IACH,sBACwE;IAExE;;;OAGG;IACH,sBACwE;IAExE;;;OAGG;IACH,sBACwE;IAExE;;;OAGG;IACH,qBACgE;IAOhE;;;OAGG;IACH,iBAA+B;IAqB/B;;;OAGG;IACH,eAAyE;IAEzE;;;OAGG;IACH,mBAOC;IAED;;;OAGG;IACH,gBAAqE;IACrE;;;OAGG;IACH,sBACwE;IAExE;;;OAGG;IACH,gBAAmB;IAEnB;;;OAGG;IACH,cAA6D;IAG/D;;;;OAIG;IACH,SAHY,IAAI,CA2Bf;IAuDD;;;;;;OAMG;IACH,kBAHW,MAAM,MAAM,CAAC,QAMvB;IAED;;;;OAIG;IACH,YAHY,OAAO,aAAa,EAAE,KAAK,CAKtC;IAED;;;;;OAKG;IACH,qBAJW,MAAM,GACL,gBAAgB,GAAC,iBAAiB,CAK7C;IA0BD;;OAEG;IACH,wBAFY,gBAAgB,GAAC,iBAAiB,CAI7C;IAqCD;;;;OAIG;IACH,UAHY,MAAM,GAAC,SAAS,CAK3B;CAmCF"}
|
package/style/Icon.js
CHANGED
|
@@ -17,23 +17,29 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
* @module ol/style/Icon
|
|
18
18
|
*/
|
|
19
19
|
import EventType from '../events/EventType.js';
|
|
20
|
-
import IconAnchorUnits from './IconAnchorUnits.js';
|
|
21
|
-
import IconOrigin from './IconOrigin.js';
|
|
22
20
|
import ImageState from '../ImageState.js';
|
|
23
21
|
import ImageStyle from './Image.js';
|
|
24
22
|
import { asArray } from '../color.js';
|
|
25
23
|
import { assert } from '../asserts.js';
|
|
26
24
|
import { get as getIconImage } from './IconImage.js';
|
|
27
25
|
import { getUid } from '../util.js';
|
|
26
|
+
/**
|
|
27
|
+
* @typedef {'fraction' | 'pixels'} IconAnchorUnits
|
|
28
|
+
* Anchor unit can be either a fraction of the icon size or in pixels.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* @typedef {'bottom-left' | 'bottom-right' | 'top-left' | 'top-right'} IconOrigin
|
|
32
|
+
* Icon origin. One of 'bottom-left', 'bottom-right', 'top-left', 'top-right'.
|
|
33
|
+
*/
|
|
28
34
|
/**
|
|
29
35
|
* @typedef {Object} Options
|
|
30
36
|
* @property {Array<number>} [anchor=[0.5, 0.5]] Anchor. Default value is the icon center.
|
|
31
|
-
* @property {
|
|
37
|
+
* @property {IconOrigin} [anchorOrigin='top-left'] Origin of the anchor: `bottom-left`, `bottom-right`,
|
|
32
38
|
* `top-left` or `top-right`.
|
|
33
|
-
* @property {
|
|
39
|
+
* @property {IconAnchorUnits} [anchorXUnits='fraction'] Units in which the anchor x value is
|
|
34
40
|
* specified. A value of `'fraction'` indicates the x value is a fraction of the icon. A value of `'pixels'` indicates
|
|
35
41
|
* the x value in pixels.
|
|
36
|
-
* @property {
|
|
42
|
+
* @property {IconAnchorUnits} [anchorYUnits='fraction'] Units in which the anchor y value is
|
|
37
43
|
* specified. A value of `'fraction'` indicates the y value is a fraction of the icon. A value of `'pixels'` indicates
|
|
38
44
|
* the y value in pixels.
|
|
39
45
|
* @property {import("../color.js").Color|string} [color] Color to tint the icon. If not specified,
|
|
@@ -47,7 +53,7 @@ import { getUid } from '../util.js';
|
|
|
47
53
|
* @property {Array<number>} [offset=[0, 0]] Offset, which, together with the size and the offset origin, define the
|
|
48
54
|
* sub-rectangle to use from the original icon image.
|
|
49
55
|
* @property {Array<number>} [displacement=[0,0]] Displacement of the icon.
|
|
50
|
-
* @property {
|
|
56
|
+
* @property {IconOrigin} [offsetOrigin='top-left'] Origin of the offset: `bottom-left`, `bottom-right`,
|
|
51
57
|
* `top-left` or `top-right`.
|
|
52
58
|
* @property {number} [opacity=1] Opacity of the icon.
|
|
53
59
|
* @property {number|import("../size.js").Size} [scale=1] Scale.
|
|
@@ -109,28 +115,22 @@ var Icon = /** @class */ (function (_super) {
|
|
|
109
115
|
_this.normalizedAnchor_ = null;
|
|
110
116
|
/**
|
|
111
117
|
* @private
|
|
112
|
-
* @type {
|
|
118
|
+
* @type {IconOrigin}
|
|
113
119
|
*/
|
|
114
120
|
_this.anchorOrigin_ =
|
|
115
|
-
options.anchorOrigin !== undefined
|
|
116
|
-
? options.anchorOrigin
|
|
117
|
-
: IconOrigin.TOP_LEFT;
|
|
121
|
+
options.anchorOrigin !== undefined ? options.anchorOrigin : 'top-left';
|
|
118
122
|
/**
|
|
119
123
|
* @private
|
|
120
|
-
* @type {
|
|
124
|
+
* @type {IconAnchorUnits}
|
|
121
125
|
*/
|
|
122
126
|
_this.anchorXUnits_ =
|
|
123
|
-
options.anchorXUnits !== undefined
|
|
124
|
-
? options.anchorXUnits
|
|
125
|
-
: IconAnchorUnits.FRACTION;
|
|
127
|
+
options.anchorXUnits !== undefined ? options.anchorXUnits : 'fraction';
|
|
126
128
|
/**
|
|
127
129
|
* @private
|
|
128
|
-
* @type {
|
|
130
|
+
* @type {IconAnchorUnits}
|
|
129
131
|
*/
|
|
130
132
|
_this.anchorYUnits_ =
|
|
131
|
-
options.anchorYUnits !== undefined
|
|
132
|
-
? options.anchorYUnits
|
|
133
|
-
: IconAnchorUnits.FRACTION;
|
|
133
|
+
options.anchorYUnits !== undefined ? options.anchorYUnits : 'fraction';
|
|
134
134
|
/**
|
|
135
135
|
* @private
|
|
136
136
|
* @type {?string}
|
|
@@ -178,12 +178,10 @@ var Icon = /** @class */ (function (_super) {
|
|
|
178
178
|
_this.offset_ = options.offset !== undefined ? options.offset : [0, 0];
|
|
179
179
|
/**
|
|
180
180
|
* @private
|
|
181
|
-
* @type {
|
|
181
|
+
* @type {IconOrigin}
|
|
182
182
|
*/
|
|
183
183
|
_this.offsetOrigin_ =
|
|
184
|
-
options.offsetOrigin !== undefined
|
|
185
|
-
? options.offsetOrigin
|
|
186
|
-
: IconOrigin.TOP_LEFT;
|
|
184
|
+
options.offsetOrigin !== undefined ? options.offsetOrigin : 'top-left';
|
|
187
185
|
/**
|
|
188
186
|
* @private
|
|
189
187
|
* @type {Array<number>}
|
|
@@ -236,32 +234,32 @@ var Icon = /** @class */ (function (_super) {
|
|
|
236
234
|
if (!anchor) {
|
|
237
235
|
anchor = this.anchor_;
|
|
238
236
|
var size = this.getSize();
|
|
239
|
-
if (this.anchorXUnits_ ==
|
|
240
|
-
this.anchorYUnits_ ==
|
|
237
|
+
if (this.anchorXUnits_ == 'fraction' ||
|
|
238
|
+
this.anchorYUnits_ == 'fraction') {
|
|
241
239
|
if (!size) {
|
|
242
240
|
return null;
|
|
243
241
|
}
|
|
244
242
|
anchor = this.anchor_.slice();
|
|
245
|
-
if (this.anchorXUnits_ ==
|
|
243
|
+
if (this.anchorXUnits_ == 'fraction') {
|
|
246
244
|
anchor[0] *= size[0];
|
|
247
245
|
}
|
|
248
|
-
if (this.anchorYUnits_ ==
|
|
246
|
+
if (this.anchorYUnits_ == 'fraction') {
|
|
249
247
|
anchor[1] *= size[1];
|
|
250
248
|
}
|
|
251
249
|
}
|
|
252
|
-
if (this.anchorOrigin_ !=
|
|
250
|
+
if (this.anchorOrigin_ != 'top-left') {
|
|
253
251
|
if (!size) {
|
|
254
252
|
return null;
|
|
255
253
|
}
|
|
256
254
|
if (anchor === this.anchor_) {
|
|
257
255
|
anchor = this.anchor_.slice();
|
|
258
256
|
}
|
|
259
|
-
if (this.anchorOrigin_ ==
|
|
260
|
-
this.anchorOrigin_ ==
|
|
257
|
+
if (this.anchorOrigin_ == 'top-right' ||
|
|
258
|
+
this.anchorOrigin_ == 'bottom-right') {
|
|
261
259
|
anchor[0] = -anchor[0] + size[0];
|
|
262
260
|
}
|
|
263
|
-
if (this.anchorOrigin_ ==
|
|
264
|
-
this.anchorOrigin_ ==
|
|
261
|
+
if (this.anchorOrigin_ == 'bottom-left' ||
|
|
262
|
+
this.anchorOrigin_ == 'bottom-right') {
|
|
265
263
|
anchor[1] = -anchor[1] + size[1];
|
|
266
264
|
}
|
|
267
265
|
}
|
|
@@ -335,19 +333,19 @@ var Icon = /** @class */ (function (_super) {
|
|
|
335
333
|
return this.origin_;
|
|
336
334
|
}
|
|
337
335
|
var offset = this.offset_;
|
|
338
|
-
if (this.offsetOrigin_ !=
|
|
336
|
+
if (this.offsetOrigin_ != 'top-left') {
|
|
339
337
|
var size = this.getSize();
|
|
340
338
|
var iconImageSize = this.iconImage_.getSize();
|
|
341
339
|
if (!size || !iconImageSize) {
|
|
342
340
|
return null;
|
|
343
341
|
}
|
|
344
342
|
offset = offset.slice();
|
|
345
|
-
if (this.offsetOrigin_ ==
|
|
346
|
-
this.offsetOrigin_ ==
|
|
343
|
+
if (this.offsetOrigin_ == 'top-right' ||
|
|
344
|
+
this.offsetOrigin_ == 'bottom-right') {
|
|
347
345
|
offset[0] = iconImageSize[0] - size[0] - offset[0];
|
|
348
346
|
}
|
|
349
|
-
if (this.offsetOrigin_ ==
|
|
350
|
-
this.offsetOrigin_ ==
|
|
347
|
+
if (this.offsetOrigin_ == 'bottom-left' ||
|
|
348
|
+
this.offsetOrigin_ == 'bottom-right') {
|
|
351
349
|
offset[1] = iconImageSize[1] - size[1] - offset[1];
|
|
352
350
|
}
|
|
353
351
|
}
|
package/style/Icon.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../src/style/Icon.js"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;GAEG;AACH,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../src/style/Icon.js"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;GAEG;AACH,OAAO,S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