bruce-cesium 7.5.4 → 7.5.6
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 +850 -348
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +848 -346
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/internal/image-utils.js +24 -1
- package/dist/lib/internal/image-utils.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine-point.js +16 -25
- package/dist/lib/rendering/entity-render-engine-point.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine-polygon.js +16 -14
- package/dist/lib/rendering/entity-render-engine-polygon.js.map +1 -1
- package/dist/lib/rendering/render-managers/common/entity-label-group.js +178 -64
- package/dist/lib/rendering/render-managers/common/entity-label-group.js.map +1 -1
- package/dist/lib/rendering/render-managers/common/entity-label.js +437 -71
- package/dist/lib/rendering/render-managers/common/entity-label.js.map +1 -1
- package/dist/lib/rendering/render-managers/other/google-search-render-manager.js +32 -37
- package/dist/lib/rendering/render-managers/other/google-search-render-manager.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +16 -2
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/internal/image-utils.d.ts +1 -0
- package/dist/types/rendering/render-managers/common/entity-label-group.d.ts +9 -1
- package/dist/types/rendering/render-managers/common/entity-label.d.ts +13 -2
- package/dist/types/rendering/visuals-register.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Cesium from "cesium";
|
|
2
2
|
import { VisualsRegister } from "../../visuals-register";
|
|
3
|
-
import { BruceApi, Calculator } from "bruce-models";
|
|
3
|
+
import { BruceApi, Calculator, Entity } from "bruce-models";
|
|
4
4
|
import { GetClusterIconPriority } from "./point-clustering-core";
|
|
5
5
|
/**
|
|
6
6
|
* Util for generating labels within cesium space on entities.
|
|
@@ -19,6 +19,8 @@ export declare namespace EntityLabel {
|
|
|
19
19
|
iconScale?: number;
|
|
20
20
|
iconPriority?: number;
|
|
21
21
|
iconStatus?: string;
|
|
22
|
+
photo?: string;
|
|
23
|
+
iconPhoto?: boolean;
|
|
22
24
|
leader?: boolean;
|
|
23
25
|
leaderStyle?: "default" | "angled";
|
|
24
26
|
leaderLength?: number;
|
|
@@ -49,6 +51,11 @@ export declare namespace EntityLabel {
|
|
|
49
51
|
representative?: "status" | "nearest";
|
|
50
52
|
};
|
|
51
53
|
}
|
|
54
|
+
function HasIcon(options: IOptions): boolean;
|
|
55
|
+
function IsImageUrl(value: string): boolean;
|
|
56
|
+
function GetDefaultImageUrl(entity: Entity.IEntity, api?: BruceApi.Api): string;
|
|
57
|
+
function WithPhoto(options: IOptions, url: string): IOptions;
|
|
58
|
+
function PhotoShape(width: number, height: number): "circle" | "rect";
|
|
52
59
|
interface IHoverRingState {
|
|
53
60
|
animation?: {
|
|
54
61
|
target: number;
|
|
@@ -97,7 +104,7 @@ export declare namespace EntityLabel {
|
|
|
97
104
|
priority?: number;
|
|
98
105
|
options?: IOptions;
|
|
99
106
|
}
|
|
100
|
-
type TIconLook = Pick<IOptions, "icon" | "iconUrl" | "iconClass" | "iconColor" | "iconBackground">;
|
|
107
|
+
type TIconLook = Pick<IOptions, "icon" | "iconUrl" | "iconClass" | "iconColor" | "iconBackground" | "iconPhoto">;
|
|
101
108
|
interface IPlacement {
|
|
102
109
|
textSide?: "left" | "right";
|
|
103
110
|
icons?: TIconLook[];
|
|
@@ -137,6 +144,8 @@ export declare namespace EntityLabel {
|
|
|
137
144
|
private HoverOpacity;
|
|
138
145
|
private visible;
|
|
139
146
|
private counter;
|
|
147
|
+
private imageAsked;
|
|
148
|
+
private photo;
|
|
140
149
|
private viewer;
|
|
141
150
|
private api;
|
|
142
151
|
private visualRegister;
|
|
@@ -186,6 +195,8 @@ export declare namespace EntityLabel {
|
|
|
186
195
|
*/
|
|
187
196
|
private createLabel;
|
|
188
197
|
private buildIcon;
|
|
198
|
+
private buildPhoto;
|
|
199
|
+
private renderFor;
|
|
189
200
|
/**
|
|
190
201
|
* Removes label from the viewer and unsubscribes from events.
|
|
191
202
|
*/
|