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.
@@ -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): {
@@ -30,6 +30,7 @@ export declare namespace EntityLabel {
30
30
  far?: number;
31
31
  overlapOpacity?: number;
32
32
  selectOnClick?: boolean;
33
+ reportClick?: boolean;
33
34
  highlightColor?: string;
34
35
  pointerAvoidance?: {
35
36
  enabled?: boolean;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-cesium",
3
- "version": "7.8.6",
3
+ "version": "7.8.8",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-cesium.umd.js",