YaolongHan 4 gadi atpakaļ
vecāks
revīzija
d1e84ca9ba

+ 1 - 6
persagy-web-big/src/items/SEquipItem.ts

@@ -94,12 +94,11 @@ export class SEquipItem extends SIconTextItem {
      * @params index 文本索引
      */
     setTextItem(val: any, index: number): void {
-        if (val.checked) {
             let item = new STextItem(this);
             item.data = val;
             item.text = val.name;
             if (val.pos) {
-                item.moveTo(val.pos.x, val.pos.x);
+                item.moveTo(val.pos.x, val.pos.y);
             } else {
                 item.moveTo(
                     this.img.width * 0.5,
@@ -114,9 +113,5 @@ export class SEquipItem extends SIconTextItem {
                 ? new SColor(val.color)
                 : new SColor("#000000");
             this.textItemList.push(item);
-        } else {
-            this.textItemList.splice(index, 1);
-            this.scene ? this.scene.removeItem(this.textItemList[index]) : "";
-        }
     }
 }

+ 0 - 1
persagy-web-graph/src/SGraphItem.ts

@@ -215,7 +215,6 @@ export class SGraphItem extends SObject {
     private _data: any | null = null;
     set data(d: any) {
         this._data = d;
-        // this.initData();
         this.update();
     }
     get data(): any | null {