bruce-cesium 6.7.3 → 6.7.4

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.
@@ -1,6 +1,6 @@
1
- import { Cartes, Entity as Entity$1, Geometry, ProjectViewTile, ENVIRONMENT, EntityRelationType, EntityType, Calculator, Style, DelayQueue, LRUCache, BruceEvent, ObjectUtils, AccountConcept, EntityHistoricData, EntityLod, RecordChangeFeed, ZoomControl, EntityTag, Tileset, EntityCoords, Api, DataLab, EntitySource, ClientFile, MenuItem, EntityRelation, BruceApi, ProgramKey, Carto, Bounds, ProjectView, ProjectViewBookmark, ProjectViewLegacyTile, Camera, EntityAttachment, EntityAttachmentType, EntityAttribute, MathUtils, Session } from 'bruce-models';
1
+ import { Cartes, Entity as Entity$1, Geometry, ProjectViewTile, ENVIRONMENT, EntityRelationType, EntityType, Calculator, Style, DelayQueue, LRUCache, BruceEvent, ObjectUtils, AccountConcept, EntityHistoricData, EntityLod, RecordChangeFeed, ZoomControl, EntityTag, Tileset, EntityCoords, Api, DataLab, EntitySource, ClientFile, MenuItem, EntityRelation, BruceApi, ProgramKey, Bounds, Carto, ProjectView, ProjectViewBookmark, ProjectViewLegacyTile, Camera, EntityAttachment, EntityAttachmentType, EntityAttribute, MathUtils, Session } from 'bruce-models';
2
2
  import * as Cesium from 'cesium';
3
- import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, HeightReference, HorizontalOrigin, VerticalOrigin, Cartesian3, ClassificationType, ConstantPositionProperty, ArcType, CornerType, ShadowMode, ColorBlendMode, HeadingPitchRoll, Math as Math$1, Transforms, Model, JulianDate, Quaternion, Matrix4, PolygonHierarchy, PolylineGraphics, Cartesian2, SceneTransforms, NearFarScalar, Matrix3, Rectangle, KmlDataSource, GeoJsonDataSource, SceneMode, Cesium3DTileStyle, HeadingPitchRange, Ion, Cesium3DTileColorBlendMode, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, IonResource, Cesium3DTileset, OrthographicFrustum, EasingFunction, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, PolygonPipeline, CesiumInspector, ClockRange, BoundingSphere, GeometryInstance, ScreenSpaceEventHandler, ScreenSpaceEventType, Intersect, CzmlDataSource, Fullscreen } from 'cesium';
3
+ import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, Math as Math$1, Cartesian3, JulianDate, Quaternion, Transforms, HeadingPitchRoll, Matrix4, DistanceDisplayCondition, HeightReference, ColorBlendMode, ShadowMode, ClassificationType, Model, HorizontalOrigin, VerticalOrigin, ConstantPositionProperty, PolygonHierarchy, PolylineGraphics, ArcType, CornerType, Cartesian2, SceneTransforms, NearFarScalar, Matrix3, Rectangle, KmlDataSource, GeoJsonDataSource, SceneMode, Cesium3DTileStyle, HeadingPitchRange, Cesium3DTileColorBlendMode, Ion, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, IonResource, Cesium3DTileset, OrthographicFrustum, EasingFunction, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, BoundingSphere, GeometryInstance, PolygonPipeline, CesiumInspector, ClockRange, ScreenSpaceEventHandler, ScreenSpaceEventType, Intersect, CzmlDataSource, Fullscreen } from 'cesium';
4
4
 
5
5
  /**
6
6
  * Ensures a number is returned from a given value.
@@ -21080,6 +21080,7 @@ class WidgetLeftPanelTabBookmarks extends WidgetLeftPanelTab.ATab {
21080
21080
  this._element = element;
21081
21081
  }
21082
21082
  _updateBookmarks() {
21083
+ var _a;
21083
21084
  const bookmarks = this._widget.Bookmarks;
21084
21085
  this._element.style.display = bookmarks.length ? "flex" : "none";
21085
21086
  const api = this._widget._getApiGetters().GetBruceApi();
@@ -21094,11 +21095,11 @@ class WidgetLeftPanelTabBookmarks extends WidgetLeftPanelTab.ATab {
21094
21095
  const image = document.createElement("div");
21095
21096
  image.className = "NextspaceLeftPanelTabBookmarksListItemImageBoxImage";
21096
21097
  imageBox.appendChild(image);
21097
- const previewUrl = bookmark["Screenshot.ClientFile.ID"] ? ClientFile.GetUrl({
21098
+ const previewUrl = bookmark["Screenshot.ClientFile.ID"] ? ((_a = bookmark["Screenshot.URL"]) !== null && _a !== void 0 ? _a : ClientFile.GetUrl({
21098
21099
  fileId: bookmark["Screenshot.ClientFile.ID"],
21099
21100
  api,
21100
21101
  viaCdn: true
21101
- }) : "";
21102
+ })) : "";
21102
21103
  // TODO: Some nice empty image.
21103
21104
  const img = document.createElement("img");
21104
21105
  img.src = previewUrl;
@@ -25064,7 +25065,10 @@ class WidgetBookmarks extends Widget.AWidget {
25064
25065
  const item = document.createElement("div");
25065
25066
  item.className = "NextspaceBookmarksRowItem";
25066
25067
  let previewUrl = "";
25067
- if (bookmark["Screenshot.ClientFile.ID"]) {
25068
+ if (bookmark["Screenshot.URL"]) {
25069
+ previewUrl = bookmark["Screenshot.URL"];
25070
+ }
25071
+ else if (bookmark["Screenshot.ClientFile.ID"]) {
25068
25072
  previewUrl = ClientFile.GetUrl({
25069
25073
  fileId: bookmark["Screenshot.ClientFile.ID"],
25070
25074
  api,
@@ -28839,7 +28843,7 @@ class WidgetInfoView extends Widget.AWidget {
28839
28843
  }
28840
28844
  }
28841
28845
  async _updateInfoView() {
28842
- var _b, _c, _d;
28846
+ var _b, _c, _d, _e;
28843
28847
  const selectedIds = this._manager.VisualsRegister.GetSelected();
28844
28848
  if (selectedIds.length <= 0) {
28845
28849
  this._element.style.display = "none";
@@ -28894,7 +28898,7 @@ class WidgetInfoView extends Widget.AWidget {
28894
28898
  const defaultImage = images.length ? images[0] : null;
28895
28899
  if (defaultImage) {
28896
28900
  this._imageContainer.style.display = "flex";
28897
- const url = ClientFile.GetUrl({
28901
+ const url = (_c = defaultImage.URL) !== null && _c !== void 0 ? _c : ClientFile.GetUrl({
28898
28902
  fileId: defaultImage["ClientFile.ID"],
28899
28903
  api: api,
28900
28904
  viaCdn: true
@@ -28907,7 +28911,7 @@ class WidgetInfoView extends Widget.AWidget {
28907
28911
  this._summary.appendChild(detailsTitle);
28908
28912
  // TODO: Selection for what mode instead of always doing "all".
28909
28913
  const attributes = gatherAttributes(EMode.ShowAll, entity, entityType);
28910
- const groups = groupAttributes(attributes, (_d = (_c = entityType.DataSchema) === null || _c === void 0 ? void 0 : _c.Structure) !== null && _d !== void 0 ? _d : []);
28914
+ const groups = groupAttributes(attributes, (_e = (_d = entityType.DataSchema) === null || _d === void 0 ? void 0 : _d.Structure) !== null && _e !== void 0 ? _e : []);
28911
28915
  for (const group of groups) {
28912
28916
  this._generateAttrGroup(entityType, entity, group);
28913
28917
  }
@@ -36329,7 +36333,7 @@ class WidgetViewBar extends Widget.AWidget {
36329
36333
  }
36330
36334
  }
36331
36335
 
36332
- const VERSION = "6.7.3";
36336
+ const VERSION = "6.7.4";
36333
36337
  /**
36334
36338
  * Updates the environment instance used by bruce-cesium to one specified.
36335
36339
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.