bruce-cesium 7.0.9 → 7.1.1
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 +1837 -134
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +1831 -131
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +3 -1
- package/dist/lib/bruce-cesium.js.map +1 -1
- package/dist/lib/rendering/visual-register-culler.js +18 -1
- package/dist/lib/rendering/visual-register-culler.js.map +1 -1
- package/dist/lib/utils/entity-utils.js +52 -2
- package/dist/lib/utils/entity-utils.js.map +1 -1
- package/dist/lib/widgets/tabs-left-panel/widget-left-panel-tab-bookmarks.js +427 -63
- package/dist/lib/widgets/tabs-left-panel/widget-left-panel-tab-bookmarks.js.map +1 -1
- package/dist/lib/widgets/tabs-left-panel/widget-left-panel-tab-dashboard.js +507 -0
- package/dist/lib/widgets/tabs-left-panel/widget-left-panel-tab-dashboard.js.map +1 -0
- package/dist/lib/widgets/tabs-left-panel/widget-left-panel-tab-menu-items.js +704 -0
- package/dist/lib/widgets/tabs-left-panel/widget-left-panel-tab-menu-items.js.map +1 -0
- package/dist/lib/widgets/widget-bookmarks.js +9 -7
- package/dist/lib/widgets/widget-bookmarks.js.map +1 -1
- package/dist/lib/widgets/widget-info-view.js +68 -40
- package/dist/lib/widgets/widget-info-view.js.map +1 -1
- package/dist/lib/widgets/widget-left-panel.js +65 -18
- package/dist/lib/widgets/widget-left-panel.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +3 -1
- package/dist/types/utils/entity-utils.d.ts +11 -0
- package/dist/types/widgets/tabs-left-panel/widget-left-panel-tab-bookmarks.d.ts +14 -0
- package/dist/types/widgets/tabs-left-panel/widget-left-panel-tab-dashboard.d.ts +44 -0
- package/dist/types/widgets/tabs-left-panel/widget-left-panel-tab-menu-items.d.ts +64 -0
- package/dist/types/widgets/widget-left-panel.d.ts +10 -2
- package/package.json +1 -2
|
@@ -52,6 +52,8 @@ export * from "./widgets/controls-view-bar/widget-control-view-bar";
|
|
|
52
52
|
export * from "./widgets/controls-view-bar/widget-control-view-bar-search";
|
|
53
53
|
export * from "./widgets/tabs-left-panel/widget-left-panel-tab";
|
|
54
54
|
export * from "./widgets/tabs-left-panel/widget-left-panel-tab-bookmarks";
|
|
55
|
+
export * from "./widgets/tabs-left-panel/widget-left-panel-tab-dashboard";
|
|
56
|
+
export * from "./widgets/tabs-left-panel/widget-left-panel-tab-menu-items";
|
|
55
57
|
export * from "./widgets/widget";
|
|
56
58
|
export * from "./widgets/widget-bookmarks";
|
|
57
59
|
export * from "./widgets/widget-branding";
|
|
@@ -61,7 +63,7 @@ export * from "./widgets/widget-info-view";
|
|
|
61
63
|
export * from "./widgets/widget-left-panel";
|
|
62
64
|
export * from "./widgets/widget-nav-compass";
|
|
63
65
|
export * from "./widgets/widget-view-bar";
|
|
64
|
-
export declare const VERSION = "7.
|
|
66
|
+
export declare const VERSION = "7.1.1";
|
|
65
67
|
/**
|
|
66
68
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
67
69
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|
|
@@ -70,6 +70,17 @@ export declare namespace EntityUtils {
|
|
|
70
70
|
returnHeightRef?: Cesium.HeightReference;
|
|
71
71
|
recordHeightRef?: Cesium.HeightReference;
|
|
72
72
|
}): Promise<Cesium.Cartesian3>;
|
|
73
|
+
/**
|
|
74
|
+
* Makes a moved graphic sample the ground again at where it now is.
|
|
75
|
+
*
|
|
76
|
+
* Reassigning the height references touches an observed property, so the updater discards the stale offset
|
|
77
|
+
* and builds a new one against the current position.
|
|
78
|
+
* @returns whether anything was refreshed.
|
|
79
|
+
*/
|
|
80
|
+
function RefreshGroundClamping(params: {
|
|
81
|
+
viewer: Cesium.Viewer;
|
|
82
|
+
visual: VisualsRegister.Visual;
|
|
83
|
+
}): boolean;
|
|
73
84
|
/**
|
|
74
85
|
* Returns entity and any associated parent/sibling entities as a flat array.
|
|
75
86
|
* @param entity
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
import { WidgetLeftPanelTab } from "./widget-left-panel-tab";
|
|
2
2
|
export declare class WidgetLeftPanelTabBookmarks extends WidgetLeftPanelTab.ATab {
|
|
3
3
|
STYLESHEET_ID: string;
|
|
4
|
+
private _viewIdChangeRemoval;
|
|
5
|
+
private _compact;
|
|
4
6
|
constructor(params: WidgetLeftPanelTab.IParams);
|
|
5
7
|
Dispose(): void;
|
|
6
8
|
private _generateStyles;
|
|
7
9
|
private _generateElement;
|
|
10
|
+
private _getStoredCompact;
|
|
11
|
+
private _setCompact;
|
|
12
|
+
private _getGroupOpen;
|
|
13
|
+
private _setGroupOpen;
|
|
14
|
+
/**
|
|
15
|
+
* Sorts the bookmarks into their groups, ordering both by display order then name.
|
|
16
|
+
* Bookmarks with no group, or one that no longer exists, land in a trailing ungrouped list.
|
|
17
|
+
*/
|
|
18
|
+
private _buildGroupLists;
|
|
19
|
+
private _compareBookmarks;
|
|
8
20
|
private _updateBookmarks;
|
|
21
|
+
private _renderGroup;
|
|
22
|
+
private _renderBookmark;
|
|
9
23
|
private _selectBookmark;
|
|
10
24
|
private _updateBookmark;
|
|
11
25
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { WidgetLeftPanelTab } from "./widget-left-panel-tab";
|
|
2
|
+
export declare class WidgetLeftPanelTabDashboard extends WidgetLeftPanelTab.ATab {
|
|
3
|
+
STYLESHEET_ID: string;
|
|
4
|
+
private _viewIdChangeRemoval;
|
|
5
|
+
private _paramsChangeRemoval;
|
|
6
|
+
private _loadToken;
|
|
7
|
+
private _disposed;
|
|
8
|
+
private _viewName;
|
|
9
|
+
private _viewBrandingUrl;
|
|
10
|
+
private _accountBrandingUrl;
|
|
11
|
+
private _accountLinks;
|
|
12
|
+
private _operatorUrl;
|
|
13
|
+
private _operatorAllowed;
|
|
14
|
+
private _operatorError;
|
|
15
|
+
private _apiVersion;
|
|
16
|
+
constructor(params: WidgetLeftPanelTab.IParams);
|
|
17
|
+
Dispose(): void;
|
|
18
|
+
private _generateStyles;
|
|
19
|
+
private _generateElement;
|
|
20
|
+
private _buildTitle;
|
|
21
|
+
private _buildTiles;
|
|
22
|
+
private _buildBrandingImages;
|
|
23
|
+
private _buildCustomLinks;
|
|
24
|
+
private _buildBranding;
|
|
25
|
+
private _buildLink;
|
|
26
|
+
/**
|
|
27
|
+
* Builds the support URL with the signed-in user's details prefilled.
|
|
28
|
+
*/
|
|
29
|
+
private _getContactUrl;
|
|
30
|
+
private _user;
|
|
31
|
+
/**
|
|
32
|
+
* Gathers everything the panel shows.
|
|
33
|
+
* Each source is caught on its own so one failure doesn't blank the whole panel.
|
|
34
|
+
*/
|
|
35
|
+
private _load;
|
|
36
|
+
private _loadView;
|
|
37
|
+
private _loadAccount;
|
|
38
|
+
private _loadOperatorAccess;
|
|
39
|
+
/**
|
|
40
|
+
* Reads the version of the Bruce API instance this account is served by.
|
|
41
|
+
*/
|
|
42
|
+
private _loadApiVersion;
|
|
43
|
+
private _loadUser;
|
|
44
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { WidgetLeftPanelTab } from "./widget-left-panel-tab";
|
|
2
|
+
/**
|
|
3
|
+
* Enabled state of a menu item row.
|
|
4
|
+
* Folders roll up their children, so they can sit between fully on and fully off.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum EMenuItemState {
|
|
7
|
+
Enabled = "enabled",
|
|
8
|
+
Disabled = "disabled",
|
|
9
|
+
ChildEnabled = "child-enabled"
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Left panel tab listing the project view's menu items as a checkbox tree.
|
|
13
|
+
* Toggling a row renders or removes that layer in the scene.
|
|
14
|
+
*/
|
|
15
|
+
export declare class WidgetLeftPanelTabMenuItems extends WidgetLeftPanelTab.ATab {
|
|
16
|
+
STYLESHEET_ID: string;
|
|
17
|
+
private _menuItems;
|
|
18
|
+
private _rows;
|
|
19
|
+
private _scrollBox;
|
|
20
|
+
private _tip;
|
|
21
|
+
private _menuUpdateRemoval;
|
|
22
|
+
private _visualUpdateRemoval;
|
|
23
|
+
private _viewIdChangeRemoval;
|
|
24
|
+
private _loadToken;
|
|
25
|
+
private _stateQueue;
|
|
26
|
+
private _countQueue;
|
|
27
|
+
private _flying;
|
|
28
|
+
private _onResizeMove;
|
|
29
|
+
private _onResizeUp;
|
|
30
|
+
private _disposed;
|
|
31
|
+
constructor(params: WidgetLeftPanelTab.IParams);
|
|
32
|
+
Dispose(): void;
|
|
33
|
+
private _generateStyles;
|
|
34
|
+
private _generateElement;
|
|
35
|
+
private _getStoredWidth;
|
|
36
|
+
/**
|
|
37
|
+
* Sizes the shared panel container to this tab's width, clamped to the allowed range.
|
|
38
|
+
*/
|
|
39
|
+
private _applyPanelWidth;
|
|
40
|
+
private _startResize;
|
|
41
|
+
private _endResize;
|
|
42
|
+
private _loadMenuItems;
|
|
43
|
+
private _renderTree;
|
|
44
|
+
private _renderRow;
|
|
45
|
+
private _getOpen;
|
|
46
|
+
private _setOpen;
|
|
47
|
+
/**
|
|
48
|
+
* Resolves each row's state from what the manager currently has rendered.
|
|
49
|
+
*/
|
|
50
|
+
private _updateStates;
|
|
51
|
+
/**
|
|
52
|
+
* Works out a single item's state, rolling up children so a folder can report a partial state.
|
|
53
|
+
*/
|
|
54
|
+
private _resolveState;
|
|
55
|
+
private _updateCounts;
|
|
56
|
+
private _toggleItem;
|
|
57
|
+
private _disableItem;
|
|
58
|
+
private _selectItemEntities;
|
|
59
|
+
/**
|
|
60
|
+
* Flies the camera to a menu item's contents.
|
|
61
|
+
* Tileset-backed items fall back to the tileset's own bounds when no entity visuals are registered.
|
|
62
|
+
*/
|
|
63
|
+
private _flyToItem;
|
|
64
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="cesium" />
|
|
2
|
-
import { BruceEvent, ProjectViewBookmark } from "bruce-models";
|
|
2
|
+
import { BruceEvent, ProjectViewBookmark, ProjectViewBookmarkGroup } from "bruce-models";
|
|
3
3
|
import { Widget } from "./widget";
|
|
4
4
|
interface IParams extends Widget.IParams {
|
|
5
5
|
viewId: string;
|
|
@@ -12,10 +12,14 @@ export declare class WidgetLeftPanel extends Widget.AWidget {
|
|
|
12
12
|
private _viewId;
|
|
13
13
|
get ViewId(): string;
|
|
14
14
|
set ViewId(value: string);
|
|
15
|
+
private _onViewIdChange;
|
|
16
|
+
get OnViewIdChange(): BruceEvent<string>;
|
|
15
17
|
private _enabledPanelTab;
|
|
16
18
|
private _enabledTabContent;
|
|
17
19
|
private bookmarks;
|
|
18
20
|
get Bookmarks(): ProjectViewBookmark.IBookmark[];
|
|
21
|
+
private bookmarkGroups;
|
|
22
|
+
get BookmarkGroups(): ProjectViewBookmarkGroup.IGroup[];
|
|
19
23
|
private _lastEnabledBookmarkId;
|
|
20
24
|
get LastEnabledBookmarkId(): string;
|
|
21
25
|
set LastEnabledBookmarkId(value: string);
|
|
@@ -30,6 +34,11 @@ export declare class WidgetLeftPanel extends Widget.AWidget {
|
|
|
30
34
|
private envSubRemoval;
|
|
31
35
|
constructor(params: IParams);
|
|
32
36
|
private loadBookmarks;
|
|
37
|
+
/**
|
|
38
|
+
* Loads the bookmark groups for a view.
|
|
39
|
+
* A failure here degrades to an ungrouped list rather than losing the bookmarks entirely.
|
|
40
|
+
*/
|
|
41
|
+
private loadBookmarkGroups;
|
|
33
42
|
Dispose(): void;
|
|
34
43
|
private _generateStyles;
|
|
35
44
|
private _generateElement;
|
|
@@ -46,7 +55,6 @@ export declare class WidgetLeftPanel extends Widget.AWidget {
|
|
|
46
55
|
content: any;
|
|
47
56
|
}): void;
|
|
48
57
|
private _addPanelTab;
|
|
49
|
-
private _addPlaceholderTab;
|
|
50
58
|
/**
|
|
51
59
|
* User profile handled separately.
|
|
52
60
|
* This is because for a while it will be just an indicator of logged in user session.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bruce-cesium",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"main": "dist/bruce-cesium.umd.js",
|
|
@@ -80,7 +80,6 @@
|
|
|
80
80
|
"typescript": "^5.0.4"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"bruce-cesium": "^6.8.5",
|
|
84
83
|
"bruce-models": "^7.1.67",
|
|
85
84
|
"tslib": "^2.4.1"
|
|
86
85
|
}
|