bill 8 hónapja
szülő
commit
8f142bc213
3 módosított fájl, 839 hozzáadás és 1054 törlés
  1. 836 1051
      pnpm-lock.yaml
  2. 2 2
      src/components/path/sign.vue
  3. 1 1
      src/sdk/cover/index.js

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 836 - 1051
pnpm-lock.yaml


+ 2 - 2
src/components/path/sign.vue

@@ -31,9 +31,9 @@ const getLineProps = () => ({
   width: props.path.lineWidth,
   color: props.path.lineColor,
   altitudeAboveGround: props.path.lineAltitudeAboveGround,
-  position: props.path.linePosition?.position || props.path.points[0].position,
+  position: props.path.linePosition?.position || props.path.points[0]?.position,
   normal: props.path.linePosition?.normal || { x: 0, y: 0, z: 1 },
-  modelId: props.path.linePosition?.modelId || props.path.points[0].modelId,
+  modelId: props.path.linePosition?.modelId || props.path.points[0]?.modelId,
 });
 
 const path = sdk.createPath({

+ 1 - 1
src/sdk/cover/index.js

@@ -1262,7 +1262,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
 
                 path = viewer.measuringTool.startInsertion( info, () => { 
                     bus.emit("end", ret); //完成  
-                }   
+                }   )
             }else{
                 info.dataset_points = props.points.map(e=>e.modelId)
                 info.points_datasets = props.points.map(e=>e.position)