Fix type check errors in ol/render/webgl/TextReplay
This commit is contained in:
@@ -266,8 +266,8 @@ class WebGLTextReplay extends WebGLTextureReplay {
|
|||||||
ctx.fillStyle = state.fillColor;
|
ctx.fillStyle = state.fillColor;
|
||||||
ctx.strokeStyle = state.strokeColor;
|
ctx.strokeStyle = state.strokeColor;
|
||||||
ctx.lineWidth = state.lineWidth;
|
ctx.lineWidth = state.lineWidth;
|
||||||
ctx.lineCap = /*** @type {string} */ (state.lineCap);
|
ctx.lineCap = /** @type {CanvasLineCap} */ (state.lineCap);
|
||||||
ctx.lineJoin = /** @type {string} */ (state.lineJoin);
|
ctx.lineJoin = /** @type {CanvasLineJoin} */ (state.lineJoin);
|
||||||
ctx.miterLimit = /** @type {number} */ (state.miterLimit);
|
ctx.miterLimit = /** @type {number} */ (state.miterLimit);
|
||||||
ctx.textAlign = 'left';
|
ctx.textAlign = 'left';
|
||||||
ctx.textBaseline = 'top';
|
ctx.textBaseline = 'top';
|
||||||
|
|||||||
Reference in New Issue
Block a user