ol 7.0.1-dev.1661440420569 → 7.0.1-dev.1661509432915
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/interaction/Draw.d.ts +1 -1
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Draw.js +24 -10
- package/interaction/Modify.d.ts +2 -2
- package/interaction/Modify.js +1 -1
- package/layer/WebGLTile.d.ts.map +1 -1
- package/layer/WebGLTile.js +3 -0
- package/package.json +1 -1
- package/renderer/webgl/TileLayer.d.ts +6 -0
- package/renderer/webgl/TileLayer.d.ts.map +1 -1
- package/renderer/webgl/TileLayer.js +20 -3
- package/source/ImageWMS.d.ts.map +1 -1
- package/source/ImageWMS.js +1 -1
- package/source/TileWMS.js +1 -1
- package/util.js +1 -1
package/interaction/Draw.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ export type Options = {
|
|
|
99
99
|
/**
|
|
100
100
|
* Style for sketch features.
|
|
101
101
|
*/
|
|
102
|
-
style?: import("../style/Style.js").StyleLike | undefined;
|
|
102
|
+
style?: import("../style/Style.js").StyleLike | import("../style/flat.js").FlatStyleLike | undefined;
|
|
103
103
|
/**
|
|
104
104
|
* Function that is called when a geometry's coordinates are updated.
|
|
105
105
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Draw.d.ts","sourceRoot":"","sources":["Draw.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Draw.d.ts","sourceRoot":"","sources":["Draw.js"],"names":[],"mappings":"AA8zDA;;;;;;;;;;;;GAYG;AACH,8FAHY,gBAAgB,CAmC3B;AAED;;;;;;GAMG;AACH,6BAHY,gBAAgB,CAiC3B;AA7tDD;;;;GAIG;AACH;IACE;;;OAGG;IACH,kBAHW,aAAa,WACb,OAAO,EAWjB;IANC;;;;OAIG;IACH,SAHU,OAAO,CAGK;CAEzB;;;;;;;UA5Ja,OAAO,qBAAqB,EAAE,IAAI;;;;;;;;;;;;;;;;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D;IAED;;;;;OAKG;IACH,YAFW,OAAO,WAAW,EAAE,OAAO,QAKrC;IAED;;;;OAIG;IACH,+BAEC;IA4GD;;OAEG;IACH,yBAEC;IAED;;;;OAIG;IACH,0BAkCC;IAED;;;;OAIG;IACH,sCA2BC;IAED;;;;OAIG;IACH,iCAyBC;IAED;;;;;OAKG;IACH,8BA+BC;IAED;;;;OAIG;IACH,qBAqDC;IAmDD;;;;OAIG;IACH,2BA2BC;IAED;;;;;;OAMG;IACH,kBA8CC;IAED;;;OAGG;IACH,mCAQC;IAED;;;OAGG;IACH,wCAmBC;IAED;;;;OAIG;IACH,sBAgCC;IAED;;;;OAIG;IACH,uBAwCC;IAED;;;;OAIG;IACH,sBAsCC;IAED;;OAEG;IACH,qBAFW,MAAM,QA8ChB;IAED;;;;OAIG;IACH,wBAEC;IAED;;;;;OAKG;IACH,sBA4CC;IAED;;;;OAIG;IACH,sBASC;IAED;;;OAGG;IACH,qBAKC;IAED;;;;;;;;OAQG;IACH,oDAmCC;IAED;;;;;;;;;;;OAWG;IACH,gBAHY,QAAQ,UAAU,CAAC,QAgB9B;IAED;;;OAGG;IACH,8BAcC;IAED;;OAEG;IACH,qBAOC;CACF"}
|
package/interaction/Draw.js
CHANGED
|
@@ -70,7 +70,7 @@ import {getStrideForLayout} from '../geom/SimpleGeometry.js';
|
|
|
70
70
|
* that takes an {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
71
71
|
* boolean to indicate whether the drawing can be finished. Not used when drawing
|
|
72
72
|
* POINT or MULTI_POINT geometries.
|
|
73
|
-
* @property {import("../style/Style.js").StyleLike} [style]
|
|
73
|
+
* @property {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike} [style]
|
|
74
74
|
* Style for sketch features.
|
|
75
75
|
* @property {GeometryFunction} [geometryFunction]
|
|
76
76
|
* Function that is called when a geometry's coordinates are updated.
|
|
@@ -355,10 +355,12 @@ const sharedUpdateInfo = {index: -1, endIndex: NaN};
|
|
|
355
355
|
/**
|
|
356
356
|
* @param {import("../coordinate.js").Coordinate} coordinate The coordinate.
|
|
357
357
|
* @param {TraceState} traceState The trace state.
|
|
358
|
+
* @param {import("../Map.js").default} map The map.
|
|
359
|
+
* @param {number} snapTolerance The snap tolerance.
|
|
358
360
|
* @return {TraceTargetUpdateInfo} Information about the new trace target. The returned
|
|
359
361
|
* object is reused between calls and must not be modified by the caller.
|
|
360
362
|
*/
|
|
361
|
-
function getTraceTargetUpdate(coordinate, traceState) {
|
|
363
|
+
function getTraceTargetUpdate(coordinate, traceState, map, snapTolerance) {
|
|
362
364
|
const x = coordinate[0];
|
|
363
365
|
const y = coordinate[1];
|
|
364
366
|
|
|
@@ -412,14 +414,24 @@ function getTraceTargetUpdate(coordinate, traceState) {
|
|
|
412
414
|
}
|
|
413
415
|
}
|
|
414
416
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
const
|
|
420
|
-
|
|
417
|
+
const newTarget = traceState.targets[newTargetIndex];
|
|
418
|
+
let considerBothDirections = newTarget.ring;
|
|
419
|
+
if (traceState.targetIndex === newTargetIndex && considerBothDirections) {
|
|
420
|
+
// only consider switching trace direction if close to the start
|
|
421
|
+
const newCoordinate = interpolateCoordinate(
|
|
422
|
+
newTarget.coordinates,
|
|
423
|
+
newEndIndex
|
|
424
|
+
);
|
|
425
|
+
const pixel = map.getPixelFromCoordinate(newCoordinate);
|
|
426
|
+
if (distance(pixel, traceState.startPx) > snapTolerance) {
|
|
427
|
+
considerBothDirections = false;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
if (considerBothDirections) {
|
|
432
|
+
const coordinates = newTarget.coordinates;
|
|
421
433
|
const count = coordinates.length;
|
|
422
|
-
const startIndex =
|
|
434
|
+
const startIndex = newTarget.startIndex;
|
|
423
435
|
const endIndex = newEndIndex;
|
|
424
436
|
if (startIndex < endIndex) {
|
|
425
437
|
const forwardDistance = getCumulativeSquaredDistance(
|
|
@@ -1239,7 +1251,9 @@ class Draw extends PointerInteraction {
|
|
|
1239
1251
|
|
|
1240
1252
|
const updatedTraceTarget = getTraceTargetUpdate(
|
|
1241
1253
|
event.coordinate,
|
|
1242
|
-
traceState
|
|
1254
|
+
traceState,
|
|
1255
|
+
this.getMap(),
|
|
1256
|
+
this.snapTolerance_
|
|
1243
1257
|
);
|
|
1244
1258
|
|
|
1245
1259
|
if (traceState.targetIndex !== updatedTraceTarget.index) {
|
package/interaction/Modify.d.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* features. Default is {@link module:ol/events/condition.always}.
|
|
26
26
|
* @property {number} [pixelTolerance=10] Pixel tolerance for considering the
|
|
27
27
|
* pointer close enough to a segment or vertex for editing.
|
|
28
|
-
* @property {import("../style/Style.js").StyleLike} [style]
|
|
28
|
+
* @property {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike} [style]
|
|
29
29
|
* Style used for the modification point or vertex. For linestrings and polygons, this will
|
|
30
30
|
* be the affected vertex, for circles a point along the circle, and for points the actual
|
|
31
31
|
* point. If not configured, the default edit style is used (see {@link module:ol/style/Style~Style}).
|
|
@@ -142,7 +142,7 @@ export type Options = {
|
|
|
142
142
|
* in the same order. The `geometries` are only useful when modifying geometry collections, where
|
|
143
143
|
* the geometry will be the particular geometry from the collection that is being modified.
|
|
144
144
|
*/
|
|
145
|
-
style?: import("../style/Style.js").StyleLike | undefined;
|
|
145
|
+
style?: import("../style/Style.js").StyleLike | import("../style/flat.js").FlatStyleLike | undefined;
|
|
146
146
|
/**
|
|
147
147
|
* The vector source with
|
|
148
148
|
* features to modify. If a vector source is not provided, a feature collection
|
package/interaction/Modify.js
CHANGED
|
@@ -106,7 +106,7 @@ const ModifyEventType = {
|
|
|
106
106
|
* features. Default is {@link module:ol/events/condition.always}.
|
|
107
107
|
* @property {number} [pixelTolerance=10] Pixel tolerance for considering the
|
|
108
108
|
* pointer close enough to a segment or vertex for editing.
|
|
109
|
-
* @property {import("../style/Style.js").StyleLike} [style]
|
|
109
|
+
* @property {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike} [style]
|
|
110
110
|
* Style used for the modification point or vertex. For linestrings and polygons, this will
|
|
111
111
|
* be the affected vertex, for circles a point along the circle, and for points the actual
|
|
112
112
|
* point. If not configured, the default edit style is used (see {@link module:ol/style/Style~Style}).
|
package/layer/WebGLTile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebGLTile.d.ts","sourceRoot":"","sources":["WebGLTile.js"],"names":[],"mappings":";yBAkBa,OAAO,uBAAuB,EAAE,OAAO,GAAC,OAAO,wBAAwB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA+CpD,OAAO,cAAc,EAAE,MAAM,QAAE,MAAM,KAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;kBAgBnF,MAAM;;;;oBACN,MAAM;;;;;YACC,MAAM,GAAC,OAAO,oBAAoB,EAAE,YAAY;;;;;qBACvD,MAAM,OAAO,4BAA4B,EAAE,OAAO,CAAC;;AAgNjE;;;;;;;;;;;GAWG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAkDjB;IArCC;;;OAGG;IACH,iBAA+B;IAE/B;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,4BAA8B;IAE9B;;;OAGG;IACH,eAAmB;IAEnB;;;OAGG;IACH,mBAA2B;IAE3B;;;OAGG;IACH,wBAAkD;IAKpD;;;;;OAKG;IACH,mBAJW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,GACL,MAAM,UAAU,CAAC,CAW5B;IAED;;OAEG;IACH,mBAFY,UAAU,CAIrB;IAUD;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"WebGLTile.d.ts","sourceRoot":"","sources":["WebGLTile.js"],"names":[],"mappings":";yBAkBa,OAAO,uBAAuB,EAAE,OAAO,GAAC,OAAO,wBAAwB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA+CpD,OAAO,cAAc,EAAE,MAAM,QAAE,MAAM,KAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;kBAgBnF,MAAM;;;;oBACN,MAAM;;;;;YACC,MAAM,GAAC,OAAO,oBAAoB,EAAE,YAAY;;;;;qBACvD,MAAM,OAAO,4BAA4B,EAAE,OAAO,CAAC;;AAgNjE;;;;;;;;;;;GAWG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAkDjB;IArCC;;;OAGG;IACH,iBAA+B;IAE/B;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,4BAA8B;IAE9B;;;OAGG;IACH,eAAmB;IAEnB;;;OAGG;IACH,mBAA2B;IAE3B;;;OAGG;IACH,wBAAkD;IAKpD;;;;;OAKG;IACH,mBAJW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,GACL,MAAM,UAAU,CAAC,CAW5B;IAED;;OAEG;IACH,mBAFY,UAAU,CAIrB;IAUD;;OAEG;IACH,4BAOC;IAED;;;OAGG;IACH,4BAMC;IAcD;;;;OAIG;IACH,0BAJW,OAAO,QAAQ,EAAE,UAAU,WAC3B,MAAM,UAAU,CAAC,GAChB,WAAW,CAYtB;IA8CD;;;;;;;OAOG;IACH,gBAFW,KAAK,QAcf;IAED;;;;OAIG;IACH;YAHkB,MAAM,GAAE,MAAM;aAM/B;CACF"}
|
package/layer/WebGLTile.js
CHANGED
package/package.json
CHANGED
|
@@ -143,6 +143,11 @@ declare class WebGLTileLayerRenderer extends WebGLLayerRenderer<import("../../la
|
|
|
143
143
|
* @type {import("../../Map.js").FrameState|null}
|
|
144
144
|
*/
|
|
145
145
|
private frameState_;
|
|
146
|
+
/**
|
|
147
|
+
* @private
|
|
148
|
+
* @type {import("../../proj/Projection.js").default}
|
|
149
|
+
*/
|
|
150
|
+
private projection_;
|
|
146
151
|
/**
|
|
147
152
|
* @param {Options} options Options.
|
|
148
153
|
*/
|
|
@@ -186,6 +191,7 @@ declare class WebGLTileLayerRenderer extends WebGLLayerRenderer<import("../../la
|
|
|
186
191
|
* @private
|
|
187
192
|
*/
|
|
188
193
|
private findAltTiles_;
|
|
194
|
+
clearCache(): void;
|
|
189
195
|
}
|
|
190
196
|
import WebGLLayerRenderer from "./Layer.js";
|
|
191
197
|
import TileTexture from "../../webgl/TileTexture.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileLayer.d.ts","sourceRoot":"","sources":["TileLayer.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;kBAkIc,MAAM;;;;oBACN,MAAM;;;;;;;;;;;;;;;;;wBAQP,OAAO,0BAA0B,EAAE,OAAO;AAXvD;;;;;;;;GAQG;AAEH;;GAEG;AAEH;;;;;GAKG;AACH;IACE;;;OAGG;IACH,uBAHW,SAAS,WACT,OAAO,
|
|
1
|
+
{"version":3,"file":"TileLayer.d.ts","sourceRoot":"","sources":["TileLayer.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;kBAkIc,MAAM;;;;oBACN,MAAM;;;;;;;;;;;;;;;;;wBAQP,OAAO,0BAA0B,EAAE,OAAO;AAXvD;;;;;;;;GAQG;AAEH;;GAEG;AAEH;;;;;GAKG;AACH;IACE;;;OAGG;IACH,uBAHW,SAAS,WACT,OAAO,EAyGjB;IAlGC;;;OAGG;IACH,gBAFU,OAAO,CAEU;IAE3B;;;;OAIG;IACH,uBAAuC;IAEvC;;;OAGG;IACH,kBAA6B;IAE7B;;;OAGG;IACH,uBAA+C;IAE/C;;;OAGG;IACH,uBAA8C;IAE9C;;;OAGG;IACH,kBAAuB;IAEvB;;;OAGG;IACH,iBAAa;IAEb;;OAEG;IACH,sBAAyC;IAEzC;;OAEG;IACH,wBAA6C;IAE7C;;;;;;;;;;;;;;;;OAgBG;IACH,iBAAuE;IAKvE;;;OAGG;IACH,0BAAgD;IAEhD;;;OAGG;IACH,yBAAqD;IAErD;;;OAGG;IACH,oBAAuB;IAEvB;;;OAGG;IACH,oBAA4B;IAG9B;;OAEG;IACH,eAFW,OAAO,QAgBjB;IAWD;;;;OAIG;IACH,wBASC;IA2BD;;;;;;OAMG;IACH,yBANW,OAAO,cAAc,EAAE,UAAU,UACjC,OAAO,iBAAiB,EAAE,MAAM,YAChC,MAAM;YACC,MAAM,GAAE,MAAM,WAAW,CAAC;gBACjC,MAAM,QAwGhB;IAED;;;;OAIG;IACH,wBAHW,OAAO,cAAc,EAAE,UAAU,GAChC,WAAW,CAkStB;IAED;;;OAGG;IACH,eAHW,OAAO,gBAAgB,EAAE,KAAK,GAC7B,iBAAiB,GAAC,UAAU,GAAC,YAAY,GAAC,QAAQ,CAyF7D;IAED;;;;;;;;;;OAUG;IACH,sBA+BC;IAED,mBAIC;CA6BF"}
|
|
@@ -248,6 +248,12 @@ class WebGLTileLayerRenderer extends WebGLLayerRenderer {
|
|
|
248
248
|
* @type {import("../../Map.js").FrameState|null}
|
|
249
249
|
*/
|
|
250
250
|
this.frameState_ = null;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @private
|
|
254
|
+
* @type {import("../../proj/Projection.js").default}
|
|
255
|
+
*/
|
|
256
|
+
this.projection_ = undefined;
|
|
251
257
|
}
|
|
252
258
|
|
|
253
259
|
/**
|
|
@@ -300,6 +306,13 @@ class WebGLTileLayerRenderer extends WebGLLayerRenderer {
|
|
|
300
306
|
* @return {boolean} Layer is ready to be rendered.
|
|
301
307
|
*/
|
|
302
308
|
prepareFrameInternal(frameState) {
|
|
309
|
+
if (!this.projection_) {
|
|
310
|
+
this.projection_ = frameState.viewState.projection;
|
|
311
|
+
} else if (frameState.viewState.projection !== this.projection_) {
|
|
312
|
+
this.clearCache();
|
|
313
|
+
this.projection_ = frameState.viewState.projection;
|
|
314
|
+
}
|
|
315
|
+
|
|
303
316
|
const layer = this.getLayer();
|
|
304
317
|
const source = layer.getRenderSource();
|
|
305
318
|
if (!source) {
|
|
@@ -855,11 +868,15 @@ class WebGLTileLayerRenderer extends WebGLLayerRenderer {
|
|
|
855
868
|
return covered;
|
|
856
869
|
}
|
|
857
870
|
|
|
871
|
+
clearCache() {
|
|
872
|
+
const tileTextureCache = this.tileTextureCache_;
|
|
873
|
+
tileTextureCache.forEach((tileTexture) => tileTexture.dispose());
|
|
874
|
+
tileTextureCache.clear();
|
|
875
|
+
}
|
|
876
|
+
|
|
858
877
|
removeHelper() {
|
|
859
878
|
if (this.helper) {
|
|
860
|
-
|
|
861
|
-
tileTextureCache.forEach((tileTexture) => tileTexture.dispose());
|
|
862
|
-
tileTextureCache.clear();
|
|
879
|
+
this.clearCache();
|
|
863
880
|
}
|
|
864
881
|
|
|
865
882
|
super.removeHelper();
|
package/source/ImageWMS.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageWMS.d.ts","sourceRoot":"","sources":["ImageWMS.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoDc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;AAlBjD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,2CAgFC;IAtEC;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,2BAG8B;IAE9B;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"ImageWMS.d.ts","sourceRoot":"","sources":["ImageWMS.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoDc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;AAlBjD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,2CAgFC;IAtEC;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,2BAG8B;IAE9B;;;OAGG;IACH,gBAAgD;IAEhD;;;OAGG;IACH,aAAgB;IAGhB;;;OAGG;IACH,oBAAqC;IAErC;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,eAAkB;IAElB;;;OAGG;IACH,mBAAwB;IAExB;;;OAGG;IACH,0BAA0B;IAE1B;;;OAGG;IACH,eAA+D;IAGjE;;;;;;;;;;;;;OAaG;IACH,8BAVW,OAAO,kBAAkB,EAAE,UAAU,cACrC,MAAM,cACN,OAAO,YAAY,EAAE,cAAc,gBAKlC,MAAM,GAAC,SAAS,CAiD3B;IAED;;;;;;;;;;;;;OAaG;IACH,6DAHY,MAAM,GAAC,SAAS,CAmC3B;IAED;;;;;OAKG;IACH,iBAEC;IAED;;;;;;OAMG;IACH,yBANW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,aAAa,EAAE,OAAO,CAyFxC;IAED;;;;OAIG;IACH,wBAHY,OAAO,aAAa,EAAE,YAAY,CAK7C;IAED;;;;;;;;OAQG;IACH,uBA6CC;IAED;;;;OAIG;IACH,UAHY,MAAM,GAAC,SAAS,CAK3B;IAED;;;;OAIG;IACH,wCAHW,OAAO,aAAa,EAAE,YAAY,QAO5C;IAED;;;;OAIG;IACH,YAHW,MAAM,GAAC,SAAS,QAS1B;IAED;;;;OAIG;IACH,gCAKC;IAED;;OAEG;IACH,mBAGC;CACF"}
|
package/source/ImageWMS.js
CHANGED
package/source/TileWMS.js
CHANGED
|
@@ -84,7 +84,7 @@ class TileWMS extends TileImage {
|
|
|
84
84
|
constructor(options) {
|
|
85
85
|
options = options ? options : /** @type {Options} */ ({});
|
|
86
86
|
|
|
87
|
-
const params = options.params
|
|
87
|
+
const params = Object.assign({}, options.params);
|
|
88
88
|
|
|
89
89
|
const transparent = 'TRANSPARENT' in params ? params['TRANSPARENT'] : true;
|
|
90
90
|
|
package/util.js
CHANGED