Skip to content

Commit 5cacece

Browse files
committed
Website updates
1 parent b99ee79 commit 5cacece

10 files changed

+30
-18
lines changed

dist/en/main/examples/common.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/common.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/offscreen-canvas.worker.worker.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/offscreen-canvas.worker.worker.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/render/canvas/ZIndexContext.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ declare class ZIndexContext {
2626
* @type {ZIndexContextProxy}
2727
*/
2828
private context_;
29+
/**
30+
* @param {...*} args Arguments to push to the instructions array.
31+
* @private
32+
*/
33+
private push_;
2934
/**
3035
* @private
3136
* @param {...*} args Args.

dist/en/main/ol/render/canvas/ZIndexContext.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/en/main/ol/render/canvas/ZIndexContext.js

+17-10
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,37 @@ class ZIndexContext {
4040
// we only accept calling functions on the proxy, not accessing properties
4141
return undefined;
4242
}
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);
4744
return this.pushMethodArgs_;
4845
},
4946
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);
5448
return true;
5549
},
5650
})
5751
);
5852
}
5953

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+
6067
/**
6168
* @private
6269
* @param {...*} args Args.
6370
* @return {ZIndexContext} This.
6471
*/
6572
pushMethodArgs_ = (...args) => {
66-
this.instructions_[this.zIndex + this.offset_].push(args);
73+
this.push_(args);
6774
return this;
6875
};
6976

@@ -72,7 +79,7 @@ class ZIndexContext {
7279
* @param {function(CanvasRenderingContext2D): void} render Function.
7380
*/
7481
pushFunction(render) {
75-
this.instructions_[this.zIndex + this.offset_].push(render);
82+
this.push_(render);
7683
}
7784

7885
/**

dist/main.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)