Ver código fonte

big:fix:修改spath问题

haojianlong 4 anos atrás
pai
commit
58e360fc95

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

@@ -1,6 +1,6 @@
 {
     "name": "@saga-web/big",
-    "version": "1.0.116",
+    "version": "1.0.118",
     "description": "上格云建筑信息化库",
     "main": "lib/index.js",
     "types": "lib/index.d.js",
@@ -42,6 +42,6 @@
         "typescript": "^3.9.7"
     },
     "dependencies": {
-        "@saga-web/graph": "2.1.127"
+        "@saga-web/graph": "2.1.133"
     }
 }

+ 3 - 3
saga-web-big/src/items/floor/SBoardItem.ts

@@ -18,7 +18,7 @@
  * ********************************************************************************************************************
  */
 
-import { SPainter, SPath2D, SPoint, SColor } from "@saga-web/draw/lib";
+import { SPainter, SPath, SPoint, SColor } from "@saga-web/draw/lib";
 import { Zone } from "../../types/floor/Zone";
 import { ItemColor, ItemOrder } from "../..";
 import { SGraphItem } from "@saga-web/graph/lib";
@@ -34,7 +34,7 @@ export class SBoardItem extends SGraphItem {
     /** 空间轮廓线坐标list  */
     readonly pointArr: SPoint[][][] = [];
     /** path    */
-    private pathList: SPath2D[] = [];
+    private pathList: SPath[] = [];
 
     /**
      * 构造函数
@@ -53,7 +53,7 @@ export class SBoardItem extends SGraphItem {
         ) {
             let tempArr = this.data.OutLine;
             this.pointArr = tempArr.map((t): SPoint[][] => {
-                let sPath = new SPath2D();
+                let sPath = new SPath();
                 let tempArr = t.map((it): SPoint[] => {
                     let array = it.map(
                         (item): SPoint => {

+ 1 - 13
saga-web-big/src/items/floor/SSpaceItem.ts

@@ -51,7 +51,7 @@ export class SSpaceItem extends SGraphItem {
     /** Y坐标最大值  */
     maxY = Number.MIN_SAFE_INTEGER;
     /** path对象      */
-    // private path = new SPath2D();
+    // private path = new SPath();
     /** 高亮状态    */
     private _highLightFlag: boolean = false;
     get highLightFlag(): boolean {
@@ -155,18 +155,6 @@ export class SSpaceItem extends SGraphItem {
         );
     } // Function boundingRect()
 
-    /**
-     * 鼠标单击事件
-     *
-     * @param	event         事件参数
-     * @return	boolean
-     */
-    onMouseDown(event: SMouseEvent): boolean {
-        this.$emit("onMouseDown", event);
-        super.onMouseDown(event);
-        return true;
-    } // Function onMouseDown()
-
     // /**
     //  * 鼠标移动事件
     //  *

+ 2 - 2
saga-web-big/src/items/floor/SSpaceItemSS.ts

@@ -21,7 +21,7 @@
 import {
     SColor,
     SPainter,
-    SPath2D,
+    SPath,
     SPoint,
     SPolygonUtil,
     SRect,
@@ -52,7 +52,7 @@ export class SSpaceItem extends SGraphItem {
     /** Y坐标最大值  */
     maxY = Number.MIN_SAFE_INTEGER;
     /** path对象      */
-    private path = new SPath2D();
+    private path = new SPath();
     /** 高亮状态    */
     private _highLightFlag: boolean = false;
     get highLightFlag(): boolean {

+ 2 - 2
saga-web-big/src/items/floor/SWallItem.ts

@@ -18,7 +18,7 @@
  * ********************************************************************************************************************
  */
 
-import { SPainter, SPath2D, SPoint, SRect } from "@saga-web/draw/lib";
+import { SPainter, SPath, SPoint, SRect } from "@saga-web/draw/lib";
 import { Wall } from "../../types/floor/Wall";
 import { ItemOrder } from "../..";
 import { ItemColor } from "../..";
@@ -45,7 +45,7 @@ export class SWallItem extends SGraphItem {
     /** 墙内轮廓线坐标list  */
     private readonly holesArr: SPoint[][] = [];
     /** path对象      */
-    private path = new SPath2D();
+    private path = new SPath();
 
     /**
      * 构造函数

+ 3 - 3
saga-web-big/src/items/floor/ZoneItem.ts

@@ -21,7 +21,7 @@
 import {
     SColor,
     SPainter,
-    SPath2D,
+    SPath,
     SPoint,
     SPolygonUtil,
     SRect
@@ -50,7 +50,7 @@ export class SZoneItem extends SGraphItem {
     /** Y坐标最大值  */
     private maxY = Number.MIN_SAFE_INTEGER;
     /** path    */
-    private pathList: SPath2D[] = [];
+    private pathList: SPath[] = [];
     /** 点击位置坐标  */
     private clickPoint: SPoint | undefined;
     /** 选中时的颜色  */
@@ -114,7 +114,7 @@ export class SZoneItem extends SGraphItem {
             this.maxY = this.minY;
             // 处理轮廓点数组,同时计算最大最小值
             this.pointArr = tempArr.map((t): SPoint[][] => {
-                let sPath = new SPath2D();
+                let sPath = new SPath();
                 let tempArr = t.map((it): SPoint[] => {
                     let array = it.map(
                         (item): SPoint => {

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

@@ -1,6 +1,6 @@
 {
     "name": "@saga-web/feng-map",
-    "version": "1.0.48",
+    "version": "1.0.50",
     "description": "上格云Web平面图。",
     "main": "lib/index.js",
     "types": "lib/index.d.js",
@@ -33,7 +33,7 @@
         "typescript": "^3.9.7"
     },
     "dependencies": {
-        "@saga-web/big": "1.0.116",
+        "@saga-web/big": "1.0.118",
         "axios": "^0.18.0"
     }
 }