gis-cesium-helper 3.6.20 → 4.1.1
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/Cesium/Cesium.js +15091 -14643
- package/dist/gis-cesium-helper.es.js +1418 -16
- package/dist/gis-cesium-helper.umd.js +2 -3
- package/dist/index.d.ts +7 -0
- package/dist/src/BaseGlobe.d.ts +100 -0
- package/dist/src/feature/radar/RadarCircle.d.ts +61 -0
- package/dist/src/feature/radar/RadarCylinder.d.ts +24 -0
- package/dist/src/feature/radar/RadarEllipsoid.d.ts +8 -0
- package/dist/src/feature/radar/RadarSector.d.ts +40 -0
- package/dist/src/feature/radar/index.d.ts +3 -0
- package/dist/src/manager/BaseGraphic.d.ts +16 -0
- package/dist/src/manager/BaseLayer.d.ts +35 -0
- package/dist/src/manager/BaseToolBar.d.ts +86 -0
- package/dist/src/manager/GlobeUtil.d.ts +35 -0
- package/package.json +45 -44
- package/dist/Cesium/index.cjs +0 -14666
- package/dist/Cesium/index.js +0 -14666
- package/dist/gis-cesium-helper.es.js.map +0 -1
- package/dist/gis-cesium-helper.umd.js.map +0 -1
- package/index.d.ts +0 -41572
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as BaseGraphic } from './src/manager/BaseGraphic';
|
|
2
|
+
import { default as BaseLayer } from './src/manager/BaseLayer';
|
|
3
|
+
import { default as BaseGlobe } from './src/BaseGlobe';
|
|
4
|
+
import { ToolBarItem, BaseToolBar } from './src/manager/BaseToolBar';
|
|
5
|
+
export * from './src/feature/radar';
|
|
6
|
+
export { default as GlobeUtil } from './src/manager/GlobeUtil';
|
|
7
|
+
export { BaseGlobe, BaseLayer, BaseGraphic, ToolBarItem, BaseToolBar };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { EventDispatcher, HashMap } from 'gis-common';
|
|
2
|
+
import { default as GlobeUtil } from './manager/GlobeUtil';
|
|
3
|
+
import { default as BaseLayer } from './manager/BaseLayer';
|
|
4
|
+
export interface ITilesetData extends ICoordinate {
|
|
5
|
+
id: string;
|
|
6
|
+
mapPath: string;
|
|
7
|
+
show: boolean;
|
|
8
|
+
name: string;
|
|
9
|
+
scale: string;
|
|
10
|
+
displayAccuracy: number;
|
|
11
|
+
displayTransparency: number;
|
|
12
|
+
}
|
|
13
|
+
export default class BaseGlobe extends EventDispatcher {
|
|
14
|
+
lang: 'zh_CN' | 'en_US';
|
|
15
|
+
readonly globeUtil: GlobeUtil;
|
|
16
|
+
readonly _instance: any;
|
|
17
|
+
options: Record<string, any>;
|
|
18
|
+
tilesetLayers: any[];
|
|
19
|
+
_layerMap: HashMap<string, BaseLayer>;
|
|
20
|
+
static DEFAULT_OPTIONS: {
|
|
21
|
+
scene: {
|
|
22
|
+
loadAnimation: boolean;
|
|
23
|
+
scene3DOnly: boolean;
|
|
24
|
+
shadows: boolean;
|
|
25
|
+
removeDblClick: boolean;
|
|
26
|
+
showSun: boolean;
|
|
27
|
+
showMoon: boolean;
|
|
28
|
+
showSkyBox: boolean;
|
|
29
|
+
showSkyAtmosphere: boolean;
|
|
30
|
+
requestRenderMode: boolean;
|
|
31
|
+
globe: {
|
|
32
|
+
depthTestAgainstTerrain: boolean;
|
|
33
|
+
baseColor: string;
|
|
34
|
+
};
|
|
35
|
+
cameraController: {
|
|
36
|
+
zoomFactor: number;
|
|
37
|
+
enableRotate: boolean;
|
|
38
|
+
enableTranslate: boolean;
|
|
39
|
+
enableTilt: boolean;
|
|
40
|
+
enableZoom: boolean;
|
|
41
|
+
enableCollisionDetection: boolean;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
control: {
|
|
45
|
+
homeButton: boolean;
|
|
46
|
+
baseLayerPicker: boolean;
|
|
47
|
+
distanceLegend: boolean;
|
|
48
|
+
sceneModePicker: boolean;
|
|
49
|
+
fullscreenButton: boolean;
|
|
50
|
+
vrButton: boolean;
|
|
51
|
+
navigationHelpButton: boolean;
|
|
52
|
+
animation: boolean;
|
|
53
|
+
timeline: boolean;
|
|
54
|
+
infoBox: boolean;
|
|
55
|
+
selectionIndicator: boolean;
|
|
56
|
+
mouseDownView: boolean;
|
|
57
|
+
contextmenu: {
|
|
58
|
+
hasDefault: boolean;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
constructor(el: HTMLElement | string, options?: Record<string, any>);
|
|
63
|
+
/**
|
|
64
|
+
* 初始化三维模型
|
|
65
|
+
* @param models 模型数据
|
|
66
|
+
* @param options 参数
|
|
67
|
+
* @returns 模型对象数组
|
|
68
|
+
*/
|
|
69
|
+
init3DTiles(models: Array<ITilesetData>, options?: Partial<{
|
|
70
|
+
flyTo: boolean;
|
|
71
|
+
}>): any[];
|
|
72
|
+
/**
|
|
73
|
+
* 移除地图上的所有三维模型
|
|
74
|
+
*/
|
|
75
|
+
remove3DTiles(): void;
|
|
76
|
+
/**
|
|
77
|
+
* 显示/隐藏地图上的所有三维模型
|
|
78
|
+
* @param visible true:显示,false:隐藏
|
|
79
|
+
*/
|
|
80
|
+
set3DTilesVisible(visible: boolean): void;
|
|
81
|
+
setLayerVisible(layers: any, visible: boolean): void;
|
|
82
|
+
setView(view: ICoordinateSimple, options?: {}): void;
|
|
83
|
+
private initEvent;
|
|
84
|
+
setLanguage(lang: Lang): void;
|
|
85
|
+
setCursor(cursor?: string): void;
|
|
86
|
+
openWidget(name: string, options?: {}, events?: {}, config?: {}): void;
|
|
87
|
+
closeWidget(name: string): void;
|
|
88
|
+
closeAllWidget(): void;
|
|
89
|
+
get hasTileset(): boolean;
|
|
90
|
+
get hasTerrain(): boolean;
|
|
91
|
+
addLayer(layer: BaseLayer): any;
|
|
92
|
+
removeLayer(layer: BaseLayer): this;
|
|
93
|
+
getLayers(): BaseLayer[];
|
|
94
|
+
getLayer(id: string): BaseLayer | undefined;
|
|
95
|
+
hasLayer(layer: BaseLayer): boolean;
|
|
96
|
+
flyTo(target: any, options: any): any;
|
|
97
|
+
flyToGraphic(target: any, options?: any): any;
|
|
98
|
+
getCenter(): any;
|
|
99
|
+
getExtent(): any;
|
|
100
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { default as BaseGraphic, IBaseGraphicOptions } from '../../manager/BaseGraphic';
|
|
2
|
+
import { default as BaseLayer } from '../../manager/BaseLayer';
|
|
3
|
+
export declare enum CircleMaterialType {
|
|
4
|
+
Wave = 0,// 扩散
|
|
5
|
+
Scan = 1,// 扫描(材质固定,无法定义夹角大小,故放到圆形类中)
|
|
6
|
+
Breath = 2,// 呼吸
|
|
7
|
+
Whirl = 3
|
|
8
|
+
}
|
|
9
|
+
export interface IRadarCircleOptions extends IBaseGraphicOptions {
|
|
10
|
+
center: ICoordinateSimple;
|
|
11
|
+
radius: number;
|
|
12
|
+
diffHeight?: number;
|
|
13
|
+
color?: string;
|
|
14
|
+
fillColor?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 东西南北轴线
|
|
17
|
+
*/
|
|
18
|
+
axis?: {
|
|
19
|
+
color?: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* 距离环及刻度
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
scale?: {
|
|
26
|
+
splitNum: number;
|
|
27
|
+
label?: (value: number) => string;
|
|
28
|
+
lineColor?: string;
|
|
29
|
+
labelColor?: string;
|
|
30
|
+
maxDistance?: number;
|
|
31
|
+
minDistance?: number;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 动画效果材质
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
material?: {
|
|
38
|
+
type: CircleMaterialType;
|
|
39
|
+
speed: number;
|
|
40
|
+
color?: string;
|
|
41
|
+
clockwise?: boolean;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export default class RadarCircle extends BaseGraphic {
|
|
45
|
+
static DEFAULT_OPTIONS: Partial<IRadarCircleOptions>;
|
|
46
|
+
position: CoordinateArray;
|
|
47
|
+
options: Required<IRadarCircleOptions>;
|
|
48
|
+
circleEntity: any;
|
|
49
|
+
materialEntity: any;
|
|
50
|
+
axisEntity: any[];
|
|
51
|
+
scaleCircleEntity: any[];
|
|
52
|
+
labelCircleEntity: any[];
|
|
53
|
+
constructor(options: IRadarCircleOptions);
|
|
54
|
+
addHook(e: BaseLayer): void;
|
|
55
|
+
private initializeCircle;
|
|
56
|
+
private initializeScale;
|
|
57
|
+
private initializeMaterial;
|
|
58
|
+
private getCircleStyle;
|
|
59
|
+
setStyle(style?: Partial<IRadarCircleOptions>): void;
|
|
60
|
+
setVisible(visible: boolean): void;
|
|
61
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as BaseLayer } from '../../manager/BaseLayer';
|
|
2
|
+
import { default as BaseGraphic, IBaseGraphicOptions } from '../../manager/BaseGraphic';
|
|
3
|
+
export interface IRadarCylinderOptions extends IBaseGraphicOptions {
|
|
4
|
+
center: ICoordinateSimple;
|
|
5
|
+
radius: number;
|
|
6
|
+
length: number;
|
|
7
|
+
heading?: number;
|
|
8
|
+
pitch?: number;
|
|
9
|
+
roll?: number;
|
|
10
|
+
fillColor?: string;
|
|
11
|
+
}
|
|
12
|
+
export default class RadarCylinder extends BaseGraphic {
|
|
13
|
+
static DEFAULT_OPTIONS: Partial<IRadarCylinderOptions>;
|
|
14
|
+
options: Required<IRadarCylinderOptions>;
|
|
15
|
+
position: CoordinateArray;
|
|
16
|
+
cylinderEntity: any;
|
|
17
|
+
constructor(options: IRadarCylinderOptions);
|
|
18
|
+
addHook(e: BaseLayer): void;
|
|
19
|
+
initializeCylinder(): void;
|
|
20
|
+
private getCylinderStyle;
|
|
21
|
+
initializeMaterial(): void;
|
|
22
|
+
setStyle(style?: Partial<IRadarCylinderOptions>): void;
|
|
23
|
+
setVisible(visible: boolean): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as BaseGraphic, IBaseGraphicOptions } from '../../manager/BaseGraphic';
|
|
2
|
+
export interface IRadarEllipsoidOptions extends IBaseGraphicOptions {
|
|
3
|
+
}
|
|
4
|
+
export default class RadarEllipsoid extends BaseGraphic {
|
|
5
|
+
static DEFAULT_OPTIONS: Partial<IRadarEllipsoidOptions>;
|
|
6
|
+
options: Required<IRadarEllipsoidOptions>;
|
|
7
|
+
constructor(options: IRadarEllipsoidOptions);
|
|
8
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { default as BaseGraphic, IBaseGraphicOptions } from '../../manager/BaseGraphic';
|
|
2
|
+
import { default as BaseLayer } from '../../manager/BaseLayer';
|
|
3
|
+
export declare enum SectorMaterialType {
|
|
4
|
+
ScanSwing = 0,// 摆动扫描(自定义来回摆动的幅度)
|
|
5
|
+
Strike = 1
|
|
6
|
+
}
|
|
7
|
+
export interface IRadarSectorOptions extends IBaseGraphicOptions {
|
|
8
|
+
center: ICoordinateSimple;
|
|
9
|
+
radius: number;
|
|
10
|
+
startAngle: number;
|
|
11
|
+
endAngle: number;
|
|
12
|
+
type?: 'sector' | 'arc' | 'bow';
|
|
13
|
+
color?: string;
|
|
14
|
+
fillColor?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 扫描材质
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
material?: {
|
|
20
|
+
type: SectorMaterialType;
|
|
21
|
+
speed: number;
|
|
22
|
+
color?: string;
|
|
23
|
+
clockwise?: boolean;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export default class RadarSector extends BaseGraphic {
|
|
27
|
+
static DEFAULT_OPTIONS: Partial<IRadarSectorOptions>;
|
|
28
|
+
position: CoordinateArray;
|
|
29
|
+
options: Required<IRadarSectorOptions>;
|
|
30
|
+
sectorEntity: any;
|
|
31
|
+
materialEntity: any;
|
|
32
|
+
constructor(options: IRadarSectorOptions);
|
|
33
|
+
addHook(e: BaseLayer): void;
|
|
34
|
+
initializeSector(): void;
|
|
35
|
+
initializeMaterial(): void;
|
|
36
|
+
private getSectorStyle;
|
|
37
|
+
setStyle(style?: Partial<IRadarSectorOptions>): void;
|
|
38
|
+
setVisible(visible: boolean): void;
|
|
39
|
+
get angle(): number;
|
|
40
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as BaseLayer } from './BaseLayer';
|
|
2
|
+
export interface IBaseGraphicOptions {
|
|
3
|
+
id?: string;
|
|
4
|
+
}
|
|
5
|
+
export default class BaseGraphic {
|
|
6
|
+
_instance: any;
|
|
7
|
+
_layer?: BaseLayer;
|
|
8
|
+
readonly _uid: string;
|
|
9
|
+
options: IBaseGraphicOptions;
|
|
10
|
+
addHook(e: BaseLayer): void;
|
|
11
|
+
removeHook(e: BaseLayer): void;
|
|
12
|
+
constructor(options?: {});
|
|
13
|
+
private initializeOptions;
|
|
14
|
+
addTo(e: BaseLayer): void;
|
|
15
|
+
remove(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EventDispatcher, HashMap } from 'gis-common';
|
|
2
|
+
import { default as BaseGlobe } from '../BaseGlobe';
|
|
3
|
+
import { default as BaseGraphic } from './BaseGraphic';
|
|
4
|
+
export interface EarthEvent {
|
|
5
|
+
cartesian: IPoint;
|
|
6
|
+
position: IPoint;
|
|
7
|
+
layerPoint: IPoint;
|
|
8
|
+
originalEvent: MouseEvent;
|
|
9
|
+
target: BaseGlobe;
|
|
10
|
+
type: MouseType;
|
|
11
|
+
graphic: any;
|
|
12
|
+
}
|
|
13
|
+
export interface IBaseLayerOptions {
|
|
14
|
+
id: string;
|
|
15
|
+
show: boolean;
|
|
16
|
+
flyTo: boolean;
|
|
17
|
+
}
|
|
18
|
+
export default class BaseLayer extends EventDispatcher {
|
|
19
|
+
_globe?: BaseGlobe;
|
|
20
|
+
_instance: any;
|
|
21
|
+
options: IBaseLayerOptions;
|
|
22
|
+
_graphicMap: HashMap<string, BaseGraphic>;
|
|
23
|
+
readonly _uid: string;
|
|
24
|
+
addHook(evt: EarthEvent, e: BaseGlobe): void;
|
|
25
|
+
removeHook(evt: EarthEvent, e: BaseGlobe): void;
|
|
26
|
+
constructor(options?: Partial<IBaseLayerOptions>);
|
|
27
|
+
private initializeOptions;
|
|
28
|
+
addTo(e: BaseGlobe): this;
|
|
29
|
+
remove(destroy?: boolean): void;
|
|
30
|
+
getGraphics(): BaseGraphic[];
|
|
31
|
+
getGraphicById(id: string): BaseGraphic | undefined;
|
|
32
|
+
addGraphic(graphic: BaseGraphic): any;
|
|
33
|
+
removeGraphic(graphic: BaseGraphic): any;
|
|
34
|
+
clear(destroy?: boolean): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { EventDispatcher } from 'gis-common';
|
|
2
|
+
import { default as BaseGlobe } from '../BaseGlobe';
|
|
3
|
+
export interface IToolBarItemOptions {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
iconCls?: string;
|
|
7
|
+
iconUrl?: string;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
enable?: boolean;
|
|
10
|
+
viewer?: BaseGlobe;
|
|
11
|
+
actionFun?(ctx: BaseToolBar, s: ToolBarItem, e: MouseEvent): void;
|
|
12
|
+
mouseover?(ctx: BaseToolBar, s: ToolBarItem, e: MouseEvent): void;
|
|
13
|
+
mouseout?(ctx: BaseToolBar, s: ToolBarItem, e: MouseEvent): void;
|
|
14
|
+
addHook?(ctx: BaseToolBar): void;
|
|
15
|
+
}
|
|
16
|
+
export interface IBaseToolBarOptions {
|
|
17
|
+
items: any[];
|
|
18
|
+
position?: 'topleft' | 'topright' | 'bottomleft' | 'bottomright';
|
|
19
|
+
orientation?: 'vertical' | 'horizontal';
|
|
20
|
+
offset?: [number, number];
|
|
21
|
+
}
|
|
22
|
+
export declare class ToolBarItem {
|
|
23
|
+
id: string;
|
|
24
|
+
iconCls: string;
|
|
25
|
+
iconUrl: string;
|
|
26
|
+
container: HTMLElement;
|
|
27
|
+
ctx: BaseToolBar;
|
|
28
|
+
_globe: BaseGlobe;
|
|
29
|
+
actionFun?(ctx: BaseToolBar, s: ToolBarItem, e: MouseEvent): void;
|
|
30
|
+
mouseover?(ctx: BaseToolBar, s: ToolBarItem, e: MouseEvent): void;
|
|
31
|
+
mouseout?(ctx: BaseToolBar, s: ToolBarItem, e: MouseEvent): void;
|
|
32
|
+
addHook?(ctx: BaseToolBar): void;
|
|
33
|
+
_event?(e: any): void;
|
|
34
|
+
static Refresh: typeof Refresh;
|
|
35
|
+
static MeasureDis: typeof MeasureDis;
|
|
36
|
+
static MeasureArea: typeof MeasureArea;
|
|
37
|
+
static Home: typeof Home;
|
|
38
|
+
static Keyboard: typeof Keyboard;
|
|
39
|
+
static Clear: typeof Clear;
|
|
40
|
+
constructor(options: IToolBarItemOptions);
|
|
41
|
+
initialize(viewer: BaseGlobe): void;
|
|
42
|
+
set enable(val: boolean);
|
|
43
|
+
get enable(): boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare class BaseToolBar extends EventDispatcher {
|
|
46
|
+
_globe: BaseGlobe;
|
|
47
|
+
container: HTMLElement;
|
|
48
|
+
measureTool: any;
|
|
49
|
+
items: any[];
|
|
50
|
+
graphicLayer: any;
|
|
51
|
+
lastItem: ToolBarItem;
|
|
52
|
+
constructor(viewer: BaseGlobe, options: IBaseToolBarOptions);
|
|
53
|
+
private createDom;
|
|
54
|
+
insertItem(data: IToolBarItemOptions, beforeId: string): void;
|
|
55
|
+
getItem(id: string): any;
|
|
56
|
+
changeToolStatus(id: string, status: boolean): void;
|
|
57
|
+
}
|
|
58
|
+
export declare class Refresh extends ToolBarItem {
|
|
59
|
+
constructor(viewer: BaseGlobe);
|
|
60
|
+
actionFun(e: BaseToolBar): void;
|
|
61
|
+
}
|
|
62
|
+
export declare class MeasureDis extends ToolBarItem {
|
|
63
|
+
constructor(viewer: BaseGlobe);
|
|
64
|
+
actionFun(e: BaseToolBar): void;
|
|
65
|
+
}
|
|
66
|
+
export declare class MeasureArea extends ToolBarItem {
|
|
67
|
+
constructor(viewer: BaseGlobe);
|
|
68
|
+
actionFun(e: BaseToolBar): void;
|
|
69
|
+
}
|
|
70
|
+
export declare class Home extends ToolBarItem {
|
|
71
|
+
constructor(viewer: BaseGlobe);
|
|
72
|
+
actionFun(e: BaseToolBar): void;
|
|
73
|
+
}
|
|
74
|
+
export declare class Keyboard extends ToolBarItem {
|
|
75
|
+
imgContainer: HTMLElement;
|
|
76
|
+
static ENABLE: boolean;
|
|
77
|
+
constructor(viewer: BaseGlobe);
|
|
78
|
+
mouseover(e: BaseToolBar): void;
|
|
79
|
+
mouseout(e: BaseToolBar): void;
|
|
80
|
+
actionFun(e: BaseToolBar): void;
|
|
81
|
+
addHook(ctx: BaseToolBar): void;
|
|
82
|
+
}
|
|
83
|
+
export declare class Clear extends ToolBarItem {
|
|
84
|
+
constructor(viewer: BaseGlobe);
|
|
85
|
+
actionFun(e: BaseToolBar): void;
|
|
86
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*三维地球工具类
|
|
3
|
+
* @export
|
|
4
|
+
* @class GlobeUtil
|
|
5
|
+
*/
|
|
6
|
+
export default class GlobeUtil {
|
|
7
|
+
/**
|
|
8
|
+
* Creates an instance of GlobeUtil.
|
|
9
|
+
* @param {*} _globe
|
|
10
|
+
* @memberof GlobeUtil
|
|
11
|
+
*/
|
|
12
|
+
readonly _globe: any;
|
|
13
|
+
constructor(globe: any);
|
|
14
|
+
/**
|
|
15
|
+
* 笛卡尔坐标转经纬度
|
|
16
|
+
* @param {*} cartesian3
|
|
17
|
+
* @returns {*}
|
|
18
|
+
* @memberof GlobeUtil
|
|
19
|
+
*/
|
|
20
|
+
transCartesianToWGS84(cartesian3: any): ICoordinateSimple;
|
|
21
|
+
/**
|
|
22
|
+
*采集地形高度
|
|
23
|
+
* @param {*} targets
|
|
24
|
+
* @returns {*}
|
|
25
|
+
* @memberof GlobeUtil
|
|
26
|
+
*/
|
|
27
|
+
getTerrainAltitude(targets: Array<ICoordinate>): Promise<CoordinateArray[]>;
|
|
28
|
+
/**
|
|
29
|
+
*采集模型高度
|
|
30
|
+
* @param {*} targets
|
|
31
|
+
* @returns {*}
|
|
32
|
+
* @memberof GlobeUtil
|
|
33
|
+
*/
|
|
34
|
+
getModelAltitude(targets: Array<ICoordinate>): Promise<number[][]>;
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "gis-cesium-helper",
|
|
3
|
-
"version": "
|
|
4
|
-
"author": "Guo.Yan <luv02@vip.qq.com>",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"private": false,
|
|
7
|
-
"module": "./dist/gis-cesium-helper.es.js",
|
|
8
|
-
"
|
|
9
|
-
"main": "./dist/gis-cesium-helper.
|
|
10
|
-
"files": [
|
|
11
|
-
"dist",
|
|
12
|
-
"index.d.ts"
|
|
13
|
-
],
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
},
|
|
20
|
-
"./style.css": "./dist/style.css"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"dev": "vite",
|
|
24
|
-
"build": "vite build --mode project",
|
|
25
|
-
"lib": "vite build --mode lib",
|
|
26
|
-
"serve": "vite preview"
|
|
27
|
-
},
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": ""
|
|
31
|
-
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"@
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"vite
|
|
42
|
-
"vite-plugin-
|
|
43
|
-
|
|
44
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "gis-cesium-helper",
|
|
3
|
+
"version": "4.1.1",
|
|
4
|
+
"author": "Guo.Yan <luv02@vip.qq.com>",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"private": false,
|
|
7
|
+
"module": "./dist/gis-cesium-helper.es.js",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./dist/gis-cesium-helper.es.js",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"index.d.ts"
|
|
13
|
+
],
|
|
14
|
+
"types": "dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/gis-cesium-helper.es.js",
|
|
18
|
+
"require": "./dist/gis-cesium-helper.umd.js"
|
|
19
|
+
},
|
|
20
|
+
"./style.css": "./dist/style.css"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "vite",
|
|
24
|
+
"build": "vite build --mode project",
|
|
25
|
+
"lib": "vite build --mode lib",
|
|
26
|
+
"serve": "vite preview"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": ""
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"gis-common": "^5.1.21",
|
|
34
|
+
"vue": "^3.2.16"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/node": "^25.0.3",
|
|
38
|
+
"@vitejs/plugin-vue": "^5.2.2",
|
|
39
|
+
"terser": "^5.32.0",
|
|
40
|
+
"typescript": "^5.9.3",
|
|
41
|
+
"vite": "^6.3.2",
|
|
42
|
+
"vite-plugin-css-injected-by-js": "^3.1.1",
|
|
43
|
+
"vite-plugin-dts": "^4.5.4"
|
|
44
|
+
}
|
|
45
|
+
}
|