ol 10.4.1-dev.1743086425871 → 10.4.1-dev.1743167666102

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "10.4.1-dev.1743086425871",
3
+ "version": "10.4.1-dev.1743167666102",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
@@ -26,6 +26,11 @@ declare class ZIndexContext {
26
26
  * @type {ZIndexContextProxy}
27
27
  */
28
28
  private context_;
29
+ /**
30
+ * @param {...*} args Arguments to push to the instructions array.
31
+ * @private
32
+ */
33
+ private push_;
29
34
  /**
30
35
  * @private
31
36
  * @param {...*} args Args.
@@ -1 +1 @@
1
- {"version":3,"file":"ZIndexContext.d.ts","sourceRoot":"","sources":["ZIndexContext.js"],"names":[],"mappings":";iCAMc,wBAAwB,GAAG;IAAC,WAAW,EAAE,GAAG,CAAA;CAAC;AAA3D,kFAAkF;AAElF;;GAEG;AACH;IAEI;;;OAGG;IACH,sBAAuB;IACvB;;OAEG;IACH,QAFU,MAAM,CAED;IACf;;;OAGG;IACH,gBAAgB;IAEhB;;;OAGG;IACH,iBAwBC;IAGH;;;;OAIG;IACH,wBAGE;IAEF;;;OAGG;IACH,qBAFW,CAAS,IAAwB,EAAxB,wBAAwB,KAAG,IAAI,QAIlD;IAED;;;;;;OAMG;IACH,cAFY,kBAAkB,CAI7B;IAED;;OAEG;IACH,cAFW,wBAAwB,QAsBlC;IAED,cAIC;IAED;;;OAGG;IACH,eAGC;CACF"}
1
+ {"version":3,"file":"ZIndexContext.d.ts","sourceRoot":"","sources":["ZIndexContext.js"],"names":[],"mappings":";iCAMc,wBAAwB,GAAG;IAAC,WAAW,EAAE,GAAG,CAAA;CAAC;AAA3D,kFAAkF;AAElF;;GAEG;AACH;IAEI;;;OAGG;IACH,sBAAuB;IACvB;;OAEG;IACH,QAFU,MAAM,CAED;IACf;;;OAGG;IACH,gBAAgB;IAEhB;;;OAGG;IACH,iBAkBC;IAGH;;;OAGG;IACH,cAOC;IAED;;;;OAIG;IACH,wBAGE;IAEF;;;OAGG;IACH,qBAFW,CAAS,IAAwB,EAAxB,wBAAwB,KAAG,IAAI,QAIlD;IAED;;;;;;OAMG;IACH,cAFY,kBAAkB,CAI7B;IAED;;OAEG;IACH,cAFW,wBAAwB,QAsBlC;IAED,cAIC;IAED;;;OAGG;IACH,eAGC;CACF"}
@@ -40,30 +40,37 @@ class ZIndexContext {
40
40
  // we only accept calling functions on the proxy, not accessing properties
41
41
  return undefined;
42
42
  }
43
- if (!this.instructions_[this.zIndex + this.offset_]) {
44
- this.instructions_[this.zIndex + this.offset_] = [];
45
- }
46
- this.instructions_[this.zIndex + this.offset_].push(property);
43
+ this.push_(property);
47
44
  return this.pushMethodArgs_;
48
45
  },
49
46
  set: (target, property, value) => {
50
- if (!this.instructions_[this.zIndex + this.offset_]) {
51
- this.instructions_[this.zIndex + this.offset_] = [];
52
- }
53
- this.instructions_[this.zIndex + this.offset_].push(property, value);
47
+ this.push_(property, value);
54
48
  return true;
55
49
  },
56
50
  })
57
51
  );
58
52
  }
59
53
 
54
+ /**
55
+ * @param {...*} args Arguments to push to the instructions array.
56
+ * @private
57
+ */
58
+ push_(...args) {
59
+ const instructions = this.instructions_;
60
+ const index = this.zIndex + this.offset_;
61
+ if (!instructions[index]) {
62
+ instructions[index] = [];
63
+ }
64
+ instructions[index].push(...args);
65
+ }
66
+
60
67
  /**
61
68
  * @private
62
69
  * @param {...*} args Args.
63
70
  * @return {ZIndexContext} This.
64
71
  */
65
72
  pushMethodArgs_ = (...args) => {
66
- this.instructions_[this.zIndex + this.offset_].push(args);
73
+ this.push_(args);
67
74
  return this;
68
75
  };
69
76
 
@@ -72,7 +79,7 @@ class ZIndexContext {
72
79
  * @param {function(CanvasRenderingContext2D): void} render Function.
73
80
  */
74
81
  pushFunction(render) {
75
- this.instructions_[this.zIndex + this.offset_].push(render);
82
+ this.push_(render);
76
83
  }
77
84
 
78
85
  /**
package/util.js CHANGED
@@ -33,4 +33,4 @@ export function getUid(obj) {
33
33
  * OpenLayers version.
34
34
  * @type {string}
35
35
  */
36
- export const VERSION = '10.4.1-dev.1743086425871';
36
+ export const VERSION = '10.4.1-dev.1743167666102';
@@ -36,9 +36,9 @@ declare class TileGeometry extends BaseTileRepresentation<import("../VectorRende
36
36
  private generateMaskBuffer_;
37
37
  /**
38
38
  * Will release a set of Webgl buffers
39
- * @param {import('../render/webgl/VectorStyleRenderer.js').WebGLBuffers} buffers Buffers
39
+ * @param {import('../render/webgl/VectorStyleRenderer.js').WebGLBuffers|null} buffers Buffers
40
40
  */
41
- disposeBuffers(buffers: import("../render/webgl/VectorStyleRenderer.js").WebGLBuffers): void;
41
+ disposeBuffers(buffers: import("../render/webgl/VectorStyleRenderer.js").WebGLBuffers | null): void;
42
42
  }
43
43
  import BaseTileRepresentation from './BaseTileRepresentation.js';
44
44
  import WebGLArrayBuffer from './Buffer.js';
@@ -1 +1 @@
1
- {"version":3,"file":"TileGeometry.d.ts","sourceRoot":"","sources":["TileGeometry.js"],"names":[],"mappings":";uBAca,OAAO,qBAAqB,EAAE,OAAO;AADlD;;GAEG;AAEH;;GAEG;AACH;IACE;;;OAGG;IACH,qBAHW,OAAO,6BAA6B,EAAE,yBAAyB,CAAC,QAAQ,CAAC,kBACzE,KAAK,CAAC,OAAO,wCAAwC,EAAE,OAAO,CAAC,EA4BzE;IAvBC;;OAEG;IACH,eAAsC;IAEtC;;OAEG;IACH,wBAAqC;IAErC;;OAEG;IACH,SAFU,KAAK,CAAC,OAAO,wCAAwC,EAAE,YAAY,CAAC,CAE7D;IAEjB;;;;OAIG;IACH,+BAAmE;IAKrE;;OAEG;IACH,4BAaC;IA4CD;;;OAGG;IACH,wBAFW,OAAO,wCAAwC,EAAE,YAAY,QAsBvE;CACF;mCAhIkC,6BAA6B;6BACnC,aAAa"}
1
+ {"version":3,"file":"TileGeometry.d.ts","sourceRoot":"","sources":["TileGeometry.js"],"names":[],"mappings":";uBAca,OAAO,qBAAqB,EAAE,OAAO;AADlD;;GAEG;AAEH;;GAEG;AACH;IACE;;;OAGG;IACH,qBAHW,OAAO,6BAA6B,EAAE,yBAAyB,CAAC,QAAQ,CAAC,kBACzE,KAAK,CAAC,OAAO,wCAAwC,EAAE,OAAO,CAAC,EA4BzE;IAvBC;;OAEG;IACH,eAAsC;IAEtC;;OAEG;IACH,wBAAqC;IAErC;;OAEG;IACH,SAFU,KAAK,CAAC,OAAO,wCAAwC,EAAE,YAAY,CAAC,CAE7D;IAEjB;;;;OAIG;IACH,+BAAmE;IAKrE;;OAEG;IACH,4BAaC;IA4CD;;;OAGG;IACH,wBAFW,OAAO,wCAAwC,EAAE,YAAY,GAAC,IAAI,QAyB5E;CACF;mCAnIkC,6BAA6B;6BACnC,aAAa"}
@@ -113,9 +113,12 @@ class TileGeometry extends BaseTileRepresentation {
113
113
 
114
114
  /**
115
115
  * Will release a set of Webgl buffers
116
- * @param {import('../render/webgl/VectorStyleRenderer.js').WebGLBuffers} buffers Buffers
116
+ * @param {import('../render/webgl/VectorStyleRenderer.js').WebGLBuffers|null} buffers Buffers
117
117
  */
118
118
  disposeBuffers(buffers) {
119
+ if (!buffers) {
120
+ return;
121
+ }
119
122
  /**
120
123
  * @param {Array<WebGLArrayBuffer>} typeBuffers Buffers
121
124
  */