|
@@ -124,7 +124,6 @@ const fixJoinBase = (data: FixPoint, fix3d: FixPoint3D) => {
|
|
|
return basePoint ? { ...basePoint.pos } : null;
|
|
|
},
|
|
|
(basePos) => {
|
|
|
- console.error(basePos);
|
|
|
if (!basePos) {
|
|
|
stopBasePosWatch();
|
|
|
} else {
|
|
@@ -172,7 +171,6 @@ export const getFix3d = (data: FixPoint) => {
|
|
|
|
|
|
if (data.measure) {
|
|
|
fix3d.bus.on("measureChange", (p) => {
|
|
|
- console.log(p);
|
|
|
Object.assign(data, {
|
|
|
lines: p.map((item) => ({ points: item?.line, dis: item?.dis })),
|
|
|
});
|
|
@@ -181,7 +179,6 @@ export const getFix3d = (data: FixPoint) => {
|
|
|
|
|
|
if (args.graph) {
|
|
|
fix3d.bus.on("graphChange", (p) => {
|
|
|
- console.log(data);
|
|
|
Object.assign(data, { points: p?.path, pos: p?.center });
|
|
|
});
|
|
|
}
|
|
@@ -206,7 +203,6 @@ export const quitMeasure = (data: FixPoint) => {
|
|
|
export const selectFix3d = (data: FixPoint, selected: boolean) => {
|
|
|
const fix3d = fix3ds[data.id];
|
|
|
if (fix3d) {
|
|
|
- console.error(selected, "select", data.id);
|
|
|
fix3d.selected(selected);
|
|
|
}
|
|
|
};
|
|
@@ -221,7 +217,9 @@ export const changePos = (data: FixPoint, pos: FixPoint["pos"]) => {
|
|
|
|
|
|
export const delFix3d = (data) => {
|
|
|
const fix3d = fix3ds[data.id];
|
|
|
+ console.error(data.id);
|
|
|
if (fix3d) {
|
|
|
+ console.error("fix3d.destroy");
|
|
|
fix3d.destroy();
|
|
|
let index = drawingFix3d.value.indexOf(fix3d);
|
|
|
if (~index) {
|