bruce-cesium 4.2.8 → 4.2.9
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 +34 -11
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +33 -10
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/widgets/widget-left-panel.js +32 -9
- package/dist/lib/widgets/widget-left-panel.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/widgets/widget-left-panel.d.ts +3 -1
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -23107,6 +23107,16 @@
|
|
|
23107
23107
|
enumerable: false,
|
|
23108
23108
|
configurable: true
|
|
23109
23109
|
});
|
|
23110
|
+
Object.defineProperty(WidgetLeftPanel.prototype, "OnBookmarkSelect", {
|
|
23111
|
+
get: function () {
|
|
23112
|
+
if (this._onBookmarkSelect == null) {
|
|
23113
|
+
this._onBookmarkSelect = new BModels.BruceEvent();
|
|
23114
|
+
}
|
|
23115
|
+
return this._onBookmarkSelect;
|
|
23116
|
+
},
|
|
23117
|
+
enumerable: false,
|
|
23118
|
+
configurable: true
|
|
23119
|
+
});
|
|
23110
23120
|
Object.defineProperty(WidgetLeftPanel.prototype, "Loading", {
|
|
23111
23121
|
get: function () {
|
|
23112
23122
|
return this._loading;
|
|
@@ -23169,21 +23179,36 @@
|
|
|
23169
23179
|
}
|
|
23170
23180
|
var style = document.createElement("style");
|
|
23171
23181
|
style.id = this.STYLESHEET_ID;
|
|
23172
|
-
style.innerHTML = "\n .NextspaceLeftPanel {\n align-items: center;\n background-color: #21272a;\n cursor: default;\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n height: 100%;\n padding-
|
|
23182
|
+
style.innerHTML = "\n .NextspaceLeftPanel {\n align-items: center;\n background-color: #21272a;\n cursor: default;\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n height: 100%;\n padding-top: 15px;\n position: absolute;\n width: 50px;\n z-index: 1;\n top: 0;\n left: 0;\n box-sizing: border-box;\n }\n\n .NextspaceLeftPanel * {\n box-sizing: border-box;\n }\n\n .NextspaceLeftPanel >.NextspaceLeftPanelBreaker {\n background-color: hsla(0,0%,50%,.231);\n flex-shrink: 0;\n height: 2px;\n margin-bottom: 15px;\n width: calc(100% - 8px);\n }\n\n .NextspaceLeftPanel >.NextspaceLeftPanelBottomBreaker {\n margin-top: auto;\n }\n\n .NextspaceLeftPanel >.NextspaceLeftPanelButton {\n border-radius: 3px;\n color: #fff;\n cursor: pointer;\n font-size: 18px;\n height: 32px;\n overflow: hidden;\n width: 32px;\n margin-bottom: 15px;\n }\n\n .NextspaceLeftPanel >.NextspaceLeftPanelButton:first-of-type {\n margin-bottom: 8px;\n }\n\n .NextspaceLeftPanel >.NextspaceLeftPanelButton >.NextspaceLeftPanelButtonIcon {\n align-items: center;\n display: flex;\n justify-content: center;\n position: relative;\n transition: .3s ease;\n height: 100%;\n width: 100%;\n }\n\n .NextspaceLeftPanel >.NextspaceLeftPanelButton >.NextspaceLeftPanelButtonIcon:hover {\n transform: scale(1.2);\n }\n\n .NextspaceLeftPanel >.NextspaceLeftPanelButton >.NextspaceLeftPanelButtonIcon >svg {\n cursor: pointer;\n }\n\n .NextspaceLeftPanel >.NextspaceLeftPanelButton[is-enabled=\"true\"] >.NextspaceLeftPanelButtonIcon {\n background-color: #fff;\n }\n\n .NextspaceLeftPanel >.NextspaceLeftPanelButton[is-enabled=\"true\"] >.NextspaceLeftPanelButtonIcon >svg {\n filter: invert(1);\n }\n\n .NextspaceLeftPanel >.NextspaceLeftPanelTabContent {\n display: none;\n width: 300px;\n height: 100%;\n position: absolute;\n top: 0;\n left: 50px;\n background-color: #21272a;\n padding: 40px 30px 30px;\n flex-direction: column;\n flex-grow: 1;\n flex-shrink: 1;\n overflow: hidden;\n }\n\n .NextspaceLeftPanel .NextspaceLeftPanelTabContentCloseButton {\n color: #fff;\n cursor: pointer;\n opacity: .7;\n position: absolute;\n right: 22px;\n top: 14px;\n transition: transform .3s ease;\n z-index: 1;\n }\n\n .NextspaceLeftPanel .NextspaceLeftPanelTabContentCloseButton:hover {\n transform: scale(1.2);\n }\n ";
|
|
23173
23183
|
document.head.appendChild(style);
|
|
23174
23184
|
};
|
|
23175
23185
|
WidgetLeftPanel.prototype._generateElement = function () {
|
|
23186
|
+
var _this = this;
|
|
23176
23187
|
var element = document.createElement("div");
|
|
23177
23188
|
element.className = "NextspaceLeftPanel";
|
|
23178
23189
|
this.Container.appendChild(element);
|
|
23179
23190
|
this._element = element;
|
|
23180
|
-
this._addPlaceholderTab("Dashboard", "\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11 9C11 10.1046 10.1046 11 9 11C7.89543 11 7 10.1046 7 9C7 7.89543 7.89543 7 9 7C10.1046 7 11 7.89543 11 9ZM18 9C18 10.1046 17.1046 11 16 11C14.8954 11 14 10.1046 14 9C14 7.89543 14.8954 7 16 7C17.1046 7 18 7.89543 18 9ZM23 11C24.1046 11 25 10.1046 25 9C25 7.89543 24.1046 7 23 7C21.8954 7 21 7.89543 21 9C21 10.1046 21.8954 11 23 11ZM11 16C11 17.1046 10.1046 18 9 18C7.89543 18 7 17.1046 7 16C7 14.8954 7.89543 14 9 14C10.1046 14 11 14.8954 11 16ZM9 25C10.1046 25 11 24.1046 11 23C11 21.8954 10.1046 21 9 21C7.89543 21 7 21.8954 7 23C7 24.1046 7.89543 25 9 25ZM18 16C18 17.1046 17.1046 18 16 18C14.8954 18 14 17.1046 14 16C14 14.8954 14.8954 14 16 14C17.1046 14 18 14.8954 18 16ZM16 25C17.1046 25 18 24.1046 18 23C18 21.8954 17.1046 21 16 21C14.8954 21 14 21.8954 14 23C14 24.1046 14.8954 25 16 25ZM25 16C25 17.1046 24.1046 18 23 18C21.8954 18 21 17.1046 21 16C21 14.8954 21.8954 14 23 14C24.1046 14 25 14.8954 25 16ZM23 25C24.1046 25 25 24.1046 25 23C25 21.8954 24.1046 21 23 21C21.8954 21 21 21.8954 21 23C21 24.1046 21.8954 25 23 25Z\" fill=\"white\"></path>\n ");
|
|
23191
|
+
this._addPlaceholderTab("Dashboard", "\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11 9C11 10.1046 10.1046 11 9 11C7.89543 11 7 10.1046 7 9C7 7.89543 7.89543 7 9 7C10.1046 7 11 7.89543 11 9ZM18 9C18 10.1046 17.1046 11 16 11C14.8954 11 14 10.1046 14 9C14 7.89543 14.8954 7 16 7C17.1046 7 18 7.89543 18 9ZM23 11C24.1046 11 25 10.1046 25 9C25 7.89543 24.1046 7 23 7C21.8954 7 21 7.89543 21 9C21 10.1046 21.8954 11 23 11ZM11 16C11 17.1046 10.1046 18 9 18C7.89543 18 7 17.1046 7 16C7 14.8954 7.89543 14 9 14C10.1046 14 11 14.8954 11 16ZM9 25C10.1046 25 11 24.1046 11 23C11 21.8954 10.1046 21 9 21C7.89543 21 7 21.8954 7 23C7 24.1046 7.89543 25 9 25ZM18 16C18 17.1046 17.1046 18 16 18C14.8954 18 14 17.1046 14 16C14 14.8954 14.8954 14 16 14C17.1046 14 18 14.8954 18 16ZM16 25C17.1046 25 18 24.1046 18 23C18 21.8954 17.1046 21 16 21C14.8954 21 14 21.8954 14 23C14 24.1046 14.8954 25 16 25ZM25 16C25 17.1046 24.1046 18 23 18C21.8954 18 21 17.1046 21 16C21 14.8954 21.8954 14 23 14C24.1046 14 25 14.8954 25 16ZM23 25C24.1046 25 25 24.1046 25 23C25 21.8954 24.1046 21 23 21C21.8954 21 21 21.8954 21 23C21 24.1046 21.8954 25 23 25Z\" fill=\"white\"></path>\n </svg>\n ");
|
|
23181
23192
|
var breaker = document.createElement("div");
|
|
23182
23193
|
breaker.className = "NextspaceLeftPanelBreaker";
|
|
23183
23194
|
this._element.appendChild(breaker);
|
|
23184
|
-
this._addPanelTab("bookmarks", "Bookmarks", "\n <path d=\"M23 25V7H9V25L16 18L23 25Z\" fill=\"white\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n ");
|
|
23195
|
+
this._addPanelTab("bookmarks", "Bookmarks", "\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M23 25V7H9V25L16 18L23 25Z\" fill=\"white\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>\n ");
|
|
23196
|
+
var bottomBreaker = document.createElement("div");
|
|
23197
|
+
bottomBreaker.className = "NextspaceLeftPanelBottomBreaker";
|
|
23198
|
+
this._element.appendChild(bottomBreaker);
|
|
23199
|
+
this._addPlaceholderTab("Profile", "\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12ZM12 14C9.33 14 4 15.34 4 18V19C4 19.55 4.45 20 5 20H19C19.55 20 20 19.55 20 19V18C20 15.34 14.67 14 12 14Z\" fill=\"white\"/>\n </svg>\n ");
|
|
23185
23200
|
var panelContent = document.createElement("div");
|
|
23186
23201
|
panelContent.className = "NextspaceLeftPanelTabContent";
|
|
23202
|
+
var panelContentCloseButton = document.createElement("div");
|
|
23203
|
+
panelContentCloseButton.setAttribute("title", "Close");
|
|
23204
|
+
panelContentCloseButton.className = "NextspaceLeftPanelTabContentCloseButton";
|
|
23205
|
+
panelContentCloseButton.innerHTML = "\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M18.3002 5.70973C17.9102 5.31973 17.2802 5.31973 16.8902 5.70973L12.0002 10.5897L7.11022 5.69973C6.72022 5.30973 6.09021 5.30973 5.70021 5.69973C5.31021 6.08973 5.31021 6.71973 5.70021 7.10973L10.5902 11.9997L5.70021 16.8897C5.31021 17.2797 5.31021 17.9097 5.70021 18.2997C6.09021 18.6897 6.72022 18.6897 7.11022 18.2997L12.0002 13.4097L16.8902 18.2997C17.2802 18.6897 17.9102 18.6897 18.3002 18.2997C18.6902 17.9097 18.6902 17.2797 18.3002 16.8897L13.4102 11.9997L18.3002 7.10973C18.6802 6.72973 18.6802 6.08973 18.3002 5.70973Z\" fill=\"white\"></path></svg>\n ";
|
|
23206
|
+
panelContentCloseButton.onclick = function () {
|
|
23207
|
+
_this._enabledPanelTab = "";
|
|
23208
|
+
_this._updatePanelContent();
|
|
23209
|
+
_this._updatePanelStyles();
|
|
23210
|
+
};
|
|
23211
|
+
panelContent.appendChild(panelContentCloseButton);
|
|
23187
23212
|
this._element.appendChild(panelContent);
|
|
23188
23213
|
this._updatePanelStyles();
|
|
23189
23214
|
};
|
|
@@ -23230,12 +23255,7 @@
|
|
|
23230
23255
|
tabButton.style.pointerEvents = "none";
|
|
23231
23256
|
var buttonBookmarksIcon = document.createElement("div");
|
|
23232
23257
|
buttonBookmarksIcon.className = "NextspaceLeftPanelButtonIcon";
|
|
23233
|
-
|
|
23234
|
-
buttonBookmarksIconSvg.setAttribute("viewBox", "0 0 32 32");
|
|
23235
|
-
buttonBookmarksIconSvg.setAttribute("width", "32");
|
|
23236
|
-
buttonBookmarksIconSvg.setAttribute("height", "32");
|
|
23237
|
-
buttonBookmarksIconSvg.innerHTML = svgStr;
|
|
23238
|
-
buttonBookmarksIcon.appendChild(buttonBookmarksIconSvg);
|
|
23258
|
+
buttonBookmarksIcon.innerHTML = svgStr;
|
|
23239
23259
|
tabButton.appendChild(buttonBookmarksIcon);
|
|
23240
23260
|
this._element.appendChild(tabButton);
|
|
23241
23261
|
};
|
|
@@ -23311,6 +23331,9 @@
|
|
|
23311
23331
|
viewer: this._viewer,
|
|
23312
23332
|
viewId: this._viewId
|
|
23313
23333
|
});
|
|
23334
|
+
if (this._onBookmarkSelect) {
|
|
23335
|
+
this._onBookmarkSelect.Trigger(bookmark);
|
|
23336
|
+
}
|
|
23314
23337
|
};
|
|
23315
23338
|
return WidgetLeftPanel;
|
|
23316
23339
|
}(exports.Widget.AWidget));
|
|
@@ -26236,7 +26259,7 @@
|
|
|
26236
26259
|
ViewerUtils.AssertIonToken = AssertIonToken;
|
|
26237
26260
|
})(exports.ViewerUtils || (exports.ViewerUtils = {}));
|
|
26238
26261
|
|
|
26239
|
-
var VERSION = "4.2.
|
|
26262
|
+
var VERSION = "4.2.9";
|
|
26240
26263
|
|
|
26241
26264
|
exports.VERSION = VERSION;
|
|
26242
26265
|
exports.CesiumParabola = CesiumParabola;
|