|
@@ -44,7 +44,7 @@ var SGraphyPolygonItem = /** @class */ (function (_super) {
|
|
|
_this.cacheColor = SColor.Black; //需要缓存的边框
|
|
|
_this.cacheFillColor = new SColor('#F2F6FC'); //需要缓存的填充色
|
|
|
_this.cacheWidth = 100;
|
|
|
- _this.type = 1; //类型 1-墙 2-空间
|
|
|
+ _this.businessType = ''; //类型
|
|
|
// 修改绘制路径格式
|
|
|
var newSpacePaths = PolygonItemData.space.Paths[0].map(function (item) {
|
|
|
return new SPoint(item.X, item.Y);
|
|
@@ -72,7 +72,7 @@ var SGraphyPolygonItem = /** @class */ (function (_super) {
|
|
|
_this.id = PolygonItemData.space.id;
|
|
|
_this.viewText = PolygonItemData.space.Name;
|
|
|
//类型
|
|
|
- _this.type = PolygonItemData.space.type ? PolygonItemData.space.type : 1;
|
|
|
+ _this.businessType = PolygonItemData.businessType ? PolygonItemData.businessType : '';
|
|
|
return _this;
|
|
|
}
|
|
|
/**
|