ino-cesium 0.0.17-beta.2 → 0.0.17
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 +2 -1
- package/dist/assets/css/div-label/indicator.css +260 -0
- package/dist/assets/css/ino-cesium.css +3 -0
- package/dist/ino-cesium-full.js +6 -6
- package/dist/ino-cesium.d.ts +888 -881
- package/dist/ino-cesium.js +1 -1
- package/package.json +10 -9
- package/vite/index.d.ts +12 -0
- package/vite/index.js +69 -0
package/dist/ino-cesium.d.ts
CHANGED
|
@@ -1,201 +1,6 @@
|
|
|
1
1
|
import * as Cesium from 'cesium';
|
|
2
2
|
export { Cesium };
|
|
3
|
-
|
|
4
|
-
// Note: as of the RFC 7946 version of GeoJSON, Coordinate Reference Systems
|
|
5
|
-
// are no longer supported. (See https://tools.ietf.org/html/rfc7946#appendix-B)}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* The value values for the "type" property of GeoJSON Objects.
|
|
11
|
-
* https://tools.ietf.org/html/rfc7946#section-1.4
|
|
12
|
-
*/
|
|
13
|
-
type GeoJsonTypes = GeoJSON$1["type"];
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Bounding box
|
|
17
|
-
* https://tools.ietf.org/html/rfc7946#section-5
|
|
18
|
-
*/
|
|
19
|
-
type BBox = [number, number, number, number] | [number, number, number, number, number, number];
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* A Position is an array of coordinates.
|
|
23
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.1
|
|
24
|
-
* Array should contain between two and three elements.
|
|
25
|
-
* The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values),
|
|
26
|
-
* but the current specification only allows X, Y, and (optionally) Z to be defined.
|
|
27
|
-
*
|
|
28
|
-
* Note: the type will not be narrowed down to `[number, number] | [number, number, number]` due to
|
|
29
|
-
* marginal benefits and the large impact of breaking change.
|
|
30
|
-
*
|
|
31
|
-
* See previous discussions on the type narrowing:
|
|
32
|
-
* - {@link https://github.com/DefinitelyTyped/DefinitelyTyped/pull/21590|Nov 2017}
|
|
33
|
-
* - {@link https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/67773|Dec 2023}
|
|
34
|
-
* - {@link https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/71441| Dec 2024}
|
|
35
|
-
*
|
|
36
|
-
* One can use a
|
|
37
|
-
* {@link https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates|user-defined type guard that returns a type predicate}
|
|
38
|
-
* to determine if a position is a 2D or 3D position.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* import type { Position } from 'geojson';
|
|
42
|
-
*
|
|
43
|
-
* type StrictPosition = [x: number, y: number] | [x: number, y: number, z: number]
|
|
44
|
-
*
|
|
45
|
-
* function isStrictPosition(position: Position): position is StrictPosition {
|
|
46
|
-
* return position.length === 2 || position.length === 3
|
|
47
|
-
* };
|
|
48
|
-
*
|
|
49
|
-
* let position: Position = [-116.91, 45.54];
|
|
50
|
-
*
|
|
51
|
-
* let x: number;
|
|
52
|
-
* let y: number;
|
|
53
|
-
* let z: number | undefined;
|
|
54
|
-
*
|
|
55
|
-
* if (isStrictPosition(position)) {
|
|
56
|
-
* // `tsc` would throw an error if we tried to destructure a fourth parameter
|
|
57
|
-
* [x, y, z] = position;
|
|
58
|
-
* } else {
|
|
59
|
-
* throw new TypeError("Position is not a 2D or 3D point");
|
|
60
|
-
* }
|
|
61
|
-
*/
|
|
62
|
-
type Position = number[];
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* The base GeoJSON object.
|
|
66
|
-
* https://tools.ietf.org/html/rfc7946#section-3
|
|
67
|
-
* The GeoJSON specification also allows foreign members
|
|
68
|
-
* (https://tools.ietf.org/html/rfc7946#section-6.1)
|
|
69
|
-
* Developers should use "&" type in TypeScript or extend the interface
|
|
70
|
-
* to add these foreign members.
|
|
71
|
-
*/
|
|
72
|
-
interface GeoJsonObject {
|
|
73
|
-
// Don't include foreign members directly into this type def.
|
|
74
|
-
// in order to preserve type safety.
|
|
75
|
-
// [key: string]: any;
|
|
76
|
-
/**
|
|
77
|
-
* Specifies the type of GeoJSON object.
|
|
78
|
-
*/
|
|
79
|
-
type: GeoJsonTypes;
|
|
80
|
-
/**
|
|
81
|
-
* Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections.
|
|
82
|
-
* The value of the bbox member is an array of length 2*n where n is the number of dimensions
|
|
83
|
-
* represented in the contained geometries, with all axes of the most southwesterly point
|
|
84
|
-
* followed by all axes of the more northeasterly point.
|
|
85
|
-
* The axes order of a bbox follows the axes order of geometries.
|
|
86
|
-
* https://tools.ietf.org/html/rfc7946#section-5
|
|
87
|
-
*/
|
|
88
|
-
bbox?: BBox | undefined;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Union of GeoJSON objects.
|
|
93
|
-
*/
|
|
94
|
-
type GeoJSON$1<G extends Geometry | null = Geometry, P = GeoJsonProperties> =
|
|
95
|
-
| G
|
|
96
|
-
| Feature<G, P>
|
|
97
|
-
| FeatureCollection<G, P>;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Geometry object.
|
|
101
|
-
* https://tools.ietf.org/html/rfc7946#section-3
|
|
102
|
-
*/
|
|
103
|
-
type Geometry = Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Point geometry object.
|
|
107
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.2
|
|
108
|
-
*/
|
|
109
|
-
interface Point extends GeoJsonObject {
|
|
110
|
-
type: "Point";
|
|
111
|
-
coordinates: Position;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* MultiPoint geometry object.
|
|
116
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.3
|
|
117
|
-
*/
|
|
118
|
-
interface MultiPoint extends GeoJsonObject {
|
|
119
|
-
type: "MultiPoint";
|
|
120
|
-
coordinates: Position[];
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* LineString geometry object.
|
|
125
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.4
|
|
126
|
-
*/
|
|
127
|
-
interface LineString extends GeoJsonObject {
|
|
128
|
-
type: "LineString";
|
|
129
|
-
coordinates: Position[];
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* MultiLineString geometry object.
|
|
134
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.5
|
|
135
|
-
*/
|
|
136
|
-
interface MultiLineString extends GeoJsonObject {
|
|
137
|
-
type: "MultiLineString";
|
|
138
|
-
coordinates: Position[][];
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Polygon geometry object.
|
|
143
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.6
|
|
144
|
-
*/
|
|
145
|
-
interface Polygon extends GeoJsonObject {
|
|
146
|
-
type: "Polygon";
|
|
147
|
-
coordinates: Position[][];
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* MultiPolygon geometry object.
|
|
152
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.7
|
|
153
|
-
*/
|
|
154
|
-
interface MultiPolygon extends GeoJsonObject {
|
|
155
|
-
type: "MultiPolygon";
|
|
156
|
-
coordinates: Position[][][];
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Geometry Collection
|
|
161
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.8
|
|
162
|
-
*/
|
|
163
|
-
interface GeometryCollection<G extends Geometry = Geometry> extends GeoJsonObject {
|
|
164
|
-
type: "GeometryCollection";
|
|
165
|
-
geometries: G[];
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
type GeoJsonProperties = { [name: string]: any } | null;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* A feature object which contains a geometry and associated properties.
|
|
172
|
-
* https://tools.ietf.org/html/rfc7946#section-3.2
|
|
173
|
-
*/
|
|
174
|
-
interface Feature<G extends Geometry | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
|
|
175
|
-
type: "Feature";
|
|
176
|
-
/**
|
|
177
|
-
* The feature's geometry
|
|
178
|
-
*/
|
|
179
|
-
geometry: G;
|
|
180
|
-
/**
|
|
181
|
-
* A value that uniquely identifies this feature in a
|
|
182
|
-
* https://tools.ietf.org/html/rfc7946#section-3.2.
|
|
183
|
-
*/
|
|
184
|
-
id?: string | number | undefined;
|
|
185
|
-
/**
|
|
186
|
-
* Properties associated with this feature.
|
|
187
|
-
*/
|
|
188
|
-
properties: P;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* A collection of feature objects.
|
|
193
|
-
* https://tools.ietf.org/html/rfc7946#section-3.3
|
|
194
|
-
*/
|
|
195
|
-
interface FeatureCollection<G extends Geometry | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
|
|
196
|
-
type: "FeatureCollection";
|
|
197
|
-
features: Array<Feature<G, P>>;
|
|
198
|
-
}
|
|
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';
|
|
199
4
|
|
|
200
5
|
interface ISetViewByLngLatOptions {
|
|
201
6
|
lng: number;
|
|
@@ -222,8 +27,8 @@ interface ICesiumEventListener {
|
|
|
222
27
|
PICK_FEATURE?: (pickModel: any, feature: any) => void;
|
|
223
28
|
MOVE_PICK_FEATURE?: (pickModel: any, feature: any) => void;
|
|
224
29
|
}
|
|
225
|
-
type DeepPartial
|
|
226
|
-
[P in keyof T]?: T[P] extends object ? DeepPartial
|
|
30
|
+
type DeepPartial<T> = {
|
|
31
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
227
32
|
};
|
|
228
33
|
|
|
229
34
|
interface ISkyBoxSources {
|
|
@@ -248,17 +53,17 @@ interface IYawPitchRoll {
|
|
|
248
53
|
offsetYaw?: number;
|
|
249
54
|
}
|
|
250
55
|
|
|
251
|
-
type
|
|
252
|
-
type
|
|
253
|
-
type
|
|
254
|
-
type
|
|
255
|
-
type
|
|
256
|
-
type
|
|
257
|
-
type
|
|
258
|
-
type
|
|
259
|
-
type
|
|
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;
|
|
260
65
|
declare namespace types$4 {
|
|
261
|
-
export type {
|
|
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 };
|
|
262
67
|
}
|
|
263
68
|
|
|
264
69
|
/**
|
|
@@ -269,6 +74,13 @@ declare namespace types$4 {
|
|
|
269
74
|
declare const initCesium: (eleId: string, options?: Cesium.Viewer.ConstructorOptions & {
|
|
270
75
|
token?: string;
|
|
271
76
|
}) => Cesium.Viewer;
|
|
77
|
+
/**
|
|
78
|
+
* 设置地球是否可见
|
|
79
|
+
* 地球不可见无法对地形进行pick操作,
|
|
80
|
+
* @param viewer
|
|
81
|
+
* @param enabled
|
|
82
|
+
*/
|
|
83
|
+
declare const setGlobeEnabled: (viewer: Cesium.Viewer, enabled: boolean) => void;
|
|
272
84
|
/**
|
|
273
85
|
* 修改地球透明度
|
|
274
86
|
* @param value 0-1
|
|
@@ -390,6 +202,7 @@ declare const flyByRotateOut: (viewer: Cesium.Viewer) => {
|
|
|
390
202
|
* @param model
|
|
391
203
|
*/
|
|
392
204
|
declare function twinkleModel(model: any): void;
|
|
205
|
+
declare const setCameraAutoBackTiltToZero: (viewer: Cesium.Viewer, distance?: number) => void;
|
|
393
206
|
|
|
394
207
|
/**
|
|
395
208
|
* 初始化cesium事件
|
|
@@ -399,8 +212,7 @@ declare function twinkleModel(model: any): void;
|
|
|
399
212
|
declare const initCesiumEvent: (viewer: Cesium.Viewer, eventListener: ICesiumEventListener) => void;
|
|
400
213
|
|
|
401
214
|
declare const numberId: () => string;
|
|
402
|
-
declare const
|
|
403
|
-
declare const getInoCesiumBaseUrl: () => string;
|
|
215
|
+
declare const getInoCesiumBaseUrl: () => any;
|
|
404
216
|
|
|
405
217
|
declare class Tooltip {
|
|
406
218
|
static tooltip: Tooltip | null;
|
|
@@ -428,57 +240,253 @@ declare class Popup {
|
|
|
428
240
|
destroy(): void;
|
|
429
241
|
}
|
|
430
242
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
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>;
|
|
243
|
+
// Note: as of the RFC 7946 version of GeoJSON, Coordinate Reference Systems
|
|
244
|
+
// are no longer supported. (See https://tools.ietf.org/html/rfc7946#appendix-B)}
|
|
245
|
+
|
|
442
246
|
|
|
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
247
|
|
|
454
248
|
/**
|
|
455
|
-
*
|
|
456
|
-
*
|
|
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
|
|
249
|
+
* The value values for the "type" property of GeoJSON Objects.
|
|
250
|
+
* https://tools.ietf.org/html/rfc7946#section-1.4
|
|
471
251
|
*/
|
|
472
|
-
|
|
252
|
+
type GeoJsonTypes = GeoJSON$1["type"];
|
|
253
|
+
|
|
473
254
|
/**
|
|
474
|
-
*
|
|
475
|
-
*
|
|
476
|
-
* @returns {number} - 总距离
|
|
255
|
+
* Bounding box
|
|
256
|
+
* https://tools.ietf.org/html/rfc7946#section-5
|
|
477
257
|
*/
|
|
478
|
-
|
|
258
|
+
type BBox = [number, number, number, number] | [number, number, number, number, number, number];
|
|
259
|
+
|
|
479
260
|
/**
|
|
480
|
-
*
|
|
481
|
-
*
|
|
261
|
+
* A Position is an array of coordinates.
|
|
262
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.1
|
|
263
|
+
* Array should contain between two and three elements.
|
|
264
|
+
* The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values),
|
|
265
|
+
* but the current specification only allows X, Y, and (optionally) Z to be defined.
|
|
266
|
+
*
|
|
267
|
+
* Note: the type will not be narrowed down to `[number, number] | [number, number, number]` due to
|
|
268
|
+
* marginal benefits and the large impact of breaking change.
|
|
269
|
+
*
|
|
270
|
+
* See previous discussions on the type narrowing:
|
|
271
|
+
* - {@link https://github.com/DefinitelyTyped/DefinitelyTyped/pull/21590|Nov 2017}
|
|
272
|
+
* - {@link https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/67773|Dec 2023}
|
|
273
|
+
* - {@link https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/71441| Dec 2024}
|
|
274
|
+
*
|
|
275
|
+
* One can use a
|
|
276
|
+
* {@link https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates|user-defined type guard that returns a type predicate}
|
|
277
|
+
* to determine if a position is a 2D or 3D position.
|
|
278
|
+
*
|
|
279
|
+
* @example
|
|
280
|
+
* import type { Position } from 'geojson';
|
|
281
|
+
*
|
|
282
|
+
* type StrictPosition = [x: number, y: number] | [x: number, y: number, z: number]
|
|
283
|
+
*
|
|
284
|
+
* function isStrictPosition(position: Position): position is StrictPosition {
|
|
285
|
+
* return position.length === 2 || position.length === 3
|
|
286
|
+
* };
|
|
287
|
+
*
|
|
288
|
+
* let position: Position = [-116.91, 45.54];
|
|
289
|
+
*
|
|
290
|
+
* let x: number;
|
|
291
|
+
* let y: number;
|
|
292
|
+
* let z: number | undefined;
|
|
293
|
+
*
|
|
294
|
+
* if (isStrictPosition(position)) {
|
|
295
|
+
* // `tsc` would throw an error if we tried to destructure a fourth parameter
|
|
296
|
+
* [x, y, z] = position;
|
|
297
|
+
* } else {
|
|
298
|
+
* throw new TypeError("Position is not a 2D or 3D point");
|
|
299
|
+
* }
|
|
300
|
+
*/
|
|
301
|
+
type Position = number[];
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* The base GeoJSON object.
|
|
305
|
+
* https://tools.ietf.org/html/rfc7946#section-3
|
|
306
|
+
* The GeoJSON specification also allows foreign members
|
|
307
|
+
* (https://tools.ietf.org/html/rfc7946#section-6.1)
|
|
308
|
+
* Developers should use "&" type in TypeScript or extend the interface
|
|
309
|
+
* to add these foreign members.
|
|
310
|
+
*/
|
|
311
|
+
interface GeoJsonObject {
|
|
312
|
+
// Don't include foreign members directly into this type def.
|
|
313
|
+
// in order to preserve type safety.
|
|
314
|
+
// [key: string]: any;
|
|
315
|
+
/**
|
|
316
|
+
* Specifies the type of GeoJSON object.
|
|
317
|
+
*/
|
|
318
|
+
type: GeoJsonTypes;
|
|
319
|
+
/**
|
|
320
|
+
* Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections.
|
|
321
|
+
* The value of the bbox member is an array of length 2*n where n is the number of dimensions
|
|
322
|
+
* represented in the contained geometries, with all axes of the most southwesterly point
|
|
323
|
+
* followed by all axes of the more northeasterly point.
|
|
324
|
+
* The axes order of a bbox follows the axes order of geometries.
|
|
325
|
+
* https://tools.ietf.org/html/rfc7946#section-5
|
|
326
|
+
*/
|
|
327
|
+
bbox?: BBox | undefined;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Union of GeoJSON objects.
|
|
332
|
+
*/
|
|
333
|
+
type GeoJSON$1<G extends Geometry | null = Geometry, P = GeoJsonProperties> =
|
|
334
|
+
| G
|
|
335
|
+
| Feature<G, P>
|
|
336
|
+
| FeatureCollection<G, P>;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Geometry object.
|
|
340
|
+
* https://tools.ietf.org/html/rfc7946#section-3
|
|
341
|
+
*/
|
|
342
|
+
type Geometry = Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Point geometry object.
|
|
346
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.2
|
|
347
|
+
*/
|
|
348
|
+
interface Point extends GeoJsonObject {
|
|
349
|
+
type: "Point";
|
|
350
|
+
coordinates: Position;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* MultiPoint geometry object.
|
|
355
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.3
|
|
356
|
+
*/
|
|
357
|
+
interface MultiPoint extends GeoJsonObject {
|
|
358
|
+
type: "MultiPoint";
|
|
359
|
+
coordinates: Position[];
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* LineString geometry object.
|
|
364
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.4
|
|
365
|
+
*/
|
|
366
|
+
interface LineString extends GeoJsonObject {
|
|
367
|
+
type: "LineString";
|
|
368
|
+
coordinates: Position[];
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* MultiLineString geometry object.
|
|
373
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.5
|
|
374
|
+
*/
|
|
375
|
+
interface MultiLineString extends GeoJsonObject {
|
|
376
|
+
type: "MultiLineString";
|
|
377
|
+
coordinates: Position[][];
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Polygon geometry object.
|
|
382
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.6
|
|
383
|
+
*/
|
|
384
|
+
interface Polygon extends GeoJsonObject {
|
|
385
|
+
type: "Polygon";
|
|
386
|
+
coordinates: Position[][];
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* MultiPolygon geometry object.
|
|
391
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.7
|
|
392
|
+
*/
|
|
393
|
+
interface MultiPolygon extends GeoJsonObject {
|
|
394
|
+
type: "MultiPolygon";
|
|
395
|
+
coordinates: Position[][][];
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Geometry Collection
|
|
400
|
+
* https://tools.ietf.org/html/rfc7946#section-3.1.8
|
|
401
|
+
*/
|
|
402
|
+
interface GeometryCollection<G extends Geometry = Geometry> extends GeoJsonObject {
|
|
403
|
+
type: "GeometryCollection";
|
|
404
|
+
geometries: G[];
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
type GeoJsonProperties = { [name: string]: any } | null;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* A feature object which contains a geometry and associated properties.
|
|
411
|
+
* https://tools.ietf.org/html/rfc7946#section-3.2
|
|
412
|
+
*/
|
|
413
|
+
interface Feature<G extends Geometry | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
|
|
414
|
+
type: "Feature";
|
|
415
|
+
/**
|
|
416
|
+
* The feature's geometry
|
|
417
|
+
*/
|
|
418
|
+
geometry: G;
|
|
419
|
+
/**
|
|
420
|
+
* A value that uniquely identifies this feature in a
|
|
421
|
+
* https://tools.ietf.org/html/rfc7946#section-3.2.
|
|
422
|
+
*/
|
|
423
|
+
id?: string | number | undefined;
|
|
424
|
+
/**
|
|
425
|
+
* Properties associated with this feature.
|
|
426
|
+
*/
|
|
427
|
+
properties: P;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* A collection of feature objects.
|
|
432
|
+
* https://tools.ietf.org/html/rfc7946#section-3.3
|
|
433
|
+
*/
|
|
434
|
+
interface FeatureCollection<G extends Geometry | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
|
|
435
|
+
type: "FeatureCollection";
|
|
436
|
+
features: Array<Feature<G, P>>;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* 生成随机点输入geojosn 格式
|
|
441
|
+
* @param count 点数量
|
|
442
|
+
* @param lngRange 精度范围
|
|
443
|
+
* @param latRange 纬度范围
|
|
444
|
+
* @returns
|
|
445
|
+
*/
|
|
446
|
+
declare const randomPointToGeoJson: (count: number, lngRange?: number[], latRange?: number[]) => FeatureCollection<Point, GeoJsonProperties>;
|
|
447
|
+
declare function randomColor(): string;
|
|
448
|
+
declare const randomPolylineToGeoJson: (count: number, lngRange?: number[], latRange?: number[]) => FeatureCollection<LineString, GeoJsonProperties>;
|
|
449
|
+
declare const randomPolygonToGeoJson: (count: number, lngRange?: number[], latRange?: number[]) => FeatureCollection<Polygon, GeoJsonProperties>;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* 创建鹰眼图
|
|
453
|
+
* @param eleId
|
|
454
|
+
* @param mainViewer
|
|
455
|
+
*/
|
|
456
|
+
declare const createEagleEye: (eleId: string, mainViewer: Cesium.Viewer) => {
|
|
457
|
+
viewer: Cesium.Viewer;
|
|
458
|
+
open: () => void;
|
|
459
|
+
close: () => void;
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* 计算空间距离
|
|
464
|
+
* @param {Cartesian3} start - 起始点
|
|
465
|
+
* @param {Cartesian3} end - 结束点
|
|
466
|
+
* @returns {number} - 两点之间的空间距离
|
|
467
|
+
*/
|
|
468
|
+
declare const calcSpaceDistance: (start: Cesium.Cartesian3, end: Cesium.Cartesian3) => number;
|
|
469
|
+
/**
|
|
470
|
+
* 计算空间距离-多点
|
|
471
|
+
* @param {Cartesian3[]} positions - 点集
|
|
472
|
+
*/
|
|
473
|
+
declare function calcSpaceDistances(positions: Cesium.Cartesian3[]): number;
|
|
474
|
+
/**
|
|
475
|
+
* 计算贴地距离-两点
|
|
476
|
+
* @param {Cartesian3} start - 起始点
|
|
477
|
+
* @param {Cartesian3} end - 结束点
|
|
478
|
+
* @param {ellipsoid} Cesium.Ellipsoid
|
|
479
|
+
*/
|
|
480
|
+
declare function calcGeodesicDistance(start: Cesium.Cartesian3, end: Cesium.Cartesian3, ellipsoid?: Cesium.Ellipsoid): number;
|
|
481
|
+
/**
|
|
482
|
+
* 计算贴地距离-多点
|
|
483
|
+
* @param {Cartesian3[]} positions - 点集
|
|
484
|
+
* @returns {number} - 总距离
|
|
485
|
+
*/
|
|
486
|
+
declare function calcGeodesicDistances(positions: Cesium.Cartesian3[]): number;
|
|
487
|
+
/**
|
|
488
|
+
* 计算质心
|
|
489
|
+
* turf Centroid
|
|
482
490
|
* @param {Cartesian3[]} positions - 点集
|
|
483
491
|
* @returns {Cartesian3} - 质心点
|
|
484
492
|
*/
|
|
@@ -545,8 +553,8 @@ declare const calcLerpPosition: (positions: Cesium.Cartesian3[], number: number)
|
|
|
545
553
|
*/
|
|
546
554
|
declare const calcBoundingSphereFromPositions: (positions: Cesium.Cartesian3[]) => Cesium.BoundingSphere;
|
|
547
555
|
|
|
548
|
-
declare abstract class BasePrimitive
|
|
549
|
-
protected _primitive: CusPrimitive
|
|
556
|
+
declare abstract class BasePrimitive<T> {
|
|
557
|
+
protected _primitive: CusPrimitive;
|
|
550
558
|
protected _promise: Promise<T>;
|
|
551
559
|
protected appearance: Cesium.Appearance | undefined;
|
|
552
560
|
protected geometryInstance: Cesium.Appearance | undefined;
|
|
@@ -561,17 +569,17 @@ declare abstract class BasePrimitive$1<T> {
|
|
|
561
569
|
update(frameState: any): void;
|
|
562
570
|
then(onFulfilled?: any): Promise<T>;
|
|
563
571
|
catch(onRejected?: any): Promise<T>;
|
|
564
|
-
abstract getPrimitive(): CusPrimitive
|
|
572
|
+
abstract getPrimitive(): CusPrimitive;
|
|
565
573
|
isDestroyed(): boolean;
|
|
566
574
|
destroy(): void;
|
|
567
575
|
setShapePositions(positions: Cesium.Cartesian3[]): void;
|
|
568
576
|
}
|
|
569
|
-
type CusPrimitive
|
|
577
|
+
type CusPrimitive = Cesium.Primitive | Cesium.GroundPrimitive | Cesium.PointPrimitiveCollection | Cesium.GroundPolylinePrimitive | Cesium.LabelCollection | Cesium.PrimitiveCollection | undefined;
|
|
570
578
|
|
|
571
579
|
/**
|
|
572
580
|
* 线材质基类
|
|
573
581
|
*/
|
|
574
|
-
declare abstract class BaseMaterialProperty
|
|
582
|
+
declare abstract class BaseMaterialProperty {
|
|
575
583
|
protected _definitionChanged: Cesium.Event<(...args: any[]) => void>;
|
|
576
584
|
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
577
585
|
get isConstant(): boolean;
|
|
@@ -911,12 +919,25 @@ declare class CoordinateTransformer {
|
|
|
911
919
|
declare const loadTianDiTu: (option: ILoadTiandituOptions) => {
|
|
912
920
|
layers: Cesium.ImageryLayer[];
|
|
913
921
|
remove: () => void;
|
|
922
|
+
setOpacity: (opacity: number) => void;
|
|
914
923
|
};
|
|
915
924
|
interface ILoadTiandituOptions {
|
|
916
925
|
viewer: Cesium.Viewer;
|
|
917
926
|
token: string;
|
|
927
|
+
vec?: boolean;
|
|
928
|
+
label?: boolean;
|
|
918
929
|
zIndex?: number;
|
|
919
930
|
}
|
|
931
|
+
declare function setImageLayerTheme(viewer: Cesium.Viewer, options?: ISetImageLayerOptions): void;
|
|
932
|
+
interface ISetImageLayerOptions {
|
|
933
|
+
brightness?: number;
|
|
934
|
+
contrast?: number;
|
|
935
|
+
gamma?: number;
|
|
936
|
+
hue?: number;
|
|
937
|
+
saturation?: number;
|
|
938
|
+
invertColor?: boolean;
|
|
939
|
+
filterColor?: Cesium.Color;
|
|
940
|
+
}
|
|
920
941
|
|
|
921
942
|
declare const load3dTiles: (lOptions: ILoad3dtilesOptions) => Promise<{
|
|
922
943
|
tileset: Cesium.Cesium3DTileset;
|
|
@@ -1121,25 +1142,29 @@ interface ILightningStageOptions {
|
|
|
1121
1142
|
declare const createLightBandCustomShader: (options: ILightBandStageOptions) => Cesium.CustomShader;
|
|
1122
1143
|
interface ILightBandStageOptions {
|
|
1123
1144
|
/**
|
|
1124
|
-
*
|
|
1145
|
+
* 基础高度,大于此高度的建筑会变越亮
|
|
1146
|
+
*/
|
|
1147
|
+
baseHeight?: number;
|
|
1148
|
+
/**
|
|
1149
|
+
* 启用着色
|
|
1125
1150
|
*/
|
|
1126
|
-
|
|
1151
|
+
colorEnable?: boolean;
|
|
1127
1152
|
/**
|
|
1128
|
-
*
|
|
1153
|
+
* 启用光环
|
|
1129
1154
|
*/
|
|
1130
|
-
|
|
1155
|
+
glowEnable?: boolean;
|
|
1131
1156
|
/**
|
|
1132
|
-
*
|
|
1157
|
+
* 着色
|
|
1133
1158
|
*/
|
|
1134
1159
|
color?: Cesium.Color;
|
|
1135
1160
|
/**
|
|
1136
|
-
*
|
|
1161
|
+
* 光环范围 应该大于建筑高度的中位数
|
|
1137
1162
|
*/
|
|
1138
|
-
|
|
1163
|
+
glowRange?: number;
|
|
1139
1164
|
/**
|
|
1140
|
-
*
|
|
1165
|
+
* 光带移动一圈时间 默认为1 越大越慢
|
|
1141
1166
|
*/
|
|
1142
|
-
|
|
1167
|
+
glowTime?: number;
|
|
1143
1168
|
}
|
|
1144
1169
|
|
|
1145
1170
|
declare const createDroneAnimCustomShader: (options: IDroneAnimOptions) => Cesium.CustomShader;
|
|
@@ -1155,46 +1180,6 @@ declare const createOutLineEffect: (viewer: Cesium.Viewer) => {
|
|
|
1155
1180
|
remove: () => void;
|
|
1156
1181
|
};
|
|
1157
1182
|
|
|
1158
|
-
type DeepPartial<T> = {
|
|
1159
|
-
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
1160
|
-
};
|
|
1161
|
-
|
|
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;
|
|
1168
|
-
/**
|
|
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
1183
|
declare class MeasurePrimitive extends BasePrimitive<any> {
|
|
1199
1184
|
private drawData;
|
|
1200
1185
|
private labelCollection;
|
|
@@ -1624,24 +1609,24 @@ interface IDrawStyle {
|
|
|
1624
1609
|
};
|
|
1625
1610
|
}
|
|
1626
1611
|
|
|
1627
|
-
type
|
|
1628
|
-
type
|
|
1629
|
-
declare const
|
|
1630
|
-
type
|
|
1631
|
-
type
|
|
1632
|
-
type
|
|
1633
|
-
type
|
|
1634
|
-
type
|
|
1635
|
-
type
|
|
1636
|
-
type
|
|
1637
|
-
type
|
|
1638
|
-
type
|
|
1639
|
-
type
|
|
1640
|
-
type
|
|
1641
|
-
type
|
|
1612
|
+
type types$3_DrawEvent = DrawEvent;
|
|
1613
|
+
type types$3_DrawEventType = DrawEventType;
|
|
1614
|
+
declare const types$3_DrawEventType: typeof DrawEventType;
|
|
1615
|
+
type types$3_DrawShape = DrawShape;
|
|
1616
|
+
type types$3_IDrawAttrInfo = IDrawAttrInfo;
|
|
1617
|
+
type types$3_IDrawEditEvent = IDrawEditEvent;
|
|
1618
|
+
type types$3_IDrawHandler = IDrawHandler;
|
|
1619
|
+
type types$3_IDrawHandlerEvent = IDrawHandlerEvent;
|
|
1620
|
+
type types$3_IDrawOptions = IDrawOptions;
|
|
1621
|
+
type types$3_IDrawStyle = IDrawStyle;
|
|
1622
|
+
type types$3_IEventActions = IEventActions;
|
|
1623
|
+
type types$3_IEventData = IEventData;
|
|
1624
|
+
type types$3_IMeasureOptions = IMeasureOptions;
|
|
1625
|
+
type types$3_IMeasureResult = IMeasureResult;
|
|
1626
|
+
type types$3_IReShowOptions = IReShowOptions;
|
|
1642
1627
|
declare namespace types$3 {
|
|
1643
|
-
export {
|
|
1644
|
-
export type {
|
|
1628
|
+
export { types$3_DrawEventType as DrawEventType };
|
|
1629
|
+
export type { types$3_DrawEvent as DrawEvent, types$3_DrawShape as DrawShape, types$3_IDrawAttrInfo as IDrawAttrInfo, types$3_IDrawEditEvent as IDrawEditEvent, types$3_IDrawHandler as IDrawHandler, types$3_IDrawHandlerEvent as IDrawHandlerEvent, types$3_IDrawOptions as IDrawOptions, types$3_IDrawStyle as IDrawStyle, types$3_IEventActions as IEventActions, types$3_IEventData as IEventData, types$3_IMeasureOptions as IMeasureOptions, types$3_IMeasureResult as IMeasureResult, types$3_IReShowOptions as IReShowOptions };
|
|
1645
1630
|
}
|
|
1646
1631
|
|
|
1647
1632
|
declare const DrawStyle: IDrawStyle;
|
|
@@ -1667,7 +1652,89 @@ interface IAddDrawActionsOptions {
|
|
|
1667
1652
|
*/
|
|
1668
1653
|
declare const createDrawHandler: (viewer: Cesium.Viewer) => IDrawHandler;
|
|
1669
1654
|
|
|
1670
|
-
interface
|
|
1655
|
+
interface IPolylineTrailMaterialOptions {
|
|
1656
|
+
name?: string;
|
|
1657
|
+
color?: string;
|
|
1658
|
+
speed?: number;
|
|
1659
|
+
image: string;
|
|
1660
|
+
}
|
|
1661
|
+
interface IPolylineFlowMaterialOptions {
|
|
1662
|
+
/**
|
|
1663
|
+
* 颜色
|
|
1664
|
+
*/
|
|
1665
|
+
color?: string;
|
|
1666
|
+
speed?: number;
|
|
1667
|
+
image: string;
|
|
1668
|
+
repeatCount?: number;
|
|
1669
|
+
blendColor?: boolean;
|
|
1670
|
+
}
|
|
1671
|
+
interface ICircleWaveMaterialOptions {
|
|
1672
|
+
name?: string;
|
|
1673
|
+
color?: string;
|
|
1674
|
+
speed?: number;
|
|
1675
|
+
count?: number;
|
|
1676
|
+
gradient?: number;
|
|
1677
|
+
}
|
|
1678
|
+
interface ICircleRaderWaveMaterialOptions {
|
|
1679
|
+
name?: string;
|
|
1680
|
+
color?: string;
|
|
1681
|
+
speed?: number;
|
|
1682
|
+
}
|
|
1683
|
+
interface ICircleRaderFanMaterialOptions {
|
|
1684
|
+
name?: string;
|
|
1685
|
+
color?: string;
|
|
1686
|
+
speed?: number;
|
|
1687
|
+
}
|
|
1688
|
+
interface ICircleApertureMaterialOptions {
|
|
1689
|
+
color?: string;
|
|
1690
|
+
/**
|
|
1691
|
+
* 速度
|
|
1692
|
+
*/
|
|
1693
|
+
speed?: number;
|
|
1694
|
+
}
|
|
1695
|
+
interface ILightWallMaterialOptions {
|
|
1696
|
+
image: string;
|
|
1697
|
+
color?: string;
|
|
1698
|
+
count?: number;
|
|
1699
|
+
/**
|
|
1700
|
+
* 时间 单位为秒
|
|
1701
|
+
*/
|
|
1702
|
+
duration?: number;
|
|
1703
|
+
/**
|
|
1704
|
+
* 0为水平 1为垂直 默认为1
|
|
1705
|
+
*/
|
|
1706
|
+
vertical?: number;
|
|
1707
|
+
/**
|
|
1708
|
+
* 1由下到上 0由上到下 默认为0
|
|
1709
|
+
*/
|
|
1710
|
+
direction?: number;
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
* 电弧球体
|
|
1714
|
+
*/
|
|
1715
|
+
interface IEllipsoidElectricMaterialOptions {
|
|
1716
|
+
color?: string;
|
|
1717
|
+
/**
|
|
1718
|
+
* 速度
|
|
1719
|
+
*/
|
|
1720
|
+
speed?: number;
|
|
1721
|
+
}
|
|
1722
|
+
/**
|
|
1723
|
+
* 扫描球体 垂直方向
|
|
1724
|
+
*/
|
|
1725
|
+
interface IEllipsoidVScanMaterialPropertyOptions {
|
|
1726
|
+
name?: string;
|
|
1727
|
+
color?: string;
|
|
1728
|
+
/**
|
|
1729
|
+
* 速度
|
|
1730
|
+
*/
|
|
1731
|
+
speed?: number;
|
|
1732
|
+
}
|
|
1733
|
+
/**
|
|
1734
|
+
* 扫描球体 水平方向
|
|
1735
|
+
*/
|
|
1736
|
+
interface IEllipsoidHScanMaterialPropertyOptions {
|
|
1737
|
+
name?: string;
|
|
1671
1738
|
color?: string;
|
|
1672
1739
|
/**
|
|
1673
1740
|
* 速度
|
|
@@ -1682,7 +1749,7 @@ interface ICircleApertureMaterialOptions$1 {
|
|
|
1682
1749
|
* @param count 光圈个数
|
|
1683
1750
|
* @param offset 光晕偏移量
|
|
1684
1751
|
*/
|
|
1685
|
-
interface IRadarScanMaterialOptions
|
|
1752
|
+
interface IRadarScanMaterialOptions {
|
|
1686
1753
|
/**
|
|
1687
1754
|
* 扇区颜色
|
|
1688
1755
|
*/
|
|
@@ -1704,134 +1771,382 @@ interface IRadarScanMaterialOptions$1 {
|
|
|
1704
1771
|
*/
|
|
1705
1772
|
offset?: number;
|
|
1706
1773
|
}
|
|
1774
|
+
interface ICorridorMaterialOptions {
|
|
1775
|
+
}
|
|
1776
|
+
/**
|
|
1777
|
+
* 闪电材质,
|
|
1778
|
+
* https://www.shadertoy.com/view/XXyGzh
|
|
1779
|
+
*/
|
|
1780
|
+
interface IZapsMaterialOptions {
|
|
1781
|
+
color?: string;
|
|
1782
|
+
speed: number;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
type types$2_ICircleApertureMaterialOptions = ICircleApertureMaterialOptions;
|
|
1786
|
+
type types$2_ICircleRaderFanMaterialOptions = ICircleRaderFanMaterialOptions;
|
|
1787
|
+
type types$2_ICircleRaderWaveMaterialOptions = ICircleRaderWaveMaterialOptions;
|
|
1788
|
+
type types$2_ICircleWaveMaterialOptions = ICircleWaveMaterialOptions;
|
|
1789
|
+
type types$2_ICorridorMaterialOptions = ICorridorMaterialOptions;
|
|
1790
|
+
type types$2_IEllipsoidElectricMaterialOptions = IEllipsoidElectricMaterialOptions;
|
|
1791
|
+
type types$2_IEllipsoidHScanMaterialPropertyOptions = IEllipsoidHScanMaterialPropertyOptions;
|
|
1792
|
+
type types$2_IEllipsoidVScanMaterialPropertyOptions = IEllipsoidVScanMaterialPropertyOptions;
|
|
1793
|
+
type types$2_ILightWallMaterialOptions = ILightWallMaterialOptions;
|
|
1794
|
+
type types$2_IPolylineFlowMaterialOptions = IPolylineFlowMaterialOptions;
|
|
1795
|
+
type types$2_IPolylineTrailMaterialOptions = IPolylineTrailMaterialOptions;
|
|
1796
|
+
type types$2_IRadarScanMaterialOptions = IRadarScanMaterialOptions;
|
|
1797
|
+
type types$2_IZapsMaterialOptions = IZapsMaterialOptions;
|
|
1798
|
+
declare namespace types$2 {
|
|
1799
|
+
export type { types$2_ICircleApertureMaterialOptions as ICircleApertureMaterialOptions, types$2_ICircleRaderFanMaterialOptions as ICircleRaderFanMaterialOptions, types$2_ICircleRaderWaveMaterialOptions as ICircleRaderWaveMaterialOptions, types$2_ICircleWaveMaterialOptions as ICircleWaveMaterialOptions, types$2_ICorridorMaterialOptions as ICorridorMaterialOptions, types$2_IEllipsoidElectricMaterialOptions as IEllipsoidElectricMaterialOptions, types$2_IEllipsoidHScanMaterialPropertyOptions as IEllipsoidHScanMaterialPropertyOptions, types$2_IEllipsoidVScanMaterialPropertyOptions as IEllipsoidVScanMaterialPropertyOptions, types$2_ILightWallMaterialOptions as ILightWallMaterialOptions, types$2_IPolylineFlowMaterialOptions as IPolylineFlowMaterialOptions, types$2_IPolylineTrailMaterialOptions as IPolylineTrailMaterialOptions, types$2_IRadarScanMaterialOptions as IRadarScanMaterialOptions, types$2_IZapsMaterialOptions as IZapsMaterialOptions };
|
|
1800
|
+
}
|
|
1707
1801
|
|
|
1708
1802
|
/**
|
|
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 禁用深度测试距离
|
|
1803
|
+
* 尾迹线材质类
|
|
1731
1804
|
*/
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
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;
|
|
1805
|
+
declare class PolylineTrailMaterialProperty extends BaseMaterialProperty {
|
|
1806
|
+
private speed;
|
|
1807
|
+
private color;
|
|
1808
|
+
private name;
|
|
1809
|
+
private image;
|
|
1810
|
+
constructor(options: IPolylineTrailMaterialOptions);
|
|
1811
|
+
get isConstant(): boolean;
|
|
1812
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1813
|
+
getType(): string;
|
|
1814
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1815
|
+
equals(other: PolylineTrailMaterialProperty): any;
|
|
1816
|
+
init(): void;
|
|
1817
|
+
createPropertyDescriptors(): void;
|
|
1817
1818
|
}
|
|
1819
|
+
declare const createTrailMaterial: (options: IPolylineTrailMaterialOptions) => Cesium.Material;
|
|
1820
|
+
|
|
1818
1821
|
/**
|
|
1819
|
-
*
|
|
1820
|
-
* @
|
|
1821
|
-
* @param
|
|
1822
|
-
* @param pixelSize 像素大小
|
|
1823
|
-
* @param outlineColor 轮廓颜色
|
|
1824
|
-
* @param outlineWidth 轮廓宽度
|
|
1825
|
-
* @param scaleByDistance 缩放随距离变化
|
|
1826
|
-
* @param translucencyByDistance 透明度随距离变化
|
|
1827
|
-
* @param distanceDisplayCondition 显示距离条件
|
|
1828
|
-
* @param disableDepthTestDistance 禁用深度测试距离
|
|
1822
|
+
* 线流动材质
|
|
1823
|
+
* @classdesc 线流动材质
|
|
1824
|
+
* @param {IPolylineFlowMaterialOptions} options - 线流动材质参数
|
|
1829
1825
|
*/
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1826
|
+
declare class PolylineFlowMaterialProperty extends BaseMaterialProperty {
|
|
1827
|
+
private repeatCount;
|
|
1828
|
+
private image;
|
|
1829
|
+
private speed;
|
|
1830
|
+
private color;
|
|
1831
|
+
private blend;
|
|
1832
|
+
private name;
|
|
1833
|
+
constructor(options: IPolylineFlowMaterialOptions);
|
|
1834
|
+
get isConstant(): boolean;
|
|
1835
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1836
|
+
getType(): string;
|
|
1837
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1838
|
+
equals(other: PolylineFlowMaterialProperty): boolean;
|
|
1839
|
+
init(): void;
|
|
1840
|
+
createPropertyDescriptors(): void;
|
|
1841
|
+
}
|
|
1842
|
+
declare const createPoylineFlowMaterial: (options: IPolylineFlowMaterialOptions) => Cesium.Material;
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* 波浪圆
|
|
1846
|
+
*/
|
|
1847
|
+
declare class CircleWaveMaterialProperty extends BaseMaterialProperty {
|
|
1848
|
+
private count;
|
|
1849
|
+
private speed;
|
|
1850
|
+
private gradient;
|
|
1851
|
+
private color;
|
|
1852
|
+
private name;
|
|
1853
|
+
constructor(options?: ICircleWaveMaterialOptions);
|
|
1854
|
+
get isConstant(): boolean;
|
|
1855
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1856
|
+
getType(): string;
|
|
1857
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1858
|
+
equals(other: CircleWaveMaterialProperty): any;
|
|
1859
|
+
init(): void;
|
|
1860
|
+
}
|
|
1861
|
+
declare const createCircleWaveMaterial: (options?: ICircleWaveMaterialOptions) => {
|
|
1862
|
+
material: Cesium.Material;
|
|
1863
|
+
};
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
*雷达波纹圆
|
|
1867
|
+
*/
|
|
1868
|
+
declare class CircleRaderWaveMaterialProperty extends BaseMaterialProperty {
|
|
1869
|
+
private speed;
|
|
1870
|
+
private color;
|
|
1871
|
+
private name;
|
|
1872
|
+
constructor(options: ICircleRaderWaveMaterialOptions);
|
|
1873
|
+
get isConstant(): boolean;
|
|
1874
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1875
|
+
getType(): string;
|
|
1876
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1877
|
+
equals(other: CircleRaderWaveMaterialProperty): boolean;
|
|
1878
|
+
init(): void;
|
|
1879
|
+
}
|
|
1880
|
+
declare const createRaderWaveMaterial: (options: ICircleRaderWaveMaterialOptions) => {
|
|
1881
|
+
material: Cesium.Material;
|
|
1882
|
+
};
|
|
1883
|
+
|
|
1884
|
+
/**
|
|
1885
|
+
* 雷达扇形扫描
|
|
1886
|
+
*/
|
|
1887
|
+
declare class CircleRaderFanMaterialProperty extends BaseMaterialProperty {
|
|
1888
|
+
private speed;
|
|
1889
|
+
private color;
|
|
1890
|
+
private name;
|
|
1891
|
+
constructor(options: ICircleRaderFanMaterialOptions);
|
|
1892
|
+
get isConstant(): boolean;
|
|
1893
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1894
|
+
getType(): string;
|
|
1895
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1896
|
+
equals(other: CircleRaderFanMaterialProperty): boolean;
|
|
1897
|
+
init(): void;
|
|
1898
|
+
}
|
|
1899
|
+
declare const createCircleRaderFanMaterial: (options: ICircleRaderFanMaterialOptions) => {
|
|
1900
|
+
material: Cesium.Material;
|
|
1901
|
+
};
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* 波浪圆
|
|
1905
|
+
*/
|
|
1906
|
+
declare class CircleApertureMaterialProperty extends BaseMaterialProperty {
|
|
1907
|
+
private speed;
|
|
1908
|
+
private color;
|
|
1909
|
+
private name;
|
|
1910
|
+
constructor(options?: ICircleApertureMaterialOptions);
|
|
1911
|
+
get isConstant(): boolean;
|
|
1912
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1913
|
+
getType(): string;
|
|
1914
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1915
|
+
equals(other: CircleApertureMaterialProperty): any;
|
|
1916
|
+
init(): void;
|
|
1917
|
+
}
|
|
1918
|
+
declare const createCircleApertureMaterial: (options?: ICircleApertureMaterialOptions) => Cesium.Material;
|
|
1919
|
+
|
|
1920
|
+
declare const createScanRadarMaterial: (options?: IRadarScanMaterialOptions) => Cesium.Material;
|
|
1921
|
+
|
|
1922
|
+
/**
|
|
1923
|
+
* 光墙材质
|
|
1924
|
+
*/
|
|
1925
|
+
declare class LightWallMaterialProperty extends BaseMaterialProperty {
|
|
1926
|
+
private duration;
|
|
1927
|
+
private count;
|
|
1928
|
+
private vertical;
|
|
1929
|
+
private direction;
|
|
1930
|
+
private color;
|
|
1931
|
+
private _time;
|
|
1932
|
+
private image;
|
|
1933
|
+
private name;
|
|
1934
|
+
constructor(options: ILightWallMaterialOptions);
|
|
1935
|
+
get isConstant(): boolean;
|
|
1936
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1937
|
+
getType(): string;
|
|
1938
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1939
|
+
equals(other: LightWallMaterialProperty): any;
|
|
1940
|
+
init(): void;
|
|
1941
|
+
}
|
|
1942
|
+
declare const createLightWallMaterial: (options: ILightWallMaterialOptions) => {
|
|
1943
|
+
material: Cesium.Material;
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1946
|
+
/**
|
|
1947
|
+
* 雷达扇形扫描
|
|
1948
|
+
*/
|
|
1949
|
+
declare class EllipsoidElectricMaterialProperty extends BaseMaterialProperty {
|
|
1950
|
+
private speed;
|
|
1951
|
+
private color;
|
|
1952
|
+
private name;
|
|
1953
|
+
constructor(options: IEllipsoidElectricMaterialOptions);
|
|
1954
|
+
get isConstant(): boolean;
|
|
1955
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1956
|
+
getType(): string;
|
|
1957
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1958
|
+
equals(other: EllipsoidElectricMaterialProperty): boolean;
|
|
1959
|
+
init(): void;
|
|
1960
|
+
}
|
|
1961
|
+
declare const createEllipsoidElectricMaterial: (options: IEllipsoidElectricMaterialOptions) => {
|
|
1962
|
+
material: Cesium.Material;
|
|
1963
|
+
};
|
|
1964
|
+
|
|
1965
|
+
/**
|
|
1966
|
+
* 球形扫描 垂直
|
|
1967
|
+
*/
|
|
1968
|
+
declare class EllipsoidVScanMaterialProperty extends BaseMaterialProperty {
|
|
1969
|
+
private speed;
|
|
1970
|
+
private color;
|
|
1971
|
+
private name;
|
|
1972
|
+
constructor(options: IEllipsoidVScanMaterialPropertyOptions);
|
|
1973
|
+
get isConstant(): boolean;
|
|
1974
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1975
|
+
getType(): string;
|
|
1976
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1977
|
+
equals(other: EllipsoidVScanMaterialProperty): boolean;
|
|
1978
|
+
init(): void;
|
|
1979
|
+
}
|
|
1980
|
+
declare const createEllipsoidVScanMaterial: (options: IEllipsoidVScanMaterialPropertyOptions) => {
|
|
1981
|
+
material: Cesium.Material;
|
|
1982
|
+
};
|
|
1983
|
+
|
|
1984
|
+
/**
|
|
1985
|
+
* 球形扫描 水平
|
|
1986
|
+
*/
|
|
1987
|
+
declare class EllipsoidHScanMaterialProperty extends BaseMaterialProperty {
|
|
1988
|
+
private speed;
|
|
1989
|
+
private color;
|
|
1990
|
+
private name;
|
|
1991
|
+
constructor(options: IEllipsoidHScanMaterialPropertyOptions);
|
|
1992
|
+
get isConstant(): boolean;
|
|
1993
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1994
|
+
getType(): string;
|
|
1995
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1996
|
+
equals(other: EllipsoidHScanMaterialProperty): boolean;
|
|
1997
|
+
init(): void;
|
|
1998
|
+
}
|
|
1999
|
+
declare const createEllipsoidHScanMaterial: (options: IEllipsoidHScanMaterialPropertyOptions) => {
|
|
2000
|
+
material: Cesium.Material;
|
|
2001
|
+
};
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* 闪电迁移shadertoy
|
|
2005
|
+
* https://www.shadertoy.com/view/XXyGzh
|
|
2006
|
+
*/
|
|
2007
|
+
declare class ZapsMaterialProperty extends BaseMaterialProperty {
|
|
2008
|
+
private color;
|
|
2009
|
+
private speed;
|
|
2010
|
+
private name;
|
|
2011
|
+
constructor(options: IZapsMaterialOptions);
|
|
2012
|
+
get isConstant(): boolean;
|
|
2013
|
+
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
2014
|
+
getType(): string;
|
|
2015
|
+
getValue(time: Cesium.JulianDate, result: any): any;
|
|
2016
|
+
equals(other: ZapsMaterialProperty): any;
|
|
2017
|
+
init(): void;
|
|
2018
|
+
}
|
|
2019
|
+
declare const createZapsMaterial: (options: IZapsMaterialOptions) => {
|
|
2020
|
+
material: Cesium.Material;
|
|
2021
|
+
};
|
|
2022
|
+
|
|
2023
|
+
/**
|
|
2024
|
+
* 定义标签接口
|
|
2025
|
+
* @param id 标签的唯一标识符
|
|
2026
|
+
* @param field 字段名称,用于从数据中提取标签文本
|
|
2027
|
+
* @param font 字体样式
|
|
2028
|
+
* @param fillColor 填充颜色
|
|
2029
|
+
* @param outlineColor 轮廓颜色
|
|
2030
|
+
* @param outlineWidth 轮廓宽度
|
|
2031
|
+
* @param style 样式
|
|
2032
|
+
* @param showBackground 是否显示背景
|
|
2033
|
+
* @param backgroundColor 背景颜色
|
|
2034
|
+
* @param backgroundPadding 背景填充
|
|
2035
|
+
* @param scale 缩放比例
|
|
2036
|
+
* @param horizontalOrigin 水平原点
|
|
2037
|
+
* @param verticalOrigin 垂直原点
|
|
2038
|
+
* @param pixelOffset 像素偏移
|
|
2039
|
+
* @param eyeOffset 视角偏移
|
|
2040
|
+
* @param heightReference 高度参考
|
|
2041
|
+
* @param translucencyByDistance 透明度随距离变化
|
|
2042
|
+
* @param pixelOffsetScaleByDistance 像素偏移随距离变化
|
|
2043
|
+
* @param scaleByDistance 缩放随距离变化
|
|
2044
|
+
* @param distanceDisplayCondition 显示距离条件
|
|
2045
|
+
* @param disableDepthTestDistance 禁用深度测试距离
|
|
2046
|
+
*/
|
|
2047
|
+
interface ILabel {
|
|
2048
|
+
/**
|
|
2049
|
+
* 标签的唯一标识符
|
|
2050
|
+
*/
|
|
2051
|
+
id?: any;
|
|
2052
|
+
/**
|
|
2053
|
+
* 字段名称,用于从数据中提取标签文本
|
|
2054
|
+
*/
|
|
2055
|
+
field: string;
|
|
2056
|
+
/**
|
|
2057
|
+
* 字体样式
|
|
2058
|
+
*/
|
|
2059
|
+
font?: string;
|
|
2060
|
+
/**
|
|
2061
|
+
* 填充颜色
|
|
2062
|
+
*/
|
|
2063
|
+
fillColor?: string;
|
|
2064
|
+
/**
|
|
2065
|
+
* 轮廓颜色
|
|
2066
|
+
*/
|
|
2067
|
+
outlineColor?: string;
|
|
2068
|
+
/**
|
|
2069
|
+
* 轮廓宽度
|
|
2070
|
+
*/
|
|
2071
|
+
outlineWidth?: number;
|
|
2072
|
+
/**
|
|
2073
|
+
* 样式
|
|
2074
|
+
*/
|
|
2075
|
+
style?: string;
|
|
2076
|
+
/**
|
|
2077
|
+
* 是否显示背景
|
|
2078
|
+
*/
|
|
2079
|
+
showBackground?: boolean;
|
|
2080
|
+
/**
|
|
2081
|
+
* 背景颜色
|
|
2082
|
+
*/
|
|
2083
|
+
backgroundColor?: string;
|
|
2084
|
+
/**
|
|
2085
|
+
* 背景填充
|
|
2086
|
+
*/
|
|
2087
|
+
backgroundPadding?: number[];
|
|
2088
|
+
/**
|
|
2089
|
+
* 缩放比例
|
|
2090
|
+
*/
|
|
2091
|
+
scale?: number;
|
|
2092
|
+
/**
|
|
2093
|
+
* 水平原点
|
|
2094
|
+
*/
|
|
2095
|
+
horizontalOrigin?: number;
|
|
2096
|
+
/**
|
|
2097
|
+
* 垂直原点
|
|
2098
|
+
*/
|
|
2099
|
+
verticalOrigin?: number;
|
|
2100
|
+
/**
|
|
2101
|
+
* 像素偏移
|
|
2102
|
+
*/
|
|
2103
|
+
pixelOffset?: number[];
|
|
2104
|
+
/**
|
|
2105
|
+
* 视角偏移
|
|
2106
|
+
*/
|
|
2107
|
+
eyeOffset?: number[];
|
|
2108
|
+
/**
|
|
2109
|
+
* 高度参考
|
|
2110
|
+
*/
|
|
2111
|
+
heightReference?: Cesium.HeightReference;
|
|
2112
|
+
/**
|
|
2113
|
+
* 透明度随距离变化
|
|
2114
|
+
*/
|
|
2115
|
+
translucencyByDistance?: Cesium.NearFarScalar;
|
|
2116
|
+
/**
|
|
2117
|
+
* 像素偏移随距离变化
|
|
2118
|
+
*/
|
|
2119
|
+
pixelOffsetScaleByDistance?: Cesium.NearFarScalar;
|
|
2120
|
+
/**
|
|
2121
|
+
* 缩放随距离变化
|
|
2122
|
+
*/
|
|
2123
|
+
scaleByDistance?: Cesium.NearFarScalar;
|
|
2124
|
+
/**
|
|
2125
|
+
* 显示距离条件
|
|
2126
|
+
*/
|
|
2127
|
+
distanceDisplayCondition?: Cesium.DistanceDisplayCondition;
|
|
2128
|
+
/**
|
|
2129
|
+
* 禁用深度测试距离
|
|
2130
|
+
*/
|
|
2131
|
+
disableDepthTestDistance?: number;
|
|
2132
|
+
}
|
|
2133
|
+
/**
|
|
2134
|
+
* 定义点接口
|
|
2135
|
+
* @param id 点的唯一标识符
|
|
2136
|
+
* @param color 颜色
|
|
2137
|
+
* @param pixelSize 像素大小
|
|
2138
|
+
* @param outlineColor 轮廓颜色
|
|
2139
|
+
* @param outlineWidth 轮廓宽度
|
|
2140
|
+
* @param scaleByDistance 缩放随距离变化
|
|
2141
|
+
* @param translucencyByDistance 透明度随距离变化
|
|
2142
|
+
* @param distanceDisplayCondition 显示距离条件
|
|
2143
|
+
* @param disableDepthTestDistance 禁用深度测试距离
|
|
2144
|
+
*/
|
|
2145
|
+
interface IPoint {
|
|
2146
|
+
/**
|
|
2147
|
+
* 点的唯一标识符
|
|
2148
|
+
*/
|
|
2149
|
+
id?: any;
|
|
1835
2150
|
/**
|
|
1836
2151
|
* 颜色
|
|
1837
2152
|
*/
|
|
@@ -2023,7 +2338,7 @@ interface IPointPrimitivesOptions {
|
|
|
2023
2338
|
/**
|
|
2024
2339
|
* GeoJSON 数据
|
|
2025
2340
|
*/
|
|
2026
|
-
geoJson: FeatureCollection<Point>;
|
|
2341
|
+
geoJson: FeatureCollection$1<Point$1>;
|
|
2027
2342
|
/**
|
|
2028
2343
|
* 是否根据地形计算点高度
|
|
2029
2344
|
*/
|
|
@@ -2071,7 +2386,7 @@ interface IRaderScanPrimitiveOptions {
|
|
|
2071
2386
|
*/
|
|
2072
2387
|
ground?: boolean;
|
|
2073
2388
|
appearanceOptions?: Cesium.MaterialAppearance;
|
|
2074
|
-
materialOptions?: IRadarScanMaterialOptions
|
|
2389
|
+
materialOptions?: IRadarScanMaterialOptions;
|
|
2075
2390
|
}
|
|
2076
2391
|
interface ICircleAperturePrimitiveOptions {
|
|
2077
2392
|
/**
|
|
@@ -2087,7 +2402,7 @@ interface ICircleAperturePrimitiveOptions {
|
|
|
2087
2402
|
*/
|
|
2088
2403
|
ground?: boolean;
|
|
2089
2404
|
appearanceOptions?: Cesium.MaterialAppearance;
|
|
2090
|
-
materialOptions?: ICircleApertureMaterialOptions
|
|
2405
|
+
materialOptions?: ICircleApertureMaterialOptions;
|
|
2091
2406
|
}
|
|
2092
2407
|
/**
|
|
2093
2408
|
* 定义地面多边形图元选项接口
|
|
@@ -2098,7 +2413,7 @@ interface IGroundPolygonPrimitivesOptions {
|
|
|
2098
2413
|
/**
|
|
2099
2414
|
* GeoJSON 数据
|
|
2100
2415
|
*/
|
|
2101
|
-
geoJson: FeatureCollection<Polygon | MultiPolygon, GeoJsonProperties>;
|
|
2416
|
+
geoJson: FeatureCollection$1<Polygon$1 | MultiPolygon$1, GeoJsonProperties$1>;
|
|
2102
2417
|
line: {
|
|
2103
2418
|
/**
|
|
2104
2419
|
* 线宽
|
|
@@ -2120,7 +2435,7 @@ interface IGroundPolylinePrimitivesOptions {
|
|
|
2120
2435
|
/**
|
|
2121
2436
|
* GeoJSON 数据
|
|
2122
2437
|
*/
|
|
2123
|
-
geoJson: FeatureCollection<LineString | MultiLineString, GeoJsonProperties>;
|
|
2438
|
+
geoJson: FeatureCollection$1<LineString$1 | MultiLineString$1, GeoJsonProperties$1>;
|
|
2124
2439
|
line: {
|
|
2125
2440
|
/**
|
|
2126
2441
|
* 线宽
|
|
@@ -2137,17 +2452,17 @@ interface IGroundPolylinePrimitivesOptions {
|
|
|
2137
2452
|
material?: Cesium.Material;
|
|
2138
2453
|
}
|
|
2139
2454
|
|
|
2140
|
-
type
|
|
2141
|
-
type
|
|
2142
|
-
type
|
|
2143
|
-
type
|
|
2144
|
-
type
|
|
2145
|
-
type
|
|
2146
|
-
type
|
|
2147
|
-
type
|
|
2148
|
-
type
|
|
2149
|
-
declare namespace types$
|
|
2150
|
-
export type {
|
|
2455
|
+
type types$1_IBillboard = IBillboard;
|
|
2456
|
+
type types$1_ICircleAperturePrimitiveOptions = ICircleAperturePrimitiveOptions;
|
|
2457
|
+
type types$1_IGroundPolygonPrimitivesOptions = IGroundPolygonPrimitivesOptions;
|
|
2458
|
+
type types$1_IGroundPolylinePrimitivesOptions = IGroundPolylinePrimitivesOptions;
|
|
2459
|
+
type types$1_ILabel = ILabel;
|
|
2460
|
+
type types$1_IPoint = IPoint;
|
|
2461
|
+
type types$1_IPointPrimitivesOptions = IPointPrimitivesOptions;
|
|
2462
|
+
type types$1_IRaderScanPrimitiveOptions = IRaderScanPrimitiveOptions;
|
|
2463
|
+
type types$1_Icluster = Icluster;
|
|
2464
|
+
declare namespace types$1 {
|
|
2465
|
+
export type { types$1_IBillboard as IBillboard, types$1_ICircleAperturePrimitiveOptions as ICircleAperturePrimitiveOptions, types$1_IGroundPolygonPrimitivesOptions as IGroundPolygonPrimitivesOptions, types$1_IGroundPolylinePrimitivesOptions as IGroundPolylinePrimitivesOptions, types$1_ILabel as ILabel, types$1_IPoint as IPoint, types$1_IPointPrimitivesOptions as IPointPrimitivesOptions, types$1_IRaderScanPrimitiveOptions as IRaderScanPrimitiveOptions, types$1_Icluster as Icluster };
|
|
2151
2466
|
}
|
|
2152
2467
|
|
|
2153
2468
|
declare class RadereScanPrimitive extends BasePrimitive<any> {
|
|
@@ -2172,9 +2487,9 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2172
2487
|
private clusterImageCache;
|
|
2173
2488
|
private supercluster;
|
|
2174
2489
|
constructor(options: IPointPrimitivesOptions);
|
|
2175
|
-
initCollection: (geojson: FeatureCollection<Point, GeoJsonProperties>) => Promise<void>;
|
|
2176
|
-
clacBoundingSphere(geoJson: FeatureCollection<Point, GeoJsonProperties>): void;
|
|
2177
|
-
createPoint(feature: Feature<Point, GeoJsonProperties>): {
|
|
2490
|
+
initCollection: (geojson: FeatureCollection$1<Point$1, GeoJsonProperties$1>) => Promise<void>;
|
|
2491
|
+
clacBoundingSphere(geoJson: FeatureCollection$1<Point$1, GeoJsonProperties$1>): void;
|
|
2492
|
+
createPoint(feature: Feature$1<Point$1, GeoJsonProperties$1>): {
|
|
2178
2493
|
id: string;
|
|
2179
2494
|
position: Cesium.Cartesian3;
|
|
2180
2495
|
color: Cesium.Color;
|
|
@@ -2186,7 +2501,7 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2186
2501
|
disableDepthTestDistance: any;
|
|
2187
2502
|
distanceDisplayCondition: any;
|
|
2188
2503
|
};
|
|
2189
|
-
createBillboard(feature: Feature<Point, GeoJsonProperties>): {
|
|
2504
|
+
createBillboard(feature: Feature$1<Point$1, GeoJsonProperties$1>): {
|
|
2190
2505
|
id: string;
|
|
2191
2506
|
position: Cesium.Cartesian3;
|
|
2192
2507
|
image: any;
|
|
@@ -2203,7 +2518,7 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2203
2518
|
disableDepthTestDistance: any;
|
|
2204
2519
|
distanceDisplayCondition: any;
|
|
2205
2520
|
};
|
|
2206
|
-
createLabel(feature: Feature<Point, GeoJsonProperties>): {
|
|
2521
|
+
createLabel(feature: Feature$1<Point$1, GeoJsonProperties$1>): {
|
|
2207
2522
|
id: string;
|
|
2208
2523
|
position: Cesium.Cartesian3;
|
|
2209
2524
|
text: any;
|
|
@@ -2225,7 +2540,7 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2225
2540
|
disableDepthTestDistance: any;
|
|
2226
2541
|
distanceDisplayCondition: any;
|
|
2227
2542
|
};
|
|
2228
|
-
initCluster: (viewer: Cesium.Viewer, geoJson: FeatureCollection<Point>) => Promise<void>;
|
|
2543
|
+
initCluster: (viewer: Cesium.Viewer, geoJson: FeatureCollection$1<Point$1>) => Promise<void>;
|
|
2229
2544
|
/**
|
|
2230
2545
|
* 缩放至聚合点子集
|
|
2231
2546
|
*/
|
|
@@ -2233,7 +2548,7 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2233
2548
|
loadCluster: (viewer: Cesium.Viewer) => void;
|
|
2234
2549
|
getClusterImageByCount(color: string, count: number, zoom: number): any;
|
|
2235
2550
|
calcfontSize(zoom: number): number;
|
|
2236
|
-
calcPointHeight(viewer: Cesium.Viewer, geoJson: FeatureCollection<Point>): Promise<void>;
|
|
2551
|
+
calcPointHeight(viewer: Cesium.Viewer, geoJson: FeatureCollection$1<Point$1>): Promise<void>;
|
|
2237
2552
|
clearCollection(): void;
|
|
2238
2553
|
remove(): void;
|
|
2239
2554
|
removeAll(): void;
|
|
@@ -2336,6 +2651,34 @@ interface IGridPrimitiveVertices {
|
|
|
2336
2651
|
positions: Cesium.Cartesian3;
|
|
2337
2652
|
}
|
|
2338
2653
|
|
|
2654
|
+
declare const createDivLabelHandler: (viewer: Cesium.Viewer) => IDivLabelHandler;
|
|
2655
|
+
interface IDivLabelOptions {
|
|
2656
|
+
position: Cesium.Cartesian3;
|
|
2657
|
+
divEle: HTMLDivElement;
|
|
2658
|
+
distanceDisplayCondition?: Cesium.DistanceDisplayCondition;
|
|
2659
|
+
/**
|
|
2660
|
+
* div标签的父元素
|
|
2661
|
+
* 默认添加到viewer的元素上
|
|
2662
|
+
*/
|
|
2663
|
+
parentEle?: HTMLBodyElement | HTMLDivElement;
|
|
2664
|
+
offset?: Cesium.Cartesian2;
|
|
2665
|
+
autoFit?: Cesium.Cartesian2;
|
|
2666
|
+
userSelect?: string;
|
|
2667
|
+
align?: 'left' | 'center' | 'right';
|
|
2668
|
+
}
|
|
2669
|
+
interface IDivLabelItem extends IDivLabelOptions {
|
|
2670
|
+
id: string;
|
|
2671
|
+
}
|
|
2672
|
+
interface IDivLabelHandler {
|
|
2673
|
+
divLabels: IDivLabelItem[];
|
|
2674
|
+
set: (options: IDivLabelOptions) => IDivLabelItem;
|
|
2675
|
+
setPosition: (id: string, position: Cesium.Cartesian3) => void;
|
|
2676
|
+
remove: (divLabelItem: IDivLabelItem) => void;
|
|
2677
|
+
removeAll: () => void;
|
|
2678
|
+
removeById: (id: string) => void;
|
|
2679
|
+
addEventListener: (type: 'LEFT_CLICK', callBack: (divLabelItem: IDivLabelItem) => void) => void;
|
|
2680
|
+
}
|
|
2681
|
+
|
|
2339
2682
|
interface IBaseAnalysis<T, R> {
|
|
2340
2683
|
set: (options: T) => R;
|
|
2341
2684
|
remove: (item: R) => void;
|
|
@@ -2372,440 +2715,104 @@ interface IFloodItem {
|
|
|
2372
2715
|
id: string;
|
|
2373
2716
|
polygon: Cesium.Entity;
|
|
2374
2717
|
}
|
|
2375
|
-
interface IFillDig extends IBaseAnalysis<IFillDigOptions, IFillDigItem> {
|
|
2376
|
-
}
|
|
2377
|
-
interface IFillDigOptions {
|
|
2378
|
-
positions: Cesium.Cartesian3[];
|
|
2379
|
-
}
|
|
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;
|
|
2718
|
+
interface IFillDig extends IBaseAnalysis<IFillDigOptions, IFillDigItem> {
|
|
2580
2719
|
}
|
|
2581
|
-
interface
|
|
2720
|
+
interface IFillDigOptions {
|
|
2721
|
+
positions: Cesium.Cartesian3[];
|
|
2582
2722
|
}
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
* https://www.shadertoy.com/view/XXyGzh
|
|
2586
|
-
*/
|
|
2587
|
-
interface IZapsMaterialOptions {
|
|
2588
|
-
color?: string;
|
|
2589
|
-
speed: number;
|
|
2723
|
+
interface IFillDigItem {
|
|
2724
|
+
id: string;
|
|
2590
2725
|
}
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
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 };
|
|
2726
|
+
interface IProFile<T> {
|
|
2727
|
+
set: (options: T) => Promise<IProFileItem>;
|
|
2728
|
+
remove: (item: IProFileItem) => void;
|
|
2729
|
+
removeAll: () => void;
|
|
2730
|
+
destroy: () => void;
|
|
2731
|
+
changeTipPoint: (data?: IProFileItemData) => void;
|
|
2606
2732
|
}
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
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;
|
|
2733
|
+
interface IProFileOptions {
|
|
2734
|
+
positions: Cesium.Cartesian3[];
|
|
2735
|
+
/**
|
|
2736
|
+
* 插值点距离
|
|
2737
|
+
* 根据距离和线的长度计算插值点数量
|
|
2738
|
+
* 单位为米
|
|
2739
|
+
*/
|
|
2740
|
+
pointDistance: number;
|
|
2741
|
+
tipMarkerUrl?: string;
|
|
2624
2742
|
}
|
|
2625
|
-
|
|
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;
|
|
2743
|
+
interface IProFileItem {
|
|
2744
|
+
id: string;
|
|
2745
|
+
datas: IProFileItemData[];
|
|
2647
2746
|
}
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
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;
|
|
2747
|
+
interface IProFileItemData {
|
|
2748
|
+
longitude: number;
|
|
2749
|
+
latitude: number;
|
|
2750
|
+
height: number;
|
|
2751
|
+
distance: number;
|
|
2752
|
+
allDistance: number;
|
|
2753
|
+
}
|
|
2754
|
+
interface IModelProFileOptions extends IProFileOptions {
|
|
2755
|
+
layers: any;
|
|
2756
|
+
/**
|
|
2757
|
+
* 分析进度
|
|
2758
|
+
*/
|
|
2759
|
+
progress: (data: IProFileItemData) => void;
|
|
2666
2760
|
}
|
|
2667
|
-
declare const createCircleWaveMaterial: (options?: ICircleWaveMaterialOptions) => {
|
|
2668
|
-
material: Cesium.Material;
|
|
2669
|
-
};
|
|
2670
2761
|
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2762
|
+
type types_IBaseAnalysis<T, R> = IBaseAnalysis<T, R>;
|
|
2763
|
+
type types_IClipPlane = IClipPlane;
|
|
2764
|
+
type types_IClipPlaneOPtions = IClipPlaneOPtions;
|
|
2765
|
+
type types_IClipPolygon = IClipPolygon;
|
|
2766
|
+
type types_IClipPolygonItem = IClipPolygonItem;
|
|
2767
|
+
type types_IClipPolygonPtions = IClipPolygonPtions;
|
|
2768
|
+
type types_IFillDig = IFillDig;
|
|
2769
|
+
type types_IFillDigItem = IFillDigItem;
|
|
2770
|
+
type types_IFillDigOptions = IFillDigOptions;
|
|
2771
|
+
type types_IFlood = IFlood;
|
|
2772
|
+
type types_IFloodItem = IFloodItem;
|
|
2773
|
+
type types_IFloodOptions = IFloodOptions;
|
|
2774
|
+
type types_IModelProFileOptions = IModelProFileOptions;
|
|
2775
|
+
type types_IProFile<T> = IProFile<T>;
|
|
2776
|
+
type types_IProFileItem = IProFileItem;
|
|
2777
|
+
type types_IProFileItemData = IProFileItemData;
|
|
2778
|
+
type types_IProFileOptions = IProFileOptions;
|
|
2779
|
+
declare namespace types {
|
|
2780
|
+
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 };
|
|
2685
2781
|
}
|
|
2686
|
-
declare const createRaderWaveMaterial: (options: ICircleRaderWaveMaterialOptions) => {
|
|
2687
|
-
material: Cesium.Material;
|
|
2688
|
-
};
|
|
2689
2782
|
|
|
2690
2783
|
/**
|
|
2691
|
-
*
|
|
2784
|
+
* 地形开挖
|
|
2692
2785
|
*/
|
|
2693
|
-
declare
|
|
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
|
-
};
|
|
2786
|
+
declare const createClipPlaneAnalysis: (viewer: Cesium.Viewer) => IClipPlane;
|
|
2708
2787
|
|
|
2709
2788
|
/**
|
|
2710
|
-
*
|
|
2789
|
+
* 裁剪面分析,
|
|
2711
2790
|
*/
|
|
2712
|
-
declare
|
|
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;
|
|
2791
|
+
declare const createClipPolygonAnalysis: (viewer: Cesium.Viewer) => IClipPolygon;
|
|
2727
2792
|
|
|
2728
2793
|
/**
|
|
2729
|
-
*
|
|
2794
|
+
* 淹没分析
|
|
2795
|
+
* @param viewer
|
|
2730
2796
|
*/
|
|
2731
|
-
declare
|
|
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
|
-
};
|
|
2797
|
+
declare const createFloodAnalysis: (viewer: Cesium.Viewer) => IFlood;
|
|
2751
2798
|
|
|
2752
2799
|
/**
|
|
2753
|
-
*
|
|
2800
|
+
* 填挖方分析
|
|
2801
|
+
* @param viewer
|
|
2754
2802
|
*/
|
|
2755
|
-
declare
|
|
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
|
-
};
|
|
2803
|
+
declare const createFillAndDigAnalysis: (viewer: Cesium.Viewer) => IFillDig;
|
|
2770
2804
|
|
|
2771
2805
|
/**
|
|
2772
|
-
*
|
|
2806
|
+
* 淹没分析
|
|
2807
|
+
* @param viewer
|
|
2773
2808
|
*/
|
|
2774
|
-
declare
|
|
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
|
-
};
|
|
2809
|
+
declare const createProfileAnalysis: (viewer: Cesium.Viewer) => IProFile<IProFileOptions>;
|
|
2789
2810
|
|
|
2790
2811
|
/**
|
|
2791
|
-
*
|
|
2792
|
-
*
|
|
2812
|
+
* 剖面分析(模型上分析)
|
|
2813
|
+
* 分层分析模型
|
|
2793
2814
|
*/
|
|
2794
|
-
declare
|
|
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
|
-
};
|
|
2815
|
+
declare const createModelProfileAnalysis: (viewer: Viewer) => IProFile<IModelProFileOptions>;
|
|
2809
2816
|
|
|
2810
|
-
export { types
|
|
2811
|
-
export type { DeepPartial
|
|
2817
|
+
export { types as Analysis, BaseMaterialProperty, BasePrimitive, CircleApertureMaterialProperty, CircleAperturePrimitive, CircleRaderFanMaterialProperty, CircleRaderWaveMaterialProperty, CircleWaveMaterialProperty, types$4 as Common, CoordinateTransformer, DefaultViewerOptions, types$3 as Draw, DrawEventType, DrawStyle, EllipsoidElectricMaterialProperty, EllipsoidHScanMaterialProperty, EllipsoidVScanMaterialProperty, FlyAttitude, GridPrimitives, GroundPolygonPrimitives, GroundPolylinePrimitives, LightWallMaterialProperty, types$2 as Material, PointClusterPrimitives, PointPrimitives, PolylineFlowMaterialProperty, PolylineTrailMaterialProperty, Popup, types$1 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, createDivLabelHandler, createDrawHandler, createDroneAnimCustomShader, createEagleEye, createEllipsoidElectricMaterial, createEllipsoidHScanMaterial, createEllipsoidVScanMaterial, 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, setCameraAutoBackTiltToZero, setCesiumForAutoFitScale, setGlobeEnabled, setGlobeOpatity, setHeightOffsetFor3dTiles, setImageLayerTheme, setViewToLnglat, twinkleModel };
|
|
2818
|
+
export type { DeepPartial, DrawEvent, DrawShape, IBaseAnalysis, IBillboard, ICamearView, ICesiumEventListener, ICircleApertureMaterialOptions, ICircleAperturePrimitiveOptions, ICircleRaderFanMaterialOptions, ICircleRaderWaveMaterialOptions, ICircleWaveMaterialOptions, IClipPlane, IClipPlaneOPtions, IClipPolygon, IClipPolygonItem, IClipPolygonPtions, ICorridorMaterialOptions, IDivLabelHandler, IDivLabelItem, IDivLabelOptions, IDrawAttrInfo, IDrawEditEvent, IDrawHandler, IDrawHandlerEvent, IDrawOptions, IDrawStyle, IDroneAnimOptions, IEllipsoidElectricMaterialOptions, IEllipsoidHScanMaterialPropertyOptions, IEllipsoidVScanMaterialPropertyOptions, 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, ISetImageLayerOptions, ISetViewByLngLatOptions, ISetViewByPositionOptions, ISkyBoxOnGroundOptions, ISkyBoxOptions, ISkyBoxSources, ISnowCoverStageOptions, ISnowStageOptions, IYawPitchRoll, IZapsMaterialOptions, Icluster };
|