|
@@ -191,14 +191,16 @@ export class SSpaceItem extends SGraphyItem {
|
|
painter.pen.lineWidth = painter.toPx(1);
|
|
painter.pen.lineWidth = painter.toPx(1);
|
|
painter.drawPath(this.path);
|
|
painter.drawPath(this.path);
|
|
|
|
|
|
- painter.brush.color = SColor.Black;
|
|
|
|
- painter.font.size = painter.toPx(10);
|
|
|
|
- // painter.font.size = 500;
|
|
|
|
- painter.font.textAlign = STextAlign.Center;
|
|
|
|
- painter.drawText(
|
|
|
|
- this.data.Name,
|
|
|
|
- this.data.Location.Points[0].X,
|
|
|
|
- -this.data.Location.Points[0].Y
|
|
|
|
- );
|
|
|
|
|
|
+ if (this.data.Name && this.data.Name != "null") {
|
|
|
|
+ painter.brush.color = SColor.Black;
|
|
|
|
+ painter.font.size = painter.toPx(10);
|
|
|
|
+ // painter.font.size = 500;
|
|
|
|
+ painter.font.textAlign = STextAlign.Center;
|
|
|
|
+ painter.drawText(
|
|
|
|
+ this.data.Name,
|
|
|
|
+ this.data.Location.Points[0].X,
|
|
|
|
+ -this.data.Location.Points[0].Y
|
|
|
|
+ );
|
|
|
|
+ }
|
|
} // Function onDraw()
|
|
} // Function onDraw()
|
|
} // Class SSpaceItem
|
|
} // Class SSpaceItem
|