|
@@ -1334,7 +1334,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
|
|
|
tag.lineLength + disToSpot
|
|
|
}, */
|
|
|
getImageCenter(){
|
|
|
- return tag.spot.getWorldPosition(new THREE.Vector3)
|
|
|
+ return tag.titleLabel.getWorldPosition(new THREE.Vector3)
|
|
|
},
|
|
|
/* toCameraDistance(far){//多远会消失
|
|
|
tag.farSquared = far * far
|
|
@@ -1437,6 +1437,61 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
|
|
|
}, */
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /* export type PathProps = {
|
|
|
+ line: {
|
|
|
+ width: number,
|
|
|
+ color: string,
|
|
|
+ altitudeAboveGround: number
|
|
|
+ position: SceneLocalPos,
|
|
|
+ modelId: string
|
|
|
+ },
|
|
|
+ points: {
|
|
|
+ position: SceneLocalPos,
|
|
|
+ modelId: string,
|
|
|
+ }[]
|
|
|
+ } */
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ createPath(props) => Path
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ export type Path = {
|
|
|
+ bus: Emitter<{
|
|
|
+ // 标注点击事件
|
|
|
+ click: void;
|
|
|
+ // 鼠标移入标注事件
|
|
|
+ enter: void;
|
|
|
+ // 鼠标移出标注事件
|
|
|
+ leave: void;
|
|
|
+ // 顶部标注中心点像素位置更改事件, 传出像素位置
|
|
|
+ lineTopPositionChange: SceneLocalPos
|
|
|
+ // 路径点位置变更
|
|
|
+ changePoints: PathProps['points']
|
|
|
+ // 距离相机位置变更
|
|
|
+ toCameraDistanceChange: number
|
|
|
+ }>;
|
|
|
+ // 是否可编辑
|
|
|
+ changeCanEdit: (canMove: boolean) => void
|
|
|
+ // 标注可见性
|
|
|
+ visibility: (visibility: boolean) => void
|
|
|
+ // 更改标题气泡属性
|
|
|
+ changeLine: (props: Partial<PathProps['line']>) => void
|
|
|
+ // 顶标注中心像素位置
|
|
|
+ lineTopPosition: ScreenLocalPos
|
|
|
+ // 距离相机位置
|
|
|
+ toCameraDistance: number
|
|
|
+ // 线段销毁
|
|
|
+ destory: () => void
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
showGrid() {
|
|
|
Potree.Utils.updateVisible(viewer.modules.MergeEditor.ground, 'hideGrid', true)
|
|
|
viewer.dispatchEvent('content_changed')
|
|
@@ -1692,7 +1747,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+/* class path = */
|
|
|
|
|
|
|
|
|
/*
|