This commit is contained in:
Emmaline Autumn 2023-10-24 00:55:01 -06:00
parent f1bd085384
commit 7d6b54825d

View File

@ -233,6 +233,9 @@ export class Doodler {
ctx.strokeStyle = style?.color || style?.strokeColor || "black"; ctx.strokeStyle = style?.color || style?.strokeColor || "black";
ctx.lineWidth = style?.weight || 1; ctx.lineWidth = style?.weight || 1;
ctx.textAlign = style?.textAlign || ctx.textAlign;
ctx.textBaseline = style?.textBaseline || ctx.textBaseline;
} }
fillText(text: string, pos: Vector, maxWidth: number, style?: IStyle) { fillText(text: string, pos: Vector, maxWidth: number, style?: IStyle) {