Browse Source

更新多边形 折线 命令存储传参

haojianlong 5 years ago
parent
commit
8ee851ea21

+ 2 - 2
saga-web-big/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@saga-web/big",
-    "version": "1.0.61",
+    "version": "1.0.62",
     "description": "上格云建筑信息化库",
     "main": "lib/index.js",
     "types": "lib/index.d.js",
@@ -42,6 +42,6 @@
         "typescript": "^3.9.3"
     },
     "dependencies": {
-        "@saga-web/graph": "2.1.98"
+        "@saga-web/graph": "2.1.99"
     }
 }

+ 1 - 1
saga-web-big/src/items/SPolygonItem.ts

@@ -426,7 +426,7 @@ export class SPolygonItem extends SGraphItem {
      */
     protected recordAction(SGraphCommand: any, any: any[]): void {
         // 记录相关命令并推入堆栈中
-        const sgraphcommand = new SGraphCommand(this, ...any);
+        const sgraphcommand = new SGraphCommand(this.scene, this, ...any);
         if (this.undoStack) {
             this.undoStack.push(sgraphcommand);
         }

+ 1 - 1
saga-web-big/src/items/SPolylineItem.ts

@@ -371,7 +371,7 @@ export class SPolylineItem extends SGraphItem {
      */
     protected recordAction(SGraphCommand: any, any: any[]): void {
         // 记录相关命令并推入堆栈中
-        const command = new SGraphCommand(this, ...any);
+        const command = new SGraphCommand(this.scene, this, ...any);
         if (this.undoStack) {
             this.undoStack.push(command);
         }

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

@@ -1,6 +1,6 @@
 {
     "name": "@saga-web/graph",
-    "version": "2.1.98",
+    "version": "2.1.99",
     "description": "上格云二维图形引擎。",
     "main": "lib/index.js",
     "types": "lib/index.d.js",