bruce-models 0.0.4 → 0.0.5

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