|
@@ -31,8 +31,8 @@ const getLineProps = () => ({
|
|
|
width: props.path.lineWidth,
|
|
|
color: props.path.lineColor,
|
|
|
altitudeAboveGround: props.path.lineAltitudeAboveGround,
|
|
|
- position: props.path.linePosition?.position || props.path.points[0]?.position,
|
|
|
- modelId: props.path.linePosition?.modelId || props.path.points[0]?.modelId,
|
|
|
+ position: props.path.linePosition?.position,
|
|
|
+ modelId: props.path.linePosition?.modelId,
|
|
|
});
|
|
|
|
|
|
const path = sdk.createPath({
|
|
@@ -44,7 +44,7 @@ const path = sdk.createPath({
|
|
|
line: getLineProps(),
|
|
|
points: props.path.points,
|
|
|
});
|
|
|
-console.log(props.path.points);
|
|
|
+console.log(getLineProps());
|
|
|
// path.changeCanEdit(false);
|
|
|
|
|
|
watchEffect(() => path.visibilityName(props.path.showName));
|
|
@@ -113,6 +113,7 @@ watch(
|
|
|
},
|
|
|
{ deep: true }
|
|
|
);
|
|
|
+
|
|
|
path.bus.on("linePositionChange", (position) => {
|
|
|
const p = {
|
|
|
position: { ...position.pos },
|