bill vor 1 Jahr
Ursprung
Commit
be291202f7
2 geänderte Dateien mit 10 neuen und 11 gelöschten Zeilen
  1. 8 9
      src/app/liantong/index.ts
  2. 2 2
      src/board/packages/whole-line/style.ts

+ 8 - 9
src/app/liantong/index.ts

@@ -114,12 +114,6 @@ export const createBoard = (
       } as any);
       board.history.clear();
     },
-    hidenPois() {
-      const pois = board.tree.entrys.pois as Entity[];
-      pois.forEach((poi) => {
-        poi.shape.hide();
-      });
-    },
     setCamera(camera: OrthographicCamera) {
       // -1 - 1转到屏幕
       // const bound = board.bound.bound;
@@ -174,15 +168,20 @@ export const createBoard = (
       });
     },
     showPois() {
-      if (!board.tree.entrys) return;
+      if (!board.tree.entrys.pois) return;
       const pois = board.tree.entrys.pois as Entity[];
       pois.forEach((poi) => {
         poi.shape.show();
       });
     },
+    hidenPois() {
+      if (!board.tree.entrys.pois) return;
+      const pois = board.tree.entrys.pois as Entity[];
+      pois.forEach((poi) => {
+        poi.shape.hide();
+      });
+    },
     addPoi(type: string) {
-      if (!board.tree.entrys) return;
-
       board.tree.bus.emit("dataChangeBefore");
       const { promise, interrupt } = addEntityAttrib(board.tree, (pos) => {
         const attrib = {

+ 2 - 2
src/board/packages/whole-line/style.ts

@@ -9,9 +9,9 @@ import { DEV } from "../../env";
 
 export const point = {
   fill: "#ffffff",
-  radius: 3,
+  radius: 6,
   stroke: "#409EFF",
-  strokeWidth: 2,
+  strokeWidth: 3,
   zIndex: 3,
   hitStrokeWidth: 5,
   activeFill: "#ffffff",