haojianlong 4 年之前
父節點
當前提交
aa477e07ce

+ 1 - 1
docs/.vuepress/components/big/MapDemo.vue

@@ -30,7 +30,7 @@
             this.view!!.scene = scene;
             let parser = new SFloorParser();
             // @ts-ignore
-            parser.parseData(this[`map${id}`].EntityList[0].Elements);
+            parser.parseData(JSON.parse(JSON.stringify(this[`map${id}`].EntityList[0].Elements)));
             parser.spaceList.forEach(t => scene.addItem(t));
             parser.wallList.forEach(t => scene.addItem(t));
             parser.virtualWallList.forEach(t => scene.addItem(t));

+ 1 - 1
docs/.vuepress/components/big/items/space.vue

@@ -28,7 +28,7 @@
             this.view.scene = scene;
             // 只模拟了轮廓数据
             // @ts-ignore
-            const item = new SSpaceItem(null,{OutLine:this.outline1});
+            const item = new SSpaceItem(null,{OutLine:this.outline1, Name:'测试',Location:{Points:[{X:65,Y:20}]}});
             scene.addItem(item);
             // 只模拟了轮廓数据
             // @ts-ignore

+ 1 - 1
docs/.vuepress/components/scene/items/area.vue

@@ -14,7 +14,7 @@
         id: string = uuid();
         view: SGraphView | undefined;
         areaData = {
-            OutLine: [
+            Outline: [
                 [
                     [{X:0,Y:0},{X:0,Y:1000},{X:1000,Y:1000},{X:1000,Y:0}],
                     [{X:200,Y:200},{X:800,Y:200},{X:800,Y:800},{X:200,Y:800}]

+ 2 - 2
docs/guides/format/systemJson.md

@@ -54,7 +54,7 @@
             Type: '',                           // 节点类型(image / zone)
             Pos: {X: 0, Y: 0},                  // 位置
             Scale: {X: 1, Y: 1, Z: 1},          // 缩放
-            Rolate: {X: 0, Y: 0, Z: 0},         // 旋转
+            Rotate: {X: 0, Y: 0, Z: 0},         // 旋转
             Size: {Width:0, Height: 0},         // 大小
             AnchorList:[
                     {
@@ -83,7 +83,7 @@
             Type: '',                           // 图标(Image),线类型(Line),文本(Text)
             Pos: {X: 0, y: 0},                  // 位置
             Scale: {X: 1, Y: 1, Z: 1},          // 缩放
-            Rolate: {X: 0, Y: 0, Z: 0},         // 旋转
+            Rotate: {X: 0, Y: 0, Z: 0},         // 旋转
             Size: {Width: 0, Height: 0},        // 大小
             Properties: {}                      // 由应用自己定义
         },

+ 4 - 4
docs/guides/system-diagram/json-file.md

@@ -49,10 +49,10 @@
             AttachObjectIds:[],                 // 返回工程信息化对象 ID 列表
             GraphElementType: '',               // 图例类型 None/Line/Zone/Image:非图例/线条/区域类型/图标
             GraphElementId: '',                 // 对应的图元ID
-            Num: 1                              //图例数量
+            Num: 1                              // 图例数量
             Pos: {X: 0, Y: 0},                  // 位置
             Scale: {X: 1, Y: 1, Z: 1},          // 缩放
-            Rolate: {X: 0, Y: 0, Z: 0},         // 旋转
+            Rotate: {X: 0, Y: 0, Z: 0},         // 旋转
             Size: {Width:0, Height: 0},         // 大小
             AnchorList:[
                     {
@@ -81,7 +81,7 @@
             Type: '',                           // 图标(Image),线类型(Line),文本(Text)
             Pos: {X: 0, y: 0},                  // 位置
             Scale: {X: 1, Y: 1, Z: 1},          // 缩放
-            Rolate: {X: 0, Y: 0, Z: 0},         // 旋转
+            Rotate: {X: 0, Y: 0, Z: 0},         // 旋转
             Size: {Width:0, Height: 0},         // 大小
             Properties: {}                      // 由应用自己定义
         },
@@ -109,4 +109,4 @@
         ...
     ]
 ```
-```
+```

+ 2 - 2
package.json

@@ -14,8 +14,8 @@
   "dependencies": {
     "@persagy-web/base": "2.2.1",
     "@persagy-web/big": "2.2.7",
-    "@persagy-web/draw": "2.2.5",
-    "@persagy-web/graph": "2.2.9",
+    "@persagy-web/draw": "2.2.6",
+    "@persagy-web/graph": "2.2.11",
     "axios": "^0.19.2",
     "element-ui": "^2.12.0",
     "vue": "^2.6.10",