Kaynağa Gözat

联通添加碰撞检测

bill 1 yıl önce
ebeveyn
işleme
2bb80b2d24
2 değiştirilmiş dosya ile 0 ekleme ve 4 silme
  1. 0 1
      src/board/packages/poi/edit-poi.ts
  2. 0 3
      src/board/shared/act.ts

+ 0 - 1
src/board/packages/poi/edit-poi.ts

@@ -47,7 +47,6 @@ export class EditPoi<T extends PoiAttrib = PoiAttrib> extends Poi<T> {
     });
     rect.on("transformend", () => {
       if (needUpdate) {
-        console.log("end");
         this.container.bus.emit("dataChange");
       }
       this.container.bus.emit("dataChangeAfter");

+ 0 - 3
src/board/shared/act.ts

@@ -3,7 +3,6 @@ import { Rect } from "konva/lib/shapes/Rect";
 import { getRealAbsoluteSize } from "./shape-helper";
 import { Group } from "konva/lib/Group";
 import { KonvaEventObject } from "konva/lib/Node";
-import { Circle } from "konva/lib/shapes/Circle";
 
 export type SVGPaths = (
   | string
@@ -109,8 +108,6 @@ export const pathsToActShape = (props: PathsToActShapeProps, test = true) => {
   const group = new Group();
   group.add(offsetGroup);
 
-  const c = new Circle({ fill: "red", radius: 0.06 });
-  group.add(c);
   return {
     getSize: () => {
       const size = rect.getSize();