Commit a2bf6334 authored by wjf's avatar wjf

文字颜色默认黑色

parent 6ca29584
......@@ -191,7 +191,7 @@ function drawText(data: INodeData, ctx: CanvasRenderingContext2D, scale: number)
ctx.font = font;
ctx.textBaseline = "bottom";
ctx.fillStyle = color;
ctx.fillStyle = color||"black";
var textMetrics = ctx.measureText(text);
let widthAll = textMetrics.width;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment