ino-cesium 0.0.17-beta.1 → 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/dist/ino-cesium-full.js +6 -6
- package/dist/ino-cesium.d.ts +651 -574
- package/dist/ino-cesium.js +1 -1
- package/package.json +10 -8
package/dist/ino-cesium.d.ts
CHANGED
|
@@ -1,6 +1,201 @@
|
|
|
1
1
|
import * as Cesium from 'cesium';
|
|
2
2
|
export { Cesium };
|
|
3
|
-
|
|
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
|
+
}
|
|
4
199
|
|
|
5
200
|
interface ISetViewByLngLatOptions {
|
|
6
201
|
lng: number;
|
|
@@ -27,8 +222,8 @@ interface ICesiumEventListener {
|
|
|
27
222
|
PICK_FEATURE?: (pickModel: any, feature: any) => void;
|
|
28
223
|
MOVE_PICK_FEATURE?: (pickModel: any, feature: any) => void;
|
|
29
224
|
}
|
|
30
|
-
type DeepPartial<T> = {
|
|
31
|
-
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
225
|
+
type DeepPartial$1<T> = {
|
|
226
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial$1<T[P]> : T[P];
|
|
32
227
|
};
|
|
33
228
|
|
|
34
229
|
interface ISkyBoxSources {
|
|
@@ -53,17 +248,17 @@ interface IYawPitchRoll {
|
|
|
53
248
|
offsetYaw?: number;
|
|
54
249
|
}
|
|
55
250
|
|
|
56
|
-
type
|
|
57
|
-
type
|
|
58
|
-
type
|
|
59
|
-
type
|
|
60
|
-
type
|
|
61
|
-
type
|
|
62
|
-
type
|
|
63
|
-
type
|
|
64
|
-
type
|
|
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;
|
|
65
260
|
declare namespace types$4 {
|
|
66
|
-
export type {
|
|
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 };
|
|
67
262
|
}
|
|
68
263
|
|
|
69
264
|
/**
|
|
@@ -233,224 +428,28 @@ declare class Popup {
|
|
|
233
428
|
destroy(): void;
|
|
234
429
|
}
|
|
235
430
|
|
|
236
|
-
// Note: as of the RFC 7946 version of GeoJSON, Coordinate Reference Systems
|
|
237
|
-
// are no longer supported. (See https://tools.ietf.org/html/rfc7946#appendix-B)}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
431
|
/**
|
|
242
|
-
*
|
|
243
|
-
*
|
|
432
|
+
* 生成随机点输入geojosn 格式
|
|
433
|
+
* @param count 点数量
|
|
434
|
+
* @param lngRange 精度范围
|
|
435
|
+
* @param latRange 纬度范围
|
|
436
|
+
* @returns
|
|
244
437
|
*/
|
|
245
|
-
|
|
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>;
|
|
246
442
|
|
|
247
443
|
/**
|
|
248
|
-
*
|
|
249
|
-
*
|
|
444
|
+
* 创建鹰眼图
|
|
445
|
+
* @param eleId
|
|
446
|
+
* @param mainViewer
|
|
250
447
|
*/
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
* Array should contain between two and three elements.
|
|
257
|
-
* The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values),
|
|
258
|
-
* but the current specification only allows X, Y, and (optionally) Z to be defined.
|
|
259
|
-
*
|
|
260
|
-
* Note: the type will not be narrowed down to `[number, number] | [number, number, number]` due to
|
|
261
|
-
* marginal benefits and the large impact of breaking change.
|
|
262
|
-
*
|
|
263
|
-
* See previous discussions on the type narrowing:
|
|
264
|
-
* - {@link https://github.com/DefinitelyTyped/DefinitelyTyped/pull/21590|Nov 2017}
|
|
265
|
-
* - {@link https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/67773|Dec 2023}
|
|
266
|
-
* - {@link https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/71441| Dec 2024}
|
|
267
|
-
*
|
|
268
|
-
* One can use a
|
|
269
|
-
* {@link https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates|user-defined type guard that returns a type predicate}
|
|
270
|
-
* to determine if a position is a 2D or 3D position.
|
|
271
|
-
*
|
|
272
|
-
* @example
|
|
273
|
-
* import type { Position } from 'geojson';
|
|
274
|
-
*
|
|
275
|
-
* type StrictPosition = [x: number, y: number] | [x: number, y: number, z: number]
|
|
276
|
-
*
|
|
277
|
-
* function isStrictPosition(position: Position): position is StrictPosition {
|
|
278
|
-
* return position.length === 2 || position.length === 3
|
|
279
|
-
* };
|
|
280
|
-
*
|
|
281
|
-
* let position: Position = [-116.91, 45.54];
|
|
282
|
-
*
|
|
283
|
-
* let x: number;
|
|
284
|
-
* let y: number;
|
|
285
|
-
* let z: number | undefined;
|
|
286
|
-
*
|
|
287
|
-
* if (isStrictPosition(position)) {
|
|
288
|
-
* // `tsc` would throw an error if we tried to destructure a fourth parameter
|
|
289
|
-
* [x, y, z] = position;
|
|
290
|
-
* } else {
|
|
291
|
-
* throw new TypeError("Position is not a 2D or 3D point");
|
|
292
|
-
* }
|
|
293
|
-
*/
|
|
294
|
-
type Position = number[];
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* The base GeoJSON object.
|
|
298
|
-
* https://tools.ietf.org/html/rfc7946#section-3
|
|
299
|
-
* The GeoJSON specification also allows foreign members
|
|
300
|
-
* (https://tools.ietf.org/html/rfc7946#section-6.1)
|
|
301
|
-
* Developers should use "&" type in TypeScript or extend the interface
|
|
302
|
-
* to add these foreign members.
|
|
303
|
-
*/
|
|
304
|
-
interface GeoJsonObject {
|
|
305
|
-
// Don't include foreign members directly into this type def.
|
|
306
|
-
// in order to preserve type safety.
|
|
307
|
-
// [key: string]: any;
|
|
308
|
-
/**
|
|
309
|
-
* Specifies the type of GeoJSON object.
|
|
310
|
-
*/
|
|
311
|
-
type: GeoJsonTypes;
|
|
312
|
-
/**
|
|
313
|
-
* Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections.
|
|
314
|
-
* The value of the bbox member is an array of length 2*n where n is the number of dimensions
|
|
315
|
-
* represented in the contained geometries, with all axes of the most southwesterly point
|
|
316
|
-
* followed by all axes of the more northeasterly point.
|
|
317
|
-
* The axes order of a bbox follows the axes order of geometries.
|
|
318
|
-
* https://tools.ietf.org/html/rfc7946#section-5
|
|
319
|
-
*/
|
|
320
|
-
bbox?: BBox | undefined;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Union of GeoJSON objects.
|
|
325
|
-
*/
|
|
326
|
-
type GeoJSON$1<G extends Geometry | null = Geometry, P = GeoJsonProperties> =
|
|
327
|
-
| G
|
|
328
|
-
| Feature<G, P>
|
|
329
|
-
| FeatureCollection<G, P>;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Geometry object.
|
|
333
|
-
* https://tools.ietf.org/html/rfc7946#section-3
|
|
334
|
-
*/
|
|
335
|
-
type Geometry = Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection;
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Point geometry object.
|
|
339
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.2
|
|
340
|
-
*/
|
|
341
|
-
interface Point extends GeoJsonObject {
|
|
342
|
-
type: "Point";
|
|
343
|
-
coordinates: Position;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* MultiPoint geometry object.
|
|
348
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.3
|
|
349
|
-
*/
|
|
350
|
-
interface MultiPoint extends GeoJsonObject {
|
|
351
|
-
type: "MultiPoint";
|
|
352
|
-
coordinates: Position[];
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* LineString geometry object.
|
|
357
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.4
|
|
358
|
-
*/
|
|
359
|
-
interface LineString extends GeoJsonObject {
|
|
360
|
-
type: "LineString";
|
|
361
|
-
coordinates: Position[];
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* MultiLineString geometry object.
|
|
366
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.5
|
|
367
|
-
*/
|
|
368
|
-
interface MultiLineString extends GeoJsonObject {
|
|
369
|
-
type: "MultiLineString";
|
|
370
|
-
coordinates: Position[][];
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* Polygon geometry object.
|
|
375
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.6
|
|
376
|
-
*/
|
|
377
|
-
interface Polygon extends GeoJsonObject {
|
|
378
|
-
type: "Polygon";
|
|
379
|
-
coordinates: Position[][];
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* MultiPolygon geometry object.
|
|
384
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.7
|
|
385
|
-
*/
|
|
386
|
-
interface MultiPolygon extends GeoJsonObject {
|
|
387
|
-
type: "MultiPolygon";
|
|
388
|
-
coordinates: Position[][][];
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* Geometry Collection
|
|
393
|
-
* https://tools.ietf.org/html/rfc7946#section-3.1.8
|
|
394
|
-
*/
|
|
395
|
-
interface GeometryCollection<G extends Geometry = Geometry> extends GeoJsonObject {
|
|
396
|
-
type: "GeometryCollection";
|
|
397
|
-
geometries: G[];
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
type GeoJsonProperties = { [name: string]: any } | null;
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* A feature object which contains a geometry and associated properties.
|
|
404
|
-
* https://tools.ietf.org/html/rfc7946#section-3.2
|
|
405
|
-
*/
|
|
406
|
-
interface Feature<G extends Geometry | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
|
|
407
|
-
type: "Feature";
|
|
408
|
-
/**
|
|
409
|
-
* The feature's geometry
|
|
410
|
-
*/
|
|
411
|
-
geometry: G;
|
|
412
|
-
/**
|
|
413
|
-
* A value that uniquely identifies this feature in a
|
|
414
|
-
* https://tools.ietf.org/html/rfc7946#section-3.2.
|
|
415
|
-
*/
|
|
416
|
-
id?: string | number | undefined;
|
|
417
|
-
/**
|
|
418
|
-
* Properties associated with this feature.
|
|
419
|
-
*/
|
|
420
|
-
properties: P;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* A collection of feature objects.
|
|
425
|
-
* https://tools.ietf.org/html/rfc7946#section-3.3
|
|
426
|
-
*/
|
|
427
|
-
interface FeatureCollection<G extends Geometry | null = Geometry, P = GeoJsonProperties> extends GeoJsonObject {
|
|
428
|
-
type: "FeatureCollection";
|
|
429
|
-
features: Array<Feature<G, P>>;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* 生成随机点输入geojosn 格式
|
|
434
|
-
* @param count 点数量
|
|
435
|
-
* @param lngRange 精度范围
|
|
436
|
-
* @param latRange 纬度范围
|
|
437
|
-
* @returns
|
|
438
|
-
*/
|
|
439
|
-
declare const randomPointToGeoJson: (count: number, lngRange?: number[], latRange?: number[]) => FeatureCollection<Point, GeoJsonProperties>;
|
|
440
|
-
declare function randomColor(): string;
|
|
441
|
-
declare const randomPolylineToGeoJson: (count: number, lngRange?: number[], latRange?: number[]) => FeatureCollection<LineString, GeoJsonProperties>;
|
|
442
|
-
declare const randomPolygonToGeoJson: (count: number, lngRange?: number[], latRange?: number[]) => FeatureCollection<Polygon, GeoJsonProperties>;
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* 创建鹰眼图
|
|
446
|
-
* @param eleId
|
|
447
|
-
* @param mainViewer
|
|
448
|
-
*/
|
|
449
|
-
declare const createEagleEye: (eleId: string, mainViewer: Cesium.Viewer) => {
|
|
450
|
-
viewer: Cesium.Viewer;
|
|
451
|
-
open: () => void;
|
|
452
|
-
close: () => void;
|
|
453
|
-
};
|
|
448
|
+
declare const createEagleEye: (eleId: string, mainViewer: Cesium.Viewer) => {
|
|
449
|
+
viewer: Cesium.Viewer;
|
|
450
|
+
open: () => void;
|
|
451
|
+
close: () => void;
|
|
452
|
+
};
|
|
454
453
|
|
|
455
454
|
/**
|
|
456
455
|
* 计算空间距离
|
|
@@ -546,8 +545,8 @@ declare const calcLerpPosition: (positions: Cesium.Cartesian3[], number: number)
|
|
|
546
545
|
*/
|
|
547
546
|
declare const calcBoundingSphereFromPositions: (positions: Cesium.Cartesian3[]) => Cesium.BoundingSphere;
|
|
548
547
|
|
|
549
|
-
declare abstract class BasePrimitive<T> {
|
|
550
|
-
protected _primitive: CusPrimitive;
|
|
548
|
+
declare abstract class BasePrimitive$1<T> {
|
|
549
|
+
protected _primitive: CusPrimitive$1;
|
|
551
550
|
protected _promise: Promise<T>;
|
|
552
551
|
protected appearance: Cesium.Appearance | undefined;
|
|
553
552
|
protected geometryInstance: Cesium.Appearance | undefined;
|
|
@@ -562,17 +561,17 @@ declare abstract class BasePrimitive<T> {
|
|
|
562
561
|
update(frameState: any): void;
|
|
563
562
|
then(onFulfilled?: any): Promise<T>;
|
|
564
563
|
catch(onRejected?: any): Promise<T>;
|
|
565
|
-
abstract getPrimitive(): CusPrimitive;
|
|
564
|
+
abstract getPrimitive(): CusPrimitive$1;
|
|
566
565
|
isDestroyed(): boolean;
|
|
567
566
|
destroy(): void;
|
|
568
567
|
setShapePositions(positions: Cesium.Cartesian3[]): void;
|
|
569
568
|
}
|
|
570
|
-
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;
|
|
571
570
|
|
|
572
571
|
/**
|
|
573
572
|
* 线材质基类
|
|
574
573
|
*/
|
|
575
|
-
declare abstract class BaseMaterialProperty {
|
|
574
|
+
declare abstract class BaseMaterialProperty$1 {
|
|
576
575
|
protected _definitionChanged: Cesium.Event<(...args: any[]) => void>;
|
|
577
576
|
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
578
577
|
get isConstant(): boolean;
|
|
@@ -1156,6 +1155,46 @@ declare const createOutLineEffect: (viewer: Cesium.Viewer) => {
|
|
|
1156
1155
|
remove: () => void;
|
|
1157
1156
|
};
|
|
1158
1157
|
|
|
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
|
+
|
|
1159
1198
|
declare class MeasurePrimitive extends BasePrimitive<any> {
|
|
1160
1199
|
private drawData;
|
|
1161
1200
|
private labelCollection;
|
|
@@ -1585,24 +1624,24 @@ interface IDrawStyle {
|
|
|
1585
1624
|
};
|
|
1586
1625
|
}
|
|
1587
1626
|
|
|
1588
|
-
type
|
|
1589
|
-
type
|
|
1590
|
-
declare const
|
|
1591
|
-
type
|
|
1592
|
-
type
|
|
1593
|
-
type
|
|
1594
|
-
type
|
|
1595
|
-
type
|
|
1596
|
-
type
|
|
1597
|
-
type
|
|
1598
|
-
type
|
|
1599
|
-
type
|
|
1600
|
-
type
|
|
1601
|
-
type
|
|
1602
|
-
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;
|
|
1603
1642
|
declare namespace types$3 {
|
|
1604
|
-
export {
|
|
1605
|
-
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 };
|
|
1606
1645
|
}
|
|
1607
1646
|
|
|
1608
1647
|
declare const DrawStyle: IDrawStyle;
|
|
@@ -1628,77 +1667,7 @@ interface IAddDrawActionsOptions {
|
|
|
1628
1667
|
*/
|
|
1629
1668
|
declare const createDrawHandler: (viewer: Cesium.Viewer) => IDrawHandler;
|
|
1630
1669
|
|
|
1631
|
-
interface
|
|
1632
|
-
name?: string;
|
|
1633
|
-
color?: string;
|
|
1634
|
-
speed?: number;
|
|
1635
|
-
image: string;
|
|
1636
|
-
}
|
|
1637
|
-
interface IPolylineFlowMaterialOptions {
|
|
1638
|
-
/**
|
|
1639
|
-
* 颜色
|
|
1640
|
-
*/
|
|
1641
|
-
color?: string;
|
|
1642
|
-
speed?: number;
|
|
1643
|
-
image: string;
|
|
1644
|
-
repeatCount?: number;
|
|
1645
|
-
blendColor?: boolean;
|
|
1646
|
-
}
|
|
1647
|
-
interface ICircleWaveMaterialOptions {
|
|
1648
|
-
name?: string;
|
|
1649
|
-
color?: string;
|
|
1650
|
-
speed?: number;
|
|
1651
|
-
count?: number;
|
|
1652
|
-
gradient?: number;
|
|
1653
|
-
}
|
|
1654
|
-
interface ICircleRaderWaveMaterialOptions {
|
|
1655
|
-
name?: string;
|
|
1656
|
-
color?: string;
|
|
1657
|
-
speed?: number;
|
|
1658
|
-
}
|
|
1659
|
-
interface ICircleRaderFanMaterialOptions {
|
|
1660
|
-
name?: string;
|
|
1661
|
-
color?: string;
|
|
1662
|
-
speed?: number;
|
|
1663
|
-
}
|
|
1664
|
-
interface ICircleApertureMaterialOptions {
|
|
1665
|
-
color?: string;
|
|
1666
|
-
/**
|
|
1667
|
-
* 速度
|
|
1668
|
-
*/
|
|
1669
|
-
speed?: number;
|
|
1670
|
-
}
|
|
1671
|
-
interface ILightWallMaterialOptions {
|
|
1672
|
-
image: string;
|
|
1673
|
-
color?: string;
|
|
1674
|
-
count?: number;
|
|
1675
|
-
/**
|
|
1676
|
-
* 时间 单位为秒
|
|
1677
|
-
*/
|
|
1678
|
-
duration?: number;
|
|
1679
|
-
/**
|
|
1680
|
-
* 0为水平 1为垂直 默认为1
|
|
1681
|
-
*/
|
|
1682
|
-
vertical?: number;
|
|
1683
|
-
/**
|
|
1684
|
-
* 1由下到上 0由上到下 默认为0
|
|
1685
|
-
*/
|
|
1686
|
-
direction?: number;
|
|
1687
|
-
}
|
|
1688
|
-
/**
|
|
1689
|
-
* 电弧球体
|
|
1690
|
-
*/
|
|
1691
|
-
interface IEllipsoidElectricMaterialOptions {
|
|
1692
|
-
color?: string;
|
|
1693
|
-
/**
|
|
1694
|
-
* 速度
|
|
1695
|
-
*/
|
|
1696
|
-
speed?: number;
|
|
1697
|
-
}
|
|
1698
|
-
/**
|
|
1699
|
-
* 扫描球体
|
|
1700
|
-
*/
|
|
1701
|
-
interface IEllipsoidScanMaterialOptions {
|
|
1670
|
+
interface ICircleApertureMaterialOptions$1 {
|
|
1702
1671
|
color?: string;
|
|
1703
1672
|
/**
|
|
1704
1673
|
* 速度
|
|
@@ -1713,7 +1682,7 @@ interface IEllipsoidScanMaterialOptions {
|
|
|
1713
1682
|
* @param count 光圈个数
|
|
1714
1683
|
* @param offset 光晕偏移量
|
|
1715
1684
|
*/
|
|
1716
|
-
interface IRadarScanMaterialOptions {
|
|
1685
|
+
interface IRadarScanMaterialOptions$1 {
|
|
1717
1686
|
/**
|
|
1718
1687
|
* 扇区颜色
|
|
1719
1688
|
*/
|
|
@@ -1735,234 +1704,6 @@ interface IRadarScanMaterialOptions {
|
|
|
1735
1704
|
*/
|
|
1736
1705
|
offset?: number;
|
|
1737
1706
|
}
|
|
1738
|
-
interface ICorridorMaterialOptions {
|
|
1739
|
-
}
|
|
1740
|
-
/**
|
|
1741
|
-
* 闪电材质,
|
|
1742
|
-
* https://www.shadertoy.com/view/XXyGzh
|
|
1743
|
-
*/
|
|
1744
|
-
interface IZapsMaterialOptions {
|
|
1745
|
-
color?: string;
|
|
1746
|
-
speed: number;
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1749
|
-
type types$2_ICircleApertureMaterialOptions = ICircleApertureMaterialOptions;
|
|
1750
|
-
type types$2_ICircleRaderFanMaterialOptions = ICircleRaderFanMaterialOptions;
|
|
1751
|
-
type types$2_ICircleRaderWaveMaterialOptions = ICircleRaderWaveMaterialOptions;
|
|
1752
|
-
type types$2_ICircleWaveMaterialOptions = ICircleWaveMaterialOptions;
|
|
1753
|
-
type types$2_ICorridorMaterialOptions = ICorridorMaterialOptions;
|
|
1754
|
-
type types$2_IEllipsoidElectricMaterialOptions = IEllipsoidElectricMaterialOptions;
|
|
1755
|
-
type types$2_IEllipsoidScanMaterialOptions = IEllipsoidScanMaterialOptions;
|
|
1756
|
-
type types$2_ILightWallMaterialOptions = ILightWallMaterialOptions;
|
|
1757
|
-
type types$2_IPolylineFlowMaterialOptions = IPolylineFlowMaterialOptions;
|
|
1758
|
-
type types$2_IPolylineTrailMaterialOptions = IPolylineTrailMaterialOptions;
|
|
1759
|
-
type types$2_IRadarScanMaterialOptions = IRadarScanMaterialOptions;
|
|
1760
|
-
type types$2_IZapsMaterialOptions = IZapsMaterialOptions;
|
|
1761
|
-
declare namespace types$2 {
|
|
1762
|
-
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_IEllipsoidScanMaterialOptions as IEllipsoidScanMaterialOptions, 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 };
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
/**
|
|
1766
|
-
* 尾迹线材质类
|
|
1767
|
-
*/
|
|
1768
|
-
declare class PolylineTrailMaterialProperty extends BaseMaterialProperty {
|
|
1769
|
-
private speed;
|
|
1770
|
-
private color;
|
|
1771
|
-
private name;
|
|
1772
|
-
private image;
|
|
1773
|
-
constructor(options: IPolylineTrailMaterialOptions);
|
|
1774
|
-
get isConstant(): boolean;
|
|
1775
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1776
|
-
getType(): string;
|
|
1777
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1778
|
-
equals(other: PolylineTrailMaterialProperty): any;
|
|
1779
|
-
init(): void;
|
|
1780
|
-
createPropertyDescriptors(): void;
|
|
1781
|
-
}
|
|
1782
|
-
declare const createTrailMaterial: (options: IPolylineTrailMaterialOptions) => Cesium.Material;
|
|
1783
|
-
|
|
1784
|
-
/**
|
|
1785
|
-
* 线流动材质
|
|
1786
|
-
* @classdesc 线流动材质
|
|
1787
|
-
* @param {IPolylineFlowMaterialOptions} options - 线流动材质参数
|
|
1788
|
-
*/
|
|
1789
|
-
declare class PolylineFlowMaterialProperty extends BaseMaterialProperty {
|
|
1790
|
-
private repeatCount;
|
|
1791
|
-
private image;
|
|
1792
|
-
private speed;
|
|
1793
|
-
private color;
|
|
1794
|
-
private blend;
|
|
1795
|
-
private name;
|
|
1796
|
-
constructor(options: IPolylineFlowMaterialOptions);
|
|
1797
|
-
get isConstant(): boolean;
|
|
1798
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1799
|
-
getType(): string;
|
|
1800
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1801
|
-
equals(other: PolylineFlowMaterialProperty): boolean;
|
|
1802
|
-
init(): void;
|
|
1803
|
-
createPropertyDescriptors(): void;
|
|
1804
|
-
}
|
|
1805
|
-
declare const createPoylineFlowMaterial: (options: IPolylineFlowMaterialOptions) => Cesium.Material;
|
|
1806
|
-
|
|
1807
|
-
/**
|
|
1808
|
-
* 波浪圆
|
|
1809
|
-
*/
|
|
1810
|
-
declare class CircleWaveMaterialProperty extends BaseMaterialProperty {
|
|
1811
|
-
private count;
|
|
1812
|
-
private speed;
|
|
1813
|
-
private gradient;
|
|
1814
|
-
private color;
|
|
1815
|
-
private name;
|
|
1816
|
-
constructor(options?: ICircleWaveMaterialOptions);
|
|
1817
|
-
get isConstant(): boolean;
|
|
1818
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1819
|
-
getType(): string;
|
|
1820
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1821
|
-
equals(other: CircleWaveMaterialProperty): any;
|
|
1822
|
-
init(): void;
|
|
1823
|
-
}
|
|
1824
|
-
declare const createCircleWaveMaterial: (options?: ICircleWaveMaterialOptions) => {
|
|
1825
|
-
material: Cesium.Material;
|
|
1826
|
-
};
|
|
1827
|
-
|
|
1828
|
-
/**
|
|
1829
|
-
*雷达波纹圆
|
|
1830
|
-
*/
|
|
1831
|
-
declare class CircleRaderWaveMaterialProperty extends BaseMaterialProperty {
|
|
1832
|
-
private speed;
|
|
1833
|
-
private color;
|
|
1834
|
-
private name;
|
|
1835
|
-
constructor(options: ICircleRaderWaveMaterialOptions);
|
|
1836
|
-
get isConstant(): boolean;
|
|
1837
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1838
|
-
getType(): string;
|
|
1839
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1840
|
-
equals(other: CircleRaderWaveMaterialProperty): boolean;
|
|
1841
|
-
init(): void;
|
|
1842
|
-
}
|
|
1843
|
-
declare const createRaderWaveMaterial: (options: ICircleRaderWaveMaterialOptions) => {
|
|
1844
|
-
material: Cesium.Material;
|
|
1845
|
-
};
|
|
1846
|
-
|
|
1847
|
-
/**
|
|
1848
|
-
* 雷达扇形扫描
|
|
1849
|
-
*/
|
|
1850
|
-
declare class CircleRaderFanMaterialProperty extends BaseMaterialProperty {
|
|
1851
|
-
private speed;
|
|
1852
|
-
private color;
|
|
1853
|
-
private name;
|
|
1854
|
-
constructor(options: ICircleRaderFanMaterialOptions);
|
|
1855
|
-
get isConstant(): boolean;
|
|
1856
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1857
|
-
getType(): string;
|
|
1858
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1859
|
-
equals(other: CircleRaderFanMaterialProperty): boolean;
|
|
1860
|
-
init(): void;
|
|
1861
|
-
}
|
|
1862
|
-
declare const createCircleRaderFanMaterial: (options: ICircleRaderFanMaterialOptions) => {
|
|
1863
|
-
material: Cesium.Material;
|
|
1864
|
-
};
|
|
1865
|
-
|
|
1866
|
-
/**
|
|
1867
|
-
* 波浪圆
|
|
1868
|
-
*/
|
|
1869
|
-
declare class CircleApertureMaterialProperty extends BaseMaterialProperty {
|
|
1870
|
-
private speed;
|
|
1871
|
-
private color;
|
|
1872
|
-
private name;
|
|
1873
|
-
constructor(options?: ICircleApertureMaterialOptions);
|
|
1874
|
-
get isConstant(): boolean;
|
|
1875
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1876
|
-
getType(): string;
|
|
1877
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1878
|
-
equals(other: CircleApertureMaterialProperty): any;
|
|
1879
|
-
init(): void;
|
|
1880
|
-
}
|
|
1881
|
-
declare const createCircleApertureMaterial: (options?: ICircleApertureMaterialOptions) => Cesium.Material;
|
|
1882
|
-
|
|
1883
|
-
declare const createScanRadarMaterial: (options?: IRadarScanMaterialOptions) => Cesium.Material;
|
|
1884
|
-
|
|
1885
|
-
/**
|
|
1886
|
-
* 光墙材质
|
|
1887
|
-
*/
|
|
1888
|
-
declare class LightWallMaterialProperty extends BaseMaterialProperty {
|
|
1889
|
-
private duration;
|
|
1890
|
-
private count;
|
|
1891
|
-
private vertical;
|
|
1892
|
-
private direction;
|
|
1893
|
-
private color;
|
|
1894
|
-
private _time;
|
|
1895
|
-
private image;
|
|
1896
|
-
private name;
|
|
1897
|
-
constructor(options: ILightWallMaterialOptions);
|
|
1898
|
-
get isConstant(): boolean;
|
|
1899
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1900
|
-
getType(): string;
|
|
1901
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1902
|
-
equals(other: LightWallMaterialProperty): any;
|
|
1903
|
-
init(): void;
|
|
1904
|
-
}
|
|
1905
|
-
declare const createLightWallMaterial: (options: ILightWallMaterialOptions) => {
|
|
1906
|
-
material: Cesium.Material;
|
|
1907
|
-
};
|
|
1908
|
-
|
|
1909
|
-
/**
|
|
1910
|
-
* 雷达扇形扫描
|
|
1911
|
-
*/
|
|
1912
|
-
declare class EllipsoidElectricMaterialProperty extends BaseMaterialProperty {
|
|
1913
|
-
private speed;
|
|
1914
|
-
private color;
|
|
1915
|
-
private name;
|
|
1916
|
-
constructor(options: IEllipsoidElectricMaterialOptions);
|
|
1917
|
-
get isConstant(): boolean;
|
|
1918
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1919
|
-
getType(): string;
|
|
1920
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1921
|
-
equals(other: EllipsoidElectricMaterialProperty): boolean;
|
|
1922
|
-
init(): void;
|
|
1923
|
-
}
|
|
1924
|
-
declare const createEllipsoidElectricMaterial: (options: IEllipsoidElectricMaterialOptions) => {
|
|
1925
|
-
material: Cesium.Material;
|
|
1926
|
-
};
|
|
1927
|
-
|
|
1928
|
-
/**
|
|
1929
|
-
* 雷达扇形扫描
|
|
1930
|
-
*/
|
|
1931
|
-
declare class EllipsoidScanMaterialProperty extends BaseMaterialProperty {
|
|
1932
|
-
private speed;
|
|
1933
|
-
private color;
|
|
1934
|
-
private name;
|
|
1935
|
-
constructor(options: IEllipsoidScanMaterialOptions);
|
|
1936
|
-
get isConstant(): boolean;
|
|
1937
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1938
|
-
getType(): string;
|
|
1939
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1940
|
-
equals(other: EllipsoidScanMaterialProperty): boolean;
|
|
1941
|
-
init(): void;
|
|
1942
|
-
}
|
|
1943
|
-
declare const createEllipsoidScanMaterial: (options: IEllipsoidScanMaterialOptions) => {
|
|
1944
|
-
material: Cesium.Material;
|
|
1945
|
-
};
|
|
1946
|
-
|
|
1947
|
-
/**
|
|
1948
|
-
* 闪电迁移shadertoy
|
|
1949
|
-
* https://www.shadertoy.com/view/XXyGzh
|
|
1950
|
-
*/
|
|
1951
|
-
declare class ZapsMaterialProperty extends BaseMaterialProperty {
|
|
1952
|
-
private color;
|
|
1953
|
-
private speed;
|
|
1954
|
-
private name;
|
|
1955
|
-
constructor(options: IZapsMaterialOptions);
|
|
1956
|
-
get isConstant(): boolean;
|
|
1957
|
-
get definitionChanged(): Cesium.Event<(...args: any[]) => void>;
|
|
1958
|
-
getType(): string;
|
|
1959
|
-
getValue(time: Cesium.JulianDate, result: any): any;
|
|
1960
|
-
equals(other: ZapsMaterialProperty): any;
|
|
1961
|
-
init(): void;
|
|
1962
|
-
}
|
|
1963
|
-
declare const createZapsMaterial: (options: IZapsMaterialOptions) => {
|
|
1964
|
-
material: Cesium.Material;
|
|
1965
|
-
};
|
|
1966
1707
|
|
|
1967
1708
|
/**
|
|
1968
1709
|
* 定义标签接口
|
|
@@ -2282,7 +2023,7 @@ interface IPointPrimitivesOptions {
|
|
|
2282
2023
|
/**
|
|
2283
2024
|
* GeoJSON 数据
|
|
2284
2025
|
*/
|
|
2285
|
-
geoJson: FeatureCollection
|
|
2026
|
+
geoJson: FeatureCollection<Point>;
|
|
2286
2027
|
/**
|
|
2287
2028
|
* 是否根据地形计算点高度
|
|
2288
2029
|
*/
|
|
@@ -2330,7 +2071,7 @@ interface IRaderScanPrimitiveOptions {
|
|
|
2330
2071
|
*/
|
|
2331
2072
|
ground?: boolean;
|
|
2332
2073
|
appearanceOptions?: Cesium.MaterialAppearance;
|
|
2333
|
-
materialOptions?: IRadarScanMaterialOptions;
|
|
2074
|
+
materialOptions?: IRadarScanMaterialOptions$1;
|
|
2334
2075
|
}
|
|
2335
2076
|
interface ICircleAperturePrimitiveOptions {
|
|
2336
2077
|
/**
|
|
@@ -2346,7 +2087,7 @@ interface ICircleAperturePrimitiveOptions {
|
|
|
2346
2087
|
*/
|
|
2347
2088
|
ground?: boolean;
|
|
2348
2089
|
appearanceOptions?: Cesium.MaterialAppearance;
|
|
2349
|
-
materialOptions?: ICircleApertureMaterialOptions;
|
|
2090
|
+
materialOptions?: ICircleApertureMaterialOptions$1;
|
|
2350
2091
|
}
|
|
2351
2092
|
/**
|
|
2352
2093
|
* 定义地面多边形图元选项接口
|
|
@@ -2357,7 +2098,7 @@ interface IGroundPolygonPrimitivesOptions {
|
|
|
2357
2098
|
/**
|
|
2358
2099
|
* GeoJSON 数据
|
|
2359
2100
|
*/
|
|
2360
|
-
geoJson: FeatureCollection
|
|
2101
|
+
geoJson: FeatureCollection<Polygon | MultiPolygon, GeoJsonProperties>;
|
|
2361
2102
|
line: {
|
|
2362
2103
|
/**
|
|
2363
2104
|
* 线宽
|
|
@@ -2379,7 +2120,7 @@ interface IGroundPolylinePrimitivesOptions {
|
|
|
2379
2120
|
/**
|
|
2380
2121
|
* GeoJSON 数据
|
|
2381
2122
|
*/
|
|
2382
|
-
geoJson: FeatureCollection
|
|
2123
|
+
geoJson: FeatureCollection<LineString | MultiLineString, GeoJsonProperties>;
|
|
2383
2124
|
line: {
|
|
2384
2125
|
/**
|
|
2385
2126
|
* 线宽
|
|
@@ -2396,17 +2137,17 @@ interface IGroundPolylinePrimitivesOptions {
|
|
|
2396
2137
|
material?: Cesium.Material;
|
|
2397
2138
|
}
|
|
2398
2139
|
|
|
2399
|
-
type
|
|
2400
|
-
type
|
|
2401
|
-
type
|
|
2402
|
-
type
|
|
2403
|
-
type
|
|
2404
|
-
type
|
|
2405
|
-
type
|
|
2406
|
-
type
|
|
2407
|
-
type
|
|
2408
|
-
declare namespace types$
|
|
2409
|
-
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 };
|
|
2410
2151
|
}
|
|
2411
2152
|
|
|
2412
2153
|
declare class RadereScanPrimitive extends BasePrimitive<any> {
|
|
@@ -2431,9 +2172,9 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2431
2172
|
private clusterImageCache;
|
|
2432
2173
|
private supercluster;
|
|
2433
2174
|
constructor(options: IPointPrimitivesOptions);
|
|
2434
|
-
initCollection: (geojson: FeatureCollection
|
|
2435
|
-
clacBoundingSphere(geoJson: FeatureCollection
|
|
2436
|
-
createPoint(feature: Feature
|
|
2175
|
+
initCollection: (geojson: FeatureCollection<Point, GeoJsonProperties>) => Promise<void>;
|
|
2176
|
+
clacBoundingSphere(geoJson: FeatureCollection<Point, GeoJsonProperties>): void;
|
|
2177
|
+
createPoint(feature: Feature<Point, GeoJsonProperties>): {
|
|
2437
2178
|
id: string;
|
|
2438
2179
|
position: Cesium.Cartesian3;
|
|
2439
2180
|
color: Cesium.Color;
|
|
@@ -2445,7 +2186,7 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2445
2186
|
disableDepthTestDistance: any;
|
|
2446
2187
|
distanceDisplayCondition: any;
|
|
2447
2188
|
};
|
|
2448
|
-
createBillboard(feature: Feature
|
|
2189
|
+
createBillboard(feature: Feature<Point, GeoJsonProperties>): {
|
|
2449
2190
|
id: string;
|
|
2450
2191
|
position: Cesium.Cartesian3;
|
|
2451
2192
|
image: any;
|
|
@@ -2462,7 +2203,7 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2462
2203
|
disableDepthTestDistance: any;
|
|
2463
2204
|
distanceDisplayCondition: any;
|
|
2464
2205
|
};
|
|
2465
|
-
createLabel(feature: Feature
|
|
2206
|
+
createLabel(feature: Feature<Point, GeoJsonProperties>): {
|
|
2466
2207
|
id: string;
|
|
2467
2208
|
position: Cesium.Cartesian3;
|
|
2468
2209
|
text: any;
|
|
@@ -2484,7 +2225,7 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2484
2225
|
disableDepthTestDistance: any;
|
|
2485
2226
|
distanceDisplayCondition: any;
|
|
2486
2227
|
};
|
|
2487
|
-
initCluster: (viewer: Cesium.Viewer, geoJson: FeatureCollection
|
|
2228
|
+
initCluster: (viewer: Cesium.Viewer, geoJson: FeatureCollection<Point>) => Promise<void>;
|
|
2488
2229
|
/**
|
|
2489
2230
|
* 缩放至聚合点子集
|
|
2490
2231
|
*/
|
|
@@ -2492,7 +2233,7 @@ declare class PointPrimitives extends BasePrimitive<any> {
|
|
|
2492
2233
|
loadCluster: (viewer: Cesium.Viewer) => void;
|
|
2493
2234
|
getClusterImageByCount(color: string, count: number, zoom: number): any;
|
|
2494
2235
|
calcfontSize(zoom: number): number;
|
|
2495
|
-
calcPointHeight(viewer: Cesium.Viewer, geoJson: FeatureCollection
|
|
2236
|
+
calcPointHeight(viewer: Cesium.Viewer, geoJson: FeatureCollection<Point>): Promise<void>;
|
|
2496
2237
|
clearCollection(): void;
|
|
2497
2238
|
remove(): void;
|
|
2498
2239
|
removeAll(): void;
|
|
@@ -2692,7 +2433,7 @@ type types_IProFile<T> = IProFile<T>;
|
|
|
2692
2433
|
type types_IProFileItem = IProFileItem;
|
|
2693
2434
|
type types_IProFileItemData = IProFileItemData;
|
|
2694
2435
|
type types_IProFileOptions = IProFileOptions;
|
|
2695
|
-
declare namespace types {
|
|
2436
|
+
declare namespace types$1 {
|
|
2696
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 };
|
|
2697
2438
|
}
|
|
2698
2439
|
|
|
@@ -2730,5 +2471,341 @@ declare const createProfileAnalysis: (viewer: Cesium.Viewer) => IProFile<IProFil
|
|
|
2730
2471
|
*/
|
|
2731
2472
|
declare const createModelProfileAnalysis: (viewer: Viewer) => IProFile<IModelProFileOptions>;
|
|
2732
2473
|
|
|
2733
|
-
|
|
2734
|
-
|
|
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 {
|
|
2582
|
+
}
|
|
2583
|
+
/**
|
|
2584
|
+
* 闪电材质,
|
|
2585
|
+
* https://www.shadertoy.com/view/XXyGzh
|
|
2586
|
+
*/
|
|
2587
|
+
interface IZapsMaterialOptions {
|
|
2588
|
+
color?: string;
|
|
2589
|
+
speed: number;
|
|
2590
|
+
}
|
|
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 };
|
|
2606
|
+
}
|
|
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;
|
|
2624
|
+
}
|
|
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;
|
|
2647
|
+
}
|
|
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;
|
|
2666
|
+
}
|
|
2667
|
+
declare const createCircleWaveMaterial: (options?: ICircleWaveMaterialOptions) => {
|
|
2668
|
+
material: Cesium.Material;
|
|
2669
|
+
};
|
|
2670
|
+
|
|
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;
|
|
2685
|
+
}
|
|
2686
|
+
declare const createRaderWaveMaterial: (options: ICircleRaderWaveMaterialOptions) => {
|
|
2687
|
+
material: Cesium.Material;
|
|
2688
|
+
};
|
|
2689
|
+
|
|
2690
|
+
/**
|
|
2691
|
+
* 雷达扇形扫描
|
|
2692
|
+
*/
|
|
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
|
+
};
|
|
2708
|
+
|
|
2709
|
+
/**
|
|
2710
|
+
* 波浪圆
|
|
2711
|
+
*/
|
|
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;
|
|
2727
|
+
|
|
2728
|
+
/**
|
|
2729
|
+
* 光墙材质
|
|
2730
|
+
*/
|
|
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
|
+
};
|
|
2751
|
+
|
|
2752
|
+
/**
|
|
2753
|
+
* 雷达扇形扫描
|
|
2754
|
+
*/
|
|
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
|
+
};
|
|
2770
|
+
|
|
2771
|
+
/**
|
|
2772
|
+
* 雷达扇形扫描
|
|
2773
|
+
*/
|
|
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
|
+
};
|
|
2789
|
+
|
|
2790
|
+
/**
|
|
2791
|
+
* 闪电迁移shadertoy
|
|
2792
|
+
* https://www.shadertoy.com/view/XXyGzh
|
|
2793
|
+
*/
|
|
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
|
+
};
|
|
2809
|
+
|
|
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 };
|