haojianlong 4 years ago
parent
commit
7cca9ea8e7
2 changed files with 5 additions and 5 deletions
  1. 2 2
      docs/.vuepress/components/engine/shape/path.vue
  2. 3 3
      package.json

+ 2 - 2
docs/.vuepress/components/engine/shape/path.vue

@@ -21,9 +21,9 @@ class TestView222 extends SCanvasView {
         super('pathCanvas');
         this.path = new SPath();
         // @ts-ignore
-        this.path.polygon([{x: 700, y: 150}, {x: 0, y: 150}, {x: 0, y: 0}]);
+        this.path.polygon([{x: 0, y: 0}, {x: 0, y: 200}, {x: 200, y: 200}, {x: 200, y: 0}]);
         // @ts-ignore
-        this.path.polygon([{x: 100, y: 100}, {x: 100, y: 200}, {x: 200, y: 200}]);
+        this.path.polygon([{x: 150, y: 150},{x: 250, y: 150}, {x: 250, y: 250}, {x: 150, y: 250} ]);
         // this.path.polygon([{x:0,y:0},{x:0,y:150},{x:700,y:150}]);
         // this.path.polygon([{x:200,y:200},{x:100,y:200},{x:100,y:100}]);
     }

+ 3 - 3
package.json

@@ -15,9 +15,9 @@
   "dependencies": {
     "@persagy-vue/doc": "1.1.36",
     "@persagy-web/base": "2.2.1",
-    "@persagy-web/big": "2.2.48",
-    "@persagy-web/draw": "2.2.12",
-    "@persagy-web/graph": "2.2.44",
+    "@persagy-web/big": "2.2.49",
+    "@persagy-web/draw": "2.2.13",
+    "@persagy-web/graph": "2.2.45",
     "axios": "^0.19.2",
     "element-ui": "^2.12.0",
     "vue": "^2.6.10",