|
@@ -25,6 +25,7 @@ const emit = defineEmits<{
|
|
|
(e: "delete"): void;
|
|
|
(e: "updateLinePosition", val: Path["linePosition"]): void;
|
|
|
(e: "updatePoints", val: Path["points"]): void;
|
|
|
+ (e: "updateLineHeight", val: Path["lineAltitudeAboveGround"]): void;
|
|
|
}>();
|
|
|
|
|
|
const getLineProps = () => ({
|
|
@@ -69,6 +70,11 @@ path.bus.on("changePoints", (points) => {
|
|
|
}));
|
|
|
emit("updatePoints", currentPoints);
|
|
|
});
|
|
|
+path.bus.on("changeLineHeight", (val) => {
|
|
|
+ console.log("changeHeight");
|
|
|
+ emit("updateLineHeight", val);
|
|
|
+ clearTimeout(changLineTimeout);
|
|
|
+});
|
|
|
watchEffect(() => {
|
|
|
path.changeName(props.path.name);
|
|
|
});
|