@gausslib/gauss-core 0.0.9 → 0.0.10

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.
@@ -3,18 +3,14 @@
3
3
  * @Date: 2025/12/27 16:50
4
4
  * @Description:
5
5
  */
6
- export declare const defaultViewerOptions: {
7
- animation: boolean;
8
- timeline: boolean;
9
- baseLayerPicker: boolean;
10
- geocoder: boolean;
11
- sceneModePicker: boolean;
12
- homeButton: boolean;
13
- fullscreenButton: boolean;
14
- navigationHelpButton: boolean;
15
- infoBox: boolean;
16
- selectionIndicator: boolean;
17
- vrButton: boolean;
18
- shadows: boolean;
19
- debug: boolean;
20
- };
6
+ import { Viewer } from 'cesium';
7
+ /**
8
+ * Cesium 默认配置项
9
+ */
10
+ export declare const defaultViewerOptions: Partial<Viewer.ConstructorOptions>;
11
+ /**
12
+ * Gauss 扩展类型
13
+ **/
14
+ export interface GaussViewerOptions extends Viewer.ConstructorOptions {
15
+ debug?: boolean;
16
+ }
@@ -1,9 +1,4 @@
1
- /**
2
- * @Author: jc
3
- * @Date: 2025/12/27 16:38
4
- * @Description: Cesium Viewer 封装类
5
- */
6
- import * as Cesium from 'cesium';
1
+ import type { GaussViewerOptions } from "@/core/config/viewerOptions";
7
2
  export declare class Viewer {
8
3
  private viewer;
9
4
  private logger;
@@ -12,7 +7,7 @@ export declare class Viewer {
12
7
  * @param container - 容器元素
13
8
  * @param options - 配置项
14
9
  */
15
- constructor(container: string | HTMLElement, options?: Cesium.Viewer.ConstructorOptions);
10
+ constructor(container: string | HTMLElement, options?: GaussViewerOptions);
16
11
  /**
17
12
  * 销毁 Viewer
18
13
  */