|
|
@@ -69,6 +69,7 @@ path.bus.on("changePoints", (points) => {
|
|
|
name: p.name,
|
|
|
position: { ...p.position },
|
|
|
modelId: p.modelId.toString(),
|
|
|
+ hide: p.hide || false,
|
|
|
}));
|
|
|
emit("updatePoints", currentPoints);
|
|
|
});
|
|
|
@@ -79,6 +80,7 @@ path.bus.on("changeLineHeight", (val) => {
|
|
|
|
|
|
watchEffect(() => {
|
|
|
path.changeName(props.path.name);
|
|
|
+ path.changeHide(props.path.hide || false);
|
|
|
});
|
|
|
|
|
|
watch(
|
|
|
@@ -98,6 +100,7 @@ watchEffect(() => {
|
|
|
for (const point of props.path.points) {
|
|
|
watchEffect(() => {
|
|
|
const ndx = props.path.points.indexOf(point);
|
|
|
+ console.log(ndx, 'watchEffect', ~ndx);
|
|
|
if (~ndx) {
|
|
|
path.changePointName(ndx, point.name);
|
|
|
currentPoints[ndx].name = point.name;
|