ino-cesium 0.0.16 → 0.0.17-beta.2
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/README.MD +275 -181
- package/dist/ino-cesium-full.js +6 -6
- package/dist/ino-cesium.d.ts +912 -802
- package/dist/ino-cesium.js +1 -1
- package/package.json +10 -8
package/dist/ino-cesium.d.ts
CHANGED
|
@@ -1,208 +1,5 @@
|
|
|
1
1
|
import * as Cesium from 'cesium';
|
|
2
2
|
export { Cesium };
|
|
3
|
-
import { FeatureCollection as FeatureCollection$1, Point as Point$1, Polygon as Polygon$1, MultiPolygon as MultiPolygon$1, GeoJsonProperties as GeoJsonProperties$1, LineString as LineString$1, MultiLineString as MultiLineString$1, Feature as Feature$1 } from 'geojson';
|
|
4
|
-
|
|
5
|
-
interface ISetViewByLngLatOptions {
|
|
6
|
-
lng: number;
|
|
7
|
-
lat: number;
|
|
8
|
-
height?: number;
|
|
9
|
-
viewer: Cesium.Viewer;
|
|
10
|
-
}
|
|
11
|
-
interface ISetViewByPositionOptions {
|
|
12
|
-
position: Cesium.Cartesian3;
|
|
13
|
-
viewer: Cesium.Viewer;
|
|
14
|
-
}
|
|
15
|
-
interface ICamearView {
|
|
16
|
-
destination: Cesium.Cartesian3;
|
|
17
|
-
orientation: {
|
|
18
|
-
heading: number;
|
|
19
|
-
pitch: number;
|
|
20
|
-
roll: number;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
interface ICesiumEventListener {
|
|
24
|
-
LEFT_CLICK?: (e: any) => void;
|
|
25
|
-
LEFT_POSITION?: (e: any) => void;
|
|
26
|
-
MOVE_POSITION?: (e: any) => void;
|
|
27
|
-
PICK_FEATURE?: (pickModel: any, feature: any) => void;
|
|
28
|
-
MOVE_PICK_FEATURE?: (pickModel: any, feature: any) => void;
|
|
29
|
-
}
|
|
30
|
-
type DeepPartial<T> = {
|
|
31
|
-
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
interface ISkyBoxSources {
|
|
35
|
-
positiveX: string;
|
|
36
|
-
negativeX: string;
|
|
37
|
-
positiveY: string;
|
|
38
|
-
negativeY: string;
|
|
39
|
-
positiveZ: string;
|
|
40
|
-
negativeZ: string;
|
|
41
|
-
}
|
|
42
|
-
interface ISkyBoxOptions {
|
|
43
|
-
viewer: Cesium.Viewer;
|
|
44
|
-
sources?: ISkyBoxSources;
|
|
45
|
-
}
|
|
46
|
-
interface ISkyBoxOnGroundOptions extends ISkyBoxOptions {
|
|
47
|
-
height?: number;
|
|
48
|
-
}
|
|
49
|
-
interface IYawPitchRoll {
|
|
50
|
-
yaw: number;
|
|
51
|
-
pitch: number;
|
|
52
|
-
roll: number;
|
|
53
|
-
offsetYaw?: number;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
type types$4_DeepPartial<T> = DeepPartial<T>;
|
|
57
|
-
type types$4_ICamearView = ICamearView;
|
|
58
|
-
type types$4_ICesiumEventListener = ICesiumEventListener;
|
|
59
|
-
type types$4_ISetViewByLngLatOptions = ISetViewByLngLatOptions;
|
|
60
|
-
type types$4_ISetViewByPositionOptions = ISetViewByPositionOptions;
|
|
61
|
-
type types$4_ISkyBoxOnGroundOptions = ISkyBoxOnGroundOptions;
|
|
62
|
-
type types$4_ISkyBoxOptions = ISkyBoxOptions;
|
|
63
|
-
type types$4_ISkyBoxSources = ISkyBoxSources;
|
|
64
|
-
type types$4_IYawPitchRoll = IYawPitchRoll;
|
|
65
|
-
declare namespace types$4 {
|
|
66
|
-
export type { types$4_DeepPartial as DeepPartial, types$4_ICamearView as ICamearView, types$4_ICesiumEventListener as ICesiumEventListener, types$4_ISetViewByLngLatOptions as ISetViewByLngLatOptions, types$4_ISetViewByPositionOptions as ISetViewByPositionOptions, types$4_ISkyBoxOnGroundOptions as ISkyBoxOnGroundOptions, types$4_ISkyBoxOptions as ISkyBoxOptions, types$4_ISkyBoxSources as ISkyBoxSources, types$4_IYawPitchRoll as IYawPitchRoll };
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* 初始化Cesium
|
|
71
|
-
* @param eleId DOM元素ID
|
|
72
|
-
* @param options Viewer.ConstructorOptions
|
|
73
|
-
*/
|
|
74
|
-
declare const initCesium: (eleId: string, options?: Cesium.Viewer.ConstructorOptions & {
|
|
75
|
-
token?: string;
|
|
76
|
-
}) => Cesium.Viewer;
|
|
77
|
-
/**
|
|
78
|
-
* 修改地球透明度
|
|
79
|
-
* @param value 0-1
|
|
80
|
-
* @param viewer
|
|
81
|
-
*/
|
|
82
|
-
declare const setGlobeOpatity: (value: number, viewer: Cesium.Viewer) => void;
|
|
83
|
-
declare const setCesiumForAutoFitScale: (value: number) => void;
|
|
84
|
-
declare const getCesiumForAutoFitScale: () => number;
|
|
85
|
-
declare const DefaultViewerOptions: Cesium.Viewer.ConstructorOptions;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* 设置中心点
|
|
89
|
-
* @param options.lng 精度
|
|
90
|
-
* @param options.lat 纬度
|
|
91
|
-
* @param options.height 高度
|
|
92
|
-
* @param options.viewer Cesium Viewer 实例
|
|
93
|
-
*/
|
|
94
|
-
declare const setViewToLnglat: (options: ISetViewByLngLatOptions) => void;
|
|
95
|
-
/**
|
|
96
|
-
* 飞行至中心点
|
|
97
|
-
* @param options.lng 精度
|
|
98
|
-
* @param options.lat 纬度
|
|
99
|
-
* @param options.height 高度
|
|
100
|
-
* @param options.viewer Cesium Viewer 实例
|
|
101
|
-
*/
|
|
102
|
-
declare const flyToLnglat: (options: ISetViewByLngLatOptions) => void;
|
|
103
|
-
/**
|
|
104
|
-
* 飞行至中心点
|
|
105
|
-
* @param options.lng 精度
|
|
106
|
-
* @param options.lat 纬度
|
|
107
|
-
* @param options.height 高度
|
|
108
|
-
* @param options.viewer Cesium Viewer 实例
|
|
109
|
-
*/
|
|
110
|
-
declare const flyToPosition: (options: ISetViewByPositionOptions) => void;
|
|
111
|
-
/**
|
|
112
|
-
* 获取相机视图
|
|
113
|
-
* @param viewer
|
|
114
|
-
* @returns camearView
|
|
115
|
-
*
|
|
116
|
-
* camearView: {
|
|
117
|
-
* destination: Cartesian3,
|
|
118
|
-
* orientation: {
|
|
119
|
-
* heading: number
|
|
120
|
-
* pitch: number
|
|
121
|
-
* roll: number
|
|
122
|
-
* }
|
|
123
|
-
* }
|
|
124
|
-
*/
|
|
125
|
-
declare function getCameraView(viewer: Cesium.Viewer): ICamearView;
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
* @param camearView
|
|
129
|
-
* camearView: {
|
|
130
|
-
* destination: Cartesian3
|
|
131
|
-
* orientation: {
|
|
132
|
-
* heading: number
|
|
133
|
-
* pitch: number
|
|
134
|
-
* roll: number
|
|
135
|
-
* }
|
|
136
|
-
* }
|
|
137
|
-
* @param viewer
|
|
138
|
-
*/
|
|
139
|
-
declare function flyToCameraView(camearView: ICamearView, viewer: Cesium.Viewer): void;
|
|
140
|
-
/**
|
|
141
|
-
* 飞行至数据源
|
|
142
|
-
* @param dataScourceId 数据源id
|
|
143
|
-
* @param viewer Cesium Viewer 实例
|
|
144
|
-
*/
|
|
145
|
-
declare function flyToDataSource(dataScourceId: string, viewer: Cesium.Viewer): void;
|
|
146
|
-
/**
|
|
147
|
-
* 飞行至影像图层
|
|
148
|
-
* @param imagery 影像图层
|
|
149
|
-
* @param viewer Cesium Viewer 实例
|
|
150
|
-
*/
|
|
151
|
-
declare function flyToImagery(imagery: Cesium.ImageryLayer, viewer: Cesium.Viewer): void;
|
|
152
|
-
/**
|
|
153
|
-
* 飞行至3dtile
|
|
154
|
-
* @param {}tileset 3dtile
|
|
155
|
-
* @param viewer Cesium Viewer 实例
|
|
156
|
-
*/
|
|
157
|
-
declare function flyToCesium3DTile(tileset: Cesium.Cesium3DTileset, viewer: Cesium.Viewer): void;
|
|
158
|
-
/**
|
|
159
|
-
* 飞行至球体
|
|
160
|
-
* @param sphere 球体
|
|
161
|
-
* @param viewer
|
|
162
|
-
*/
|
|
163
|
-
declare function flyToFromSphere(sphere: number[], viewer: Cesium.Viewer): void;
|
|
164
|
-
/**
|
|
165
|
-
* 闪烁模型
|
|
166
|
-
* @param model
|
|
167
|
-
*/
|
|
168
|
-
declare function twinkleModel(model: any): void;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* 初始化cesium事件
|
|
172
|
-
* @param viewer
|
|
173
|
-
* @param eventListener
|
|
174
|
-
*/
|
|
175
|
-
declare const initCesiumEvent: (viewer: Cesium.Viewer, eventListener: ICesiumEventListener) => void;
|
|
176
|
-
|
|
177
|
-
declare const numberId: () => string;
|
|
178
|
-
declare const setInoCesiumBaseUrl: (url: string) => void;
|
|
179
|
-
declare const getInoCesiumBaseUrl: () => string;
|
|
180
|
-
|
|
181
|
-
declare class Tooltip {
|
|
182
|
-
static tooltip: Tooltip | null;
|
|
183
|
-
private _title;
|
|
184
|
-
private _div;
|
|
185
|
-
private _message;
|
|
186
|
-
constructor(viewer: Cesium.Viewer);
|
|
187
|
-
showAt(position: Cesium.Cartesian2, message: string): void;
|
|
188
|
-
setVisible(visible: boolean): void;
|
|
189
|
-
static createToolTip(viewer: Cesium.Viewer): Tooltip;
|
|
190
|
-
destroy(): void;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
declare class Popup {
|
|
194
|
-
static popup: Popup | null;
|
|
195
|
-
private _div;
|
|
196
|
-
private viewer;
|
|
197
|
-
private offset;
|
|
198
|
-
private position;
|
|
199
|
-
constructor(viewer: Cesium.Viewer, element: HTMLElement, offset?: Cesium.Cartesian2);
|
|
200
|
-
showAt(position: Cesium.Cartesian3): void;
|
|
201
|
-
setVisible(visible: boolean): void;
|
|
202
|
-
renderPosition(): void;
|
|
203
|
-
static createPupup(viewer: Cesium.Viewer, element: HTMLElement, offset?: Cesium.Cartesian2): Popup;
|
|
204
|
-
destroy(): void;
|
|
205
|
-
}
|
|
206
3
|
|
|
207
4
|
// Note: as of the RFC 7946 version of GeoJSON, Coordinate Reference Systems
|
|
208
5
|
// are no longer supported. (See https://tools.ietf.org/html/rfc7946#appendix-B)}
|
|
@@ -400,49 +197,280 @@ interface FeatureCollection<G extends Geometry | null = Geometry, P = GeoJsonPro
|
|
|
400
197
|
features: Array<Feature<G, P>>;
|
|
401
198
|
}
|
|
402
199
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
* @param latRange 纬度范围
|
|
408
|
-
* @returns
|
|
409
|
-
*/
|
|
410
|
-
declare const randomPointToGeoJson: (count: number, lngRange?: number[], latRange?: number[]) => FeatureCollection<Point, GeoJsonProperties>;
|
|
411
|
-
declare function randomColor(): string;
|
|
412
|
-
declare const randomPolylineToGeoJson: (count: number, lngRange?: number[], latRange?: number[]) => FeatureCollection<LineString, GeoJsonProperties>;
|
|
413
|
-
declare const randomPolygonToGeoJson: (count: number, lngRange?: number[], latRange?: number[]) => FeatureCollection<Polygon, GeoJsonProperties>;
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* 创建鹰眼图
|
|
417
|
-
* @param eleId
|
|
418
|
-
* @param mainViewer
|
|
419
|
-
*/
|
|
420
|
-
declare const createEagleEye: (eleId: string, mainViewer: Cesium.Viewer) => {
|
|
200
|
+
interface ISetViewByLngLatOptions {
|
|
201
|
+
lng: number;
|
|
202
|
+
lat: number;
|
|
203
|
+
height?: number;
|
|
421
204
|
viewer: Cesium.Viewer;
|
|
422
|
-
|
|
423
|
-
|
|
205
|
+
}
|
|
206
|
+
interface ISetViewByPositionOptions {
|
|
207
|
+
position: Cesium.Cartesian3;
|
|
208
|
+
viewer: Cesium.Viewer;
|
|
209
|
+
}
|
|
210
|
+
interface ICamearView {
|
|
211
|
+
destination: Cesium.Cartesian3;
|
|
212
|
+
orientation: {
|
|
213
|
+
heading: number;
|
|
214
|
+
pitch: number;
|
|
215
|
+
roll: number;
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
interface ICesiumEventListener {
|
|
219
|
+
LEFT_CLICK?: (e: any) => void;
|
|
220
|
+
LEFT_POSITION?: (e: any) => void;
|
|
221
|
+
MOVE_POSITION?: (e: any) => void;
|
|
222
|
+
PICK_FEATURE?: (pickModel: any, feature: any) => void;
|
|
223
|
+
MOVE_PICK_FEATURE?: (pickModel: any, feature: any) => void;
|
|
224
|
+
}
|
|
225
|
+
type DeepPartial$1<T> = {
|
|
226
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial$1<T[P]> : T[P];
|
|
424
227
|
};
|
|
425
228
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
229
|
+
interface ISkyBoxSources {
|
|
230
|
+
positiveX: string;
|
|
231
|
+
negativeX: string;
|
|
232
|
+
positiveY: string;
|
|
233
|
+
negativeY: string;
|
|
234
|
+
positiveZ: string;
|
|
235
|
+
negativeZ: string;
|
|
236
|
+
}
|
|
237
|
+
interface ISkyBoxOptions {
|
|
238
|
+
viewer: Cesium.Viewer;
|
|
239
|
+
sources?: ISkyBoxSources;
|
|
240
|
+
}
|
|
241
|
+
interface ISkyBoxOnGroundOptions extends ISkyBoxOptions {
|
|
242
|
+
height?: number;
|
|
243
|
+
}
|
|
244
|
+
interface IYawPitchRoll {
|
|
245
|
+
yaw: number;
|
|
246
|
+
pitch: number;
|
|
247
|
+
roll: number;
|
|
248
|
+
offsetYaw?: number;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
type types_DeepPartial<T> = DeepPartial$1<T>;
|
|
252
|
+
type types_ICamearView = ICamearView;
|
|
253
|
+
type types_ICesiumEventListener = ICesiumEventListener;
|
|
254
|
+
type types_ISetViewByLngLatOptions = ISetViewByLngLatOptions;
|
|
255
|
+
type types_ISetViewByPositionOptions = ISetViewByPositionOptions;
|
|
256
|
+
type types_ISkyBoxOnGroundOptions = ISkyBoxOnGroundOptions;
|
|
257
|
+
type types_ISkyBoxOptions = ISkyBoxOptions;
|
|
258
|
+
type types_ISkyBoxSources = ISkyBoxSources;
|
|
259
|
+
type types_IYawPitchRoll = IYawPitchRoll;
|
|
260
|
+
declare namespace types$4 {
|
|
261
|
+
export type { types_DeepPartial as DeepPartial, types_ICamearView as ICamearView, types_ICesiumEventListener as ICesiumEventListener, types_ISetViewByLngLatOptions as ISetViewByLngLatOptions, types_ISetViewByPositionOptions as ISetViewByPositionOptions, types_ISkyBoxOnGroundOptions as ISkyBoxOnGroundOptions, types_ISkyBoxOptions as ISkyBoxOptions, types_ISkyBoxSources as ISkyBoxSources, types_IYawPitchRoll as IYawPitchRoll };
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* 初始化Cesium
|
|
266
|
+
* @param eleId DOM元素ID
|
|
267
|
+
* @param options Viewer.ConstructorOptions
|
|
268
|
+
*/
|
|
269
|
+
declare const initCesium: (eleId: string, options?: Cesium.Viewer.ConstructorOptions & {
|
|
270
|
+
token?: string;
|
|
271
|
+
}) => Cesium.Viewer;
|
|
272
|
+
/**
|
|
273
|
+
* 修改地球透明度
|
|
274
|
+
* @param value 0-1
|
|
275
|
+
* @param viewer
|
|
276
|
+
*/
|
|
277
|
+
declare const setGlobeOpatity: (value: number, viewer: Cesium.Viewer) => void;
|
|
278
|
+
declare const setCesiumForAutoFitScale: (value: number) => void;
|
|
279
|
+
declare const getCesiumForAutoFitScale: () => number;
|
|
280
|
+
declare const DefaultViewerOptions: Cesium.Viewer.ConstructorOptions;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* 设置中心点
|
|
284
|
+
* @param options.lng 精度
|
|
285
|
+
* @param options.lat 纬度
|
|
286
|
+
* @param options.height 高度
|
|
287
|
+
* @param options.viewer Cesium Viewer 实例
|
|
288
|
+
*/
|
|
289
|
+
declare const setViewToLnglat: (options: ISetViewByLngLatOptions) => void;
|
|
290
|
+
/**
|
|
291
|
+
* 飞行至中心点
|
|
292
|
+
* @param options.lng 精度
|
|
293
|
+
* @param options.lat 纬度
|
|
294
|
+
* @param options.height 高度
|
|
295
|
+
* @param options.viewer Cesium Viewer 实例
|
|
296
|
+
*/
|
|
297
|
+
declare const flyToLnglat: (options: ISetViewByLngLatOptions) => void;
|
|
298
|
+
/**
|
|
299
|
+
* 飞行至中心点
|
|
300
|
+
* @param options.lng 精度
|
|
301
|
+
* @param options.lat 纬度
|
|
302
|
+
* @param options.height 高度
|
|
303
|
+
* @param options.viewer Cesium Viewer 实例
|
|
304
|
+
*/
|
|
305
|
+
declare const flyToPosition: (options: ISetViewByPositionOptions) => void;
|
|
306
|
+
/**
|
|
307
|
+
* 获取相机视图
|
|
308
|
+
* @param viewer
|
|
309
|
+
* @returns camearView
|
|
310
|
+
*
|
|
311
|
+
* camearView: {
|
|
312
|
+
* destination: Cartesian3,
|
|
313
|
+
* orientation: {
|
|
314
|
+
* heading: number
|
|
315
|
+
* pitch: number
|
|
316
|
+
* roll: number
|
|
317
|
+
* }
|
|
318
|
+
* }
|
|
319
|
+
*/
|
|
320
|
+
declare function getCameraView(viewer: Cesium.Viewer): ICamearView;
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @param camearView
|
|
324
|
+
* camearView: {
|
|
325
|
+
* destination: Cartesian3
|
|
326
|
+
* orientation: {
|
|
327
|
+
* heading: number
|
|
328
|
+
* pitch: number
|
|
329
|
+
* roll: number
|
|
330
|
+
* }
|
|
331
|
+
* }
|
|
332
|
+
* @param viewer
|
|
333
|
+
*/
|
|
334
|
+
declare function flyToCameraView(camearView: ICamearView, viewer: Cesium.Viewer): void;
|
|
335
|
+
/**
|
|
336
|
+
* 飞行至数据源
|
|
337
|
+
* @param dataScourceId 数据源id
|
|
338
|
+
* @param viewer Cesium Viewer 实例
|
|
339
|
+
*/
|
|
340
|
+
declare function flyToDataSource(dataScourceId: string, viewer: Cesium.Viewer): void;
|
|
341
|
+
/**
|
|
342
|
+
* 飞行至影像图层
|
|
343
|
+
* @param imagery 影像图层
|
|
344
|
+
* @param viewer Cesium Viewer 实例
|
|
345
|
+
*/
|
|
346
|
+
declare function flyToImagery(imagery: Cesium.ImageryLayer, viewer: Cesium.Viewer): void;
|
|
347
|
+
/**
|
|
348
|
+
* 飞行至3dtile
|
|
349
|
+
* @param {}tileset 3dtile
|
|
350
|
+
* @param viewer Cesium Viewer 实例
|
|
351
|
+
*/
|
|
352
|
+
declare function flyToCesium3DTile(tileset: Cesium.Cesium3DTileset, viewer: Cesium.Viewer): void;
|
|
353
|
+
/**
|
|
354
|
+
* 飞行至球体
|
|
355
|
+
* @param sphere 球体
|
|
356
|
+
* @param viewer
|
|
357
|
+
*/
|
|
358
|
+
declare function flyToFromSphere(sphere: number[], viewer: Cesium.Viewer): void;
|
|
359
|
+
/**
|
|
360
|
+
* 控制Cesium地图视图飞向指定的地理区域
|
|
361
|
+
* @param {number} west - 西边界经度(度)
|
|
362
|
+
* @param {number} south - 南边界纬度(度)
|
|
363
|
+
* @param {number} east - 东边界经度(度)
|
|
364
|
+
* @param {number} north - 北边界纬度(度)
|
|
365
|
+
* @param {Cesium.Viewer} viewer - Cesium地图查看器实例
|
|
366
|
+
*/
|
|
367
|
+
declare const flyToRectangleBounds: (west: number, south: number, east: number, north: number, viewer: Cesium.Viewer) => void;
|
|
368
|
+
declare const flyToNorth: (viewer: Cesium.Viewer) => void;
|
|
369
|
+
declare function getScreenCenterPoint(viewer: Cesium.Viewer): Cesium.Cartesian3;
|
|
370
|
+
/**
|
|
371
|
+
* 绕点飞行
|
|
372
|
+
*/
|
|
373
|
+
declare const flyByRotatePoint: (viewer: Cesium.Viewer) => {
|
|
374
|
+
/**
|
|
375
|
+
* 不传入positions,为当前屏幕中心点
|
|
376
|
+
* direction: true: 顺时针旋转,false: 逆时针旋转
|
|
377
|
+
*/
|
|
378
|
+
start: (position?: Cesium.Cartesian3, direction?: boolean) => void;
|
|
379
|
+
end: () => void;
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* 相机原地旋转
|
|
383
|
+
*/
|
|
384
|
+
declare const flyByRotateOut: (viewer: Cesium.Viewer) => {
|
|
385
|
+
start: (direction?: boolean) => void;
|
|
386
|
+
end: () => void;
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* 闪烁模型
|
|
390
|
+
* @param model
|
|
391
|
+
*/
|
|
392
|
+
declare function twinkleModel(model: any): void;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* 初始化cesium事件
|
|
396
|
+
* @param viewer
|
|
397
|
+
* @param eventListener
|
|
398
|
+
*/
|
|
399
|
+
declare const initCesiumEvent: (viewer: Cesium.Viewer, eventListener: ICesiumEventListener) => void;
|
|
400
|
+
|
|
401
|
+
declare const numberId: () => string;
|
|
402
|
+
declare const setInoCesiumBaseUrl: (url: string) => void;
|
|
403
|
+
declare const getInoCesiumBaseUrl: () => string;
|
|
404
|
+
|
|
405
|
+
declare class Tooltip {
|
|
406
|
+
static tooltip: Tooltip | null;
|
|
407
|
+
private _title;
|
|
408
|
+
private _div;
|
|
409
|
+
private _message;
|
|
410
|
+
constructor(viewer: Cesium.Viewer);
|
|
411
|
+
showAt(position: Cesium.Cartesian2, message: string): void;
|
|
412
|
+
setVisible(visible: boolean): void;
|
|
413
|
+
static createToolTip(viewer: Cesium.Viewer): Tooltip;
|
|
414
|
+
destroy(): void;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
declare class Popup {
|
|
418
|
+
static popup: Popup | null;
|
|
419
|
+
private _div;
|
|
420
|
+
private viewer;
|
|
421
|
+
private offset;
|
|
422
|
+
private position;
|
|
423
|
+
constructor(viewer: Cesium.Viewer, element: HTMLElement, offset?: Cesium.Cartesian2);
|
|
424
|
+
showAt(position: Cesium.Cartesian3): void;
|
|
425
|
+
setVisible(visible: boolean): void;
|
|
426
|
+
renderPosition(): void;
|
|
427
|
+
static createPupup(viewer: Cesium.Viewer, element: HTMLElement, offset?: Cesium.Cartesian2): Popup;
|
|
428
|
+
destroy(): void;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* 生成随机点输入geojosn 格式
|
|
433
|
+
* @param count 点数量
|
|
434
|
+
* @param lngRange 精度范围
|
|
435
|
+
* @param latRange 纬度范围
|
|
436
|
+
* @returns
|
|
437
|
+
*/
|
|
438
|
+
declare const randomPointToGeoJson: (count: number, lngRange?: number[], latRange?: number[]) => FeatureCollection<Point, GeoJsonProperties>;
|
|
439
|
+
declare function randomColor(): string;
|
|
440
|
+
declare const randomPolylineToGeoJson: (count: number, lngRange?: number[], latRange?: number[]) => FeatureCollection<LineString, GeoJsonProperties>;
|
|
441
|
+
declare const randomPolygonToGeoJson: (count: number, lngRange?: number[], latRange?: number[]) => FeatureCollection<Polygon, GeoJsonProperties>;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* 创建鹰眼图
|
|
445
|
+
* @param eleId
|
|
446
|
+
* @param mainViewer
|
|
447
|
+
*/
|
|
448
|
+
declare const createEagleEye: (eleId: string, mainViewer: Cesium.Viewer) => {
|
|
449
|
+
viewer: Cesium.Viewer;
|
|
450
|
+
open: () => void;
|
|
451
|
+
close: () => void;
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* 计算空间距离
|
|
456
|
+
* @param {Cartesian3} start - 起始点
|
|
457
|
+
* @param {Cartesian3} end - 结束点
|
|
458
|
+
* @returns {number} - 两点之间的空间距离
|
|
459
|
+
*/
|
|
460
|
+
declare const calcSpaceDistance: (start: Cesium.Cartesian3, end: Cesium.Cartesian3) => number;
|
|
461
|
+
/**
|
|
462
|
+
* 计算空间距离-多点
|
|
463
|
+
* @param {Cartesian3[]} positions - 点集
|
|
464
|
+
*/
|
|
465
|
+
declare function calcSpaceDistances(positions: Cesium.Cartesian3[]): number;
|
|
466
|
+
/**
|
|
467
|
+
* 计算贴地距离-两点
|
|
468
|
+
* @param {Cartesian3} start - 起始点
|
|
469
|
+
* @param {Cartesian3} end - 结束点
|
|
470
|
+
* @param {ellipsoid} Cesium.Ellipsoid
|
|
471
|
+
*/
|
|
472
|
+
declare function calcGeodesicDistance(start: Cesium.Cartesian3, end: Cesium.Cartesian3, ellipsoid?: Cesium.Ellipsoid): number;
|
|
473
|
+
/**
|
|
446
474
|
* 计算贴地距离-多点
|
|
447
475
|
* @param {Cartesian3[]} positions - 点集
|
|
448
476
|
* @returns {number} - 总距离
|
|
@@ -511,9 +539,14 @@ declare const calcCameraHeightFromZoom: (zoom: number) => number;
|
|
|
511
539
|
* @returns Cartesian3[]
|
|
512
540
|
*/
|
|
513
541
|
declare const calcLerpPosition: (positions: Cesium.Cartesian3[], number: number) => Cesium.Cartesian3[];
|
|
542
|
+
/**
|
|
543
|
+
* 根据一组笛卡尔坐标计算包围球
|
|
544
|
+
* @param positions 笛卡尔坐标组
|
|
545
|
+
*/
|
|
546
|
+
declare const calcBoundingSphereFromPositions: (positions: Cesium.Cartesian3[]) => Cesium.BoundingSphere;
|
|
514
547
|
|
|
515
|
-
declare abstract class BasePrimitive<T> {
|
|
516
|
-
protected _primitive: CusPrimitive;
|
|
548
|
+
declare abstract class BasePrimitive$1<T> {
|
|
549
|
+
protected _primitive: CusPrimitive$1;
|
|
517
550
|
protected _promise: Promise<T>;
|
|
518
551
|
protected appearance: Cesium.Appearance | undefined;
|
|
519
552
|
protected geometryInstance: Cesium.Appearance | undefined;
|
|
@@ -528,18 +561,17 @@ declare abstract class BasePrimitive<T> {
|
|
|
528
561
|
update(frameState: any): void;
|
|
529
562
|
then(onFulfilled?: any): Promise<T>;
|
|
530
563
|
catch(onRejected?: any): Promise<T>;
|
|
531
|
-
abstract getPrimitive(): CusPrimitive;
|
|
532
|
-
abstract calcShapePositions(positions: Cesium.Cartesian3[]): void;
|
|
564
|
+
abstract getPrimitive(): CusPrimitive$1;
|
|
533
565
|
isDestroyed(): boolean;
|
|
534
566
|
destroy(): void;
|
|
535
567
|
setShapePositions(positions: Cesium.Cartesian3[]): void;
|
|
536
568
|
}
|
|
537
|
-
type CusPrimitive = Cesium.Primitive | Cesium.GroundPrimitive | Cesium.PointPrimitiveCollection | Cesium.GroundPolylinePrimitive | Cesium.LabelCollection | Cesium.PrimitiveCollection | undefined;
|
|
569
|
+
type CusPrimitive$1 = Cesium.Primitive | Cesium.GroundPrimitive | Cesium.PointPrimitiveCollection | Cesium.GroundPolylinePrimitive | Cesium.LabelCollection | Cesium.PrimitiveCollection | undefined;
|
|
538
570
|
|
|
539
571
|
/**
|
|
540
572
|
* 线材质基类
|
|
541
573
|
*/
|
|
542
|
-
declare abstract class BaseMaterialProperty {
|
|
574
|
+
declare abstract class BaseMaterialProperty$1 {
|
|
543
575
|
protected _definitionChanged: Cesium.Event<(...args: any[]) => void>;
|
|
544
576
|
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
545
577
|
get isConstant(): boolean;
|
|
@@ -943,10 +975,10 @@ declare const loadModel: () => void;
|
|
|
943
975
|
declare const loads3m: () => void;
|
|
944
976
|
|
|
945
977
|
declare const loadI3s: (lOptions: ILoadI3sOptions) => Promise<{
|
|
946
|
-
|
|
978
|
+
i3sProvider: Cesium.I3SDataProvider;
|
|
947
979
|
setHeightOffset: (heightOffset: number) => void;
|
|
948
980
|
remove: () => void;
|
|
949
|
-
flyTo: () => void;
|
|
981
|
+
flyTo: (cameraHeight: number) => void;
|
|
950
982
|
}>;
|
|
951
983
|
interface ILoadI3sOptions {
|
|
952
984
|
viewer: Cesium.Viewer;
|
|
@@ -1123,31 +1155,71 @@ declare const createOutLineEffect: (viewer: Cesium.Viewer) => {
|
|
|
1123
1155
|
remove: () => void;
|
|
1124
1156
|
};
|
|
1125
1157
|
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
private measureDivs;
|
|
1130
|
-
private cesiumWidget;
|
|
1131
|
-
private viewer;
|
|
1132
|
-
constructor(drawData: IDrawAttrInfo, viewer: Cesium.Viewer);
|
|
1133
|
-
getPrimitive(): Cesium.LabelCollection | undefined;
|
|
1134
|
-
updateUnit(unit: string[]): void;
|
|
1135
|
-
updatePointDivLabel(): void;
|
|
1136
|
-
renderDivPosition(): void;
|
|
1137
|
-
destroy(): void;
|
|
1138
|
-
setAppearance(): void;
|
|
1139
|
-
clearAllDiv(): void;
|
|
1140
|
-
createDiv(key: string, text: string, height?: number): HTMLDivElement;
|
|
1141
|
-
calcShapePositions(positions: Cesium.Cartesian3[]): void;
|
|
1142
|
-
}
|
|
1158
|
+
type DeepPartial<T> = {
|
|
1159
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
1160
|
+
};
|
|
1143
1161
|
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1162
|
+
declare abstract class BasePrimitive<T> {
|
|
1163
|
+
protected _primitive: CusPrimitive;
|
|
1164
|
+
protected _promise: Promise<T>;
|
|
1165
|
+
protected appearance: Cesium.Appearance | undefined;
|
|
1166
|
+
protected geometryInstance: Cesium.Appearance | undefined;
|
|
1167
|
+
protected drawCommand: any;
|
|
1148
1168
|
/**
|
|
1149
|
-
*
|
|
1150
|
-
|
|
1169
|
+
* 组成primitive的position
|
|
1170
|
+
* @protected
|
|
1171
|
+
*/
|
|
1172
|
+
protected shapePositions: Cesium.Cartesian3[];
|
|
1173
|
+
needUpdate: boolean;
|
|
1174
|
+
constructor();
|
|
1175
|
+
update(frameState: any): void;
|
|
1176
|
+
then(onFulfilled?: any): Promise<T>;
|
|
1177
|
+
catch(onRejected?: any): Promise<T>;
|
|
1178
|
+
abstract getPrimitive(): CusPrimitive;
|
|
1179
|
+
isDestroyed(): boolean;
|
|
1180
|
+
destroy(): void;
|
|
1181
|
+
setShapePositions(positions: Cesium.Cartesian3[]): void;
|
|
1182
|
+
}
|
|
1183
|
+
type CusPrimitive = Cesium.Primitive | Cesium.GroundPrimitive | Cesium.PointPrimitiveCollection | Cesium.GroundPolylinePrimitive | Cesium.LabelCollection | Cesium.PrimitiveCollection | undefined;
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* 线材质基类
|
|
1187
|
+
*/
|
|
1188
|
+
declare abstract class BaseMaterialProperty {
|
|
1189
|
+
protected _definitionChanged: Cesium.Event<(...args: any[]) => void>;
|
|
1190
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1191
|
+
get isConstant(): boolean;
|
|
1192
|
+
abstract getType(): string;
|
|
1193
|
+
abstract getValue(time: Cesium.JulianDate, result: any): any;
|
|
1194
|
+
abstract equals(other: any): boolean;
|
|
1195
|
+
abstract init(): void;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
declare class MeasurePrimitive extends BasePrimitive<any> {
|
|
1199
|
+
private drawData;
|
|
1200
|
+
private labelCollection;
|
|
1201
|
+
private measureDivs;
|
|
1202
|
+
private cesiumWidget;
|
|
1203
|
+
private viewer;
|
|
1204
|
+
constructor(drawData: IDrawAttrInfo, viewer: Cesium.Viewer);
|
|
1205
|
+
getPrimitive(): Cesium.LabelCollection | undefined;
|
|
1206
|
+
updateUnit(unit: string[]): void;
|
|
1207
|
+
updatePointDivLabel(): void;
|
|
1208
|
+
renderDivPosition(): void;
|
|
1209
|
+
destroy(): void;
|
|
1210
|
+
setAppearance(): void;
|
|
1211
|
+
clearAllDiv(): void;
|
|
1212
|
+
createDiv(key: string, text: string, height?: number): HTMLDivElement;
|
|
1213
|
+
calcShapePositions(positions: Cesium.Cartesian3[]): void;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* 绘制事件类型
|
|
1218
|
+
*/
|
|
1219
|
+
declare enum DrawEventType {
|
|
1220
|
+
/**
|
|
1221
|
+
* 绘制添加事件
|
|
1222
|
+
*/
|
|
1151
1223
|
DRAW_ADD = "drawAdd",
|
|
1152
1224
|
/**
|
|
1153
1225
|
* 绘制移动事件
|
|
@@ -1490,7 +1562,7 @@ interface IMeasureResult {
|
|
|
1490
1562
|
/**
|
|
1491
1563
|
* 绘制形状类型
|
|
1492
1564
|
*/
|
|
1493
|
-
type DrawShape = 'polyline' | 'polyline-arrow' | 'polygon' | 'point' | 'circle' | 'rectangle' | 'vertical-line' | 'vertical-surface-line' | 'curve' | 'curve-arrow' | string;
|
|
1565
|
+
type DrawShape = 'polyline' | 'polyline-arrow' | 'polygon' | 'point' | 'circle' | 'rectangle' | 'vertical-line' | 'vertical-surface-line' | 'curve' | 'curve-arrow' | 'sector' | 'db-arrow' | string;
|
|
1494
1566
|
/**
|
|
1495
1567
|
* 绘制样式接口
|
|
1496
1568
|
*/
|
|
@@ -1552,24 +1624,24 @@ interface IDrawStyle {
|
|
|
1552
1624
|
};
|
|
1553
1625
|
}
|
|
1554
1626
|
|
|
1555
|
-
type
|
|
1556
|
-
type
|
|
1557
|
-
declare const
|
|
1558
|
-
type
|
|
1559
|
-
type
|
|
1560
|
-
type
|
|
1561
|
-
type
|
|
1562
|
-
type
|
|
1563
|
-
type
|
|
1564
|
-
type
|
|
1565
|
-
type
|
|
1566
|
-
type
|
|
1567
|
-
type
|
|
1568
|
-
type
|
|
1569
|
-
type
|
|
1627
|
+
type types_DrawEvent = DrawEvent;
|
|
1628
|
+
type types_DrawEventType = DrawEventType;
|
|
1629
|
+
declare const types_DrawEventType: typeof DrawEventType;
|
|
1630
|
+
type types_DrawShape = DrawShape;
|
|
1631
|
+
type types_IDrawAttrInfo = IDrawAttrInfo;
|
|
1632
|
+
type types_IDrawEditEvent = IDrawEditEvent;
|
|
1633
|
+
type types_IDrawHandler = IDrawHandler;
|
|
1634
|
+
type types_IDrawHandlerEvent = IDrawHandlerEvent;
|
|
1635
|
+
type types_IDrawOptions = IDrawOptions;
|
|
1636
|
+
type types_IDrawStyle = IDrawStyle;
|
|
1637
|
+
type types_IEventActions = IEventActions;
|
|
1638
|
+
type types_IEventData = IEventData;
|
|
1639
|
+
type types_IMeasureOptions = IMeasureOptions;
|
|
1640
|
+
type types_IMeasureResult = IMeasureResult;
|
|
1641
|
+
type types_IReShowOptions = IReShowOptions;
|
|
1570
1642
|
declare namespace types$3 {
|
|
1571
|
-
export {
|
|
1572
|
-
export type {
|
|
1643
|
+
export { types_DrawEventType as DrawEventType };
|
|
1644
|
+
export type { types_DrawEvent as DrawEvent, types_DrawShape as DrawShape, types_IDrawAttrInfo as IDrawAttrInfo, types_IDrawEditEvent as IDrawEditEvent, types_IDrawHandler as IDrawHandler, types_IDrawHandlerEvent as IDrawHandlerEvent, types_IDrawOptions as IDrawOptions, types_IDrawStyle as IDrawStyle, types_IEventActions as IEventActions, types_IEventData as IEventData, types_IMeasureOptions as IMeasureOptions, types_IMeasureResult as IMeasureResult, types_IReShowOptions as IReShowOptions };
|
|
1573
1645
|
}
|
|
1574
1646
|
|
|
1575
1647
|
declare const DrawStyle: IDrawStyle;
|
|
@@ -1595,77 +1667,7 @@ interface IAddDrawActionsOptions {
|
|
|
1595
1667
|
*/
|
|
1596
1668
|
declare const createDrawHandler: (viewer: Cesium.Viewer) => IDrawHandler;
|
|
1597
1669
|
|
|
1598
|
-
interface
|
|
1599
|
-
name?: string;
|
|
1600
|
-
color?: string;
|
|
1601
|
-
speed?: number;
|
|
1602
|
-
image: string;
|
|
1603
|
-
}
|
|
1604
|
-
interface IPolylineFlowMaterialOptions {
|
|
1605
|
-
/**
|
|
1606
|
-
* 颜色
|
|
1607
|
-
*/
|
|
1608
|
-
color?: string;
|
|
1609
|
-
speed?: number;
|
|
1610
|
-
image: string;
|
|
1611
|
-
repeatCount?: number;
|
|
1612
|
-
blendColor?: boolean;
|
|
1613
|
-
}
|
|
1614
|
-
interface ICircleWaveMaterialOptions {
|
|
1615
|
-
name?: string;
|
|
1616
|
-
color?: string;
|
|
1617
|
-
speed?: number;
|
|
1618
|
-
count?: number;
|
|
1619
|
-
gradient?: number;
|
|
1620
|
-
}
|
|
1621
|
-
interface ICircleRaderWaveMaterialOptions {
|
|
1622
|
-
name?: string;
|
|
1623
|
-
color?: string;
|
|
1624
|
-
speed?: number;
|
|
1625
|
-
}
|
|
1626
|
-
interface ICircleRaderFanMaterialOptions {
|
|
1627
|
-
name?: string;
|
|
1628
|
-
color?: string;
|
|
1629
|
-
speed?: number;
|
|
1630
|
-
}
|
|
1631
|
-
interface ICircleApertureMaterialOptions {
|
|
1632
|
-
color?: string;
|
|
1633
|
-
/**
|
|
1634
|
-
* 速度
|
|
1635
|
-
*/
|
|
1636
|
-
speed?: number;
|
|
1637
|
-
}
|
|
1638
|
-
interface ILightWallMaterialOptions {
|
|
1639
|
-
image: string;
|
|
1640
|
-
color?: string;
|
|
1641
|
-
count?: number;
|
|
1642
|
-
/**
|
|
1643
|
-
* 时间 单位为秒
|
|
1644
|
-
*/
|
|
1645
|
-
duration?: number;
|
|
1646
|
-
/**
|
|
1647
|
-
* 0为水平 1为垂直 默认为1
|
|
1648
|
-
*/
|
|
1649
|
-
vertical?: number;
|
|
1650
|
-
/**
|
|
1651
|
-
* 1由下到上 0由上到下 默认为0
|
|
1652
|
-
*/
|
|
1653
|
-
direction?: number;
|
|
1654
|
-
}
|
|
1655
|
-
/**
|
|
1656
|
-
* 电弧球体
|
|
1657
|
-
*/
|
|
1658
|
-
interface IEllipsoidElectricMaterialOptions {
|
|
1659
|
-
color?: string;
|
|
1660
|
-
/**
|
|
1661
|
-
* 速度
|
|
1662
|
-
*/
|
|
1663
|
-
speed?: number;
|
|
1664
|
-
}
|
|
1665
|
-
/**
|
|
1666
|
-
* 扫描球体
|
|
1667
|
-
*/
|
|
1668
|
-
interface IEllipsoidScanMaterialOptions {
|
|
1670
|
+
interface ICircleApertureMaterialOptions$1 {
|
|
1669
1671
|
color?: string;
|
|
1670
1672
|
/**
|
|
1671
1673
|
* 速度
|
|
@@ -1680,7 +1682,7 @@ interface IEllipsoidScanMaterialOptions {
|
|
|
1680
1682
|
* @param count 光圈个数
|
|
1681
1683
|
* @param offset 光晕偏移量
|
|
1682
1684
|
*/
|
|
1683
|
-
interface IRadarScanMaterialOptions {
|
|
1685
|
+
interface IRadarScanMaterialOptions$1 {
|
|
1684
1686
|
/**
|
|
1685
1687
|
* 扇区颜色
|
|
1686
1688
|
*/
|
|
@@ -1702,356 +1704,128 @@ interface IRadarScanMaterialOptions {
|
|
|
1702
1704
|
*/
|
|
1703
1705
|
offset?: number;
|
|
1704
1706
|
}
|
|
1705
|
-
|
|
1706
|
-
}
|
|
1707
|
+
|
|
1707
1708
|
/**
|
|
1708
|
-
*
|
|
1709
|
-
*
|
|
1709
|
+
* 定义标签接口
|
|
1710
|
+
* @param id 标签的唯一标识符
|
|
1711
|
+
* @param field 字段名称,用于从数据中提取标签文本
|
|
1712
|
+
* @param font 字体样式
|
|
1713
|
+
* @param fillColor 填充颜色
|
|
1714
|
+
* @param outlineColor 轮廓颜色
|
|
1715
|
+
* @param outlineWidth 轮廓宽度
|
|
1716
|
+
* @param style 样式
|
|
1717
|
+
* @param showBackground 是否显示背景
|
|
1718
|
+
* @param backgroundColor 背景颜色
|
|
1719
|
+
* @param backgroundPadding 背景填充
|
|
1720
|
+
* @param scale 缩放比例
|
|
1721
|
+
* @param horizontalOrigin 水平原点
|
|
1722
|
+
* @param verticalOrigin 垂直原点
|
|
1723
|
+
* @param pixelOffset 像素偏移
|
|
1724
|
+
* @param eyeOffset 视角偏移
|
|
1725
|
+
* @param heightReference 高度参考
|
|
1726
|
+
* @param translucencyByDistance 透明度随距离变化
|
|
1727
|
+
* @param pixelOffsetScaleByDistance 像素偏移随距离变化
|
|
1728
|
+
* @param scaleByDistance 缩放随距离变化
|
|
1729
|
+
* @param distanceDisplayCondition 显示距离条件
|
|
1730
|
+
* @param disableDepthTestDistance 禁用深度测试距离
|
|
1710
1731
|
*/
|
|
1711
|
-
interface
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1732
|
+
interface ILabel {
|
|
1733
|
+
/**
|
|
1734
|
+
* 标签的唯一标识符
|
|
1735
|
+
*/
|
|
1736
|
+
id?: any;
|
|
1737
|
+
/**
|
|
1738
|
+
* 字段名称,用于从数据中提取标签文本
|
|
1739
|
+
*/
|
|
1740
|
+
field: string;
|
|
1741
|
+
/**
|
|
1742
|
+
* 字体样式
|
|
1743
|
+
*/
|
|
1744
|
+
font?: string;
|
|
1745
|
+
/**
|
|
1746
|
+
* 填充颜色
|
|
1747
|
+
*/
|
|
1748
|
+
fillColor?: string;
|
|
1749
|
+
/**
|
|
1750
|
+
* 轮廓颜色
|
|
1751
|
+
*/
|
|
1752
|
+
outlineColor?: string;
|
|
1753
|
+
/**
|
|
1754
|
+
* 轮廓宽度
|
|
1755
|
+
*/
|
|
1756
|
+
outlineWidth?: number;
|
|
1757
|
+
/**
|
|
1758
|
+
* 样式
|
|
1759
|
+
*/
|
|
1760
|
+
style?: string;
|
|
1761
|
+
/**
|
|
1762
|
+
* 是否显示背景
|
|
1763
|
+
*/
|
|
1764
|
+
showBackground?: boolean;
|
|
1765
|
+
/**
|
|
1766
|
+
* 背景颜色
|
|
1767
|
+
*/
|
|
1768
|
+
backgroundColor?: string;
|
|
1769
|
+
/**
|
|
1770
|
+
* 背景填充
|
|
1771
|
+
*/
|
|
1772
|
+
backgroundPadding?: number[];
|
|
1773
|
+
/**
|
|
1774
|
+
* 缩放比例
|
|
1775
|
+
*/
|
|
1776
|
+
scale?: number;
|
|
1777
|
+
/**
|
|
1778
|
+
* 水平原点
|
|
1779
|
+
*/
|
|
1780
|
+
horizontalOrigin?: number;
|
|
1781
|
+
/**
|
|
1782
|
+
* 垂直原点
|
|
1783
|
+
*/
|
|
1784
|
+
verticalOrigin?: number;
|
|
1785
|
+
/**
|
|
1786
|
+
* 像素偏移
|
|
1787
|
+
*/
|
|
1788
|
+
pixelOffset?: number[];
|
|
1789
|
+
/**
|
|
1790
|
+
* 视角偏移
|
|
1791
|
+
*/
|
|
1792
|
+
eyeOffset?: number[];
|
|
1793
|
+
/**
|
|
1794
|
+
* 高度参考
|
|
1795
|
+
*/
|
|
1796
|
+
heightReference?: Cesium.HeightReference;
|
|
1797
|
+
/**
|
|
1798
|
+
* 透明度随距离变化
|
|
1799
|
+
*/
|
|
1800
|
+
translucencyByDistance?: Cesium.NearFarScalar;
|
|
1801
|
+
/**
|
|
1802
|
+
* 像素偏移随距离变化
|
|
1803
|
+
*/
|
|
1804
|
+
pixelOffsetScaleByDistance?: Cesium.NearFarScalar;
|
|
1805
|
+
/**
|
|
1806
|
+
* 缩放随距离变化
|
|
1807
|
+
*/
|
|
1808
|
+
scaleByDistance?: Cesium.NearFarScalar;
|
|
1809
|
+
/**
|
|
1810
|
+
* 显示距离条件
|
|
1811
|
+
*/
|
|
1812
|
+
distanceDisplayCondition?: Cesium.DistanceDisplayCondition;
|
|
1813
|
+
/**
|
|
1814
|
+
* 禁用深度测试距离
|
|
1815
|
+
*/
|
|
1816
|
+
disableDepthTestDistance?: number;
|
|
1730
1817
|
}
|
|
1731
|
-
|
|
1732
1818
|
/**
|
|
1733
|
-
*
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
getType(): string;
|
|
1744
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1745
|
-
equals(other: PolylineTrailMaterialProperty): any;
|
|
1746
|
-
init(): void;
|
|
1747
|
-
createPropertyDescriptors(): void;
|
|
1748
|
-
}
|
|
1749
|
-
declare const createTrailMaterial: (options: IPolylineTrailMaterialOptions) => Cesium.Material;
|
|
1750
|
-
|
|
1751
|
-
/**
|
|
1752
|
-
* 线流动材质
|
|
1753
|
-
* @classdesc 线流动材质
|
|
1754
|
-
* @param {IPolylineFlowMaterialOptions} options - 线流动材质参数
|
|
1755
|
-
*/
|
|
1756
|
-
declare class PolylineFlowMaterialProperty extends BaseMaterialProperty {
|
|
1757
|
-
private repeatCount;
|
|
1758
|
-
private image;
|
|
1759
|
-
private speed;
|
|
1760
|
-
private color;
|
|
1761
|
-
private blend;
|
|
1762
|
-
private name;
|
|
1763
|
-
constructor(options: IPolylineFlowMaterialOptions);
|
|
1764
|
-
get isConstant(): boolean;
|
|
1765
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1766
|
-
getType(): string;
|
|
1767
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1768
|
-
equals(other: PolylineFlowMaterialProperty): boolean;
|
|
1769
|
-
init(): void;
|
|
1770
|
-
createPropertyDescriptors(): void;
|
|
1771
|
-
}
|
|
1772
|
-
declare const createPoylineFlowMaterial: (options: IPolylineFlowMaterialOptions) => Cesium.Material;
|
|
1773
|
-
|
|
1774
|
-
/**
|
|
1775
|
-
* 波浪圆
|
|
1776
|
-
*/
|
|
1777
|
-
declare class CircleWaveMaterialProperty extends BaseMaterialProperty {
|
|
1778
|
-
private count;
|
|
1779
|
-
private speed;
|
|
1780
|
-
private gradient;
|
|
1781
|
-
private color;
|
|
1782
|
-
private name;
|
|
1783
|
-
constructor(options?: ICircleWaveMaterialOptions);
|
|
1784
|
-
get isConstant(): boolean;
|
|
1785
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1786
|
-
getType(): string;
|
|
1787
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1788
|
-
equals(other: CircleWaveMaterialProperty): any;
|
|
1789
|
-
init(): void;
|
|
1790
|
-
}
|
|
1791
|
-
declare const createCircleWaveMaterial: (options?: ICircleWaveMaterialOptions) => {
|
|
1792
|
-
material: Cesium.Material;
|
|
1793
|
-
};
|
|
1794
|
-
|
|
1795
|
-
/**
|
|
1796
|
-
*雷达波纹圆
|
|
1797
|
-
*/
|
|
1798
|
-
declare class CircleRaderWaveMaterialProperty extends BaseMaterialProperty {
|
|
1799
|
-
private speed;
|
|
1800
|
-
private color;
|
|
1801
|
-
private name;
|
|
1802
|
-
constructor(options: ICircleRaderWaveMaterialOptions);
|
|
1803
|
-
get isConstant(): boolean;
|
|
1804
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1805
|
-
getType(): string;
|
|
1806
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1807
|
-
equals(other: CircleRaderWaveMaterialProperty): boolean;
|
|
1808
|
-
init(): void;
|
|
1809
|
-
}
|
|
1810
|
-
declare const createRaderWaveMaterial: (options: ICircleRaderWaveMaterialOptions) => {
|
|
1811
|
-
material: Cesium.Material;
|
|
1812
|
-
};
|
|
1813
|
-
|
|
1814
|
-
/**
|
|
1815
|
-
* 雷达扇形扫描
|
|
1816
|
-
*/
|
|
1817
|
-
declare class CircleRaderFanMaterialProperty extends BaseMaterialProperty {
|
|
1818
|
-
private speed;
|
|
1819
|
-
private color;
|
|
1820
|
-
private name;
|
|
1821
|
-
constructor(options: ICircleRaderFanMaterialOptions);
|
|
1822
|
-
get isConstant(): boolean;
|
|
1823
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1824
|
-
getType(): string;
|
|
1825
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1826
|
-
equals(other: CircleRaderFanMaterialProperty): boolean;
|
|
1827
|
-
init(): void;
|
|
1828
|
-
}
|
|
1829
|
-
declare const createCircleRaderFanMaterial: (options: ICircleRaderFanMaterialOptions) => {
|
|
1830
|
-
material: Cesium.Material;
|
|
1831
|
-
};
|
|
1832
|
-
|
|
1833
|
-
/**
|
|
1834
|
-
* 波浪圆
|
|
1835
|
-
*/
|
|
1836
|
-
declare class CircleApertureMaterialProperty extends BaseMaterialProperty {
|
|
1837
|
-
private speed;
|
|
1838
|
-
private color;
|
|
1839
|
-
private name;
|
|
1840
|
-
constructor(options?: ICircleApertureMaterialOptions);
|
|
1841
|
-
get isConstant(): boolean;
|
|
1842
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1843
|
-
getType(): string;
|
|
1844
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1845
|
-
equals(other: CircleApertureMaterialProperty): any;
|
|
1846
|
-
init(): void;
|
|
1847
|
-
}
|
|
1848
|
-
declare const createCircleApertureMaterial: (options?: ICircleApertureMaterialOptions) => Cesium.Material;
|
|
1849
|
-
|
|
1850
|
-
declare const createScanRadarMaterial: (options?: IRadarScanMaterialOptions) => Cesium.Material;
|
|
1851
|
-
|
|
1852
|
-
/**
|
|
1853
|
-
* 光墙材质
|
|
1854
|
-
*/
|
|
1855
|
-
declare class LightWallMaterialProperty extends BaseMaterialProperty {
|
|
1856
|
-
private duration;
|
|
1857
|
-
private count;
|
|
1858
|
-
private vertical;
|
|
1859
|
-
private direction;
|
|
1860
|
-
private color;
|
|
1861
|
-
private _time;
|
|
1862
|
-
private image;
|
|
1863
|
-
private name;
|
|
1864
|
-
constructor(options: ILightWallMaterialOptions);
|
|
1865
|
-
get isConstant(): boolean;
|
|
1866
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1867
|
-
getType(): string;
|
|
1868
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1869
|
-
equals(other: LightWallMaterialProperty): any;
|
|
1870
|
-
init(): void;
|
|
1871
|
-
}
|
|
1872
|
-
declare const createLightWallMaterial: (options: ILightWallMaterialOptions) => {
|
|
1873
|
-
material: Cesium.Material;
|
|
1874
|
-
};
|
|
1875
|
-
|
|
1876
|
-
/**
|
|
1877
|
-
* 雷达扇形扫描
|
|
1878
|
-
*/
|
|
1879
|
-
declare class EllipsoidElectricMaterialProperty extends BaseMaterialProperty {
|
|
1880
|
-
private speed;
|
|
1881
|
-
private color;
|
|
1882
|
-
private name;
|
|
1883
|
-
constructor(options: IEllipsoidElectricMaterialOptions);
|
|
1884
|
-
get isConstant(): boolean;
|
|
1885
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1886
|
-
getType(): string;
|
|
1887
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1888
|
-
equals(other: EllipsoidElectricMaterialProperty): boolean;
|
|
1889
|
-
init(): void;
|
|
1890
|
-
}
|
|
1891
|
-
declare const createEllipsoidElectricMaterial: (options: IEllipsoidElectricMaterialOptions) => {
|
|
1892
|
-
material: Cesium.Material;
|
|
1893
|
-
};
|
|
1894
|
-
|
|
1895
|
-
/**
|
|
1896
|
-
* 雷达扇形扫描
|
|
1897
|
-
*/
|
|
1898
|
-
declare class EllipsoidScanMaterialProperty extends BaseMaterialProperty {
|
|
1899
|
-
private speed;
|
|
1900
|
-
private color;
|
|
1901
|
-
private name;
|
|
1902
|
-
constructor(options: IEllipsoidScanMaterialOptions);
|
|
1903
|
-
get isConstant(): boolean;
|
|
1904
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1905
|
-
getType(): string;
|
|
1906
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1907
|
-
equals(other: EllipsoidScanMaterialProperty): boolean;
|
|
1908
|
-
init(): void;
|
|
1909
|
-
}
|
|
1910
|
-
declare const createEllipsoidScanMaterial: (options: IEllipsoidScanMaterialOptions) => {
|
|
1911
|
-
material: Cesium.Material;
|
|
1912
|
-
};
|
|
1913
|
-
|
|
1914
|
-
/**
|
|
1915
|
-
* 闪电迁移shadertoy
|
|
1916
|
-
* https://www.shadertoy.com/view/XXyGzh
|
|
1917
|
-
*/
|
|
1918
|
-
declare class ZapsMaterialProperty extends BaseMaterialProperty {
|
|
1919
|
-
private color;
|
|
1920
|
-
private speed;
|
|
1921
|
-
private name;
|
|
1922
|
-
constructor(options: IZapsMaterialOptions);
|
|
1923
|
-
get isConstant(): boolean;
|
|
1924
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1925
|
-
getType(): string;
|
|
1926
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1927
|
-
equals(other: ZapsMaterialProperty): any;
|
|
1928
|
-
init(): void;
|
|
1929
|
-
}
|
|
1930
|
-
declare const createZapsMaterial: (options: IZapsMaterialOptions) => {
|
|
1931
|
-
material: Cesium.Material;
|
|
1932
|
-
};
|
|
1933
|
-
|
|
1934
|
-
/**
|
|
1935
|
-
* 定义标签接口
|
|
1936
|
-
* @param id 标签的唯一标识符
|
|
1937
|
-
* @param field 字段名称,用于从数据中提取标签文本
|
|
1938
|
-
* @param font 字体样式
|
|
1939
|
-
* @param fillColor 填充颜色
|
|
1940
|
-
* @param outlineColor 轮廓颜色
|
|
1941
|
-
* @param outlineWidth 轮廓宽度
|
|
1942
|
-
* @param style 样式
|
|
1943
|
-
* @param showBackground 是否显示背景
|
|
1944
|
-
* @param backgroundColor 背景颜色
|
|
1945
|
-
* @param backgroundPadding 背景填充
|
|
1946
|
-
* @param scale 缩放比例
|
|
1947
|
-
* @param horizontalOrigin 水平原点
|
|
1948
|
-
* @param verticalOrigin 垂直原点
|
|
1949
|
-
* @param pixelOffset 像素偏移
|
|
1950
|
-
* @param eyeOffset 视角偏移
|
|
1951
|
-
* @param heightReference 高度参考
|
|
1952
|
-
* @param translucencyByDistance 透明度随距离变化
|
|
1953
|
-
* @param pixelOffsetScaleByDistance 像素偏移随距离变化
|
|
1954
|
-
* @param scaleByDistance 缩放随距离变化
|
|
1955
|
-
* @param distanceDisplayCondition 显示距离条件
|
|
1956
|
-
* @param disableDepthTestDistance 禁用深度测试距离
|
|
1957
|
-
*/
|
|
1958
|
-
interface ILabel {
|
|
1959
|
-
/**
|
|
1960
|
-
* 标签的唯一标识符
|
|
1961
|
-
*/
|
|
1962
|
-
id?: any;
|
|
1963
|
-
/**
|
|
1964
|
-
* 字段名称,用于从数据中提取标签文本
|
|
1965
|
-
*/
|
|
1966
|
-
field: string;
|
|
1967
|
-
/**
|
|
1968
|
-
* 字体样式
|
|
1969
|
-
*/
|
|
1970
|
-
font?: string;
|
|
1971
|
-
/**
|
|
1972
|
-
* 填充颜色
|
|
1973
|
-
*/
|
|
1974
|
-
fillColor?: string;
|
|
1975
|
-
/**
|
|
1976
|
-
* 轮廓颜色
|
|
1977
|
-
*/
|
|
1978
|
-
outlineColor?: string;
|
|
1979
|
-
/**
|
|
1980
|
-
* 轮廓宽度
|
|
1981
|
-
*/
|
|
1982
|
-
outlineWidth?: number;
|
|
1983
|
-
/**
|
|
1984
|
-
* 样式
|
|
1985
|
-
*/
|
|
1986
|
-
style?: string;
|
|
1987
|
-
/**
|
|
1988
|
-
* 是否显示背景
|
|
1989
|
-
*/
|
|
1990
|
-
showBackground?: boolean;
|
|
1991
|
-
/**
|
|
1992
|
-
* 背景颜色
|
|
1993
|
-
*/
|
|
1994
|
-
backgroundColor?: string;
|
|
1995
|
-
/**
|
|
1996
|
-
* 背景填充
|
|
1997
|
-
*/
|
|
1998
|
-
backgroundPadding?: number[];
|
|
1999
|
-
/**
|
|
2000
|
-
* 缩放比例
|
|
2001
|
-
*/
|
|
2002
|
-
scale?: number;
|
|
2003
|
-
/**
|
|
2004
|
-
* 水平原点
|
|
2005
|
-
*/
|
|
2006
|
-
horizontalOrigin?: number;
|
|
2007
|
-
/**
|
|
2008
|
-
* 垂直原点
|
|
2009
|
-
*/
|
|
2010
|
-
verticalOrigin?: number;
|
|
2011
|
-
/**
|
|
2012
|
-
* 像素偏移
|
|
2013
|
-
*/
|
|
2014
|
-
pixelOffset?: number[];
|
|
2015
|
-
/**
|
|
2016
|
-
* 视角偏移
|
|
2017
|
-
*/
|
|
2018
|
-
eyeOffset?: number[];
|
|
2019
|
-
/**
|
|
2020
|
-
* 高度参考
|
|
2021
|
-
*/
|
|
2022
|
-
heightReference?: Cesium.HeightReference;
|
|
2023
|
-
/**
|
|
2024
|
-
* 透明度随距离变化
|
|
2025
|
-
*/
|
|
2026
|
-
translucencyByDistance?: Cesium.NearFarScalar;
|
|
2027
|
-
/**
|
|
2028
|
-
* 像素偏移随距离变化
|
|
2029
|
-
*/
|
|
2030
|
-
pixelOffsetScaleByDistance?: Cesium.NearFarScalar;
|
|
2031
|
-
/**
|
|
2032
|
-
* 缩放随距离变化
|
|
2033
|
-
*/
|
|
2034
|
-
scaleByDistance?: Cesium.NearFarScalar;
|
|
2035
|
-
/**
|
|
2036
|
-
* 显示距离条件
|
|
2037
|
-
*/
|
|
2038
|
-
distanceDisplayCondition?: Cesium.DistanceDisplayCondition;
|
|
2039
|
-
/**
|
|
2040
|
-
* 禁用深度测试距离
|
|
2041
|
-
*/
|
|
2042
|
-
disableDepthTestDistance?: number;
|
|
2043
|
-
}
|
|
2044
|
-
/**
|
|
2045
|
-
* 定义点接口
|
|
2046
|
-
* @param id 点的唯一标识符
|
|
2047
|
-
* @param color 颜色
|
|
2048
|
-
* @param pixelSize 像素大小
|
|
2049
|
-
* @param outlineColor 轮廓颜色
|
|
2050
|
-
* @param outlineWidth 轮廓宽度
|
|
2051
|
-
* @param scaleByDistance 缩放随距离变化
|
|
2052
|
-
* @param translucencyByDistance 透明度随距离变化
|
|
2053
|
-
* @param distanceDisplayCondition 显示距离条件
|
|
2054
|
-
* @param disableDepthTestDistance 禁用深度测试距离
|
|
1819
|
+
* 定义点接口
|
|
1820
|
+
* @param id 点的唯一标识符
|
|
1821
|
+
* @param color 颜色
|
|
1822
|
+
* @param pixelSize 像素大小
|
|
1823
|
+
* @param outlineColor 轮廓颜色
|
|
1824
|
+
* @param outlineWidth 轮廓宽度
|
|
1825
|
+
* @param scaleByDistance 缩放随距离变化
|
|
1826
|
+
* @param translucencyByDistance 透明度随距离变化
|
|
1827
|
+
* @param distanceDisplayCondition 显示距离条件
|
|
1828
|
+
* @param disableDepthTestDistance 禁用深度测试距离
|
|
2055
1829
|
*/
|
|
2056
1830
|
interface IPoint {
|
|
2057
1831
|
/**
|
|
@@ -2249,7 +2023,7 @@ interface IPointPrimitivesOptions {
|
|
|
2249
2023
|
/**
|
|
2250
2024
|
* GeoJSON 数据
|
|
2251
2025
|
*/
|
|
2252
|
-
geoJson: FeatureCollection
|
|
2026
|
+
geoJson: FeatureCollection<Point>;
|
|
2253
2027
|
/**
|
|
2254
2028
|
* 是否根据地形计算点高度
|
|
2255
2029
|
*/
|
|
@@ -2297,7 +2071,7 @@ interface IRaderScanPrimitiveOptions {
|
|
|
2297
2071
|
*/
|
|
2298
2072
|
ground?: boolean;
|
|
2299
2073
|
appearanceOptions?: Cesium.MaterialAppearance;
|
|
2300
|
-
materialOptions?: IRadarScanMaterialOptions;
|
|
2074
|
+
materialOptions?: IRadarScanMaterialOptions$1;
|
|
2301
2075
|
}
|
|
2302
2076
|
interface ICircleAperturePrimitiveOptions {
|
|
2303
2077
|
/**
|
|
@@ -2313,7 +2087,7 @@ interface ICircleAperturePrimitiveOptions {
|
|
|
2313
2087
|
*/
|
|
2314
2088
|
ground?: boolean;
|
|
2315
2089
|
appearanceOptions?: Cesium.MaterialAppearance;
|
|
2316
|
-
materialOptions?: ICircleApertureMaterialOptions;
|
|
2090
|
+
materialOptions?: ICircleApertureMaterialOptions$1;
|
|
2317
2091
|
}
|
|
2318
2092
|
/**
|
|
2319
2093
|
* 定义地面多边形图元选项接口
|
|
@@ -2324,7 +2098,7 @@ interface IGroundPolygonPrimitivesOptions {
|
|
|
2324
2098
|
/**
|
|
2325
2099
|
* GeoJSON 数据
|
|
2326
2100
|
*/
|
|
2327
|
-
geoJson: FeatureCollection
|
|
2101
|
+
geoJson: FeatureCollection<Polygon | MultiPolygon, GeoJsonProperties>;
|
|
2328
2102
|
line: {
|
|
2329
2103
|
/**
|
|
2330
2104
|
* 线宽
|
|
@@ -2346,7 +2120,7 @@ interface IGroundPolylinePrimitivesOptions {
|
|
|
2346
2120
|
/**
|
|
2347
2121
|
* GeoJSON 数据
|
|
2348
2122
|
*/
|
|
2349
|
-
geoJson: FeatureCollection
|
|
2123
|
+
geoJson: FeatureCollection<LineString | MultiLineString, GeoJsonProperties>;
|
|
2350
2124
|
line: {
|
|
2351
2125
|
/**
|
|
2352
2126
|
* 线宽
|
|
@@ -2363,17 +2137,17 @@ interface IGroundPolylinePrimitivesOptions {
|
|
|
2363
2137
|
material?: Cesium.Material;
|
|
2364
2138
|
}
|
|
2365
2139
|
|
|
2366
|
-
type
|
|
2367
|
-
type
|
|
2368
|
-
type
|
|
2369
|
-
type
|
|
2370
|
-
type
|
|
2371
|
-
type
|
|
2372
|
-
type
|
|
2373
|
-
type
|
|
2374
|
-
type
|
|
2375
|
-
declare namespace types$
|
|
2376
|
-
export type {
|
|
2140
|
+
type types_IBillboard = IBillboard;
|
|
2141
|
+
type types_ICircleAperturePrimitiveOptions = ICircleAperturePrimitiveOptions;
|
|
2142
|
+
type types_IGroundPolygonPrimitivesOptions = IGroundPolygonPrimitivesOptions;
|
|
2143
|
+
type types_IGroundPolylinePrimitivesOptions = IGroundPolylinePrimitivesOptions;
|
|
2144
|
+
type types_ILabel = ILabel;
|
|
2145
|
+
type types_IPoint = IPoint;
|
|
2146
|
+
type types_IPointPrimitivesOptions = IPointPrimitivesOptions;
|
|
2147
|
+
type types_IRaderScanPrimitiveOptions = IRaderScanPrimitiveOptions;
|
|
2148
|
+
type types_Icluster = Icluster;
|
|
2149
|
+
declare namespace types$2 {
|
|
2150
|
+
export type { types_IBillboard as IBillboard, types_ICircleAperturePrimitiveOptions as ICircleAperturePrimitiveOptions, types_IGroundPolygonPrimitivesOptions as IGroundPolygonPrimitivesOptions, types_IGroundPolylinePrimitivesOptions as IGroundPolylinePrimitivesOptions, types_ILabel as ILabel, types_IPoint as IPoint, types_IPointPrimitivesOptions as IPointPrimitivesOptions, types_IRaderScanPrimitiveOptions as IRaderScanPrimitiveOptions, types_Icluster as Icluster };
|
|
2377
2151
|
}
|
|
2378
2152
|
|
|
2379
2153
|
declare class RadereScanPrimitive extends BasePrimitive<any> {
|
|
@@ -2398,9 +2172,9 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2398
2172
|
private clusterImageCache;
|
|
2399
2173
|
private supercluster;
|
|
2400
2174
|
constructor(options: IPointPrimitivesOptions);
|
|
2401
|
-
initCollection: (geojson: FeatureCollection
|
|
2402
|
-
clacBoundingSphere(geoJson: FeatureCollection
|
|
2403
|
-
createPoint(feature: Feature
|
|
2175
|
+
initCollection: (geojson: FeatureCollection<Point, GeoJsonProperties>) => Promise<void>;
|
|
2176
|
+
clacBoundingSphere(geoJson: FeatureCollection<Point, GeoJsonProperties>): void;
|
|
2177
|
+
createPoint(feature: Feature<Point, GeoJsonProperties>): {
|
|
2404
2178
|
id: string;
|
|
2405
2179
|
position: Cesium.Cartesian3;
|
|
2406
2180
|
color: Cesium.Color;
|
|
@@ -2412,7 +2186,7 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2412
2186
|
disableDepthTestDistance: any;
|
|
2413
2187
|
distanceDisplayCondition: any;
|
|
2414
2188
|
};
|
|
2415
|
-
createBillboard(feature: Feature
|
|
2189
|
+
createBillboard(feature: Feature<Point, GeoJsonProperties>): {
|
|
2416
2190
|
id: string;
|
|
2417
2191
|
position: Cesium.Cartesian3;
|
|
2418
2192
|
image: any;
|
|
@@ -2429,7 +2203,7 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2429
2203
|
disableDepthTestDistance: any;
|
|
2430
2204
|
distanceDisplayCondition: any;
|
|
2431
2205
|
};
|
|
2432
|
-
createLabel(feature: Feature
|
|
2206
|
+
createLabel(feature: Feature<Point, GeoJsonProperties>): {
|
|
2433
2207
|
id: string;
|
|
2434
2208
|
position: Cesium.Cartesian3;
|
|
2435
2209
|
text: any;
|
|
@@ -2451,7 +2225,7 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2451
2225
|
disableDepthTestDistance: any;
|
|
2452
2226
|
distanceDisplayCondition: any;
|
|
2453
2227
|
};
|
|
2454
|
-
initCluster: (viewer: Cesium.Viewer, geoJson: FeatureCollection
|
|
2228
|
+
initCluster: (viewer: Cesium.Viewer, geoJson: FeatureCollection<Point>) => Promise<void>;
|
|
2455
2229
|
/**
|
|
2456
2230
|
* 缩放至聚合点子集
|
|
2457
2231
|
*/
|
|
@@ -2459,7 +2233,7 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2459
2233
|
loadCluster: (viewer: Cesium.Viewer) => void;
|
|
2460
2234
|
getClusterImageByCount(color: string, count: number, zoom: number): any;
|
|
2461
2235
|
calcfontSize(zoom: number): number;
|
|
2462
|
-
calcPointHeight(viewer: Cesium.Viewer, geoJson: FeatureCollection
|
|
2236
|
+
calcPointHeight(viewer: Cesium.Viewer, geoJson: FeatureCollection<Point>): Promise<void>;
|
|
2463
2237
|
clearCollection(): void;
|
|
2464
2238
|
remove(): void;
|
|
2465
2239
|
removeAll(): void;
|
|
@@ -2603,99 +2377,435 @@ interface IFillDig extends IBaseAnalysis<IFillDigOptions, IFillDigItem> {
|
|
|
2603
2377
|
interface IFillDigOptions {
|
|
2604
2378
|
positions: Cesium.Cartesian3[];
|
|
2605
2379
|
}
|
|
2606
|
-
interface IFillDigItem {
|
|
2607
|
-
id: string;
|
|
2380
|
+
interface IFillDigItem {
|
|
2381
|
+
id: string;
|
|
2382
|
+
}
|
|
2383
|
+
interface IProFile<T> {
|
|
2384
|
+
set: (options: T) => Promise<IProFileItem>;
|
|
2385
|
+
remove: (item: IProFileItem) => void;
|
|
2386
|
+
removeAll: () => void;
|
|
2387
|
+
destroy: () => void;
|
|
2388
|
+
changeTipPoint: (data?: IProFileItemData) => void;
|
|
2389
|
+
}
|
|
2390
|
+
interface IProFileOptions {
|
|
2391
|
+
positions: Cesium.Cartesian3[];
|
|
2392
|
+
/**
|
|
2393
|
+
* 插值点距离
|
|
2394
|
+
* 根据距离和线的长度计算插值点数量
|
|
2395
|
+
* 单位为米
|
|
2396
|
+
*/
|
|
2397
|
+
pointDistance: number;
|
|
2398
|
+
tipMarkerUrl?: string;
|
|
2399
|
+
}
|
|
2400
|
+
interface IProFileItem {
|
|
2401
|
+
id: string;
|
|
2402
|
+
datas: IProFileItemData[];
|
|
2403
|
+
}
|
|
2404
|
+
interface IProFileItemData {
|
|
2405
|
+
longitude: number;
|
|
2406
|
+
latitude: number;
|
|
2407
|
+
height: number;
|
|
2408
|
+
distance: number;
|
|
2409
|
+
allDistance: number;
|
|
2410
|
+
}
|
|
2411
|
+
interface IModelProFileOptions extends IProFileOptions {
|
|
2412
|
+
layers: any;
|
|
2413
|
+
/**
|
|
2414
|
+
* 分析进度
|
|
2415
|
+
*/
|
|
2416
|
+
progress: (data: IProFileItemData) => void;
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
type types_IBaseAnalysis<T, R> = IBaseAnalysis<T, R>;
|
|
2420
|
+
type types_IClipPlane = IClipPlane;
|
|
2421
|
+
type types_IClipPlaneOPtions = IClipPlaneOPtions;
|
|
2422
|
+
type types_IClipPolygon = IClipPolygon;
|
|
2423
|
+
type types_IClipPolygonItem = IClipPolygonItem;
|
|
2424
|
+
type types_IClipPolygonPtions = IClipPolygonPtions;
|
|
2425
|
+
type types_IFillDig = IFillDig;
|
|
2426
|
+
type types_IFillDigItem = IFillDigItem;
|
|
2427
|
+
type types_IFillDigOptions = IFillDigOptions;
|
|
2428
|
+
type types_IFlood = IFlood;
|
|
2429
|
+
type types_IFloodItem = IFloodItem;
|
|
2430
|
+
type types_IFloodOptions = IFloodOptions;
|
|
2431
|
+
type types_IModelProFileOptions = IModelProFileOptions;
|
|
2432
|
+
type types_IProFile<T> = IProFile<T>;
|
|
2433
|
+
type types_IProFileItem = IProFileItem;
|
|
2434
|
+
type types_IProFileItemData = IProFileItemData;
|
|
2435
|
+
type types_IProFileOptions = IProFileOptions;
|
|
2436
|
+
declare namespace types$1 {
|
|
2437
|
+
export type { types_IBaseAnalysis as IBaseAnalysis, types_IClipPlane as IClipPlane, types_IClipPlaneOPtions as IClipPlaneOPtions, types_IClipPolygon as IClipPolygon, types_IClipPolygonItem as IClipPolygonItem, types_IClipPolygonPtions as IClipPolygonPtions, types_IFillDig as IFillDig, types_IFillDigItem as IFillDigItem, types_IFillDigOptions as IFillDigOptions, types_IFlood as IFlood, types_IFloodItem as IFloodItem, types_IFloodOptions as IFloodOptions, types_IModelProFileOptions as IModelProFileOptions, types_IProFile as IProFile, types_IProFileItem as IProFileItem, types_IProFileItemData as IProFileItemData, types_IProFileOptions as IProFileOptions };
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
/**
|
|
2441
|
+
* 地形开挖
|
|
2442
|
+
*/
|
|
2443
|
+
declare const createClipPlaneAnalysis: (viewer: Cesium.Viewer) => IClipPlane;
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* 裁剪面分析,
|
|
2447
|
+
*/
|
|
2448
|
+
declare const createClipPolygonAnalysis: (viewer: Cesium.Viewer) => IClipPolygon;
|
|
2449
|
+
|
|
2450
|
+
/**
|
|
2451
|
+
* 淹没分析
|
|
2452
|
+
* @param viewer
|
|
2453
|
+
*/
|
|
2454
|
+
declare const createFloodAnalysis: (viewer: Cesium.Viewer) => IFlood;
|
|
2455
|
+
|
|
2456
|
+
/**
|
|
2457
|
+
* 填挖方分析
|
|
2458
|
+
* @param viewer
|
|
2459
|
+
*/
|
|
2460
|
+
declare const createFillAndDigAnalysis: (viewer: Cesium.Viewer) => IFillDig;
|
|
2461
|
+
|
|
2462
|
+
/**
|
|
2463
|
+
* 淹没分析
|
|
2464
|
+
* @param viewer
|
|
2465
|
+
*/
|
|
2466
|
+
declare const createProfileAnalysis: (viewer: Cesium.Viewer) => IProFile<IProFileOptions>;
|
|
2467
|
+
|
|
2468
|
+
/**
|
|
2469
|
+
* 剖面分析(模型上分析)
|
|
2470
|
+
* 分层分析模型
|
|
2471
|
+
*/
|
|
2472
|
+
declare const createModelProfileAnalysis: (viewer: Viewer) => IProFile<IModelProFileOptions>;
|
|
2473
|
+
|
|
2474
|
+
interface IPolylineTrailMaterialOptions {
|
|
2475
|
+
name?: string;
|
|
2476
|
+
color?: string;
|
|
2477
|
+
speed?: number;
|
|
2478
|
+
image: string;
|
|
2479
|
+
}
|
|
2480
|
+
interface IPolylineFlowMaterialOptions {
|
|
2481
|
+
/**
|
|
2482
|
+
* 颜色
|
|
2483
|
+
*/
|
|
2484
|
+
color?: string;
|
|
2485
|
+
speed?: number;
|
|
2486
|
+
image: string;
|
|
2487
|
+
repeatCount?: number;
|
|
2488
|
+
blendColor?: boolean;
|
|
2489
|
+
}
|
|
2490
|
+
interface ICircleWaveMaterialOptions {
|
|
2491
|
+
name?: string;
|
|
2492
|
+
color?: string;
|
|
2493
|
+
speed?: number;
|
|
2494
|
+
count?: number;
|
|
2495
|
+
gradient?: number;
|
|
2496
|
+
}
|
|
2497
|
+
interface ICircleRaderWaveMaterialOptions {
|
|
2498
|
+
name?: string;
|
|
2499
|
+
color?: string;
|
|
2500
|
+
speed?: number;
|
|
2501
|
+
}
|
|
2502
|
+
interface ICircleRaderFanMaterialOptions {
|
|
2503
|
+
name?: string;
|
|
2504
|
+
color?: string;
|
|
2505
|
+
speed?: number;
|
|
2506
|
+
}
|
|
2507
|
+
interface ICircleApertureMaterialOptions {
|
|
2508
|
+
color?: string;
|
|
2509
|
+
/**
|
|
2510
|
+
* 速度
|
|
2511
|
+
*/
|
|
2512
|
+
speed?: number;
|
|
2513
|
+
}
|
|
2514
|
+
interface ILightWallMaterialOptions {
|
|
2515
|
+
image: string;
|
|
2516
|
+
color?: string;
|
|
2517
|
+
count?: number;
|
|
2518
|
+
/**
|
|
2519
|
+
* 时间 单位为秒
|
|
2520
|
+
*/
|
|
2521
|
+
duration?: number;
|
|
2522
|
+
/**
|
|
2523
|
+
* 0为水平 1为垂直 默认为1
|
|
2524
|
+
*/
|
|
2525
|
+
vertical?: number;
|
|
2526
|
+
/**
|
|
2527
|
+
* 1由下到上 0由上到下 默认为0
|
|
2528
|
+
*/
|
|
2529
|
+
direction?: number;
|
|
2530
|
+
}
|
|
2531
|
+
/**
|
|
2532
|
+
* 电弧球体
|
|
2533
|
+
*/
|
|
2534
|
+
interface IEllipsoidElectricMaterialOptions {
|
|
2535
|
+
color?: string;
|
|
2536
|
+
/**
|
|
2537
|
+
* 速度
|
|
2538
|
+
*/
|
|
2539
|
+
speed?: number;
|
|
2540
|
+
}
|
|
2541
|
+
/**
|
|
2542
|
+
* 扫描球体
|
|
2543
|
+
*/
|
|
2544
|
+
interface IEllipsoidScanMaterialOptions {
|
|
2545
|
+
color?: string;
|
|
2546
|
+
/**
|
|
2547
|
+
* 速度
|
|
2548
|
+
*/
|
|
2549
|
+
speed?: number;
|
|
2550
|
+
}
|
|
2551
|
+
/**
|
|
2552
|
+
* 雷达扫描材质
|
|
2553
|
+
* @param selectColor 选中颜色
|
|
2554
|
+
* @param bgColor 背景颜色
|
|
2555
|
+
* @param width 宽度
|
|
2556
|
+
* @param count 光圈个数
|
|
2557
|
+
* @param offset 光晕偏移量
|
|
2558
|
+
*/
|
|
2559
|
+
interface IRadarScanMaterialOptions {
|
|
2560
|
+
/**
|
|
2561
|
+
* 扇区颜色
|
|
2562
|
+
*/
|
|
2563
|
+
sectorColor?: string;
|
|
2564
|
+
/**
|
|
2565
|
+
* 扇区宽度
|
|
2566
|
+
*/
|
|
2567
|
+
width?: number;
|
|
2568
|
+
/**
|
|
2569
|
+
* 背景颜色
|
|
2570
|
+
*/
|
|
2571
|
+
bgColor?: string;
|
|
2572
|
+
/**
|
|
2573
|
+
* 光圈个数
|
|
2574
|
+
*/
|
|
2575
|
+
count?: number;
|
|
2576
|
+
/**
|
|
2577
|
+
* 光晕偏移量
|
|
2578
|
+
*/
|
|
2579
|
+
offset?: number;
|
|
2580
|
+
}
|
|
2581
|
+
interface ICorridorMaterialOptions {
|
|
2608
2582
|
}
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2583
|
+
/**
|
|
2584
|
+
* 闪电材质,
|
|
2585
|
+
* https://www.shadertoy.com/view/XXyGzh
|
|
2586
|
+
*/
|
|
2587
|
+
interface IZapsMaterialOptions {
|
|
2588
|
+
color?: string;
|
|
2589
|
+
speed: number;
|
|
2615
2590
|
}
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2591
|
+
|
|
2592
|
+
type types_ICircleApertureMaterialOptions = ICircleApertureMaterialOptions;
|
|
2593
|
+
type types_ICircleRaderFanMaterialOptions = ICircleRaderFanMaterialOptions;
|
|
2594
|
+
type types_ICircleRaderWaveMaterialOptions = ICircleRaderWaveMaterialOptions;
|
|
2595
|
+
type types_ICircleWaveMaterialOptions = ICircleWaveMaterialOptions;
|
|
2596
|
+
type types_ICorridorMaterialOptions = ICorridorMaterialOptions;
|
|
2597
|
+
type types_IEllipsoidElectricMaterialOptions = IEllipsoidElectricMaterialOptions;
|
|
2598
|
+
type types_IEllipsoidScanMaterialOptions = IEllipsoidScanMaterialOptions;
|
|
2599
|
+
type types_ILightWallMaterialOptions = ILightWallMaterialOptions;
|
|
2600
|
+
type types_IPolylineFlowMaterialOptions = IPolylineFlowMaterialOptions;
|
|
2601
|
+
type types_IPolylineTrailMaterialOptions = IPolylineTrailMaterialOptions;
|
|
2602
|
+
type types_IRadarScanMaterialOptions = IRadarScanMaterialOptions;
|
|
2603
|
+
type types_IZapsMaterialOptions = IZapsMaterialOptions;
|
|
2604
|
+
declare namespace types {
|
|
2605
|
+
export type { types_ICircleApertureMaterialOptions as ICircleApertureMaterialOptions, types_ICircleRaderFanMaterialOptions as ICircleRaderFanMaterialOptions, types_ICircleRaderWaveMaterialOptions as ICircleRaderWaveMaterialOptions, types_ICircleWaveMaterialOptions as ICircleWaveMaterialOptions, types_ICorridorMaterialOptions as ICorridorMaterialOptions, types_IEllipsoidElectricMaterialOptions as IEllipsoidElectricMaterialOptions, types_IEllipsoidScanMaterialOptions as IEllipsoidScanMaterialOptions, types_ILightWallMaterialOptions as ILightWallMaterialOptions, types_IPolylineFlowMaterialOptions as IPolylineFlowMaterialOptions, types_IPolylineTrailMaterialOptions as IPolylineTrailMaterialOptions, types_IRadarScanMaterialOptions as IRadarScanMaterialOptions, types_IZapsMaterialOptions as IZapsMaterialOptions };
|
|
2625
2606
|
}
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2607
|
+
|
|
2608
|
+
/**
|
|
2609
|
+
* 尾迹线材质类
|
|
2610
|
+
*/
|
|
2611
|
+
declare class PolylineTrailMaterialProperty extends BaseMaterialProperty {
|
|
2612
|
+
private speed;
|
|
2613
|
+
private color;
|
|
2614
|
+
private name;
|
|
2615
|
+
private image;
|
|
2616
|
+
constructor(options: IPolylineTrailMaterialOptions);
|
|
2617
|
+
get isConstant(): boolean;
|
|
2618
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
2619
|
+
getType(): string;
|
|
2620
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
2621
|
+
equals(other: PolylineTrailMaterialProperty): any;
|
|
2622
|
+
init(): void;
|
|
2623
|
+
createPropertyDescriptors(): void;
|
|
2629
2624
|
}
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2625
|
+
declare const createTrailMaterial: (options: IPolylineTrailMaterialOptions) => Cesium.Material;
|
|
2626
|
+
|
|
2627
|
+
/**
|
|
2628
|
+
* 线流动材质
|
|
2629
|
+
* @classdesc 线流动材质
|
|
2630
|
+
* @param {IPolylineFlowMaterialOptions} options - 线流动材质参数
|
|
2631
|
+
*/
|
|
2632
|
+
declare class PolylineFlowMaterialProperty extends BaseMaterialProperty {
|
|
2633
|
+
private repeatCount;
|
|
2634
|
+
private image;
|
|
2635
|
+
private speed;
|
|
2636
|
+
private color;
|
|
2637
|
+
private blend;
|
|
2638
|
+
private name;
|
|
2639
|
+
constructor(options: IPolylineFlowMaterialOptions);
|
|
2640
|
+
get isConstant(): boolean;
|
|
2641
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
2642
|
+
getType(): string;
|
|
2643
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
2644
|
+
equals(other: PolylineFlowMaterialProperty): boolean;
|
|
2645
|
+
init(): void;
|
|
2646
|
+
createPropertyDescriptors(): void;
|
|
2636
2647
|
}
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2648
|
+
declare const createPoylineFlowMaterial: (options: IPolylineFlowMaterialOptions) => Cesium.Material;
|
|
2649
|
+
|
|
2650
|
+
/**
|
|
2651
|
+
* 波浪圆
|
|
2652
|
+
*/
|
|
2653
|
+
declare class CircleWaveMaterialProperty extends BaseMaterialProperty {
|
|
2654
|
+
private count;
|
|
2655
|
+
private speed;
|
|
2656
|
+
private gradient;
|
|
2657
|
+
private color;
|
|
2658
|
+
private name;
|
|
2659
|
+
constructor(options?: ICircleWaveMaterialOptions);
|
|
2660
|
+
get isConstant(): boolean;
|
|
2661
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
2662
|
+
getType(): string;
|
|
2663
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
2664
|
+
equals(other: CircleWaveMaterialProperty): any;
|
|
2665
|
+
init(): void;
|
|
2643
2666
|
}
|
|
2667
|
+
declare const createCircleWaveMaterial: (options?: ICircleWaveMaterialOptions) => {
|
|
2668
|
+
material: Cesium.Material;
|
|
2669
|
+
};
|
|
2644
2670
|
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
type types_IProFileItem = IProFileItem;
|
|
2660
|
-
type types_IProFileItemData = IProFileItemData;
|
|
2661
|
-
type types_IProFileOptions = IProFileOptions;
|
|
2662
|
-
declare namespace types {
|
|
2663
|
-
export type { types_IBaseAnalysis as IBaseAnalysis, types_IClipPlane as IClipPlane, types_IClipPlaneOPtions as IClipPlaneOPtions, types_IClipPolygon as IClipPolygon, types_IClipPolygonItem as IClipPolygonItem, types_IClipPolygonPtions as IClipPolygonPtions, types_IFillDig as IFillDig, types_IFillDigItem as IFillDigItem, types_IFillDigOptions as IFillDigOptions, types_IFlood as IFlood, types_IFloodItem as IFloodItem, types_IFloodOptions as IFloodOptions, types_IModelProFileOptions as IModelProFileOptions, types_IProFile as IProFile, types_IProFileItem as IProFileItem, types_IProFileItemData as IProFileItemData, types_IProFileOptions as IProFileOptions };
|
|
2671
|
+
/**
|
|
2672
|
+
*雷达波纹圆
|
|
2673
|
+
*/
|
|
2674
|
+
declare class CircleRaderWaveMaterialProperty extends BaseMaterialProperty {
|
|
2675
|
+
private speed;
|
|
2676
|
+
private color;
|
|
2677
|
+
private name;
|
|
2678
|
+
constructor(options: ICircleRaderWaveMaterialOptions);
|
|
2679
|
+
get isConstant(): boolean;
|
|
2680
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
2681
|
+
getType(): string;
|
|
2682
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
2683
|
+
equals(other: CircleRaderWaveMaterialProperty): boolean;
|
|
2684
|
+
init(): void;
|
|
2664
2685
|
}
|
|
2686
|
+
declare const createRaderWaveMaterial: (options: ICircleRaderWaveMaterialOptions) => {
|
|
2687
|
+
material: Cesium.Material;
|
|
2688
|
+
};
|
|
2665
2689
|
|
|
2666
2690
|
/**
|
|
2667
|
-
*
|
|
2691
|
+
* 雷达扇形扫描
|
|
2668
2692
|
*/
|
|
2669
|
-
declare
|
|
2693
|
+
declare class CircleRaderFanMaterialProperty extends BaseMaterialProperty {
|
|
2694
|
+
private speed;
|
|
2695
|
+
private color;
|
|
2696
|
+
private name;
|
|
2697
|
+
constructor(options: ICircleRaderFanMaterialOptions);
|
|
2698
|
+
get isConstant(): boolean;
|
|
2699
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
2700
|
+
getType(): string;
|
|
2701
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
2702
|
+
equals(other: CircleRaderFanMaterialProperty): boolean;
|
|
2703
|
+
init(): void;
|
|
2704
|
+
}
|
|
2705
|
+
declare const createCircleRaderFanMaterial: (options: ICircleRaderFanMaterialOptions) => {
|
|
2706
|
+
material: Cesium.Material;
|
|
2707
|
+
};
|
|
2670
2708
|
|
|
2671
2709
|
/**
|
|
2672
|
-
*
|
|
2710
|
+
* 波浪圆
|
|
2673
2711
|
*/
|
|
2674
|
-
declare
|
|
2712
|
+
declare class CircleApertureMaterialProperty extends BaseMaterialProperty {
|
|
2713
|
+
private speed;
|
|
2714
|
+
private color;
|
|
2715
|
+
private name;
|
|
2716
|
+
constructor(options?: ICircleApertureMaterialOptions);
|
|
2717
|
+
get isConstant(): boolean;
|
|
2718
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
2719
|
+
getType(): string;
|
|
2720
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
2721
|
+
equals(other: CircleApertureMaterialProperty): any;
|
|
2722
|
+
init(): void;
|
|
2723
|
+
}
|
|
2724
|
+
declare const createCircleApertureMaterial: (options?: ICircleApertureMaterialOptions) => Cesium.Material;
|
|
2725
|
+
|
|
2726
|
+
declare const createScanRadarMaterial: (options?: IRadarScanMaterialOptions) => Cesium.Material;
|
|
2675
2727
|
|
|
2676
2728
|
/**
|
|
2677
|
-
*
|
|
2678
|
-
* @param viewer
|
|
2729
|
+
* 光墙材质
|
|
2679
2730
|
*/
|
|
2680
|
-
declare
|
|
2731
|
+
declare class LightWallMaterialProperty extends BaseMaterialProperty {
|
|
2732
|
+
private duration;
|
|
2733
|
+
private count;
|
|
2734
|
+
private vertical;
|
|
2735
|
+
private direction;
|
|
2736
|
+
private color;
|
|
2737
|
+
private _time;
|
|
2738
|
+
private image;
|
|
2739
|
+
private name;
|
|
2740
|
+
constructor(options: ILightWallMaterialOptions);
|
|
2741
|
+
get isConstant(): boolean;
|
|
2742
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
2743
|
+
getType(): string;
|
|
2744
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
2745
|
+
equals(other: LightWallMaterialProperty): any;
|
|
2746
|
+
init(): void;
|
|
2747
|
+
}
|
|
2748
|
+
declare const createLightWallMaterial: (options: ILightWallMaterialOptions) => {
|
|
2749
|
+
material: Cesium.Material;
|
|
2750
|
+
};
|
|
2681
2751
|
|
|
2682
2752
|
/**
|
|
2683
|
-
*
|
|
2684
|
-
* @param viewer
|
|
2753
|
+
* 雷达扇形扫描
|
|
2685
2754
|
*/
|
|
2686
|
-
declare
|
|
2755
|
+
declare class EllipsoidElectricMaterialProperty extends BaseMaterialProperty {
|
|
2756
|
+
private speed;
|
|
2757
|
+
private color;
|
|
2758
|
+
private name;
|
|
2759
|
+
constructor(options: IEllipsoidElectricMaterialOptions);
|
|
2760
|
+
get isConstant(): boolean;
|
|
2761
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
2762
|
+
getType(): string;
|
|
2763
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
2764
|
+
equals(other: EllipsoidElectricMaterialProperty): boolean;
|
|
2765
|
+
init(): void;
|
|
2766
|
+
}
|
|
2767
|
+
declare const createEllipsoidElectricMaterial: (options: IEllipsoidElectricMaterialOptions) => {
|
|
2768
|
+
material: Cesium.Material;
|
|
2769
|
+
};
|
|
2687
2770
|
|
|
2688
2771
|
/**
|
|
2689
|
-
*
|
|
2690
|
-
* @param viewer
|
|
2772
|
+
* 雷达扇形扫描
|
|
2691
2773
|
*/
|
|
2692
|
-
declare
|
|
2774
|
+
declare class EllipsoidScanMaterialProperty extends BaseMaterialProperty {
|
|
2775
|
+
private speed;
|
|
2776
|
+
private color;
|
|
2777
|
+
private name;
|
|
2778
|
+
constructor(options: IEllipsoidScanMaterialOptions);
|
|
2779
|
+
get isConstant(): boolean;
|
|
2780
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
2781
|
+
getType(): string;
|
|
2782
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
2783
|
+
equals(other: EllipsoidScanMaterialProperty): boolean;
|
|
2784
|
+
init(): void;
|
|
2785
|
+
}
|
|
2786
|
+
declare const createEllipsoidScanMaterial: (options: IEllipsoidScanMaterialOptions) => {
|
|
2787
|
+
material: Cesium.Material;
|
|
2788
|
+
};
|
|
2693
2789
|
|
|
2694
2790
|
/**
|
|
2695
|
-
*
|
|
2696
|
-
*
|
|
2791
|
+
* 闪电迁移shadertoy
|
|
2792
|
+
* https://www.shadertoy.com/view/XXyGzh
|
|
2697
2793
|
*/
|
|
2698
|
-
declare
|
|
2794
|
+
declare class ZapsMaterialProperty extends BaseMaterialProperty {
|
|
2795
|
+
private color;
|
|
2796
|
+
private speed;
|
|
2797
|
+
private name;
|
|
2798
|
+
constructor(options: IZapsMaterialOptions);
|
|
2799
|
+
get isConstant(): boolean;
|
|
2800
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
2801
|
+
getType(): string;
|
|
2802
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
2803
|
+
equals(other: ZapsMaterialProperty): any;
|
|
2804
|
+
init(): void;
|
|
2805
|
+
}
|
|
2806
|
+
declare const createZapsMaterial: (options: IZapsMaterialOptions) => {
|
|
2807
|
+
material: Cesium.Material;
|
|
2808
|
+
};
|
|
2699
2809
|
|
|
2700
|
-
export { types as Analysis, BaseMaterialProperty, BasePrimitive, CircleApertureMaterialProperty, CircleAperturePrimitive, CircleRaderFanMaterialProperty, CircleRaderWaveMaterialProperty, CircleWaveMaterialProperty, types$4 as Common, CoordinateTransformer, DefaultViewerOptions, types$3 as Draw, DrawEventType, DrawStyle, EllipsoidElectricMaterialProperty, EllipsoidScanMaterialProperty, FlyAttitude, GridPrimitives, GroundPolygonPrimitives, GroundPolylinePrimitives, LightWallMaterialProperty, types
|
|
2701
|
-
export type { DeepPartial, DrawEvent, DrawShape, IBaseAnalysis, IBillboard, ICamearView, ICesiumEventListener, ICircleApertureMaterialOptions, ICircleAperturePrimitiveOptions, ICircleRaderFanMaterialOptions, ICircleRaderWaveMaterialOptions, ICircleWaveMaterialOptions, IClipPlane, IClipPlaneOPtions, IClipPolygon, IClipPolygonItem, IClipPolygonPtions, ICorridorMaterialOptions, IDrawAttrInfo, IDrawEditEvent, IDrawHandler, IDrawHandlerEvent, IDrawOptions, IDrawStyle, IDroneAnimOptions, IEllipsoidElectricMaterialOptions, IEllipsoidScanMaterialOptions, IEventActions, IEventData, IFillDig, IFillDigItem, IFillDigOptions, IFlood, IFloodItem, IFloodOptions, IFogStageOptions, IGroundPolygonPrimitivesOptions, IGroundPolylinePrimitivesOptions, IHeightFogStageOptions, IHighLightStageOptions, ILabel, ILightBandStageOptions, ILightWallMaterialOptions, ILightningStageOptions, ILoadTerrainOptions, ILoadTiandituOptions, IMeasureOptions, IMeasureResult, IModelProFileOptions, IOpenAnimOptions, IPoint, IPointPrimitivesOptions, IPolylineFlowMaterialOptions, IPolylineTrailMaterialOptions, IProFile, IProFileItem, IProFileItemData, IProFileOptions, IRadarScanMaterialOptions, IRaderScanPrimitiveOptions, IRainCoverStage, IRainStageOptions, IReShowOptions, IRoamEvent, IRoamHandler, IRoamItem, IRoamItemHPR, IRoaming, ISetViewByLngLatOptions, ISetViewByPositionOptions, ISkyBoxOnGroundOptions, ISkyBoxOptions, ISkyBoxSources, ISnowCoverStageOptions, ISnowStageOptions, IYawPitchRoll, IZapsMaterialOptions, Icluster };
|
|
2810
|
+
export { types$1 as Analysis, BaseMaterialProperty$1 as BaseMaterialProperty, BasePrimitive$1 as BasePrimitive, CircleApertureMaterialProperty, CircleAperturePrimitive, CircleRaderFanMaterialProperty, CircleRaderWaveMaterialProperty, CircleWaveMaterialProperty, types$4 as Common, CoordinateTransformer, DefaultViewerOptions, types$3 as Draw, DrawEventType, DrawStyle, EllipsoidElectricMaterialProperty, EllipsoidScanMaterialProperty, FlyAttitude, GridPrimitives, GroundPolygonPrimitives, GroundPolylinePrimitives, LightWallMaterialProperty, types as Material, PointClusterPrimitives, PointPrimitives, PolylineFlowMaterialProperty, PolylineTrailMaterialProperty, Popup, types$2 as Primitives, RadereScanPrimitive, RoamStatus, Tooltip, TransformsFor3dtiles, ZapsMaterialProperty, addDrawActions, calcArea, calcBoundingSphereFromPositions, calcCameraHeightFromZoom, calcGeodesicDistance, calcGeodesicDistances, calcLerpPosition, calcPoistionCenter, calcSceneHeightFromPositions, calcSpaceDistance, calcSpaceDistances, calcTerrainHeightFromPositions, calcTriangleArea, calcZoomFromCameraHeight, clacPositionsForParabola, createBloomTargetStage, createBottomStatusBar, createCircleApertureMaterial, createCircleRaderFanMaterial, createCircleWaveMaterial, createClipPlaneAnalysis, createClipPolygonAnalysis, createDrawHandler, createDroneAnimCustomShader, createEagleEye, createEllipsoidElectricMaterial, createEllipsoidScanMaterial, createFillAndDigAnalysis, createFloodAnalysis, createFogStage, createHeightFogStage, createHighLightStage, createLightBandCustomShader, createLightWallMaterial, createLightningStage, createModelProfileAnalysis, createOpenAnim, createOutLineEffect, createOutlineStage, createPoylineFlowMaterial, createProfileAnalysis, createRaderWaveMaterial, createRainCoverStage, createRainStage, createRoamHandler, createScanRadarMaterial, createSkyBox, createSkyBoxOnGround, createSkylineStage, createSnowCoverStage, createSnowStage, createTrailMaterial, createZapsMaterial, flyByRotateOut, flyByRotatePoint, flyToCameraView, flyToCesium3DTile, flyToDataSource, flyToFromSphere, flyToImagery, flyToLnglat, flyToNorth, flyToPosition, flyToRectangleBounds, getAllFeaturesFrom3dTiles, getAllTilesFrom3dTiles, getCameraView, getCesiumForAutoFitScale, getInoCesiumBaseUrl, getScreenCenterPoint, initCesium, initCesiumEvent, load3dTiles, loadI3s, loadModel, loadTerrain, loadTerrainFromCesium, loadTianDiTu, loads3m, makeGridFromElevationExtrema, makeGridToInstanceForBox, makeGridToInstanceForLine, makeLnglatToPosition, makeLnglatsToLineGeojson, makeLnglatsToPointGeojson, makeLnglatsToPolygonGeojson, makeLnglatsToPositions, makePositionsClose, makePositionsForAntiClockwise, makePositionsForClockwise, makePositionsToLnglats, makePositiontoLnglat, makeYawPitchRollToHeadingPitchRoll, mekeGridPolygonAndHeight, numberId, randomColor, randomPointToGeoJson, randomPolygonToGeoJson, randomPolylineToGeoJson, removeTerrain, setCesiumForAutoFitScale, setGlobeOpatity, setHeightOffsetFor3dTiles, setInoCesiumBaseUrl, setViewToLnglat, twinkleModel };
|
|
2811
|
+
export type { DeepPartial$1 as DeepPartial, DrawEvent, DrawShape, IBaseAnalysis, IBillboard, ICamearView, ICesiumEventListener, ICircleApertureMaterialOptions, ICircleAperturePrimitiveOptions, ICircleRaderFanMaterialOptions, ICircleRaderWaveMaterialOptions, ICircleWaveMaterialOptions, IClipPlane, IClipPlaneOPtions, IClipPolygon, IClipPolygonItem, IClipPolygonPtions, ICorridorMaterialOptions, IDrawAttrInfo, IDrawEditEvent, IDrawHandler, IDrawHandlerEvent, IDrawOptions, IDrawStyle, IDroneAnimOptions, IEllipsoidElectricMaterialOptions, IEllipsoidScanMaterialOptions, IEventActions, IEventData, IFillDig, IFillDigItem, IFillDigOptions, IFlood, IFloodItem, IFloodOptions, IFogStageOptions, IGroundPolygonPrimitivesOptions, IGroundPolylinePrimitivesOptions, IHeightFogStageOptions, IHighLightStageOptions, ILabel, ILightBandStageOptions, ILightWallMaterialOptions, ILightningStageOptions, ILoadTerrainOptions, ILoadTiandituOptions, IMeasureOptions, IMeasureResult, IModelProFileOptions, IOpenAnimOptions, IPoint, IPointPrimitivesOptions, IPolylineFlowMaterialOptions, IPolylineTrailMaterialOptions, IProFile, IProFileItem, IProFileItemData, IProFileOptions, IRadarScanMaterialOptions, IRaderScanPrimitiveOptions, IRainCoverStage, IRainStageOptions, IReShowOptions, IRoamEvent, IRoamHandler, IRoamItem, IRoamItemHPR, IRoaming, ISetViewByLngLatOptions, ISetViewByPositionOptions, ISkyBoxOnGroundOptions, ISkyBoxOptions, ISkyBoxSources, ISnowCoverStageOptions, ISnowStageOptions, IYawPitchRoll, IZapsMaterialOptions, Icluster };
|