|
@@ -15,7 +15,8 @@ export class SGraphyPolygonItem extends SGraphyItem {
|
|
|
businessId: string | null;
|
|
|
id: string | null;
|
|
|
centerOfGravityPoint: { x: number, y: number };
|
|
|
- businessName: null | string | undefined;
|
|
|
+ businessName: null | string | undefined; //业务空间名字
|
|
|
+ initName: null | string | undefined; //空间名字
|
|
|
isBusiness: number = 1;
|
|
|
cacheColor:SColor= SColor.Black //需要缓存的边框
|
|
|
cacheFillColor:SColor = new SColor('#F2F6FC'); //需要缓存的填充色
|
|
@@ -58,6 +59,7 @@ export class SGraphyPolygonItem extends SGraphyItem {
|
|
|
PolygonItemData.businessId ? this.businessId = PolygonItemData.businessId : this.businessId = null;
|
|
|
//业务空间名称
|
|
|
this.businessName = PolygonItemData.space.Name;
|
|
|
+ this.initName = PolygonItemData.space.Name;
|
|
|
// 空间id
|
|
|
this.id = PolygonItemData.space.id;
|
|
|
}
|
|
@@ -144,7 +146,7 @@ export class SGraphyPolygonItem extends SGraphyItem {
|
|
|
if (this.businessName || this.businessId) {
|
|
|
text = '👇 ' + this.businessName
|
|
|
} else {
|
|
|
- text = '⬇️ ' + this.businessName
|
|
|
+ text = '⬇️ ' + this.initName
|
|
|
}
|
|
|
painter.font.size = this.scale*200;
|
|
|
painter.brush.color = SColor.Black;
|