YaolongHan 4 years ago
parent
commit
8785fd29f6
2 changed files with 2 additions and 8 deletions
  1. 1 1
      persagy-web-graph/package.json
  2. 1 7
      persagy-web-graph/src/SGraphItem.ts

+ 1 - 1
persagy-web-graph/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@persagy-web/graph",
-    "version": "2.2.32",
+    "version": "2.2.33",
     "description": "博锐尚格二维图形引擎。",
     "main": "lib/index.js",
     "types": "lib/index.d.js",

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

@@ -215,6 +215,7 @@ export class SGraphItem extends SObject {
     private _data: any | null = null;
     set data(d: any) {
         this._data = d;
+
         this.update();
     }
     get data(): any | null {
@@ -658,13 +659,6 @@ export class SGraphItem extends SObject {
     }
 
     /**
-     * 初始化数据
-     */
-    initData(): void {
-        // do nothing
-    }
-
-    /**
      * 移动 item 后的处理,计算其他信息,将原点置为场景原点
      *
      * @param x   x 坐标