@juun-roh/cesium-utils 0.4.3 → 0.4.4
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/collection/index.js +1 -1
- package/dist/highlight/index.js +1 -1
- package/dist/index.d.cts +1312 -6
- package/dist/index.d.ts +1312 -6
- package/dist/index.js +1 -1
- package/dist/terrain/dev/index.js +1 -1
- package/dist/terrain/index.js +1 -1
- package/dist/viewer/index.js +1 -1
- package/package.json +81 -41
- package/dist/chunk-6I6OKECI.js +0 -0
- package/dist/chunk-PSCNWZUR.js +0 -1
- package/dist/chunk-WTOAUTEK.js +0 -1
- package/dist/chunk-XHMLNB5Q.js +0 -1
- package/dist/chunk-Z2COOTT4.js +0 -1
- package/dist/collection/index.d.cts +0 -553
- package/dist/collection/index.d.ts +0 -553
- package/dist/dev/index.d.cts +0 -98
- package/dist/dev/index.d.ts +0 -98
- package/dist/experimental/index.d.cts +0 -105
- package/dist/experimental/index.d.ts +0 -105
- package/dist/highlight/index.d.cts +0 -245
- package/dist/highlight/index.d.ts +0 -245
- package/dist/hybrid-terrain-provider-Th8n2hZ1.d.cts +0 -180
- package/dist/hybrid-terrain-provider-Th8n2hZ1.d.ts +0 -180
- package/dist/terrain/dev/index.d.cts +0 -125
- package/dist/terrain/dev/index.d.ts +0 -125
- package/dist/terrain/index.d.cts +0 -8
- package/dist/terrain/index.d.ts +0 -8
- package/dist/viewer/index.d.cts +0 -19
- package/dist/viewer/index.d.ts +0 -19
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { Viewer, Color, Rectangle } from 'cesium';
|
|
2
|
-
import { H as HybridTerrainProvider } from '../../hybrid-terrain-provider-Th8n2hZ1.cjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @class
|
|
6
|
-
* Utility class for visualizing terrain provider boundaries and debugging terrain loading.
|
|
7
|
-
*/
|
|
8
|
-
declare class TerrainVisualizer {
|
|
9
|
-
private _viewer;
|
|
10
|
-
private _terrainProvider;
|
|
11
|
-
private _visible;
|
|
12
|
-
private _tileCoordinatesLayer;
|
|
13
|
-
private _hybridImageryLayer;
|
|
14
|
-
private _colors;
|
|
15
|
-
/**
|
|
16
|
-
* Creates a new `TerrainVisualizer`.
|
|
17
|
-
* @param viewer The Cesium viewer instance
|
|
18
|
-
* @param options {@link TerrainVisualizer.ConstructorOptions}
|
|
19
|
-
*/
|
|
20
|
-
constructor(viewer: Viewer, options: TerrainVisualizer.ConstructorOptions);
|
|
21
|
-
/**
|
|
22
|
-
* Sets the terrain provider to visualize.
|
|
23
|
-
* @param terrainProvider The terrain provider to visualize.
|
|
24
|
-
*/
|
|
25
|
-
setTerrainProvider(terrainProvider: HybridTerrainProvider): void;
|
|
26
|
-
/**
|
|
27
|
-
* Updates all active visualizations.
|
|
28
|
-
*/
|
|
29
|
-
update(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Clears all visualizations.
|
|
32
|
-
*/
|
|
33
|
-
clear(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Shows terrain visualization using HybridImageryProvider.
|
|
36
|
-
* Optionally adds tile coordinate grid overlay.
|
|
37
|
-
* @param options Visualization options
|
|
38
|
-
*/
|
|
39
|
-
show(options?: {
|
|
40
|
-
/** Show tile coordinate labels. Default: true */
|
|
41
|
-
showTileCoordinates?: boolean;
|
|
42
|
-
/** Transparency level (0-1). Default: 0.5 */
|
|
43
|
-
alpha?: number;
|
|
44
|
-
}): void;
|
|
45
|
-
private _ensureTileCoordinatesLayer;
|
|
46
|
-
/**
|
|
47
|
-
* Hides the terrain visualization.
|
|
48
|
-
*/
|
|
49
|
-
hide(): void;
|
|
50
|
-
/**
|
|
51
|
-
* Sets the colors used for visualization.
|
|
52
|
-
* @param colors Map of role names to colors
|
|
53
|
-
*/
|
|
54
|
-
setColors(colors: Record<string, Color>): void;
|
|
55
|
-
/**
|
|
56
|
-
* Shows terrain regions using HybridImageryProvider (performant, global coverage).
|
|
57
|
-
* This replaces the entity-based approach with an imagery layer.
|
|
58
|
-
* @param alpha Transparency level (0-1), default 0.5
|
|
59
|
-
*/
|
|
60
|
-
showImageryOverlay(alpha?: number): void;
|
|
61
|
-
/**
|
|
62
|
-
* Hides the imagery overlay.
|
|
63
|
-
*/
|
|
64
|
-
hideImageryOverlay(): void;
|
|
65
|
-
/**
|
|
66
|
-
* Shows tile coordinate grid overlay.
|
|
67
|
-
*/
|
|
68
|
-
showTileCoordinates(): void;
|
|
69
|
-
/**
|
|
70
|
-
* Hides tile coordinate grid overlay.
|
|
71
|
-
*/
|
|
72
|
-
hideTileCoordinates(): void;
|
|
73
|
-
/**
|
|
74
|
-
* Sets the transparency of the imagery overlay.
|
|
75
|
-
* @param alpha Transparency level (0-1), where 0 is fully transparent and 1 is fully opaque
|
|
76
|
-
*/
|
|
77
|
-
setAlpha(alpha: number): void;
|
|
78
|
-
/**
|
|
79
|
-
* Flies the camera to focus on a rectangle.
|
|
80
|
-
* @param rectangle The rectangle to focus on.
|
|
81
|
-
* @param options {@link Viewer.flyTo}
|
|
82
|
-
*/
|
|
83
|
-
flyTo(rectangle: Rectangle, options?: {
|
|
84
|
-
duration?: number;
|
|
85
|
-
}): void;
|
|
86
|
-
/** Whether tile coordinates are currently visible. */
|
|
87
|
-
get tileCoordinatesVisible(): boolean;
|
|
88
|
-
/** Whether the grid is currently visible. */
|
|
89
|
-
get visible(): boolean;
|
|
90
|
-
/** The viewer used in the visualizer */
|
|
91
|
-
get viewer(): Viewer;
|
|
92
|
-
/** The colors used in the visualizer */
|
|
93
|
-
get colors(): Map<string, Color>;
|
|
94
|
-
/** The hybrid terrain instance used in the visualizer */
|
|
95
|
-
get terrainProvider(): HybridTerrainProvider;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* @namespace
|
|
99
|
-
* Contains types, utility functions, and constants for terrain visualization.
|
|
100
|
-
*/
|
|
101
|
-
declare namespace TerrainVisualizer {
|
|
102
|
-
/** Initialization options for `TerrainVisualizer` constructor. */
|
|
103
|
-
interface ConstructorOptions {
|
|
104
|
-
/** Colors to use for different visualization elements */
|
|
105
|
-
colors?: Record<string, Color>;
|
|
106
|
-
/** Whether to show tile grid initially. */
|
|
107
|
-
tile?: boolean;
|
|
108
|
-
/** Initial zoom level to use for visualizations. */
|
|
109
|
-
activeLevel?: number;
|
|
110
|
-
/** Terrain provider to visualize. */
|
|
111
|
-
terrainProvider: HybridTerrainProvider;
|
|
112
|
-
}
|
|
113
|
-
/** Options for {@link TerrainVisualizer.visualize} */
|
|
114
|
-
interface Options {
|
|
115
|
-
color?: Color;
|
|
116
|
-
show?: boolean;
|
|
117
|
-
maxTilesToShow?: number;
|
|
118
|
-
levels?: number[];
|
|
119
|
-
tag?: string;
|
|
120
|
-
alpha?: number;
|
|
121
|
-
tileAlpha?: number;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export { TerrainVisualizer };
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { Viewer, Color, Rectangle } from 'cesium';
|
|
2
|
-
import { H as HybridTerrainProvider } from '../../hybrid-terrain-provider-Th8n2hZ1.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @class
|
|
6
|
-
* Utility class for visualizing terrain provider boundaries and debugging terrain loading.
|
|
7
|
-
*/
|
|
8
|
-
declare class TerrainVisualizer {
|
|
9
|
-
private _viewer;
|
|
10
|
-
private _terrainProvider;
|
|
11
|
-
private _visible;
|
|
12
|
-
private _tileCoordinatesLayer;
|
|
13
|
-
private _hybridImageryLayer;
|
|
14
|
-
private _colors;
|
|
15
|
-
/**
|
|
16
|
-
* Creates a new `TerrainVisualizer`.
|
|
17
|
-
* @param viewer The Cesium viewer instance
|
|
18
|
-
* @param options {@link TerrainVisualizer.ConstructorOptions}
|
|
19
|
-
*/
|
|
20
|
-
constructor(viewer: Viewer, options: TerrainVisualizer.ConstructorOptions);
|
|
21
|
-
/**
|
|
22
|
-
* Sets the terrain provider to visualize.
|
|
23
|
-
* @param terrainProvider The terrain provider to visualize.
|
|
24
|
-
*/
|
|
25
|
-
setTerrainProvider(terrainProvider: HybridTerrainProvider): void;
|
|
26
|
-
/**
|
|
27
|
-
* Updates all active visualizations.
|
|
28
|
-
*/
|
|
29
|
-
update(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Clears all visualizations.
|
|
32
|
-
*/
|
|
33
|
-
clear(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Shows terrain visualization using HybridImageryProvider.
|
|
36
|
-
* Optionally adds tile coordinate grid overlay.
|
|
37
|
-
* @param options Visualization options
|
|
38
|
-
*/
|
|
39
|
-
show(options?: {
|
|
40
|
-
/** Show tile coordinate labels. Default: true */
|
|
41
|
-
showTileCoordinates?: boolean;
|
|
42
|
-
/** Transparency level (0-1). Default: 0.5 */
|
|
43
|
-
alpha?: number;
|
|
44
|
-
}): void;
|
|
45
|
-
private _ensureTileCoordinatesLayer;
|
|
46
|
-
/**
|
|
47
|
-
* Hides the terrain visualization.
|
|
48
|
-
*/
|
|
49
|
-
hide(): void;
|
|
50
|
-
/**
|
|
51
|
-
* Sets the colors used for visualization.
|
|
52
|
-
* @param colors Map of role names to colors
|
|
53
|
-
*/
|
|
54
|
-
setColors(colors: Record<string, Color>): void;
|
|
55
|
-
/**
|
|
56
|
-
* Shows terrain regions using HybridImageryProvider (performant, global coverage).
|
|
57
|
-
* This replaces the entity-based approach with an imagery layer.
|
|
58
|
-
* @param alpha Transparency level (0-1), default 0.5
|
|
59
|
-
*/
|
|
60
|
-
showImageryOverlay(alpha?: number): void;
|
|
61
|
-
/**
|
|
62
|
-
* Hides the imagery overlay.
|
|
63
|
-
*/
|
|
64
|
-
hideImageryOverlay(): void;
|
|
65
|
-
/**
|
|
66
|
-
* Shows tile coordinate grid overlay.
|
|
67
|
-
*/
|
|
68
|
-
showTileCoordinates(): void;
|
|
69
|
-
/**
|
|
70
|
-
* Hides tile coordinate grid overlay.
|
|
71
|
-
*/
|
|
72
|
-
hideTileCoordinates(): void;
|
|
73
|
-
/**
|
|
74
|
-
* Sets the transparency of the imagery overlay.
|
|
75
|
-
* @param alpha Transparency level (0-1), where 0 is fully transparent and 1 is fully opaque
|
|
76
|
-
*/
|
|
77
|
-
setAlpha(alpha: number): void;
|
|
78
|
-
/**
|
|
79
|
-
* Flies the camera to focus on a rectangle.
|
|
80
|
-
* @param rectangle The rectangle to focus on.
|
|
81
|
-
* @param options {@link Viewer.flyTo}
|
|
82
|
-
*/
|
|
83
|
-
flyTo(rectangle: Rectangle, options?: {
|
|
84
|
-
duration?: number;
|
|
85
|
-
}): void;
|
|
86
|
-
/** Whether tile coordinates are currently visible. */
|
|
87
|
-
get tileCoordinatesVisible(): boolean;
|
|
88
|
-
/** Whether the grid is currently visible. */
|
|
89
|
-
get visible(): boolean;
|
|
90
|
-
/** The viewer used in the visualizer */
|
|
91
|
-
get viewer(): Viewer;
|
|
92
|
-
/** The colors used in the visualizer */
|
|
93
|
-
get colors(): Map<string, Color>;
|
|
94
|
-
/** The hybrid terrain instance used in the visualizer */
|
|
95
|
-
get terrainProvider(): HybridTerrainProvider;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* @namespace
|
|
99
|
-
* Contains types, utility functions, and constants for terrain visualization.
|
|
100
|
-
*/
|
|
101
|
-
declare namespace TerrainVisualizer {
|
|
102
|
-
/** Initialization options for `TerrainVisualizer` constructor. */
|
|
103
|
-
interface ConstructorOptions {
|
|
104
|
-
/** Colors to use for different visualization elements */
|
|
105
|
-
colors?: Record<string, Color>;
|
|
106
|
-
/** Whether to show tile grid initially. */
|
|
107
|
-
tile?: boolean;
|
|
108
|
-
/** Initial zoom level to use for visualizations. */
|
|
109
|
-
activeLevel?: number;
|
|
110
|
-
/** Terrain provider to visualize. */
|
|
111
|
-
terrainProvider: HybridTerrainProvider;
|
|
112
|
-
}
|
|
113
|
-
/** Options for {@link TerrainVisualizer.visualize} */
|
|
114
|
-
interface Options {
|
|
115
|
-
color?: Color;
|
|
116
|
-
show?: boolean;
|
|
117
|
-
maxTilesToShow?: number;
|
|
118
|
-
levels?: number[];
|
|
119
|
-
tag?: string;
|
|
120
|
-
alpha?: number;
|
|
121
|
-
tileAlpha?: number;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export { TerrainVisualizer };
|
package/dist/terrain/index.d.cts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { H as HybridTerrainProvider } from '../hybrid-terrain-provider-Th8n2hZ1.cjs';
|
|
2
|
-
import 'cesium';
|
|
3
|
-
|
|
4
|
-
type TerrainTiles = NonNullable<HybridTerrainProvider.TerrainRegion["tiles"]>;
|
|
5
|
-
type TerrainRegion = HybridTerrainProvider.TerrainRegion;
|
|
6
|
-
type TerrainOptions = HybridTerrainProvider.ConstructorOptions;
|
|
7
|
-
|
|
8
|
-
export { HybridTerrainProvider, type TerrainOptions, type TerrainRegion, type TerrainTiles };
|
package/dist/terrain/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { H as HybridTerrainProvider } from '../hybrid-terrain-provider-Th8n2hZ1.js';
|
|
2
|
-
import 'cesium';
|
|
3
|
-
|
|
4
|
-
type TerrainTiles = NonNullable<HybridTerrainProvider.TerrainRegion["tiles"]>;
|
|
5
|
-
type TerrainRegion = HybridTerrainProvider.TerrainRegion;
|
|
6
|
-
type TerrainOptions = HybridTerrainProvider.ConstructorOptions;
|
|
7
|
-
|
|
8
|
-
export { HybridTerrainProvider, type TerrainOptions, type TerrainRegion, type TerrainTiles };
|
package/dist/viewer/index.d.cts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Viewer } from 'cesium';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Copies configuration and state from one Cesium Viewer to another.
|
|
5
|
-
* @param source - The source viewer to copy properties from
|
|
6
|
-
* @param container - DOM element ID or element for the new viewer
|
|
7
|
-
* @param options - Optional override options for the new viewer
|
|
8
|
-
* @returns A new Viewer instance with copied properties
|
|
9
|
-
*/
|
|
10
|
-
declare function cloneViewer(source: Viewer, container: Element | string, options?: Viewer.ConstructorOptions): Viewer;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Copies camera state from source viewer to destination viewer.
|
|
14
|
-
* @param source The source viewer to copy camera states from.
|
|
15
|
-
* @param dest The destination viewer to apply camera properties from the source.
|
|
16
|
-
*/
|
|
17
|
-
declare function syncCamera(source: Viewer, dest: Viewer): void;
|
|
18
|
-
|
|
19
|
-
export { cloneViewer, syncCamera };
|
package/dist/viewer/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Viewer } from 'cesium';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Copies configuration and state from one Cesium Viewer to another.
|
|
5
|
-
* @param source - The source viewer to copy properties from
|
|
6
|
-
* @param container - DOM element ID or element for the new viewer
|
|
7
|
-
* @param options - Optional override options for the new viewer
|
|
8
|
-
* @returns A new Viewer instance with copied properties
|
|
9
|
-
*/
|
|
10
|
-
declare function cloneViewer(source: Viewer, container: Element | string, options?: Viewer.ConstructorOptions): Viewer;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Copies camera state from source viewer to destination viewer.
|
|
14
|
-
* @param source The source viewer to copy camera states from.
|
|
15
|
-
* @param dest The destination viewer to apply camera properties from the source.
|
|
16
|
-
*/
|
|
17
|
-
declare function syncCamera(source: Viewer, dest: Viewer): void;
|
|
18
|
-
|
|
19
|
-
export { cloneViewer, syncCamera };
|