@@ -84,6 +84,9 @@ export class ViewTool {
}
static drawText(ctx: CanvasRenderingContext2D, content: string, location: Point, size: Point):void{
+ if(!content)
+ return;
+
const fontSize = 10;
ctx.font = "lighter " + fontSize + "px Microsoft YaHei";
ctx.textBaseline = "bottom";