bruce-cesium 7.8.6 → 7.8.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 +199 -8
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +197 -6
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/internal/cesium-patch-pick-ground.js +56 -0
- package/dist/lib/internal/cesium-patch-pick-ground.js.map +1 -0
- package/dist/lib/internal/cesium-patch-pick-lighting.js +51 -0
- package/dist/lib/internal/cesium-patch-pick-lighting.js.map +1 -0
- package/dist/lib/rendering/render-managers/common/entity-label-group.js +52 -2
- package/dist/lib/rendering/render-managers/common/entity-label-group.js.map +1 -1
- package/dist/lib/rendering/render-managers/common/entity-label.js +13 -3
- package/dist/lib/rendering/render-managers/common/entity-label.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +32 -0
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/dist/lib/viewer/viewer-utils.js +4 -0
- package/dist/lib/viewer/viewer-utils.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/internal/cesium-patch-pick-ground.d.ts +8 -0
- package/dist/types/internal/cesium-patch-pick-lighting.d.ts +8 -0
- package/dist/types/rendering/render-managers/common/entity-label-group.d.ts +11 -0
- package/dist/types/rendering/render-managers/common/entity-label.d.ts +1 -0
- package/dist/types/rendering/visuals-register.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Corrects the extents cull in a ground primitive pick shader's fragment options, returning whether it did.
|
|
3
|
+
*/
|
|
4
|
+
export declare function FixPickGround(options: any): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Patches a viewer's shader cache so batched ground clamped polygons pick only where they cover the ground.
|
|
7
|
+
*/
|
|
8
|
+
export declare function InstallPickGroundPatch(viewer: any): boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Removes image based lighting from a derived "pick" shader's fragment options, returning whether it did.
|
|
3
|
+
*/
|
|
4
|
+
export declare function StripPickLighting(keyword: string, options: any): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Compiles a viewer's pick shaders unlit, since NVIDIA via ANGLE (Edge 155, CesiumJS 1.120) drops every lit pick.
|
|
7
|
+
*/
|
|
8
|
+
export declare function InstallPickLightingPatch(viewer: any): boolean;
|
|
@@ -58,6 +58,13 @@ export declare namespace EntityLabelGroup {
|
|
|
58
58
|
}[];
|
|
59
59
|
additive: boolean;
|
|
60
60
|
}
|
|
61
|
+
interface IEntityClick {
|
|
62
|
+
labels: {
|
|
63
|
+
groupId: string;
|
|
64
|
+
entityId: string;
|
|
65
|
+
}[];
|
|
66
|
+
additive: boolean;
|
|
67
|
+
}
|
|
61
68
|
function GetPlaceKey(groupId: string, placeId: string): string;
|
|
62
69
|
function IsPlaceKey(key: string): boolean;
|
|
63
70
|
function FromPlaces(groupId: string, places?: IPlace[]): IItem[];
|
|
@@ -131,6 +138,8 @@ export declare namespace EntityLabelGroup {
|
|
|
131
138
|
private imagesAsking;
|
|
132
139
|
private imagesTimer;
|
|
133
140
|
private placesInteractive;
|
|
141
|
+
private entitiesInteractive;
|
|
142
|
+
private selectedEntities;
|
|
134
143
|
constructor(register: VisualsRegister.Register, changed?: () => void);
|
|
135
144
|
private notify;
|
|
136
145
|
Refresh(id: string): Promise<IResult>;
|
|
@@ -138,6 +147,8 @@ export declare namespace EntityLabelGroup {
|
|
|
138
147
|
Set(definition: IGroup): Promise<IResult>;
|
|
139
148
|
SetPlaces(id: string, places: IPlace[]): boolean;
|
|
140
149
|
SetPlacesInteractive(on: boolean): void;
|
|
150
|
+
SetEntitiesInteractive(on: boolean): void;
|
|
151
|
+
SetSelectedEntities(id: string, entityIds: string[]): void;
|
|
141
152
|
Get(): IState[];
|
|
142
153
|
Has(entityId: string, menuItemId?: string): boolean;
|
|
143
154
|
Resolve(entityId: string, menuItemId?: string): {
|
|
@@ -133,6 +133,8 @@ export declare namespace VisualsRegister {
|
|
|
133
133
|
get OnLabelGroupsChanged(): BruceEvent<void>;
|
|
134
134
|
private labelPlaceClicked;
|
|
135
135
|
get OnLabelPlaceClick(): BruceEvent<EntityLabelGroup.IPlaceClick>;
|
|
136
|
+
private labelEntityClicked;
|
|
137
|
+
get OnLabelEntityClick(): BruceEvent<EntityLabelGroup.IEntityClick>;
|
|
136
138
|
private labelHover;
|
|
137
139
|
private hoverLabel;
|
|
138
140
|
private hoverRingState;
|
|
@@ -632,6 +634,9 @@ export declare namespace VisualsRegister {
|
|
|
632
634
|
RefreshLabelGroup(id: string): Promise<EntityLabelGroup.IResult>;
|
|
633
635
|
SetLabelPlacesInteractive(on: boolean): void;
|
|
634
636
|
ClickLabelPlaces(keys: string[], additive: boolean): void;
|
|
637
|
+
SetLabelEntitiesInteractive(on: boolean): void;
|
|
638
|
+
ClickLabelEntities(entityIds: string[], additive: boolean): void;
|
|
639
|
+
SetLabelGroupSelected(id: string, entityIds: string[]): void;
|
|
635
640
|
SetLabelGroupPlaces(id: string, places: EntityLabelGroup.IPlace[]): boolean;
|
|
636
641
|
SetLabelGroupVisible(id: string, visible: boolean): boolean;
|
|
637
642
|
ClearLabelGroups(): void;
|