|
@@ -237,14 +237,16 @@ export class EditScence extends SGraphScene {
|
|
|
* 增加多边形item lenged
|
|
|
*/
|
|
|
addPolygonItem(event: SMouseEvent): void {
|
|
|
- const SubType = this._legend.SubType ? this._legend.SubType : ''
|
|
|
+ const SubType = this._legend.SubType ? this._legend.SubType : '';
|
|
|
+ //获取信息工程化相关参数
|
|
|
+ const AttachObjectIds = this._legend.InfoLocal ? this._legend.InfoLocal : [];
|
|
|
const LegendData: Legend = {
|
|
|
ID: uuid(),
|
|
|
Name: this._legend.Name,
|
|
|
GraphElementType: this._legend.Type,
|
|
|
Num: 1,
|
|
|
GraphElementId: this._legend.Id,
|
|
|
- AttachObjectIds: [],
|
|
|
+ AttachObjectIds: AttachObjectIds,
|
|
|
Type: "Zone",
|
|
|
Pos: { X: event.x, Y: event.y },
|
|
|
OutLine: [{ X: event.x, Y: event.y }],
|
|
@@ -291,14 +293,15 @@ export class EditScence extends SGraphScene {
|
|
|
if (this.isSelecting && this._legend) {
|
|
|
//@ts-ignore
|
|
|
item.isExtracted = true
|
|
|
- const SubType = this._legend.SubType ? this._legend.SubType : ''
|
|
|
+ const SubType = this._legend.SubType ? this._legend.SubType : '';
|
|
|
+ const AttachObjectIds = this._legend.InfoLocal ? this._legend.InfoLocal : [];
|
|
|
const LegendData: Legend = {
|
|
|
ID: uuid(),
|
|
|
Name: this._legend.Name,
|
|
|
GraphElementType: this._legend.Type,
|
|
|
Num: 1,
|
|
|
GraphElementId: this._legend.Id,
|
|
|
- AttachObjectIds: [],
|
|
|
+ AttachObjectIds: AttachObjectIds,
|
|
|
Type: "Zone",
|
|
|
Pos: { X: item.x, Y: item.y },
|
|
|
OutLine: item.pointArr[0],
|
|
@@ -406,13 +409,15 @@ export class EditScence extends SGraphScene {
|
|
|
* 增加图标lenged图标
|
|
|
*/
|
|
|
addIconItem(event: SMouseEvent): void {
|
|
|
+ //获取信息工程化相关参数
|
|
|
+ const AttachObjectIds = this._legend.InfoLocal ? this._legend.InfoLocal : [];
|
|
|
const LegendData: Legend = {
|
|
|
ID: uuid(),
|
|
|
Name: this._legend.Name,
|
|
|
GraphElementType: this._legend.Type,
|
|
|
Num: 1,
|
|
|
GraphElementId: this._legend.Id,
|
|
|
- AttachObjectIds: [],
|
|
|
+ AttachObjectIds: AttachObjectIds,
|
|
|
Pos: { X: event.x, Y: event.y },
|
|
|
Scale: { X: 1, Y: 1, Z: 1 }, // 缩放
|
|
|
Rolate: { X: 0, Y: 0, Z: 0 },
|
|
@@ -644,6 +649,16 @@ export class EditScence extends SGraphScene {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 更新工程信息化的相关数据
|
|
|
+ * @param AttachObjectIds Array
|
|
|
+ */
|
|
|
+ upadatAttachObjectIds(AttachObjectIds: []): void {
|
|
|
+ if (this.focusItem) {
|
|
|
+ this.focusItem.data.AttachObjectIds = AttachObjectIds;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 删除指定item
|
|
|
*/
|
|
@@ -836,7 +851,7 @@ export class EditScence extends SGraphScene {
|
|
|
|
|
|
/**
|
|
|
* 设置结束锚点
|
|
|
- *
|
|
|
+ *
|
|
|
*/
|
|
|
setTipeEndanchor(event: SMouseEvent): void {
|
|
|
if (this.grabItem instanceof TipelineItem) {
|