|
@@ -96,7 +96,30 @@ export default class UIControl{
|
|
|
case 'update':
|
|
|
if(type == VectorType.Tag){
|
|
|
const tag = floorplanService.getTag(item.vectorId)
|
|
|
- tag.setValue(value)
|
|
|
+ if(value.hasOwnProperty('version')){
|
|
|
+ tag.setColor(value.color)
|
|
|
+ tag.setFontSize(value.fontSize)
|
|
|
+ tag.setValue(value.content)
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ tag.setValue(value)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if(type == VectorType.Arrow){
|
|
|
+ const arrow = floorplanService.getArrow(item.vectorId)
|
|
|
+ arrow.setColor(value.color)
|
|
|
+ }
|
|
|
+ else if(type == VectorType.Wall){
|
|
|
+ const wall = floorplanService.getWall(item.vectorId)
|
|
|
+ wall.setColor(value.color)
|
|
|
+ }
|
|
|
+ else if(type == VectorType.Rectangle){
|
|
|
+ const rectangle = floorplanService.getRectangle(item.vectorId)
|
|
|
+ rectangle.setColor(value.color)
|
|
|
+ }
|
|
|
+ else if(type == VectorType.Circle){
|
|
|
+ const circle = floorplanService.getCircle(item.vectorId)
|
|
|
+ circle.setColor(value.color)
|
|
|
}
|
|
|
else if(type == VectorType.Table){
|
|
|
const table = floorplanService.getTable(item.vectorId)
|