@jorgmoritz/gis-manager 0.1.42 → 0.1.44

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/index.d.cts CHANGED
@@ -2595,6 +2595,47 @@ declare function calculateAbsoluteHeight(altitudeMode: 'absolute' | 'relativeToG
2595
2595
  */
2596
2596
  declare function calculateRelativeHeight(altitudeMode: 'absolute' | 'relativeToGround' | 'relativeToStart', absoluteHeight: number, startPointAltitude: number, terrainHeight: number): number;
2597
2597
 
2598
+ /**
2599
+ * 几何计算工具函数
2600
+ * 提供两点之间的距离和中点计算
2601
+ */
2602
+
2603
+ /**
2604
+ * 计算两点之间的距离和中点
2605
+ * @param CesiumNS Cesium 命名空间
2606
+ * @param point1 第一个点 (Cartesian3)
2607
+ * @param point2 第二个点 (Cartesian3)
2608
+ * @returns { distance: number, midpoint: Cartesian3 }
2609
+ */
2610
+ declare function calculateDistanceAndMidpoint(CesiumNS: typeof Cesium, point1: Cesium.Cartesian3, point2: Cesium.Cartesian3): {
2611
+ distance: number;
2612
+ midpoint: Cesium.Cartesian3;
2613
+ };
2614
+ /**
2615
+ * 计算两点之间的距离
2616
+ * @param CesiumNS Cesium 命名空间
2617
+ * @param point1 第一个点 (Cartesian3)
2618
+ * @param point2 第二个点 (Cartesian3)
2619
+ * @returns 距离(米)
2620
+ */
2621
+ declare function calculateDistance(CesiumNS: typeof Cesium, point1: Cesium.Cartesian3, point2: Cesium.Cartesian3): number;
2622
+ /**
2623
+ * 计算两点的中点坐标
2624
+ * @param CesiumNS Cesium 命名空间
2625
+ * @param point1 第一个点 (Cartesian3)
2626
+ * @param point2 第二个点 (Cartesian3)
2627
+ * @returns 中点 (Cartesian3)
2628
+ */
2629
+ declare function calculateMidpoint(CesiumNS: typeof Cesium, point1: Cesium.Cartesian3, point2: Cesium.Cartesian3): Cesium.Cartesian3;
2630
+ /**
2631
+ * 计算从 point1 指向 point2 的航向角(度)
2632
+ * @param CesiumNS Cesium 命名空间
2633
+ * @param point1 起点 (Cartesian3)
2634
+ * @param point2 终点 (Cartesian3)
2635
+ * @returns 航向角(度,范围 [-180, 180])
2636
+ */
2637
+ declare function calculateHeadingBetweenPoints(CesiumNS: typeof Cesium, point1: Cesium.Cartesian3, point2: Cesium.Cartesian3): number;
2638
+
2598
2639
  /**
2599
2640
  * Path 编辑保存结果数据接口
2600
2641
  * 对应 pathEditing.ts 中 saveAndStop() 返回的数据结构
@@ -2617,6 +2658,8 @@ interface PathEditingSaveResult {
2617
2658
  relativeHeight?: number;
2618
2659
  /** 🆕 是否使用全局默认高度(true: 高度=defaultAltitude, false: 高度=实际计算值) */
2619
2660
  useGlobalHeight?: boolean;
2661
+ /** 🆕 航点ID(原有航点保留ID,新插入航点为 undefined) */
2662
+ waypointId?: string | number;
2620
2663
  }>;
2621
2664
  altitudeMode?: string;
2622
2665
  /** 航线默认高度(米) */
@@ -2821,4 +2864,4 @@ declare const placeholder: {
2821
2864
  };
2822
2865
  declare const droneModelUrl: string;
2823
2866
 
2824
- export { type AltitudeMode, CZMLManager, type CameraDestinationInput, CameraEventBus, type CameraFOVChangeEvent, CameraFOVController, type CameraFlyOptions, type CameraInitOptions, CameraManager, type CameraOrientation, type CameraPoseChangeEvent, type CameraSetViewOptions, type CameraView, type CaptureWithViewOptions, 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 FlyToBoundsOptions, type FlyToOptions, FrustumPyramid, type FrustumPyramidOptions, type FrustumShapeChangeEvent, type GeoBounds, type GeoPoint, type ImageryOptions, type ImageryProviderKind, type InitOptions, type LayerEvents, type LayerHandle, LayerManager, type LayerType, type Listener, type LoadMapLayersResult, type LoadSliceJsonOptions, type LoadSliceJsonResult, type LonLatHeight, type MapLayerConfig, 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 ScreenshotOptions, type ScreenshotResult, type SegmentSafetyResult, type SelectionChange, type SelectionResult, type SelectionSession, Selector, type ShapeLineProps, type ShapePointProps, type ShapePolygonProps, type SinoflyAdapterOptions, type SinoflyWaylineData, type SinoflyWaypointInfo, type SliceJsonData, StateManager, type TerrainKind, type TerrainOptions, type Toggle2D3DContext, type Toggle2D3DOptions, type VersionInfo, assertCesiumAssetsConfigured, calculateAbsoluteHeight, calculateBoundsDiagonal, calculateGeoBounds, calculateRelativeHeight, configureCesiumAssets, configureCesiumIonToken, convertPathToSinofly, convertSinoflyWayline, convertSinoflyWaylines, droneModelUrl, ensureCesiumIonToken, expandBounds, getCesiumBaseUrl, getCesiumIonToken, globalCameraEventBus, globalState, isPointInBounds, mergeBounds, placeholder, queryTerrainHeightAsync, queryTerrainHeightByLonLat, queryTerrainHeightByLonLatSync, queryTerrainHeightSync, queryTerrainHeights, queryTerrainHeightsByLonLat, renderFlightPath, renderFlightPathPreview, toggle2D3D, version, versionInfo };
2867
+ export { type AltitudeMode, CZMLManager, type CameraDestinationInput, CameraEventBus, type CameraFOVChangeEvent, CameraFOVController, type CameraFlyOptions, type CameraInitOptions, CameraManager, type CameraOrientation, type CameraPoseChangeEvent, type CameraSetViewOptions, type CameraView, type CaptureWithViewOptions, 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 FlyToBoundsOptions, type FlyToOptions, FrustumPyramid, type FrustumPyramidOptions, type FrustumShapeChangeEvent, type GeoBounds, type GeoPoint, type ImageryOptions, type ImageryProviderKind, type InitOptions, type LayerEvents, type LayerHandle, LayerManager, type LayerType, type Listener, type LoadMapLayersResult, type LoadSliceJsonOptions, type LoadSliceJsonResult, type LonLatHeight, type MapLayerConfig, 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 ScreenshotOptions, type ScreenshotResult, type SegmentSafetyResult, type SelectionChange, type SelectionResult, type SelectionSession, Selector, type ShapeLineProps, type ShapePointProps, type ShapePolygonProps, type SinoflyAdapterOptions, type SinoflyWaylineData, type SinoflyWaypointInfo, type SliceJsonData, StateManager, type TerrainKind, type TerrainOptions, type Toggle2D3DContext, type Toggle2D3DOptions, type VersionInfo, assertCesiumAssetsConfigured, calculateAbsoluteHeight, calculateBoundsDiagonal, calculateDistance, calculateDistanceAndMidpoint, calculateGeoBounds, calculateHeadingBetweenPoints, calculateMidpoint, calculateRelativeHeight, configureCesiumAssets, configureCesiumIonToken, convertPathToSinofly, convertSinoflyWayline, convertSinoflyWaylines, droneModelUrl, ensureCesiumIonToken, expandBounds, getCesiumBaseUrl, getCesiumIonToken, globalCameraEventBus, globalState, isPointInBounds, mergeBounds, placeholder, queryTerrainHeightAsync, queryTerrainHeightByLonLat, queryTerrainHeightByLonLatSync, queryTerrainHeightSync, queryTerrainHeights, queryTerrainHeightsByLonLat, renderFlightPath, renderFlightPathPreview, toggle2D3D, version, versionInfo };
package/dist/index.d.ts CHANGED
@@ -2595,6 +2595,47 @@ declare function calculateAbsoluteHeight(altitudeMode: 'absolute' | 'relativeToG
2595
2595
  */
2596
2596
  declare function calculateRelativeHeight(altitudeMode: 'absolute' | 'relativeToGround' | 'relativeToStart', absoluteHeight: number, startPointAltitude: number, terrainHeight: number): number;
2597
2597
 
2598
+ /**
2599
+ * 几何计算工具函数
2600
+ * 提供两点之间的距离和中点计算
2601
+ */
2602
+
2603
+ /**
2604
+ * 计算两点之间的距离和中点
2605
+ * @param CesiumNS Cesium 命名空间
2606
+ * @param point1 第一个点 (Cartesian3)
2607
+ * @param point2 第二个点 (Cartesian3)
2608
+ * @returns { distance: number, midpoint: Cartesian3 }
2609
+ */
2610
+ declare function calculateDistanceAndMidpoint(CesiumNS: typeof Cesium, point1: Cesium.Cartesian3, point2: Cesium.Cartesian3): {
2611
+ distance: number;
2612
+ midpoint: Cesium.Cartesian3;
2613
+ };
2614
+ /**
2615
+ * 计算两点之间的距离
2616
+ * @param CesiumNS Cesium 命名空间
2617
+ * @param point1 第一个点 (Cartesian3)
2618
+ * @param point2 第二个点 (Cartesian3)
2619
+ * @returns 距离(米)
2620
+ */
2621
+ declare function calculateDistance(CesiumNS: typeof Cesium, point1: Cesium.Cartesian3, point2: Cesium.Cartesian3): number;
2622
+ /**
2623
+ * 计算两点的中点坐标
2624
+ * @param CesiumNS Cesium 命名空间
2625
+ * @param point1 第一个点 (Cartesian3)
2626
+ * @param point2 第二个点 (Cartesian3)
2627
+ * @returns 中点 (Cartesian3)
2628
+ */
2629
+ declare function calculateMidpoint(CesiumNS: typeof Cesium, point1: Cesium.Cartesian3, point2: Cesium.Cartesian3): Cesium.Cartesian3;
2630
+ /**
2631
+ * 计算从 point1 指向 point2 的航向角(度)
2632
+ * @param CesiumNS Cesium 命名空间
2633
+ * @param point1 起点 (Cartesian3)
2634
+ * @param point2 终点 (Cartesian3)
2635
+ * @returns 航向角(度,范围 [-180, 180])
2636
+ */
2637
+ declare function calculateHeadingBetweenPoints(CesiumNS: typeof Cesium, point1: Cesium.Cartesian3, point2: Cesium.Cartesian3): number;
2638
+
2598
2639
  /**
2599
2640
  * Path 编辑保存结果数据接口
2600
2641
  * 对应 pathEditing.ts 中 saveAndStop() 返回的数据结构
@@ -2617,6 +2658,8 @@ interface PathEditingSaveResult {
2617
2658
  relativeHeight?: number;
2618
2659
  /** 🆕 是否使用全局默认高度(true: 高度=defaultAltitude, false: 高度=实际计算值) */
2619
2660
  useGlobalHeight?: boolean;
2661
+ /** 🆕 航点ID(原有航点保留ID,新插入航点为 undefined) */
2662
+ waypointId?: string | number;
2620
2663
  }>;
2621
2664
  altitudeMode?: string;
2622
2665
  /** 航线默认高度(米) */
@@ -2821,4 +2864,4 @@ declare const placeholder: {
2821
2864
  };
2822
2865
  declare const droneModelUrl: string;
2823
2866
 
2824
- export { type AltitudeMode, CZMLManager, type CameraDestinationInput, CameraEventBus, type CameraFOVChangeEvent, CameraFOVController, type CameraFlyOptions, type CameraInitOptions, CameraManager, type CameraOrientation, type CameraPoseChangeEvent, type CameraSetViewOptions, type CameraView, type CaptureWithViewOptions, 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 FlyToBoundsOptions, type FlyToOptions, FrustumPyramid, type FrustumPyramidOptions, type FrustumShapeChangeEvent, type GeoBounds, type GeoPoint, type ImageryOptions, type ImageryProviderKind, type InitOptions, type LayerEvents, type LayerHandle, LayerManager, type LayerType, type Listener, type LoadMapLayersResult, type LoadSliceJsonOptions, type LoadSliceJsonResult, type LonLatHeight, type MapLayerConfig, 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 ScreenshotOptions, type ScreenshotResult, type SegmentSafetyResult, type SelectionChange, type SelectionResult, type SelectionSession, Selector, type ShapeLineProps, type ShapePointProps, type ShapePolygonProps, type SinoflyAdapterOptions, type SinoflyWaylineData, type SinoflyWaypointInfo, type SliceJsonData, StateManager, type TerrainKind, type TerrainOptions, type Toggle2D3DContext, type Toggle2D3DOptions, type VersionInfo, assertCesiumAssetsConfigured, calculateAbsoluteHeight, calculateBoundsDiagonal, calculateGeoBounds, calculateRelativeHeight, configureCesiumAssets, configureCesiumIonToken, convertPathToSinofly, convertSinoflyWayline, convertSinoflyWaylines, droneModelUrl, ensureCesiumIonToken, expandBounds, getCesiumBaseUrl, getCesiumIonToken, globalCameraEventBus, globalState, isPointInBounds, mergeBounds, placeholder, queryTerrainHeightAsync, queryTerrainHeightByLonLat, queryTerrainHeightByLonLatSync, queryTerrainHeightSync, queryTerrainHeights, queryTerrainHeightsByLonLat, renderFlightPath, renderFlightPathPreview, toggle2D3D, version, versionInfo };
2867
+ export { type AltitudeMode, CZMLManager, type CameraDestinationInput, CameraEventBus, type CameraFOVChangeEvent, CameraFOVController, type CameraFlyOptions, type CameraInitOptions, CameraManager, type CameraOrientation, type CameraPoseChangeEvent, type CameraSetViewOptions, type CameraView, type CaptureWithViewOptions, 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 FlyToBoundsOptions, type FlyToOptions, FrustumPyramid, type FrustumPyramidOptions, type FrustumShapeChangeEvent, type GeoBounds, type GeoPoint, type ImageryOptions, type ImageryProviderKind, type InitOptions, type LayerEvents, type LayerHandle, LayerManager, type LayerType, type Listener, type LoadMapLayersResult, type LoadSliceJsonOptions, type LoadSliceJsonResult, type LonLatHeight, type MapLayerConfig, 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 ScreenshotOptions, type ScreenshotResult, type SegmentSafetyResult, type SelectionChange, type SelectionResult, type SelectionSession, Selector, type ShapeLineProps, type ShapePointProps, type ShapePolygonProps, type SinoflyAdapterOptions, type SinoflyWaylineData, type SinoflyWaypointInfo, type SliceJsonData, StateManager, type TerrainKind, type TerrainOptions, type Toggle2D3DContext, type Toggle2D3DOptions, type VersionInfo, assertCesiumAssetsConfigured, calculateAbsoluteHeight, calculateBoundsDiagonal, calculateDistance, calculateDistanceAndMidpoint, calculateGeoBounds, calculateHeadingBetweenPoints, calculateMidpoint, calculateRelativeHeight, configureCesiumAssets, configureCesiumIonToken, convertPathToSinofly, convertSinoflyWayline, convertSinoflyWaylines, droneModelUrl, ensureCesiumIonToken, expandBounds, getCesiumBaseUrl, getCesiumIonToken, globalCameraEventBus, globalState, isPointInBounds, mergeBounds, placeholder, queryTerrainHeightAsync, queryTerrainHeightByLonLat, queryTerrainHeightByLonLatSync, queryTerrainHeightSync, queryTerrainHeights, queryTerrainHeightsByLonLat, renderFlightPath, renderFlightPathPreview, toggle2D3D, version, versionInfo };