Fix type check errors in ol/render/canvas/TextReplay
This commit is contained in:
@@ -288,8 +288,8 @@ class CanvasTextReplay extends CanvasReplay {
|
|||||||
if (strokeKey) {
|
if (strokeKey) {
|
||||||
context.strokeStyle = strokeState.strokeStyle;
|
context.strokeStyle = strokeState.strokeStyle;
|
||||||
context.lineWidth = strokeWidth;
|
context.lineWidth = strokeWidth;
|
||||||
context.lineCap = strokeState.lineCap;
|
context.lineCap = /** @type {CanvasLineCap} */ (strokeState.lineCap);
|
||||||
context.lineJoin = strokeState.lineJoin;
|
context.lineJoin = /** @type {CanvasLineJoin} */ (strokeState.lineJoin);
|
||||||
context.miterLimit = strokeState.miterLimit;
|
context.miterLimit = strokeState.miterLimit;
|
||||||
if (CANVAS_LINE_DASH && strokeState.lineDash.length) {
|
if (CANVAS_LINE_DASH && strokeState.lineDash.length) {
|
||||||
context.setLineDash(strokeState.lineDash);
|
context.setLineDash(strokeState.lineDash);
|
||||||
|
|||||||
Reference in New Issue
Block a user