ol 10.4.1-dev.1743167547333 → 10.4.1-dev.1743425790735

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.1743167547333",
3
+ "version": "10.4.1-dev.1743425790735",
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.1743167547333';
36
+ export const VERSION = '10.4.1-dev.1743425790735';