@vesium/shared 1.0.1-beta.44 → 1.0.1-beta.54
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 +1 -8
- package/dist/index.cjs +33851 -306
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +367 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +367 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.iife.js +33953 -407
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +2 -2
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.min.cjs +39 -2
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.mjs +2 -2
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +33851 -343
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/dist/index.d.ts +0 -410
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { Cartesian2, Cartesian3, Cartographic, CustomDataSource, CzmlDataSource, DataSource, Event, GeoJsonDataSource, GpxDataSource, JulianDate, KmlDataSource, Material, MaterialProperty, Property, Scene, TextureMagnificationFilter, TextureMinificationFilter } from "cesium";
|
|
2
|
+
import { Position } from "geojson";
|
|
3
|
+
|
|
4
|
+
//#region src/arrayDiff.d.ts
|
|
5
|
+
interface ArrayDiffRetrun<T> {
|
|
6
|
+
added: T[];
|
|
7
|
+
removed: T[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 计算两个数组的差异,返回新增和删除的元素
|
|
11
|
+
*/
|
|
12
|
+
declare function arrayDiff<T>(list: T[], oldList: T[] | undefined): ArrayDiffRetrun<T>;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/canvasCoordToCartesian.d.ts
|
|
15
|
+
/**
|
|
16
|
+
* Convert canvas coordinates to Cartesian coordinates
|
|
17
|
+
*
|
|
18
|
+
* @param canvasCoord Canvas coordinates
|
|
19
|
+
* @param scene Cesium.Scene instance
|
|
20
|
+
* @param mode optional values are 'pickPosition' | 'globePick' | 'auto' | 'noHeight' @default 'auto'
|
|
21
|
+
*
|
|
22
|
+
* `pickPosition`: Use scene.pickPosition for conversion, which can be used for picking models, oblique photography, etc.
|
|
23
|
+
* However, if depth detection is not enabled (globe.depthTestAgainstTerrain=false), picking terrain or inaccurate issues may occur
|
|
24
|
+
*
|
|
25
|
+
* `globePick`: Use camera.getPickRay for conversion, which cannot be used for picking models or oblique photography,
|
|
26
|
+
* but can be used for picking terrain. If terrain does not exist, the picked elevation is 0
|
|
27
|
+
*
|
|
28
|
+
* `auto`: Automatically determine which picking content to return
|
|
29
|
+
*
|
|
30
|
+
* Calculation speed comparison: globePick > auto >= pickPosition
|
|
31
|
+
*/
|
|
32
|
+
declare function canvasCoordToCartesian(canvasCoord: Cartesian2, scene: Scene, mode?: 'pickPosition' | 'globePick' | 'auto'): Cartesian3 | undefined;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/cartesianToCanvasCoord.d.ts
|
|
35
|
+
/**
|
|
36
|
+
* Convert Cartesian coordinates to canvas coordinates
|
|
37
|
+
*
|
|
38
|
+
* @param position Cartesian coordinates
|
|
39
|
+
* @param scene Cesium.Scene instance
|
|
40
|
+
*/
|
|
41
|
+
declare function cartesianToCanvasCoord(position: Cartesian3, scene: Scene): Cartesian2;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/cesiumEquals.d.ts
|
|
44
|
+
/**
|
|
45
|
+
* Determines if two Cesium objects are equal.
|
|
46
|
+
*
|
|
47
|
+
* This function not only judges whether the instances are equal,
|
|
48
|
+
* but also judges the equals method in the example.
|
|
49
|
+
*
|
|
50
|
+
* @param left The first Cesium object
|
|
51
|
+
* @param right The second Cesium object
|
|
52
|
+
* @returns Returns true if the two Cesium objects are equal, otherwise false
|
|
53
|
+
*/
|
|
54
|
+
declare function cesiumEquals(left: any, right: any): boolean;
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/types.d.ts
|
|
57
|
+
type Nullable<T> = T | null | undefined;
|
|
58
|
+
type BasicType = number | string | boolean | symbol | bigint | null | undefined;
|
|
59
|
+
type ArgsFn<Args extends any[] = any[], Return = void> = (...args: Args) => Return;
|
|
60
|
+
type AnyFn = (...args: any[]) => any;
|
|
61
|
+
type MaybePromise<T = any> = T | (() => T) | Promise<T> | (() => Promise<T>);
|
|
62
|
+
/**
|
|
63
|
+
* 2D Coordinate System
|
|
64
|
+
*/
|
|
65
|
+
type CoordArray = Position;
|
|
66
|
+
/**
|
|
67
|
+
* 3D Coordinate System
|
|
68
|
+
*/
|
|
69
|
+
type CoordArray_ALT = [longitude: number, latitude: number, height?: number];
|
|
70
|
+
/**
|
|
71
|
+
* 2D Coordinate System
|
|
72
|
+
*/
|
|
73
|
+
interface CoordObject {
|
|
74
|
+
longitude: number;
|
|
75
|
+
latitude: number;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* 3D Coordinate System
|
|
79
|
+
*/
|
|
80
|
+
interface CoordObject_ALT {
|
|
81
|
+
longitude: number;
|
|
82
|
+
latitude: number;
|
|
83
|
+
height?: number | undefined;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Common Coordinate
|
|
87
|
+
* Can be a Cartesian3 point, a Cartographic point, an array, or an object containing longitude, latitude, and optional height information
|
|
88
|
+
*/
|
|
89
|
+
type CommonCoord = Cartesian3 | Cartographic | CoordArray | CoordArray_ALT | CoordObject | CoordObject_ALT;
|
|
90
|
+
/**
|
|
91
|
+
* Common DataSource
|
|
92
|
+
*/
|
|
93
|
+
type CesiumDataSource = DataSource | CustomDataSource | CzmlDataSource | GeoJsonDataSource | GpxDataSource | KmlDataSource;
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/convertDMS.d.ts
|
|
96
|
+
type DMSCoord = [longitude: string, latitude: string, height?: number];
|
|
97
|
+
/**
|
|
98
|
+
* Convert degrees to DMS (Degrees Minutes Seconds) format string
|
|
99
|
+
*
|
|
100
|
+
* @param degrees The angle value
|
|
101
|
+
* @param precision The number of decimal places to retain for the seconds, defaults to 3
|
|
102
|
+
* @returns A DMS formatted string in the format: degrees° minutes′ seconds″
|
|
103
|
+
*/
|
|
104
|
+
declare function dmsEncode(degrees: number, precision?: number): string;
|
|
105
|
+
/**
|
|
106
|
+
* Decode a DMS (Degrees Minutes Seconds) formatted string to a decimal angle value
|
|
107
|
+
*
|
|
108
|
+
* @param dmsCode DMS formatted string, e.g. "120°30′45″N"
|
|
109
|
+
* @returns The decoded decimal angle value, or 0 if decoding fails
|
|
110
|
+
*/
|
|
111
|
+
declare function dmsDecode(dmsCode: string): number;
|
|
112
|
+
/**
|
|
113
|
+
* Convert latitude and longitude coordinates to degrees-minutes-seconds format
|
|
114
|
+
*
|
|
115
|
+
* @param position The latitude and longitude coordinates
|
|
116
|
+
* @param precision The number of decimal places to retain for 'seconds', default is 3
|
|
117
|
+
* @returns Returns the coordinates in degrees-minutes-seconds format, or undefined if the conversion fails
|
|
118
|
+
*/
|
|
119
|
+
declare function degreesToDms(position: CommonCoord, precision?: number): DMSCoord | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* Convert DMS (Degrees Minutes Seconds) format to decimal degrees for latitude and longitude coordinates
|
|
122
|
+
*
|
|
123
|
+
* @param dms The latitude or longitude coordinate in DMS format
|
|
124
|
+
* @returns Returns the coordinate in decimal degrees format, or undefined if the conversion fails
|
|
125
|
+
*/
|
|
126
|
+
declare function dmsToDegrees(dms: DMSCoord): CoordArray_ALT | undefined;
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/is.d.ts
|
|
129
|
+
declare function isDef<T = any>(val?: T): val is T;
|
|
130
|
+
declare function isBoolean(val: any): val is boolean;
|
|
131
|
+
declare function isFunction<T extends AnyFn>(val: any): val is T;
|
|
132
|
+
declare function isNumber(val: any): val is number;
|
|
133
|
+
declare function isString(val: unknown): val is string;
|
|
134
|
+
declare function isObject(val: any): val is object;
|
|
135
|
+
declare function isWindow(val: any): val is Window;
|
|
136
|
+
declare function isPromise<T extends Promise<any>>(val: any): val is T;
|
|
137
|
+
declare function isElement<T extends Element>(val: any): val is T;
|
|
138
|
+
declare const isArray: (arg: any) => arg is any[];
|
|
139
|
+
declare function isBase64(val: string): boolean;
|
|
140
|
+
declare function assertError(condition: boolean, error: any): void;
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/property.d.ts
|
|
143
|
+
type MaybeProperty<T = any> = T | {
|
|
144
|
+
getValue: (time?: JulianDate) => T;
|
|
145
|
+
};
|
|
146
|
+
type MaybePropertyOrGetter<T = any> = MaybeProperty<T> | (() => T);
|
|
147
|
+
/**
|
|
148
|
+
* Is Cesium.Property
|
|
149
|
+
* @param value - The target object
|
|
150
|
+
*/
|
|
151
|
+
declare function isProperty(value: any): value is Property;
|
|
152
|
+
/**
|
|
153
|
+
* Converts a value that may be a Property into its target value, @see {toProperty} for the reverse operation
|
|
154
|
+
* ```typescript
|
|
155
|
+
* toPropertyValue('val') //=> 'val'
|
|
156
|
+
* toPropertyValue(new ConstantProperty('val')) //=> 'val'
|
|
157
|
+
* toPropertyValue(new CallbackProperty(()=>'val')) //=> 'val'
|
|
158
|
+
* ```
|
|
159
|
+
*
|
|
160
|
+
* @param value - The value to convert
|
|
161
|
+
*/
|
|
162
|
+
declare function toPropertyValue<T = unknown>(value: MaybeProperty<T>, time?: JulianDate): T;
|
|
163
|
+
type PropertyCallback<T = any> = (time: JulianDate, result?: T) => T;
|
|
164
|
+
/**
|
|
165
|
+
* Converts a value that may be a Property into a Property object, @see {toPropertyValue} for the reverse operation
|
|
166
|
+
*
|
|
167
|
+
* @param value - The property value or getter to convert, can be undefined or null
|
|
168
|
+
* @param isConstant - The second parameter for converting to CallbackProperty
|
|
169
|
+
* @returns Returns the converted Property object, if value is undefined or null, returns undefined
|
|
170
|
+
*/
|
|
171
|
+
declare function toProperty<T>(value?: MaybePropertyOrGetter<T>, isConstant?: boolean): Property;
|
|
172
|
+
/**
|
|
173
|
+
* Create a Cesium property key
|
|
174
|
+
*
|
|
175
|
+
* @param scope The host object
|
|
176
|
+
* @param field The property name
|
|
177
|
+
* @param maybeProperty Optional property or getter
|
|
178
|
+
* @param readonly Whether the property is read-only
|
|
179
|
+
*/
|
|
180
|
+
declare function createPropertyField<T>(scope: any, field: string, maybeProperty?: MaybePropertyOrGetter<T>, readonly?: boolean): void;
|
|
181
|
+
interface CreateCesiumAttributeOptions {
|
|
182
|
+
readonly?: boolean;
|
|
183
|
+
toProperty?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* The event name that triggers the change
|
|
186
|
+
* @default 'definitionChanged'
|
|
187
|
+
*/
|
|
188
|
+
changedEventKey?: string;
|
|
189
|
+
shallowClone?: boolean;
|
|
190
|
+
}
|
|
191
|
+
declare function createCesiumAttribute<Scope extends object>(scope: Scope, key: keyof Scope, value: any, options?: CreateCesiumAttributeOptions): void;
|
|
192
|
+
interface CreateCesiumPropertyOptions {
|
|
193
|
+
readonly?: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* The event name that triggers the change
|
|
196
|
+
* @default 'definitionChanged'
|
|
197
|
+
*/
|
|
198
|
+
changedEventKey?: string;
|
|
199
|
+
}
|
|
200
|
+
declare function createCesiumProperty<Scope extends object>(scope: Scope, key: keyof Scope, value: any, options?: CreateCesiumPropertyOptions): void;
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/isCesiumConstant.d.ts
|
|
203
|
+
/**
|
|
204
|
+
* Determines if the Cesium property is a constant.
|
|
205
|
+
*
|
|
206
|
+
* @param value Cesium property
|
|
207
|
+
*/
|
|
208
|
+
declare function isCesiumConstant(value: MaybeProperty): boolean;
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region src/material.d.ts
|
|
211
|
+
/**
|
|
212
|
+
* Cesium.Material.fabric parameters
|
|
213
|
+
*/
|
|
214
|
+
interface CesiumMaterialFabricOptions<U> {
|
|
215
|
+
/**
|
|
216
|
+
* Used to declare what material the fabric object will ultimately generate. If it's an official built-in one, use the official built-in one directly; otherwise, create a custom material and cache it.
|
|
217
|
+
*/
|
|
218
|
+
type: string;
|
|
219
|
+
/**
|
|
220
|
+
* Can nest another level of child fabric to form a composite material
|
|
221
|
+
*/
|
|
222
|
+
materials?: Material;
|
|
223
|
+
/**
|
|
224
|
+
* glsl code
|
|
225
|
+
*/
|
|
226
|
+
source?: string;
|
|
227
|
+
components?: {
|
|
228
|
+
diffuse?: string;
|
|
229
|
+
alpha?: string;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Pass variables to glsl code
|
|
233
|
+
*/
|
|
234
|
+
uniforms?: U & Record<string, any>;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Cesium.Material parameters
|
|
238
|
+
*/
|
|
239
|
+
interface CesiumMaterialConstructorOptions<U> {
|
|
240
|
+
/**
|
|
241
|
+
* Strict mode
|
|
242
|
+
*/
|
|
243
|
+
strict?: boolean;
|
|
244
|
+
/**
|
|
245
|
+
* translucent
|
|
246
|
+
*/
|
|
247
|
+
translucent?: boolean | ((...params: any[]) => any);
|
|
248
|
+
/**
|
|
249
|
+
* Minification filter
|
|
250
|
+
*/
|
|
251
|
+
minificationFilter?: TextureMinificationFilter;
|
|
252
|
+
/**
|
|
253
|
+
* Magnification filter
|
|
254
|
+
*/
|
|
255
|
+
magnificationFilter?: TextureMagnificationFilter;
|
|
256
|
+
/**
|
|
257
|
+
* Matrix configuration
|
|
258
|
+
*/
|
|
259
|
+
fabric: CesiumMaterialFabricOptions<U>;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Only as a type fix for `Cesium.Material`
|
|
263
|
+
*/
|
|
264
|
+
declare class CesiumMaterial<U> extends Material {
|
|
265
|
+
constructor(options: CesiumMaterialConstructorOptions<U>);
|
|
266
|
+
/**
|
|
267
|
+
* Matrix configuration
|
|
268
|
+
*/
|
|
269
|
+
fabric: CesiumMaterialFabricOptions<U>;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Only as a type fix for `Cesium.MaterialProperty`
|
|
273
|
+
*/
|
|
274
|
+
interface CesiumMaterialProperty<V> extends MaterialProperty {
|
|
275
|
+
get isConstant(): boolean;
|
|
276
|
+
get definitionChanged(): Event<(scope: this, field: string, value: any, previous: any) => void>;
|
|
277
|
+
getType: (time: JulianDate) => string;
|
|
278
|
+
getValue: (time: JulianDate, result?: V) => V;
|
|
279
|
+
equals: (other?: any) => boolean;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Get material from cache, alias of `Material._materialCache.getMaterial`
|
|
283
|
+
*/
|
|
284
|
+
declare function getMaterialCache<T extends Material = CesiumMaterial<any>>(type: string): T | undefined;
|
|
285
|
+
/**
|
|
286
|
+
* Add material to Cesium's material cache, alias of `Material._materialCache.addMaterial`
|
|
287
|
+
*/
|
|
288
|
+
declare function addMaterialCache(type: string, material: CesiumMaterialConstructorOptions<any>): void;
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region src/pick.d.ts
|
|
291
|
+
/**
|
|
292
|
+
* Analyze the result of Cesium's `scene.pick` and convert it to an array format
|
|
293
|
+
*/
|
|
294
|
+
declare function resolvePick(pick?: any): any[];
|
|
295
|
+
/**
|
|
296
|
+
* Determine if the given array of graphics is hit by Cesium's `scene.pick`
|
|
297
|
+
*
|
|
298
|
+
* @param pick The `scene.pick` object used for matching
|
|
299
|
+
* @param graphic An array of graphics to check for hits
|
|
300
|
+
*/
|
|
301
|
+
declare function pickHitGraphic(pick: any, graphic: any | any[]): boolean;
|
|
302
|
+
//#endregion
|
|
303
|
+
//#region src/throttle.d.ts
|
|
304
|
+
type ThrottleCallback<T extends any[]> = (...rest: T) => void;
|
|
305
|
+
/**
|
|
306
|
+
* Throttle function, which limits the frequency of execution of the function
|
|
307
|
+
*
|
|
308
|
+
* @param callback raw function
|
|
309
|
+
* @param delay Throttled delay duration (ms)
|
|
310
|
+
* @param trailing Trigger callback function after last call @default true
|
|
311
|
+
* @param leading Trigger the callback function immediately on the first call @default false
|
|
312
|
+
* @returns Throttle function
|
|
313
|
+
*/
|
|
314
|
+
declare function throttle<T extends any[]>(callback: ThrottleCallback<T>, delay?: number, trailing?: boolean, leading?: boolean): ThrottleCallback<T>;
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region src/toCartesian3.d.ts
|
|
317
|
+
/**
|
|
318
|
+
* Converts position to a coordinate point in the Cartesian coordinate system
|
|
319
|
+
*
|
|
320
|
+
* @param position Position information, which can be a Cartesian coordinate point (Cartesian3), a geographic coordinate point (Cartographic), an array, or an object containing WGS84 latitude, longitude, and height information
|
|
321
|
+
* @returns The converted Cartesian coordinate point. If the input parameter is invalid, undefined is returned
|
|
322
|
+
*/
|
|
323
|
+
declare function toCartesian3(position?: CommonCoord): Cartesian3 | undefined;
|
|
324
|
+
//#endregion
|
|
325
|
+
//#region src/toCartographic.d.ts
|
|
326
|
+
/**
|
|
327
|
+
* Converts a position to a Cartographic coordinate point
|
|
328
|
+
*
|
|
329
|
+
* @param position Position information, which can be a Cartesian3 coordinate point, a Cartographic coordinate point, an array, or an object containing WGS84 longitude, latitude, and height information
|
|
330
|
+
* @returns The converted Cartographic coordinate point, or undefined if the input parameter is invalid
|
|
331
|
+
*/
|
|
332
|
+
declare function toCartographic(position?: CommonCoord): Cartographic | undefined;
|
|
333
|
+
//#endregion
|
|
334
|
+
//#region src/toCoord.d.ts
|
|
335
|
+
interface ToCoordOptions<T extends 'Array' | 'Object', Alt extends boolean> {
|
|
336
|
+
/**
|
|
337
|
+
* Return type
|
|
338
|
+
* @default 'Array'
|
|
339
|
+
*/
|
|
340
|
+
type?: T;
|
|
341
|
+
/**
|
|
342
|
+
* Whether to return altitude information
|
|
343
|
+
*/
|
|
344
|
+
alt?: Alt;
|
|
345
|
+
}
|
|
346
|
+
type ToCoordReturn<T extends 'Array' | 'Object', Alt extends boolean> = T extends 'Array' ? Alt extends true ? CoordArray_ALT : CoordArray : Alt extends true ? CoordObject_ALT : CoordObject;
|
|
347
|
+
/**
|
|
348
|
+
* Converts coordinates to an array or object in the specified format.
|
|
349
|
+
*
|
|
350
|
+
* @param position The coordinate to be converted, which can be a Cartesian3, Cartographic, array, or object.
|
|
351
|
+
* @param options Conversion options, including conversion type and whether to include altitude information.
|
|
352
|
+
* @returns The converted coordinate, which may be an array or object. If the input position is empty, undefined is returned.
|
|
353
|
+
*
|
|
354
|
+
* @template T Conversion type, optional values are 'Array' or 'Object', @default 'Array'.
|
|
355
|
+
* @template Alt Whether to include altitude information, default is false
|
|
356
|
+
*/
|
|
357
|
+
declare function toCoord<T extends 'Array' | 'Object' = 'Array', Alt extends boolean = false>(position?: CommonCoord, options?: ToCoordOptions<T, Alt>): ToCoordReturn<T, Alt> | undefined;
|
|
358
|
+
//#endregion
|
|
359
|
+
//#region src/tryRun.d.ts
|
|
360
|
+
/**
|
|
361
|
+
* Safely execute the provided function without throwing errors,
|
|
362
|
+
* essentially a simple wrapper around a `try...catch...` block
|
|
363
|
+
*/
|
|
364
|
+
declare function tryRun<T extends AnyFn>(fn: T): T;
|
|
365
|
+
//#endregion
|
|
366
|
+
export { AnyFn, ArgsFn, ArrayDiffRetrun, BasicType, CesiumDataSource, CesiumMaterial, CesiumMaterialConstructorOptions, CesiumMaterialFabricOptions, CesiumMaterialProperty, CommonCoord, CoordArray, CoordArray_ALT, CoordObject, CoordObject_ALT, CreateCesiumAttributeOptions, CreateCesiumPropertyOptions, DMSCoord, MaybePromise, MaybeProperty, MaybePropertyOrGetter, Nullable, PropertyCallback, ThrottleCallback, ToCoordReturn, addMaterialCache, arrayDiff, assertError, canvasCoordToCartesian, cartesianToCanvasCoord, cesiumEquals, createCesiumAttribute, createCesiumProperty, createPropertyField, degreesToDms, dmsDecode, dmsEncode, dmsToDegrees, getMaterialCache, isArray, isBase64, isBoolean, isCesiumConstant, isDef, isElement, isFunction, isNumber, isObject, isPromise, isProperty, isString, isWindow, pickHitGraphic, resolvePick, throttle, toCartesian3, toCartographic, toCoord, toProperty, toPropertyValue, tryRun };
|
|
367
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/arrayDiff.ts","../src/canvasCoordToCartesian.ts","../src/cartesianToCanvasCoord.ts","../src/cesiumEquals.ts","../src/types.ts","../src/convertDMS.ts","../src/is.ts","../src/property.ts","../src/isCesiumConstant.ts","../src/material.ts","../src/pick.ts","../src/throttle.ts","../src/toCartesian3.ts","../src/toCartographic.ts","../src/toCoord.ts","../src/tryRun.ts"],"sourcesContent":[],"mappings":";;;;UAAiB;SACR;WACE;;AAFX;;;AAEW,iBAMK,SANL,CAAA,CAAA,CAAA,CAAA,IAAA,EAOH,CAPG,EAAA,EAAA,OAAA,EAQA,CARA,EAAA,GAAA,SAAA,CAAA,EASR,eATQ,CASQ,CATR,CAAA;;;;;;AAFX;;;;;AAQA;;;;;;;;;iBCYgB,sBAAA,cACD,mBACN,sDAEN;;;;;;ADxBH;;;AAEW,iBEMK,sBAAA,CFNL,QAAA,EEMsC,UFNtC,EAAA,KAAA,EEMyD,KFNzD,CAAA,EEMiE,UFNjE;;;;;;;AAFX;;;;;AAQA;AAAyB,iBGIT,YAAA,CHJS,IAAA,EAAA,GAAA,EAAA,KAAA,EAAA,GAAA,CAAA,EAAA,OAAA;;;KILb,cAAc;KAEd,SAAA;AJLK,KIOL,MJPK,CAAA,aAAe,GAAA,EAAA,GAAA,GAAA,EAAA,EAAA,SAAA,IAAA,CAAA,GAAA,CAAA,GAAA,IAAA,EIO0C,IJP1C,EAAA,GIOmD,MJPnD;AAAA,KISpB,KAAA,GJToB,CAAA,GAAA,IAAA,EAAA,GAAA,EAAA,EAAA,GAAA,GAAA;AACvB,KIUG,YJVH,CAAA,IAAA,GAAA,CAAA,GIU2B,CJV3B,GAAA,CAAA,GAAA,GIUsC,CJVtC,CAAA,GIU2C,OJV3C,CIUmD,CJVnD,CAAA,GAAA,CAAA,GAAA,GIU+D,OJV/D,CIUuE,CJVvE,CAAA,CAAA;;;AAOT;AAAy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