bruce-models 0.0.4 → 0.0.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.
@@ -2453,6 +2453,7 @@
2453
2453
  }
2454
2454
  });
2455
2455
  }); });
2456
+ api.Cache.Set(GetCacheKey(reqIds[i]), req, exports.Api.DEFAULT_CACHE_DURATION);
2456
2457
  reqs.push(req);
2457
2458
  };
2458
2459
  for (i = 0; i < reqIds.length; i++) {
@@ -3083,15 +3084,15 @@
3083
3084
 
3084
3085
  var MAX_AREA_IN_DEGREES$1 = 90;
3085
3086
  var GETTER_DELAY = 50;
3086
- (function (EntityLoadedGetter) {
3087
+ (function (BatchedDataGetter) {
3087
3088
  var Getter = /** @class */ (function () {
3088
- function Getter(entities, viewPort, batchSize) {
3089
+ function Getter(data, viewPort, batchSize) {
3089
3090
  var _this = this;
3090
3091
  this.viewPortRemoval = null;
3091
3092
  this.viewRect = null;
3092
3093
  this.viewCenter = null;
3093
3094
  this.onUpdate = null;
3094
- this.entities = entities;
3095
+ this.data = data;
3095
3096
  this.viewPort = viewPort;
3096
3097
  this.batchSize = batchSize;
3097
3098
  this.viewPortRemoval = this.viewPort.Updated().Subscribe(function () {
@@ -3135,9 +3136,9 @@
3135
3136
  }
3136
3137
  var index = 0;
3137
3138
  this.getterInterval = setInterval(function () {
3138
- _this.processBatch(_this.entities.slice(index, index + _this.batchSize));
3139
+ _this.processBatch(_this.data.slice(index, index + _this.batchSize));
3139
3140
  index += _this.batchSize;
3140
- if (index >= _this.entities.length) {
3141
+ if (index >= _this.data.length) {
3141
3142
  clearInterval(_this.getterInterval);
3142
3143
  }
3143
3144
  }, GETTER_DELAY);
@@ -3150,8 +3151,8 @@
3150
3151
  };
3151
3152
  return Getter;
3152
3153
  }());
3153
- EntityLoadedGetter.Getter = Getter;
3154
- })(exports.EntityLoadedGetter || (exports.EntityLoadedGetter = {}));
3154
+ BatchedDataGetter.Getter = Getter;
3155
+ })(exports.BatchedDataGetter || (exports.BatchedDataGetter = {}));
3155
3156
 
3156
3157
  (function (ClientFile) {
3157
3158
  function GetCacheKey(fileId) {
@@ -3714,20 +3715,20 @@
3714
3715
  var EType;
3715
3716
  (function (EType) {
3716
3717
  EType["None"] = "NONE";
3717
- EType["BruceEntities"] = "BruceEntity";
3718
- EType["BruceEntity"] = "SingleEntity";
3718
+ EType["Entities"] = "BruceEntity";
3719
+ EType["Entity"] = "SingleEntity";
3719
3720
  EType["Osm"] = "OSMBuildingsTileset";
3720
3721
  EType["CadTileset"] = "ModelTileset";
3721
3722
  EType["ArbTileset"] = "Cesium3DTileset";
3722
3723
  EType["Kml"] = "StaticKML";
3723
- EType["EntitiesTileset"] = "EntitiesTileset";
3724
- EType["EntitiesRaster"] = "RasterEntitiesTileset";
3724
+ EType["EntityTileset"] = "EntitiesTileset";
3725
+ EType["EntityRaster"] = "RasterEntitiesTileset";
3725
3726
  EType["PointCloud"] = "PointCloudTileset";
3726
3727
  })(EType = MenuItem.EType || (MenuItem.EType = {}));
3727
3728
  function CreateFromEntityId(entityId, typeId, styleId) {
3728
3729
  return {
3729
3730
  id: exports.ObjectUtils.UId(),
3730
- Type: EType.BruceEntity,
3731
+ Type: EType.Entity,
3731
3732
  Caption: "Generated Entity Menu Item",
3732
3733
  BruceEntity: {
3733
3734
  "EntityType.ID": typeId,
@@ -3747,7 +3748,7 @@
3747
3748
  function CreateFromTypeId(typeId, styleId) {
3748
3749
  return {
3749
3750
  id: exports.ObjectUtils.UId(),
3750
- Type: EType.BruceEntities,
3751
+ Type: EType.Entities,
3751
3752
  Caption: "Generated Entity Type Menu Item",
3752
3753
  BruceEntity: {
3753
3754
  "EntityType.ID": typeId
@@ -3778,7 +3779,7 @@
3778
3779
  else if (type == exports.Tileset.EType.EntitiesSet) {
3779
3780
  return {
3780
3781
  id: exports.ObjectUtils.UId(),
3781
- Type: EType.EntitiesTileset,
3782
+ Type: EType.EntityTileset,
3782
3783
  Caption: "Generated Entities Menu Item",
3783
3784
  FlyTo: false,
3784
3785
  tileset: {
@@ -3800,7 +3801,7 @@
3800
3801
  else if (type == exports.Tileset.EType.EntitiesMap) {
3801
3802
  return {
3802
3803
  id: exports.ObjectUtils.UId(),
3803
- Type: EType.EntitiesRaster,
3804
+ Type: EType.EntityRaster,
3804
3805
  Caption: "Generated Entities Menu Item",
3805
3806
  tileset: {
3806
3807
  TilesetID: tilesetId