|
|
|
@ -85,7 +85,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
// 标记
|
|
|
|
|
this.canvasData.isChange = true; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.emit('deleteIcon'); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
// // 测试代码
|
|
|
|
@ -210,6 +210,21 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 设置高亮 |
|
|
|
|
*/ |
|
|
|
|
public setHighlight(ids: string[]): void { |
|
|
|
|
ids.forEach(item => { |
|
|
|
|
const obj = this.backgroundImage.getChildByName(item); |
|
|
|
|
if (obj instanceof MultipointIcon) { |
|
|
|
|
obj.setPointVisiable(true); |
|
|
|
|
} else if (obj instanceof PolygonIcon) { |
|
|
|
|
obj.setPointVisiable(true); |
|
|
|
|
} else { |
|
|
|
|
obj.filters = [this.outlineFilterGreen]; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 刷新 |
|
|
|
|
*/ |
|
|
|
@ -305,6 +320,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
enterPaintEndButton |
|
|
|
|
.on('mousedown', event => { |
|
|
|
|
event.stopPropagation(); |
|
|
|
|
this.emit('createIcon'); |
|
|
|
|
this.backgroundImage.removeChild(event.currentTarget); |
|
|
|
|
this.enterPaint(); |
|
|
|
|
}); |
|
|
|
@ -378,6 +394,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
} else { |
|
|
|
|
this.canvasData.originaleveryStoreyData.data[singleIcon.assetData.Id] = singleIcon.assetData; |
|
|
|
|
} |
|
|
|
|
this.emit('createIcon'); |
|
|
|
|
this.canvasData.isChange = true; |
|
|
|
|
break; |
|
|
|
|
case PaintMode.lineIcon: |
|
|
|
|