|
@@ -85,7 +85,6 @@ export const extendLinesOverlap = (
|
|
|
if (has(key)) continue;
|
|
|
set(key);
|
|
|
watchEffect((onCleanup) => {
|
|
|
- console.log(points.value)
|
|
|
const polygons = getExtendPolygons(
|
|
|
{ ...line1, points: points.value },
|
|
|
joinLines[j]
|
|
@@ -102,8 +101,13 @@ export const extendLinesOverlap = (
|
|
|
);
|
|
|
};
|
|
|
|
|
|
+ watchEffect((onCleanup) => {
|
|
|
+ console.log(data.lines.indexOf(line1))
|
|
|
+ onCleanup(() => 'has?')
|
|
|
+ })
|
|
|
+
|
|
|
const stopWatch = watch(
|
|
|
- () => (line1.a + line1.b + data.lines.includes(line1) ? "exixts" : ""),
|
|
|
+ () => [line1, line1.a, line1.b],
|
|
|
() => {
|
|
|
if (!data.lines.includes(line1)) {
|
|
|
return stopWatch();
|