@jorgmoritz/gis-manager 0.1.21 → 0.1.26
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-BoVDy22s.d.cts → VertexDetailInfo-CProWwqv.d.cts} +51 -1
- package/dist/{VertexDetailInfo-BoVDy22s.d.ts → VertexDetailInfo-CProWwqv.d.ts} +51 -1
- package/dist/index.cjs +347 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -12
- package/dist/index.d.ts +36 -12
- package/dist/index.js +347 -52
- package/dist/index.js.map +1 -1
- package/dist/vue/index.cjs +346 -51
- 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 +346 -51
- package/dist/vue/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Cesium from 'cesium';
|
|
2
|
-
export { V as VertexDetailInfo, a as VertexOperationInfo } from './VertexDetailInfo-
|
|
2
|
+
export { V as VertexDetailInfo, b as VertexDragMoveInfo, a as VertexOperationInfo, c as WaypointBatchUpdate, W as WaypointUpdateData } from './VertexDetailInfo-CProWwqv.cjs';
|
|
3
3
|
|
|
4
4
|
interface InitOptions {
|
|
5
5
|
appName?: string;
|
|
@@ -137,6 +137,23 @@ interface FrustumShapeChangeEvent {
|
|
|
137
137
|
/** 事件来源 */
|
|
138
138
|
source: 'controller' | 'user';
|
|
139
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* 飞机游标姿态变化事件
|
|
142
|
+
*/
|
|
143
|
+
interface CursorPoseChangeEvent {
|
|
144
|
+
/** 游标位置 */
|
|
145
|
+
position: any;
|
|
146
|
+
/** 航向角(度) */
|
|
147
|
+
heading: number;
|
|
148
|
+
/** 俯仰角(度) */
|
|
149
|
+
pitch: number;
|
|
150
|
+
/** 翻滚角(度) */
|
|
151
|
+
roll: number;
|
|
152
|
+
/** 海拔高度(米) */
|
|
153
|
+
altitude: number;
|
|
154
|
+
/** 事件来源 */
|
|
155
|
+
source: 'cursor' | 'user';
|
|
156
|
+
}
|
|
140
157
|
/**
|
|
141
158
|
* 全局事件总线
|
|
142
159
|
* 用于管理 CameraFOVController、PathPreview、FrustumPyramid 之间的通信
|
|
@@ -148,15 +165,13 @@ declare class CameraEventBus {
|
|
|
148
165
|
readonly onPoseChange: Emitter<CameraPoseChangeEvent>;
|
|
149
166
|
/** 视锥体形状变化事件 */
|
|
150
167
|
readonly onFrustumShapeChange: Emitter<FrustumShapeChangeEvent>;
|
|
168
|
+
/** 飞机游标姿态变化事件 */
|
|
169
|
+
readonly onCursorPoseChange: Emitter<CursorPoseChangeEvent>;
|
|
151
170
|
/**
|
|
152
171
|
* 清理所有监听器
|
|
153
172
|
*/
|
|
154
173
|
destroy(): void;
|
|
155
174
|
}
|
|
156
|
-
/**
|
|
157
|
-
* 全局单例事件总线实例
|
|
158
|
-
* 用于跨组件通信
|
|
159
|
-
*/
|
|
160
175
|
declare const globalCameraEventBus: CameraEventBus;
|
|
161
176
|
|
|
162
177
|
type LayerType = 'terrain' | 'imagery' | 'tileset' | 'datasource';
|
|
@@ -1605,9 +1620,13 @@ declare class CameraFOVController {
|
|
|
1605
1620
|
private focalLengthPresets;
|
|
1606
1621
|
constructor(opts?: FOVControllerOptions);
|
|
1607
1622
|
/**
|
|
1608
|
-
*
|
|
1623
|
+
* 🆕 监听外部 FOV 变化事件(来自 UI 面板等),同步更新滑块位置
|
|
1609
1624
|
*/
|
|
1610
|
-
private
|
|
1625
|
+
private setupExternalFOVListener;
|
|
1626
|
+
/**
|
|
1627
|
+
* 焦距转换为 FOV(度)- 直接计算版本
|
|
1628
|
+
*/
|
|
1629
|
+
private focalLengthToFOVDirect;
|
|
1611
1630
|
/**
|
|
1612
1631
|
* 创建 UI 控件
|
|
1613
1632
|
*/
|
|
@@ -1617,13 +1636,13 @@ declare class CameraFOVController {
|
|
|
1617
1636
|
*/
|
|
1618
1637
|
private handleSliderChange;
|
|
1619
1638
|
/**
|
|
1620
|
-
*
|
|
1639
|
+
* 根据索引插值计算焦距值
|
|
1621
1640
|
*/
|
|
1622
|
-
private
|
|
1641
|
+
private interpolateFocalLength;
|
|
1623
1642
|
/**
|
|
1624
|
-
*
|
|
1643
|
+
* 根据焦距值计算对应的索引(可以是小数)
|
|
1625
1644
|
*/
|
|
1626
|
-
private
|
|
1645
|
+
private getFocalLengthIndex;
|
|
1627
1646
|
/**
|
|
1628
1647
|
* 根据 FOV 找到最接近的预设索引(可以是小数)
|
|
1629
1648
|
*/
|
|
@@ -1662,6 +1681,11 @@ declare class CameraFOVController {
|
|
|
1662
1681
|
* 设置 FOV(度)
|
|
1663
1682
|
*/
|
|
1664
1683
|
setFOV(fovDeg: number): void;
|
|
1684
|
+
/**
|
|
1685
|
+
* 🆕 静默设置 FOV(度)- 只更新滑块位置,不广播事件
|
|
1686
|
+
* 用于响应外部 FOV 变化事件,避免循环广播
|
|
1687
|
+
*/
|
|
1688
|
+
setFOVSilent(fovDeg: number): void;
|
|
1665
1689
|
/**
|
|
1666
1690
|
* 获取当前 FOV
|
|
1667
1691
|
*/
|
|
@@ -1888,4 +1912,4 @@ declare const placeholder: {
|
|
|
1888
1912
|
ready: boolean;
|
|
1889
1913
|
};
|
|
1890
1914
|
|
|
1891
|
-
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 CzmlExportOptions, type CzmlImportOptions, type EditingChange, Emitter, type FOVChangeEvent, type FOVControllerOptions, 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 PathToSinoflyOptions, type PhotoBillboardItem, type PhotoBillboardLayerOptions, type PhotoBillboardResult, type PolygonDrawingOptions, type PolygonEditingSession, PolygonEditor, type PreviousViewChange, type QuickEditOptions, SceneManager, type SceneOptions, 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, toggle2D3D, version, versionInfo };
|
|
1915
|
+
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 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 PathToSinoflyOptions, type PhotoBillboardItem, type PhotoBillboardLayerOptions, type PhotoBillboardResult, type PolygonDrawingOptions, type PolygonEditingSession, PolygonEditor, type PreviousViewChange, type QuickEditOptions, SceneManager, type SceneOptions, 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, toggle2D3D, version, versionInfo };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Cesium from 'cesium';
|
|
2
|
-
export { V as VertexDetailInfo, a as VertexOperationInfo } from './VertexDetailInfo-
|
|
2
|
+
export { V as VertexDetailInfo, b as VertexDragMoveInfo, a as VertexOperationInfo, c as WaypointBatchUpdate, W as WaypointUpdateData } from './VertexDetailInfo-CProWwqv.js';
|
|
3
3
|
|
|
4
4
|
interface InitOptions {
|
|
5
5
|
appName?: string;
|
|
@@ -137,6 +137,23 @@ interface FrustumShapeChangeEvent {
|
|
|
137
137
|
/** 事件来源 */
|
|
138
138
|
source: 'controller' | 'user';
|
|
139
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* 飞机游标姿态变化事件
|
|
142
|
+
*/
|
|
143
|
+
interface CursorPoseChangeEvent {
|
|
144
|
+
/** 游标位置 */
|
|
145
|
+
position: any;
|
|
146
|
+
/** 航向角(度) */
|
|
147
|
+
heading: number;
|
|
148
|
+
/** 俯仰角(度) */
|
|
149
|
+
pitch: number;
|
|
150
|
+
/** 翻滚角(度) */
|
|
151
|
+
roll: number;
|
|
152
|
+
/** 海拔高度(米) */
|
|
153
|
+
altitude: number;
|
|
154
|
+
/** 事件来源 */
|
|
155
|
+
source: 'cursor' | 'user';
|
|
156
|
+
}
|
|
140
157
|
/**
|
|
141
158
|
* 全局事件总线
|
|
142
159
|
* 用于管理 CameraFOVController、PathPreview、FrustumPyramid 之间的通信
|
|
@@ -148,15 +165,13 @@ declare class CameraEventBus {
|
|
|
148
165
|
readonly onPoseChange: Emitter<CameraPoseChangeEvent>;
|
|
149
166
|
/** 视锥体形状变化事件 */
|
|
150
167
|
readonly onFrustumShapeChange: Emitter<FrustumShapeChangeEvent>;
|
|
168
|
+
/** 飞机游标姿态变化事件 */
|
|
169
|
+
readonly onCursorPoseChange: Emitter<CursorPoseChangeEvent>;
|
|
151
170
|
/**
|
|
152
171
|
* 清理所有监听器
|
|
153
172
|
*/
|
|
154
173
|
destroy(): void;
|
|
155
174
|
}
|
|
156
|
-
/**
|
|
157
|
-
* 全局单例事件总线实例
|
|
158
|
-
* 用于跨组件通信
|
|
159
|
-
*/
|
|
160
175
|
declare const globalCameraEventBus: CameraEventBus;
|
|
161
176
|
|
|
162
177
|
type LayerType = 'terrain' | 'imagery' | 'tileset' | 'datasource';
|
|
@@ -1605,9 +1620,13 @@ declare class CameraFOVController {
|
|
|
1605
1620
|
private focalLengthPresets;
|
|
1606
1621
|
constructor(opts?: FOVControllerOptions);
|
|
1607
1622
|
/**
|
|
1608
|
-
*
|
|
1623
|
+
* 🆕 监听外部 FOV 变化事件(来自 UI 面板等),同步更新滑块位置
|
|
1609
1624
|
*/
|
|
1610
|
-
private
|
|
1625
|
+
private setupExternalFOVListener;
|
|
1626
|
+
/**
|
|
1627
|
+
* 焦距转换为 FOV(度)- 直接计算版本
|
|
1628
|
+
*/
|
|
1629
|
+
private focalLengthToFOVDirect;
|
|
1611
1630
|
/**
|
|
1612
1631
|
* 创建 UI 控件
|
|
1613
1632
|
*/
|
|
@@ -1617,13 +1636,13 @@ declare class CameraFOVController {
|
|
|
1617
1636
|
*/
|
|
1618
1637
|
private handleSliderChange;
|
|
1619
1638
|
/**
|
|
1620
|
-
*
|
|
1639
|
+
* 根据索引插值计算焦距值
|
|
1621
1640
|
*/
|
|
1622
|
-
private
|
|
1641
|
+
private interpolateFocalLength;
|
|
1623
1642
|
/**
|
|
1624
|
-
*
|
|
1643
|
+
* 根据焦距值计算对应的索引(可以是小数)
|
|
1625
1644
|
*/
|
|
1626
|
-
private
|
|
1645
|
+
private getFocalLengthIndex;
|
|
1627
1646
|
/**
|
|
1628
1647
|
* 根据 FOV 找到最接近的预设索引(可以是小数)
|
|
1629
1648
|
*/
|
|
@@ -1662,6 +1681,11 @@ declare class CameraFOVController {
|
|
|
1662
1681
|
* 设置 FOV(度)
|
|
1663
1682
|
*/
|
|
1664
1683
|
setFOV(fovDeg: number): void;
|
|
1684
|
+
/**
|
|
1685
|
+
* 🆕 静默设置 FOV(度)- 只更新滑块位置,不广播事件
|
|
1686
|
+
* 用于响应外部 FOV 变化事件,避免循环广播
|
|
1687
|
+
*/
|
|
1688
|
+
setFOVSilent(fovDeg: number): void;
|
|
1665
1689
|
/**
|
|
1666
1690
|
* 获取当前 FOV
|
|
1667
1691
|
*/
|
|
@@ -1888,4 +1912,4 @@ declare const placeholder: {
|
|
|
1888
1912
|
ready: boolean;
|
|
1889
1913
|
};
|
|
1890
1914
|
|
|
1891
|
-
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 CzmlExportOptions, type CzmlImportOptions, type EditingChange, Emitter, type FOVChangeEvent, type FOVControllerOptions, 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 PathToSinoflyOptions, type PhotoBillboardItem, type PhotoBillboardLayerOptions, type PhotoBillboardResult, type PolygonDrawingOptions, type PolygonEditingSession, PolygonEditor, type PreviousViewChange, type QuickEditOptions, SceneManager, type SceneOptions, 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, toggle2D3D, version, versionInfo };
|
|
1915
|
+
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 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 PathToSinoflyOptions, type PhotoBillboardItem, type PhotoBillboardLayerOptions, type PhotoBillboardResult, type PolygonDrawingOptions, type PolygonEditingSession, PolygonEditor, type PreviousViewChange, type QuickEditOptions, SceneManager, type SceneOptions, 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, toggle2D3D, version, versionInfo };
|