Skip to content

Commit 7dbc480

Browse files
committed
Website updates
1 parent 34ad017 commit 7dbc480

18 files changed

+125
-122
lines changed

dist/en/main/examples/common.js

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import Executor from './Executor.js';
6-
import {ascending} from '../../array.js';
6+
import {ascending, descending} from '../../array.js';
77
import {buffer, createEmpty, extendCoordinate} from '../../extent.js';
88
import {
99
compose as composeTransform,
@@ -235,9 +235,7 @@ class ExecutorGroup {
235235
context.clearRect(0, 0, contextSize, contextSize);
236236
}
237237

238-
/**
239-
* @type {import("../../extent.js").Extent}
240-
*/
238+
/** @type {import("../../extent.js").Extent|undefined} */
241239
let hitExtent;
242240
if (this.renderBuffer_ !== undefined) {
243241
hitExtent = createEmpty();
@@ -251,6 +249,7 @@ class ExecutorGroup {
251249

252250
const indexes = getPixelIndexArray(hitTolerance);
253251

252+
/** @type {import("../canvas.js").BuilderType} */
254253
let builderType;
255254

256255
/**
@@ -362,20 +361,15 @@ class ExecutorGroup {
362361
builderTypes,
363362
declutterTree,
364363
) {
365-
/** @type {Array<number>} */
366364
const zs = Object.keys(this.executorsByZIndex_).map(Number);
367-
zs.sort(ascending);
365+
zs.sort(declutterTree ? descending : ascending);
368366

369367
builderTypes = builderTypes ? builderTypes : ALL;
370368
const maxBuilderTypes = ALL.length;
371-
let i, ii, j, jj, replays;
372-
if (declutterTree) {
373-
zs.reverse();
374-
}
375-
for (i = 0, ii = zs.length; i < ii; ++i) {
369+
for (let i = 0, ii = zs.length; i < ii; ++i) {
376370
const zIndexKey = zs[i].toString();
377-
replays = this.executorsByZIndex_[zIndexKey];
378-
for (j = 0, jj = builderTypes.length; j < jj; ++j) {
371+
const replays = this.executorsByZIndex_[zIndexKey];
372+
for (let j = 0, jj = builderTypes.length; j < jj; ++j) {
379373
const builderType = builderTypes[j];
380374
const replay = replays[builderType];
381375
if (replay !== undefined) {

dist/en/main/ol/render/webgl/MixedGeometryBatch.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/render/webgl/MixedGeometryBatch.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,13 @@ class MixedGeometryBatch {
158158
* @private
159159
*/
160160
clearFeatureEntryInPointBatch_(feature) {
161-
const entry = this.pointBatch.entries[getUid(feature)];
161+
const featureUid = getUid(feature);
162+
const entry = this.pointBatch.entries[featureUid];
162163
if (!entry) {
163164
return;
164165
}
165166
this.pointBatch.geometriesCount -= entry.flatCoordss.length;
166-
delete this.pointBatch.entries[getUid(feature)];
167+
delete this.pointBatch.entries[featureUid];
167168
return entry;
168169
}
169170

@@ -173,13 +174,14 @@ class MixedGeometryBatch {
173174
* @private
174175
*/
175176
clearFeatureEntryInLineStringBatch_(feature) {
176-
const entry = this.lineStringBatch.entries[getUid(feature)];
177+
const featureUid = getUid(feature);
178+
const entry = this.lineStringBatch.entries[featureUid];
177179
if (!entry) {
178180
return;
179181
}
180182
this.lineStringBatch.verticesCount -= entry.verticesCount;
181183
this.lineStringBatch.geometriesCount -= entry.flatCoordss.length;
182-
delete this.lineStringBatch.entries[getUid(feature)];
184+
delete this.lineStringBatch.entries[featureUid];
183185
return entry;
184186
}
185187

@@ -189,14 +191,15 @@ class MixedGeometryBatch {
189191
* @private
190192
*/
191193
clearFeatureEntryInPolygonBatch_(feature) {
192-
const entry = this.polygonBatch.entries[getUid(feature)];
194+
const featureUid = getUid(feature);
195+
const entry = this.polygonBatch.entries[featureUid];
193196
if (!entry) {
194197
return;
195198
}
196199
this.polygonBatch.verticesCount -= entry.verticesCount;
197200
this.polygonBatch.ringsCount -= entry.ringsCount;
198201
this.polygonBatch.geometriesCount -= entry.flatCoordss.length;
199-
delete this.polygonBatch.entries[getUid(feature)];
202+
delete this.polygonBatch.entries[featureUid];
200203
return entry;
201204
}
202205

0 commit comments

Comments
 (0)