|
@@ -1,6 +1,6 @@
|
|
|
import { SMouseEvent, SUndoStack } from "@saga-web/base";
|
|
|
import { SGraphScene, SGraphLayoutType, SAnchorItem } from '@saga-web/graph/lib';
|
|
|
-import { SFloorParser, SLineItem, SPolylineItem, SItemStatus, ItemOrder, STooltipItem, ItemColor } from "@saga-web/big";
|
|
|
+import { SFloorParser, SLineItem, SPolylineItem, SItemStatus, ItemOrder, STooltipItem, ItemColor,Transparency } from "@saga-web/big";
|
|
|
import { SGraphItem, SLineStyle, SGraphPropertyCommand, SImageItem, STextItem, SGraphPointListInsert, SGraphPointListDelete, SGraphPointListUpdate, SGraphAddCommand } from "@saga-web/graph/lib";
|
|
|
import { SGraphAddListCommand } from "./SGraphAddListCommand"
|
|
|
import { SGraphDeleteCommand } from "./SGraphDeleteCommand"
|
|
@@ -278,7 +278,8 @@ export class EditScence extends SGraphScene {
|
|
|
LineWidth: this._legend.LineWidth,
|
|
|
font: 0,
|
|
|
color: '',
|
|
|
- TextPos: { X: 0, Y: 0 }
|
|
|
+ TextPos: { X: 0, Y: 0 },
|
|
|
+ InfoTypeId:this._legend.InfoTypeId.length? this._legend.InfoTypeId :[]
|
|
|
},
|
|
|
}
|
|
|
let Polylines = null;
|
|
@@ -333,7 +334,8 @@ export class EditScence extends SGraphScene {
|
|
|
font: 12,
|
|
|
color: '',
|
|
|
FID: item.data.SourceId,
|
|
|
- TextPos: { X: item.data.Location.Points[0].X, Y: -item.data.Location.Points[0].Y }
|
|
|
+ TextPos: { X: item.data.Location.Points[0].X, Y: -item.data.Location.Points[0].Y },
|
|
|
+ InfoTypeId:this._legend.InfoTypeId.length? this._legend.InfoTypeId :[]
|
|
|
},
|
|
|
}
|
|
|
let Polylines = null;
|
|
@@ -451,7 +453,8 @@ export class EditScence extends SGraphScene {
|
|
|
font: 12, //font
|
|
|
color: '', //字体颜色
|
|
|
GraphCategoryId: this._legend.GraphCategoryId,
|
|
|
- InfoSystemId: InfoSystemId //信息工程话分类ID分类
|
|
|
+ InfoSystemId: InfoSystemId, //信息工程话分类ID分类
|
|
|
+ InfoTypeId:this._legend.InfoTypeId.length? this._legend.InfoTypeId :[]// 铺位可视化Typeid(用于编辑工程信息化时默认问题)
|
|
|
},
|
|
|
}
|
|
|
const item = new SImageLegendItem(null, LegendData);
|
|
@@ -680,9 +683,10 @@ export class EditScence extends SGraphScene {
|
|
|
*/
|
|
|
upadatfillColor(fillColor: string): void {
|
|
|
if (this.focusItem && this.focusItem.fillColor) {
|
|
|
- const newMsg = new SColor(fillColor);
|
|
|
+ const fillColorT = fillColor+Transparency[20];
|
|
|
+ const newMsg = new SColor(fillColorT);
|
|
|
const oldMsg = this.focusItem.fillColor;
|
|
|
- this.focusItem.fillColor = new SColor(fillColor);
|
|
|
+ this.focusItem.fillColor = new SColor(fillColorT);
|
|
|
this.undoStack.push(new SGraphPropertyCommand(this, this.focusItem, "num", oldMsg, newMsg));
|
|
|
}
|
|
|
}
|