bruce-cesium 7.0.7 → 7.0.8
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/bruce-cesium.es5.js +52 -11
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +50 -9
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/visual-register-culler.js +47 -7
- package/dist/lib/rendering/visual-register-culler.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +2 -1
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/visual-register-culler.d.ts +15 -1
- package/package.json +1 -1
|
@@ -60,7 +60,7 @@ export * from "./widgets/widget-info-view";
|
|
|
60
60
|
export * from "./widgets/widget-left-panel";
|
|
61
61
|
export * from "./widgets/widget-nav-compass";
|
|
62
62
|
export * from "./widgets/widget-view-bar";
|
|
63
|
-
export declare const VERSION = "7.0.
|
|
63
|
+
export declare const VERSION = "7.0.8";
|
|
64
64
|
/**
|
|
65
65
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
66
66
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|
|
@@ -20,12 +20,26 @@ export declare namespace VisualRegisterCuller {
|
|
|
20
20
|
*/
|
|
21
21
|
function CullTilesets(register: VisualsRegister.Register): void;
|
|
22
22
|
function IsCullingIgnored(viewer: Cesium.Viewer, rego: VisualsRegister.IVisualRego): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Drops any scene add/remove the culler has queued for these graphics.
|
|
25
|
+
* Emits whether a removal was among them.
|
|
26
|
+
* @param visuals an entity or an array of them.
|
|
27
|
+
* @returns whether a queued removal was cancelled, ie. whether this graphic was on its way out.
|
|
28
|
+
*/
|
|
29
|
+
function CancelQueuedSceneChange(visuals: VisualsRegister.Visual | VisualsRegister.Visual[]): boolean;
|
|
23
30
|
/**
|
|
24
31
|
* Discards what the culler knows about an entity's extent, so its next check measures the geometry again.
|
|
25
32
|
* The last cull decision is deliberately kept, see the loop below.
|
|
26
33
|
* @param visuals an entity, an entity id, or an array of either.
|
|
27
34
|
*/
|
|
28
35
|
function InvalidateBounds(visuals: VisualsRegister.Visual | string | Array<VisualsRegister.Visual | string>): void;
|
|
29
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Measures a graphic against the current view and says whether it is out of frame.
|
|
38
|
+
*/
|
|
39
|
+
function ShouldCull(viewer: Cesium.Viewer, visual: VisualsRegister.Visual): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the last cull pass decided this graphic was out of frame.
|
|
42
|
+
*/
|
|
43
|
+
function IsCulled(viewer: Cesium.Viewer, rego: VisualsRegister.IVisualRego, visual: VisualsRegister.Visual): boolean;
|
|
30
44
|
function MarkShouldRecheck(viewer: Cesium.Viewer): void;
|
|
31
45
|
}
|