Forráskód Böngészése

设备类信息点样式的修改与保存

YaolongHan 4 éve
szülő
commit
d588ef6a4e
1 módosított fájl, 5 hozzáadás és 1 törlés
  1. 5 1
      persagy-web-big-edit/src/items/SBaseEquipment.ts

+ 5 - 1
persagy-web-big-edit/src/items/SBaseEquipment.ts

@@ -195,6 +195,8 @@ export class SBaseEquipment extends SBaseIconTextEdit {
             item.isTransform = false;
             item.showSelect = false;
             item.color = val.color ? new SColor(val.color) : new SColor('#000000');
+            item.backgroundColor = val.backgroundColor ?  new SColor(val.backgroundColor) : SColor.Transparent;
+            item.strokeColor = val.strokeColor ?  new SColor(val.strokeColor) : SColor.Transparent;
             item.connect('textSelect', this, this.textSelectChange)
             this.textItemList.push(item)
         } else {
@@ -242,7 +244,9 @@ export class SBaseEquipment extends SBaseIconTextEdit {
                 let obj = Object.assign(item.propertyData, {
                     pos: { x: item.x, y: item.y },
                     font: item.font.size,
-                    color: item.color.value
+                    color: item.color.value,
+                    backgroundColor:item.backgroundColor.value,
+                    strokeColor: item.strokeColor.value
                 })
                 delete obj.currentEquipMsg
                 infoPoinList.push(obj)