bill 1 éve
szülő
commit
b4ea283d4e
2 módosított fájl, 6 hozzáadás és 3 törlés
  1. 3 3
      src/app/liantong/icon.ts
  2. 3 0
      src/app/liantong/index.ts

+ 3 - 3
src/app/liantong/icon.ts

@@ -28,11 +28,11 @@ for (const key in svgs) {
     const svgAct = pathsToActShape({
       paths: svgs[key],
       size: [1000, 800],
-      realWidth: 100,
+      realWidth: 0.8,
       offset: [0, 100],
       strokeWidth: 5,
-      fixed: true,
-      strokeColor: "#000000",
+      fixed: false,
+      strokeColor: "#409EFF",
     });
 
     const paths = svgAct.shape.find<Path>(".path");

+ 3 - 0
src/app/liantong/index.ts

@@ -174,12 +174,15 @@ export const createBoard = (
       });
     },
     showPois() {
+      if (!board.tree.entrys) return;
       const pois = board.tree.entrys.pois as Entity[];
       pois.forEach((poi) => {
         poi.shape.show();
       });
     },
     addPoi(type: string) {
+      if (!board.tree.entrys) return;
+
       board.tree.bus.emit("dataChangeBefore");
       const { promise, interrupt } = addEntityAttrib(board.tree, (pos) => {
         const attrib = {