earthsdk3-cesium 3.7.0-beta.17 → 3.7.0-beta.19
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/assets/vectorTilesWorker-CZBAZO7x.js +1 -0
- package/dist/earthsdk3-cesium.iife.js +107 -107
- package/dist/earthsdk3-cesium.js +7231 -7211
- package/dist/earthsdk3-cesium.umd.cjs +106 -106
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/WorkerPool.d.ts +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/type.d.ts +18 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ export declare class WorkerPool extends Destroyable {
|
|
|
3
3
|
private workers;
|
|
4
4
|
private queue;
|
|
5
5
|
private destroyed;
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(createWorker: () => Worker, workerCount?: number);
|
|
7
7
|
/**
|
|
8
8
|
* 获取空闲 worker,如果都被占用,则等待
|
|
9
9
|
*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type mapboxLineStyle = Partial<{
|
|
2
|
+
"cap": "butt" | "round" | "square";
|
|
3
|
+
"color": string;
|
|
4
|
+
"join": "bevel" | "round" | "miter" | "none";
|
|
5
|
+
"occlusionOpacity": number;
|
|
6
|
+
"pattern": string;
|
|
7
|
+
"sortKey": number;
|
|
8
|
+
"width": number;
|
|
9
|
+
"visibility": string;
|
|
10
|
+
}>;
|
|
11
|
+
export type mapboxFillStyle = Partial<{
|
|
12
|
+
"color": string;
|
|
13
|
+
"outlineColor": string;
|
|
14
|
+
"pattern": string;
|
|
15
|
+
"sortKey": number;
|
|
16
|
+
"zOffset": number;
|
|
17
|
+
"visibility": string;
|
|
18
|
+
}>;
|
|
@@ -3,3 +3,4 @@ export declare function getMapboxTextField(textField: any, zoom: number): string
|
|
|
3
3
|
export declare function tileDataToGeoJSON(tileData: Record<string, any>): Map<string, Set<any>>;
|
|
4
4
|
export declare function interpolateTextAlongPath(viewer: Cesium.Viewer, positions: Cesium.Cartesian3[], text: string, font: string): Map<Cesium.Cartesian3, Cesium.Cartesian3[]>;
|
|
5
5
|
export declare function wrapByPixel(text: any, maxWidth: any, font: any): string;
|
|
6
|
+
export declare function hexToRgba(hex: string, opacity?: number): [r: number, g: number, b: number, a: number] | null;
|