@jorgmoritz/gis-manager 0.1.35 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{VertexDetailInfo-Cz9y16HG.d.cts → VertexDetailInfo-DYr1P_fe.d.cts} +7 -3
- package/dist/{VertexDetailInfo-Cz9y16HG.d.ts → VertexDetailInfo-DYr1P_fe.d.ts} +7 -3
- package/dist/index.cjs +1084 -717
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +323 -34
- package/dist/index.d.ts +323 -34
- package/dist/index.js +1078 -718
- package/dist/index.js.map +1 -1
- package/dist/vue/index.cjs +824 -670
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.d.cts +1 -1
- package/dist/vue/index.d.ts +1 -1
- package/dist/vue/index.js +824 -670
- package/dist/vue/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Cesium from 'cesium';
|
|
2
|
-
export { V as VertexDetailInfo, b as VertexDragMoveInfo, a as VertexOperationInfo, c as WaypointBatchUpdate, W as WaypointUpdateData } from './VertexDetailInfo-
|
|
2
|
+
export { V as VertexDetailInfo, b as VertexDragMoveInfo, a as VertexOperationInfo, c as WaypointBatchUpdate, W as WaypointUpdateData } from './VertexDetailInfo-DYr1P_fe.js';
|
|
3
3
|
|
|
4
4
|
interface InitOptions {
|
|
5
5
|
appName?: string;
|
|
@@ -440,6 +440,12 @@ interface SinoflyWaypointInfo {
|
|
|
440
440
|
createTime?: string;
|
|
441
441
|
modifyUserId?: string;
|
|
442
442
|
modifyTime?: string;
|
|
443
|
+
/** 🆕 椭球高度(WGS84 椭球面以上的高度,米) */
|
|
444
|
+
ellipsoidHeight?: number;
|
|
445
|
+
/** 🆕 相对高度(根据 altitudeMode 计算:海拔高度或相对地形高度,米) */
|
|
446
|
+
relativeHeight?: number;
|
|
447
|
+
/** 🆕 是否使用全局默认高度(true: 高度=defaultAltitude, false: 高度=实际计算值) */
|
|
448
|
+
useGlobalHeight?: boolean;
|
|
443
449
|
}
|
|
444
450
|
/**
|
|
445
451
|
* Sinofly 航线路数据结构接口
|
|
@@ -485,6 +491,8 @@ interface ConvertedWaypointData {
|
|
|
485
491
|
roll: number;
|
|
486
492
|
fov: number;
|
|
487
493
|
index: number;
|
|
494
|
+
/** 🆕 是否使用全局默认高度(true: 高度=defaultAltitude, false: 高度=实际计算值) */
|
|
495
|
+
useGlobalHeight?: boolean;
|
|
488
496
|
}
|
|
489
497
|
/**
|
|
490
498
|
* 转换后的航线路数据格式
|
|
@@ -506,8 +514,8 @@ interface ConvertedWaylineData {
|
|
|
506
514
|
subarrayId?: number;
|
|
507
515
|
stationName?: string;
|
|
508
516
|
subarrayName?: string;
|
|
509
|
-
|
|
510
|
-
|
|
517
|
+
/** 爬升高度(基础高度偏移) */
|
|
518
|
+
climbHeight?: number;
|
|
511
519
|
[key: string]: any;
|
|
512
520
|
};
|
|
513
521
|
}
|
|
@@ -653,24 +661,17 @@ interface RenderFlightPathOptions {
|
|
|
653
661
|
color?: Cesium.Color;
|
|
654
662
|
material?: Cesium.MaterialProperty | Cesium.Color;
|
|
655
663
|
};
|
|
656
|
-
hasHiddenClimb?: boolean;
|
|
657
664
|
altitudeMode?: string;
|
|
658
665
|
climbHeight?: number;
|
|
659
666
|
}
|
|
660
667
|
/**
|
|
661
|
-
*
|
|
668
|
+
* 回显飞航路线:显示完整飞航路线和航点编号
|
|
662
669
|
*
|
|
663
670
|
* 接收 Sinofly 航线路数据,自动转换为本库格式并渲染显示。
|
|
664
671
|
*
|
|
665
672
|
* 航点逻辑说明:
|
|
666
|
-
* - index 0: 起始点(起飞点),显示起始箭头(仅当有 takeOffRefPoint 时)
|
|
667
|
-
* - index 1: 隐藏转折点(隐藏爬升点),不显示标签(仅当有 takeOffRefPoint 时)
|
|
668
|
-
* - index 2: 第一个航线点,标记为 "S"
|
|
669
|
-
* - index 3+: 后续航线点,标记为 2, 3, 4...
|
|
670
|
-
*
|
|
671
|
-
* 如果没有 takeOffRefPoint,则:
|
|
672
673
|
* - index 0: 第一个航线点,标记为 "S"
|
|
673
|
-
* - index 1+: 后续航线点,标记为 2, 3
|
|
674
|
+
* - index 1+: 后续航线点,标记为 1, 2, 3...
|
|
674
675
|
*
|
|
675
676
|
* @param CesiumNS Cesium 命名空间
|
|
676
677
|
* @param viewer Cesium Viewer 实例
|
|
@@ -683,8 +684,6 @@ interface RenderFlightPathOptions {
|
|
|
683
684
|
* const sinoflyData = {
|
|
684
685
|
* waylineId: "12345",
|
|
685
686
|
* waylineName: "测试航线",
|
|
686
|
-
* takeOffSecurityHeight: 50,
|
|
687
|
-
* takeOffRefPoint: '{"longitude": 116.4074, "latitude": 39.9042, "height": 100}',
|
|
688
687
|
* waypointInfo: [
|
|
689
688
|
* {
|
|
690
689
|
* index: 0,
|
|
@@ -707,21 +706,6 @@ interface RenderFlightPathOptions {
|
|
|
707
706
|
* layer: myLayer,
|
|
708
707
|
* style: { width: 8, color: Cesium.Color.GREEN }
|
|
709
708
|
* });
|
|
710
|
-
*
|
|
711
|
-
* // 自定义样式
|
|
712
|
-
* const entity = renderFlightPath(Cesium, viewer, {
|
|
713
|
-
* data: sinoflyData,
|
|
714
|
-
* id: 'my-flight-path',
|
|
715
|
-
* name: '自定义航线名称',
|
|
716
|
-
* style: {
|
|
717
|
-
* width: 10,
|
|
718
|
-
* material: new Cesium.PolylineOutlineMaterialProperty({
|
|
719
|
-
* color: Cesium.Color.BLUE,
|
|
720
|
-
* outlineColor: Cesium.Color.WHITE,
|
|
721
|
-
* outlineWidth: 2
|
|
722
|
-
* })
|
|
723
|
-
* }
|
|
724
|
-
* });
|
|
725
709
|
* ```
|
|
726
710
|
*/
|
|
727
711
|
declare function renderFlightPath(CesiumNS: typeof Cesium, viewer: Cesium.Viewer, options: RenderFlightPathOptions): Entity$1;
|
|
@@ -780,6 +764,128 @@ declare function renderFlightPathPreview(CesiumNS: typeof Cesium, viewer: Cesium
|
|
|
780
764
|
controller: FlightPathPreviewController;
|
|
781
765
|
};
|
|
782
766
|
|
|
767
|
+
/**
|
|
768
|
+
* 飞行仿真状态
|
|
769
|
+
*/
|
|
770
|
+
type FlightSimulatorState = 'idle' | 'playing' | 'paused' | 'stopped';
|
|
771
|
+
/**
|
|
772
|
+
* 飞行仿真状态变化事件
|
|
773
|
+
*/
|
|
774
|
+
interface FlightSimulatorStateChangeEvent {
|
|
775
|
+
state: FlightSimulatorState;
|
|
776
|
+
progress?: number;
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* 飞行仿真控制器接口
|
|
780
|
+
*/
|
|
781
|
+
interface FlightSimulatorController {
|
|
782
|
+
/** 开始播放 */
|
|
783
|
+
start(): void;
|
|
784
|
+
/** 暂停 */
|
|
785
|
+
pause(): void;
|
|
786
|
+
/** 恢复播放 */
|
|
787
|
+
resume(): void;
|
|
788
|
+
/** 停止并重置 */
|
|
789
|
+
stop(): void;
|
|
790
|
+
/** 销毁并清理资源 */
|
|
791
|
+
destroy(): void;
|
|
792
|
+
/** 设置飞行速度 (m/s) */
|
|
793
|
+
setSpeed(speed: number): void;
|
|
794
|
+
/** 获取当前状态 */
|
|
795
|
+
getState(): FlightSimulatorState;
|
|
796
|
+
/** 获取当前进度 (0-1) */
|
|
797
|
+
getProgress(): number;
|
|
798
|
+
/** 状态变化事件 */
|
|
799
|
+
onStateChange: Emitter<FlightSimulatorStateChangeEvent>;
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* 航迹高亮选项
|
|
803
|
+
*/
|
|
804
|
+
interface TrackHighlightOptions {
|
|
805
|
+
enabled: boolean;
|
|
806
|
+
color?: Cesium.Color;
|
|
807
|
+
width?: number;
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* 飞行仿真选项
|
|
811
|
+
*/
|
|
812
|
+
interface FlightSimulatorOptions {
|
|
813
|
+
/** Sinofly 航线数据 */
|
|
814
|
+
waylineData: SinoflyWaylineData;
|
|
815
|
+
/** 飞行速度 (m/s),默认 10 */
|
|
816
|
+
speed?: number;
|
|
817
|
+
/** 是否循环播放,默认 false */
|
|
818
|
+
loop?: boolean;
|
|
819
|
+
/** 是否显示视锥体,默认 true(AirplaneCursor 已内置视锥体) */
|
|
820
|
+
showFrustum?: boolean;
|
|
821
|
+
/** 航迹高亮选项 */
|
|
822
|
+
trackHighlight?: TrackHighlightOptions;
|
|
823
|
+
/** 自定义图层 */
|
|
824
|
+
layer?: Cesium.CustomDataSource;
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* 飞行仿真器
|
|
828
|
+
*
|
|
829
|
+
* 沿航线路径移动飞机模型,支持播放控制、速度调节和循环播放
|
|
830
|
+
*/
|
|
831
|
+
declare class FlightSimulator implements FlightSimulatorController {
|
|
832
|
+
private CesiumNS;
|
|
833
|
+
private viewer;
|
|
834
|
+
private options;
|
|
835
|
+
private state;
|
|
836
|
+
private progress;
|
|
837
|
+
private waypoints;
|
|
838
|
+
private totalDistance;
|
|
839
|
+
private currentDistance;
|
|
840
|
+
private airplaneCursor?;
|
|
841
|
+
private trackEntity?;
|
|
842
|
+
private passedTrackEntity?;
|
|
843
|
+
private animationFrameId?;
|
|
844
|
+
private lastTimestamp?;
|
|
845
|
+
readonly onStateChange: Emitter<FlightSimulatorStateChangeEvent>;
|
|
846
|
+
constructor(CesiumNS: typeof Cesium, viewer: Cesium.Viewer, options: FlightSimulatorOptions);
|
|
847
|
+
/**
|
|
848
|
+
* 初始化航点数据
|
|
849
|
+
*/
|
|
850
|
+
private initWaypoints;
|
|
851
|
+
/**
|
|
852
|
+
* 创建可视化实体
|
|
853
|
+
*/
|
|
854
|
+
private createEntities;
|
|
855
|
+
/**
|
|
856
|
+
* 创建航迹高亮
|
|
857
|
+
*/
|
|
858
|
+
private createTrackHighlight;
|
|
859
|
+
/**
|
|
860
|
+
* 获取当前位置
|
|
861
|
+
*/
|
|
862
|
+
private getCurrentPosition;
|
|
863
|
+
/**
|
|
864
|
+
* 获取当前姿态(用于更新 AirplaneCursor)
|
|
865
|
+
*/
|
|
866
|
+
private getCurrentPose;
|
|
867
|
+
/**
|
|
868
|
+
* 获取已飞过的位置数组
|
|
869
|
+
*/
|
|
870
|
+
private getPassedPositions;
|
|
871
|
+
/**
|
|
872
|
+
* 动画循环
|
|
873
|
+
*/
|
|
874
|
+
private animate;
|
|
875
|
+
/**
|
|
876
|
+
* 设置状态并发射事件
|
|
877
|
+
*/
|
|
878
|
+
private setState;
|
|
879
|
+
start(): void;
|
|
880
|
+
pause(): void;
|
|
881
|
+
resume(): void;
|
|
882
|
+
stop(): void;
|
|
883
|
+
destroy(): void;
|
|
884
|
+
setSpeed(speed: number): void;
|
|
885
|
+
getState(): FlightSimulatorState;
|
|
886
|
+
getProgress(): number;
|
|
887
|
+
}
|
|
888
|
+
|
|
783
889
|
type PathSample = {
|
|
784
890
|
time: Cesium.JulianDate | Date | string | number;
|
|
785
891
|
lon: number;
|
|
@@ -1723,6 +1829,128 @@ declare class Selector {
|
|
|
1723
1829
|
}): SelectionSession;
|
|
1724
1830
|
}
|
|
1725
1831
|
|
|
1832
|
+
/**
|
|
1833
|
+
* 点云拾取工具
|
|
1834
|
+
* 专门用于拾取 3D 点云(Cesium3DTileset)并返回坐标和属性信息
|
|
1835
|
+
*/
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
* 点云拾取结果
|
|
1839
|
+
*/
|
|
1840
|
+
interface PointCloudPickResult {
|
|
1841
|
+
/** 是否成功拾取到点云 */
|
|
1842
|
+
success: boolean;
|
|
1843
|
+
/** 拾取点的世界坐标(Cartesian3) */
|
|
1844
|
+
position?: Cesium.Cartesian3;
|
|
1845
|
+
/** 拾取点的经纬度坐标 */
|
|
1846
|
+
coordinates?: {
|
|
1847
|
+
longitude: number;
|
|
1848
|
+
latitude: number;
|
|
1849
|
+
height: number;
|
|
1850
|
+
};
|
|
1851
|
+
/** 拾取到的 Tileset 对象 */
|
|
1852
|
+
tileset?: Cesium.Cesium3DTileset;
|
|
1853
|
+
/** 拾取到的 Tile 内容 */
|
|
1854
|
+
content?: Cesium.Cesium3DTileContent;
|
|
1855
|
+
/** 点的特征 ID(如果有) */
|
|
1856
|
+
featureId?: number;
|
|
1857
|
+
/** 点的属性(如强度、分类等) */
|
|
1858
|
+
properties?: Record<string, any>;
|
|
1859
|
+
/** 点的颜色(如果可获取) */
|
|
1860
|
+
color?: {
|
|
1861
|
+
red: number;
|
|
1862
|
+
green: number;
|
|
1863
|
+
blue: number;
|
|
1864
|
+
alpha: number;
|
|
1865
|
+
};
|
|
1866
|
+
/** 屏幕坐标 */
|
|
1867
|
+
screenPosition?: {
|
|
1868
|
+
x: number;
|
|
1869
|
+
y: number;
|
|
1870
|
+
};
|
|
1871
|
+
}
|
|
1872
|
+
/**
|
|
1873
|
+
* 点云拾取会话
|
|
1874
|
+
*/
|
|
1875
|
+
interface PointCloudPickSession {
|
|
1876
|
+
/** 停止拾取会话 */
|
|
1877
|
+
stop: () => void;
|
|
1878
|
+
/** 暂停拾取(不移除事件,只是不触发回调) */
|
|
1879
|
+
pause: () => void;
|
|
1880
|
+
/** 恢复拾取 */
|
|
1881
|
+
resume: () => void;
|
|
1882
|
+
/** 是否处于暂停状态 */
|
|
1883
|
+
isPaused: () => boolean;
|
|
1884
|
+
}
|
|
1885
|
+
/**
|
|
1886
|
+
* 点云拾取选项
|
|
1887
|
+
*/
|
|
1888
|
+
interface PointCloudPickerOptions {
|
|
1889
|
+
/** 鼠标光标样式,默认 'crosshair' */
|
|
1890
|
+
cursor?: string;
|
|
1891
|
+
/** 是否在拾取时显示标记点,默认 true */
|
|
1892
|
+
showMarker?: boolean;
|
|
1893
|
+
/** 标记点颜色,默认黄色 */
|
|
1894
|
+
markerColor?: Cesium.Color;
|
|
1895
|
+
/** 标记点大小(像素),默认 10 */
|
|
1896
|
+
markerSize?: number;
|
|
1897
|
+
/** 是否只拾取点云(忽略其他实体),默认 true */
|
|
1898
|
+
pointCloudOnly?: boolean;
|
|
1899
|
+
/** 是否尝试获取点的属性,默认 true */
|
|
1900
|
+
fetchProperties?: boolean;
|
|
1901
|
+
}
|
|
1902
|
+
/**
|
|
1903
|
+
* 点云拾取工具类
|
|
1904
|
+
*/
|
|
1905
|
+
declare class PointCloudPicker {
|
|
1906
|
+
private CesiumNS;
|
|
1907
|
+
private viewer;
|
|
1908
|
+
private handler?;
|
|
1909
|
+
private markerEntity?;
|
|
1910
|
+
private isPaused;
|
|
1911
|
+
constructor(CesiumNS: typeof Cesium, viewer: Cesium.Viewer);
|
|
1912
|
+
/**
|
|
1913
|
+
* 在指定屏幕位置进行一次点云拾取
|
|
1914
|
+
* @param windowPosition 屏幕坐标 { x, y }
|
|
1915
|
+
* @param options 拾取选项
|
|
1916
|
+
* @returns 拾取结果
|
|
1917
|
+
*/
|
|
1918
|
+
pickAt(windowPosition: {
|
|
1919
|
+
x: number;
|
|
1920
|
+
y: number;
|
|
1921
|
+
}, options?: {
|
|
1922
|
+
fetchProperties?: boolean;
|
|
1923
|
+
pointCloudOnly?: boolean;
|
|
1924
|
+
}): PointCloudPickResult;
|
|
1925
|
+
/**
|
|
1926
|
+
* 开启点云拾取会话
|
|
1927
|
+
* @param onPick 拾取回调函数
|
|
1928
|
+
* @param options 拾取选项
|
|
1929
|
+
* @returns 拾取会话对象
|
|
1930
|
+
*/
|
|
1931
|
+
startPicking(onPick: (result: PointCloudPickResult) => void, options?: PointCloudPickerOptions): PointCloudPickSession;
|
|
1932
|
+
/**
|
|
1933
|
+
* 停止拾取会话
|
|
1934
|
+
*/
|
|
1935
|
+
private stopPicking;
|
|
1936
|
+
/**
|
|
1937
|
+
* 显示标记点
|
|
1938
|
+
*/
|
|
1939
|
+
private showMarker;
|
|
1940
|
+
/**
|
|
1941
|
+
* 移除标记点
|
|
1942
|
+
*/
|
|
1943
|
+
removeMarker(): void;
|
|
1944
|
+
/**
|
|
1945
|
+
* 获取当前标记点位置
|
|
1946
|
+
*/
|
|
1947
|
+
getMarkerPosition(): Cesium.Cartesian3 | undefined;
|
|
1948
|
+
/**
|
|
1949
|
+
* 销毁拾取器
|
|
1950
|
+
*/
|
|
1951
|
+
destroy(): void;
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1726
1954
|
interface FOVControllerOptions {
|
|
1727
1955
|
/** 初始 FOV 值(度) */
|
|
1728
1956
|
initialFOV?: number;
|
|
@@ -1947,6 +2175,13 @@ declare class FrustumPyramid {
|
|
|
1947
2175
|
clear(): void;
|
|
1948
2176
|
}
|
|
1949
2177
|
|
|
2178
|
+
/**
|
|
2179
|
+
* 高度计算模式类型
|
|
2180
|
+
* - absolute: 海平面高度(绝对高度)
|
|
2181
|
+
* - relativeToGround: 相对地形高度
|
|
2182
|
+
* - relativeToStart: 相对起飞点高度
|
|
2183
|
+
*/
|
|
2184
|
+
type AltitudeMode = 'absolute' | 'relativeToGround' | 'relativeToStart';
|
|
1950
2185
|
/**
|
|
1951
2186
|
* 🆕 快速编辑模式配置选项
|
|
1952
2187
|
*/
|
|
@@ -1959,6 +2194,56 @@ interface QuickEditOptions {
|
|
|
1959
2194
|
altitudeMode?: 'absolute' | 'relativeToStart' | 'relativeToGround';
|
|
1960
2195
|
}
|
|
1961
2196
|
|
|
2197
|
+
/**
|
|
2198
|
+
* 地形高度查询工具
|
|
2199
|
+
* 提供异步批量查询和同步回退两种方式
|
|
2200
|
+
*/
|
|
2201
|
+
/**
|
|
2202
|
+
* 异步批量查询地形高度
|
|
2203
|
+
* 使用 sampleTerrainMostDetailed 进行精确的地形高度查询
|
|
2204
|
+
* @param CesiumNS Cesium 命名空间
|
|
2205
|
+
* @param viewer Cesium Viewer 实例
|
|
2206
|
+
* @param positions 需要查询的位置数组(Cartesian3)
|
|
2207
|
+
* @returns 每个位置对应的地形高度数组
|
|
2208
|
+
*/
|
|
2209
|
+
declare function queryTerrainHeights(CesiumNS: typeof Cesium, viewer: Cesium.Viewer, positions: Cesium.Cartesian3[]): Promise<number[]>;
|
|
2210
|
+
/**
|
|
2211
|
+
* 同步查询单个位置的地形高度
|
|
2212
|
+
* 使用 globe.getHeight 作为回退方案
|
|
2213
|
+
* @param CesiumNS Cesium 命名空间
|
|
2214
|
+
* @param viewer Cesium Viewer 实例
|
|
2215
|
+
* @param position 需要查询的位置(Cartesian3)
|
|
2216
|
+
* @returns 地形高度(无法获取时返回 0)
|
|
2217
|
+
*/
|
|
2218
|
+
declare function queryTerrainHeightSync(CesiumNS: typeof Cesium, viewer: Cesium.Viewer, position: Cesium.Cartesian3): number;
|
|
2219
|
+
/**
|
|
2220
|
+
* 查询单个位置的地形高度(异步)
|
|
2221
|
+
* @param CesiumNS Cesium 命名空间
|
|
2222
|
+
* @param viewer Cesium Viewer 实例
|
|
2223
|
+
* @param position 需要查询的位置(Cartesian3)
|
|
2224
|
+
* @returns 地形高度
|
|
2225
|
+
*/
|
|
2226
|
+
declare function queryTerrainHeightAsync(CesiumNS: typeof Cesium, viewer: Cesium.Viewer, position: Cesium.Cartesian3): Promise<number>;
|
|
2227
|
+
/**
|
|
2228
|
+
* 根据高度模式计算航点的绝对高度
|
|
2229
|
+
* @param CesiumNS Cesium 命名空间
|
|
2230
|
+
* @param altitudeMode 高度模式
|
|
2231
|
+
* @param defaultAltitude 默认高度(相对高度值)
|
|
2232
|
+
* @param startPointAltitude 起飞点高度(用于 relativeToStart 模式)
|
|
2233
|
+
* @param terrainHeight 地形高度(用于 relativeToGround 模式)
|
|
2234
|
+
* @returns 计算后的绝对高度
|
|
2235
|
+
*/
|
|
2236
|
+
declare function calculateAbsoluteHeight(altitudeMode: 'absolute' | 'relativeToGround' | 'relativeToStart', defaultAltitude: number, startPointAltitude: number, terrainHeight: number): number;
|
|
2237
|
+
/**
|
|
2238
|
+
* 根据高度模式计算航点的相对高度
|
|
2239
|
+
* @param altitudeMode 高度模式
|
|
2240
|
+
* @param absoluteHeight 绝对高度
|
|
2241
|
+
* @param startPointAltitude 起飞点高度
|
|
2242
|
+
* @param terrainHeight 地形高度
|
|
2243
|
+
* @returns 相对高度
|
|
2244
|
+
*/
|
|
2245
|
+
declare function calculateRelativeHeight(altitudeMode: 'absolute' | 'relativeToGround' | 'relativeToStart', absoluteHeight: number, startPointAltitude: number, terrainHeight: number): number;
|
|
2246
|
+
|
|
1962
2247
|
/**
|
|
1963
2248
|
* Path 编辑保存结果数据接口
|
|
1964
2249
|
* 对应 pathEditing.ts 中 saveAndStop() 返回的数据结构
|
|
@@ -1966,9 +2251,6 @@ interface QuickEditOptions {
|
|
|
1966
2251
|
interface PathEditingSaveResult {
|
|
1967
2252
|
entity: Cesium.Entity;
|
|
1968
2253
|
positions: Cesium.Cartesian3[];
|
|
1969
|
-
startPoint: {
|
|
1970
|
-
position: Cesium.Cartesian3;
|
|
1971
|
-
};
|
|
1972
2254
|
climbHeight?: number;
|
|
1973
2255
|
waypointData: Array<{
|
|
1974
2256
|
position: Cesium.Cartesian3;
|
|
@@ -1978,9 +2260,16 @@ interface PathEditingSaveResult {
|
|
|
1978
2260
|
fov: number;
|
|
1979
2261
|
index: number;
|
|
1980
2262
|
distance: number;
|
|
2263
|
+
/** 椭球高度(WGS84 椭球面以上的高度) */
|
|
2264
|
+
ellipsoidHeight?: number;
|
|
2265
|
+
/** 相对高度(根据 altitudeMode 计算) */
|
|
2266
|
+
relativeHeight?: number;
|
|
2267
|
+
/** 🆕 是否使用全局默认高度(true: 高度=defaultAltitude, false: 高度=实际计算值) */
|
|
2268
|
+
useGlobalHeight?: boolean;
|
|
1981
2269
|
}>;
|
|
1982
2270
|
altitudeMode?: string;
|
|
1983
|
-
|
|
2271
|
+
/** 航线默认高度(米) */
|
|
2272
|
+
defaultAltitude?: number;
|
|
1984
2273
|
}
|
|
1985
2274
|
/**
|
|
1986
2275
|
* Path 到 Sinofly 转换选项
|
|
@@ -2180,4 +2469,4 @@ declare const placeholder: {
|
|
|
2180
2469
|
ready: boolean;
|
|
2181
2470
|
};
|
|
2182
2471
|
|
|
2183
|
-
export { CZMLManager, type CameraDestinationInput, CameraEventBus, type CameraFOVChangeEvent, CameraFOVController, type CameraFlyOptions, type CameraInitOptions, CameraManager, type CameraOrientation, type CameraPoseChangeEvent, type CameraSetViewOptions, type CameraView, type CesiumAssetsOptions, type ConvertedWaylineData, type ConvertedWaypointData, type CursorPoseChangeEvent, type CzmlExportOptions, type CzmlImportOptions, type EditingChange, Emitter, type FOVChangeEvent, type FOVControllerOptions, type FlightPathPreviewController, type FlyToOptions, FrustumPyramid, type FrustumPyramidOptions, type FrustumShapeChangeEvent, type ImageryOptions, type ImageryProviderKind, type InitOptions, type LayerEvents, type LayerHandle, LayerManager, type LayerType, type Listener, type LonLatHeight, type Orientation, type PathEditingSaveResult, type PathOptions, type PathSafetyCheckOptions, type PathSafetyCheckResult, PathSafetyChecker, type PathToSinoflyOptions, type PhotoBillboardItem, type PhotoBillboardLayerOptions, type PhotoBillboardResult, type PolygonDrawingOptions, type PolygonEditingSession, PolygonEditor, type PreviousViewChange, type QuickEditOptions, type RenderFlightPathOptions, type RenderFlightPathPreviewOptions, SceneManager, type SceneOptions, type SegmentSafetyResult, type SelectionChange, type SelectionResult, type SelectionSession, Selector, type ShapeLineProps, type ShapePointProps, type ShapePolygonProps, type SinoflyAdapterOptions, type SinoflyWaylineData, type SinoflyWaypointInfo, StateManager, type TerrainKind, type TerrainOptions, type Toggle2D3DContext, type Toggle2D3DOptions, type VersionInfo, assertCesiumAssetsConfigured, configureCesiumAssets, configureCesiumIonToken, convertPathToSinofly, convertSinoflyWayline, convertSinoflyWaylines, ensureCesiumIonToken, getCesiumBaseUrl, getCesiumIonToken, globalCameraEventBus, globalState, placeholder, renderFlightPath, renderFlightPathPreview, toggle2D3D, version, versionInfo };
|
|
2472
|
+
export { type AltitudeMode, CZMLManager, type CameraDestinationInput, CameraEventBus, type CameraFOVChangeEvent, CameraFOVController, type CameraFlyOptions, type CameraInitOptions, CameraManager, type CameraOrientation, type CameraPoseChangeEvent, type CameraSetViewOptions, type CameraView, type CesiumAssetsOptions, type ConvertedWaylineData, type ConvertedWaypointData, type CursorPoseChangeEvent, type CzmlExportOptions, type CzmlImportOptions, type EditingChange, Emitter, type FOVChangeEvent, type FOVControllerOptions, type FlightPathPreviewController, FlightSimulator, type FlightSimulatorController, type FlightSimulatorOptions, type FlightSimulatorState, type FlightSimulatorStateChangeEvent, type FlyToOptions, FrustumPyramid, type FrustumPyramidOptions, type FrustumShapeChangeEvent, type ImageryOptions, type ImageryProviderKind, type InitOptions, type LayerEvents, type LayerHandle, LayerManager, type LayerType, type Listener, type LonLatHeight, type Orientation, type PathEditingSaveResult, type PathOptions, type PathSafetyCheckOptions, type PathSafetyCheckResult, PathSafetyChecker, type PathToSinoflyOptions, type PhotoBillboardItem, type PhotoBillboardLayerOptions, type PhotoBillboardResult, type PointCloudPickResult, type PointCloudPickSession, PointCloudPicker, type PointCloudPickerOptions, type PolygonDrawingOptions, type PolygonEditingSession, PolygonEditor, type PreviousViewChange, type QuickEditOptions, type RenderFlightPathOptions, type RenderFlightPathPreviewOptions, SceneManager, type SceneOptions, type SegmentSafetyResult, type SelectionChange, type SelectionResult, type SelectionSession, Selector, type ShapeLineProps, type ShapePointProps, type ShapePolygonProps, type SinoflyAdapterOptions, type SinoflyWaylineData, type SinoflyWaypointInfo, StateManager, type TerrainKind, type TerrainOptions, type Toggle2D3DContext, type Toggle2D3DOptions, type VersionInfo, assertCesiumAssetsConfigured, calculateAbsoluteHeight, calculateRelativeHeight, configureCesiumAssets, configureCesiumIonToken, convertPathToSinofly, convertSinoflyWayline, convertSinoflyWaylines, ensureCesiumIonToken, getCesiumBaseUrl, getCesiumIonToken, globalCameraEventBus, globalState, placeholder, queryTerrainHeightAsync, queryTerrainHeightSync, queryTerrainHeights, renderFlightPath, renderFlightPathPreview, toggle2D3D, version, versionInfo };
|