|
|
@@ -65,6 +65,7 @@ let currentPoints = props.path.points;
|
|
|
let changPointsTimeout: any;
|
|
|
path.bus.on("changePoints", (points) => {
|
|
|
clearTimeout(changPointsTimeout);
|
|
|
+ console.log('points', points)
|
|
|
currentPoints = points.map((p, ndx) => ({
|
|
|
name: p.name,
|
|
|
position: { ...p.position },
|
|
|
@@ -79,8 +80,8 @@ path.bus.on("changeLineHeight", (val) => {
|
|
|
});
|
|
|
|
|
|
watchEffect(() => {
|
|
|
+ console.log('changePointDisplay', props.path)
|
|
|
path.changeName(props.path.name);
|
|
|
- path.changeHide(props.path.hide || false);
|
|
|
});
|
|
|
|
|
|
watch(
|
|
|
@@ -100,9 +101,10 @@ watchEffect(() => {
|
|
|
for (const point of props.path.points) {
|
|
|
watchEffect(() => {
|
|
|
const ndx = props.path.points.indexOf(point);
|
|
|
- console.log(ndx, 'watchEffect', ~ndx);
|
|
|
+ console.log(ndx, 'watchEffect', ~ndx, props.path);
|
|
|
if (~ndx) {
|
|
|
path.changePointName(ndx, point.name);
|
|
|
+ path.changePointDisplay && path.changePointDisplay(ndx, props.path.show || false);
|
|
|
currentPoints[ndx].name = point.name;
|
|
|
}
|
|
|
});
|