Skip to content

Commit 4f25946

Browse files
committed
Website updates
1 parent 0e7c9ce commit 4f25946

13 files changed

+17
-23
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/Builder.d.ts.map

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

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

+2-6
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,7 @@ class CanvasBuilder extends VectorContext {
624624
updateFillStyle(state, createFill) {
625625
const fillStyle = state.fillStyle;
626626
if (typeof fillStyle !== 'string' || state.currentFillStyle != fillStyle) {
627-
if (fillStyle !== undefined) {
628-
this.instructions.push(createFill.call(this, state));
629-
}
627+
this.instructions.push(createFill.call(this, state));
630628
state.currentFillStyle = fillStyle;
631629
}
632630
}
@@ -653,9 +651,7 @@ class CanvasBuilder extends VectorContext {
653651
state.currentLineWidth != lineWidth ||
654652
state.currentMiterLimit != miterLimit
655653
) {
656-
if (strokeStyle !== undefined) {
657-
applyStroke.call(this, state);
658-
}
654+
applyStroke.call(this, state);
659655
state.currentStrokeStyle = strokeStyle;
660656
state.currentLineCap = lineCap;
661657
state.currentLineDash = lineDash;

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

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

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

+3
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,9 @@ class Executor {
611611
setStrokeStyle_(context, instruction) {
612612
context.strokeStyle =
613613
/** @type {import("../../colorlike.js").ColorLike} */ (instruction[1]);
614+
if (!instruction[1]) {
615+
return;
616+
}
614617
context.lineWidth = /** @type {number} */ (instruction[2]);
615618
context.lineCap = /** @type {CanvasLineCap} */ (instruction[3]);
616619
context.lineJoin = /** @type {CanvasLineJoin} */ (instruction[4]);

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

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

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

+2-7
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,8 @@ class CanvasPolygonBuilder extends CanvasBuilder {
255255
*/
256256
setFillStrokeStyles_() {
257257
const state = this.state;
258-
const fillStyle = state.fillStyle;
259-
if (fillStyle !== undefined) {
260-
this.updateFillStyle(state, this.createFill);
261-
}
262-
if (state.strokeStyle !== undefined) {
263-
this.updateStrokeStyle(state, this.applyStroke);
264-
}
258+
this.updateFillStyle(state, this.createFill);
259+
this.updateStrokeStyle(state, this.applyStroke);
265260
}
266261
}
267262

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)