|
@@ -49,18 +49,9 @@ path.changeCanEdit(false);
|
|
|
|
|
|
watchEffect(() => path.visibilityName(props.path.showName));
|
|
|
|
|
|
-const toCameraDistance = ref(path.toCameraDistance);
|
|
|
-path.bus.on("toCameraDistanceChange", (v) => (toCameraDistance.value = v));
|
|
|
-const show = computed(
|
|
|
- () =>
|
|
|
- !props.path.points.length ||
|
|
|
- props.path.globalVisibility ||
|
|
|
- toCameraDistance.value <= Math.pow(props.path.visibilityRange, 2)
|
|
|
-);
|
|
|
watchEffect(() => {
|
|
|
- console.log(props.path);
|
|
|
- console.error("globalVisibility", show.value);
|
|
|
- // path.visibility(show.value);
|
|
|
+ const range = props.path.globalVisibility ? -1 : props.path.visibilityRange;
|
|
|
+ path.changeVisibilityRange(range);
|
|
|
});
|
|
|
|
|
|
let currentPoints = props.path.points;
|
|
@@ -72,7 +63,6 @@ path.bus.on("changePoints", (points) => {
|
|
|
position: { ...p.position },
|
|
|
modelId: p.modelId,
|
|
|
}));
|
|
|
- console.log("updatePoints", currentPoints);
|
|
|
emit("updatePoints", currentPoints);
|
|
|
});
|
|
|
watchEffect(() => {
|