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.
- package/dist/bruce-models.es5.js +17 -17
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +15 -15
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/entity/getters/{entity-loaded-getter.js → batched-data-getter.js} +10 -10
- package/dist/lib/entity/getters/batched-data-getter.js.map +1 -0
- package/dist/lib/project/menu-item.js +8 -8
- package/dist/lib/project/menu-item.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/getters/{entity-loaded-getter.d.ts → batched-data-getter.d.ts} +5 -6
- package/dist/types/project/menu-item.d.ts +4 -4
- package/package.json +1 -1
- package/dist/lib/entity/getters/entity-loaded-getter.js.map +0 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -3101,16 +3101,16 @@ var EntityFilterGetter;
|
|
|
3101
3101
|
|
|
3102
3102
|
var MAX_AREA_IN_DEGREES$1 = 90;
|
|
3103
3103
|
var GETTER_DELAY = 50;
|
|
3104
|
-
var
|
|
3105
|
-
(function (
|
|
3104
|
+
var BatchedDataGetter;
|
|
3105
|
+
(function (BatchedDataGetter) {
|
|
3106
3106
|
var Getter = /** @class */ (function () {
|
|
3107
|
-
function Getter(
|
|
3107
|
+
function Getter(data, viewPort, batchSize) {
|
|
3108
3108
|
var _this = this;
|
|
3109
3109
|
this.viewPortRemoval = null;
|
|
3110
3110
|
this.viewRect = null;
|
|
3111
3111
|
this.viewCenter = null;
|
|
3112
3112
|
this.onUpdate = null;
|
|
3113
|
-
this.
|
|
3113
|
+
this.data = data;
|
|
3114
3114
|
this.viewPort = viewPort;
|
|
3115
3115
|
this.batchSize = batchSize;
|
|
3116
3116
|
this.viewPortRemoval = this.viewPort.Updated().Subscribe(function () {
|
|
@@ -3154,9 +3154,9 @@ var EntityLoadedGetter;
|
|
|
3154
3154
|
}
|
|
3155
3155
|
var index = 0;
|
|
3156
3156
|
this.getterInterval = setInterval(function () {
|
|
3157
|
-
_this.processBatch(_this.
|
|
3157
|
+
_this.processBatch(_this.data.slice(index, index + _this.batchSize));
|
|
3158
3158
|
index += _this.batchSize;
|
|
3159
|
-
if (index >= _this.
|
|
3159
|
+
if (index >= _this.data.length) {
|
|
3160
3160
|
clearInterval(_this.getterInterval);
|
|
3161
3161
|
}
|
|
3162
3162
|
}, GETTER_DELAY);
|
|
@@ -3169,8 +3169,8 @@ var EntityLoadedGetter;
|
|
|
3169
3169
|
};
|
|
3170
3170
|
return Getter;
|
|
3171
3171
|
}());
|
|
3172
|
-
|
|
3173
|
-
})(
|
|
3172
|
+
BatchedDataGetter.Getter = Getter;
|
|
3173
|
+
})(BatchedDataGetter || (BatchedDataGetter = {}));
|
|
3174
3174
|
|
|
3175
3175
|
var ClientFile;
|
|
3176
3176
|
(function (ClientFile) {
|
|
@@ -3738,20 +3738,20 @@ var MenuItem;
|
|
|
3738
3738
|
var EType;
|
|
3739
3739
|
(function (EType) {
|
|
3740
3740
|
EType["None"] = "NONE";
|
|
3741
|
-
EType["
|
|
3742
|
-
EType["
|
|
3741
|
+
EType["Entities"] = "BruceEntity";
|
|
3742
|
+
EType["Entity"] = "SingleEntity";
|
|
3743
3743
|
EType["Osm"] = "OSMBuildingsTileset";
|
|
3744
3744
|
EType["CadTileset"] = "ModelTileset";
|
|
3745
3745
|
EType["ArbTileset"] = "Cesium3DTileset";
|
|
3746
3746
|
EType["Kml"] = "StaticKML";
|
|
3747
|
-
EType["
|
|
3748
|
-
EType["
|
|
3747
|
+
EType["EntityTileset"] = "EntitiesTileset";
|
|
3748
|
+
EType["EntityRaster"] = "RasterEntitiesTileset";
|
|
3749
3749
|
EType["PointCloud"] = "PointCloudTileset";
|
|
3750
3750
|
})(EType = MenuItem.EType || (MenuItem.EType = {}));
|
|
3751
3751
|
function CreateFromEntityId(entityId, typeId, styleId) {
|
|
3752
3752
|
return {
|
|
3753
3753
|
id: ObjectUtils.UId(),
|
|
3754
|
-
Type: EType.
|
|
3754
|
+
Type: EType.Entity,
|
|
3755
3755
|
Caption: "Generated Entity Menu Item",
|
|
3756
3756
|
BruceEntity: {
|
|
3757
3757
|
"EntityType.ID": typeId,
|
|
@@ -3771,7 +3771,7 @@ var MenuItem;
|
|
|
3771
3771
|
function CreateFromTypeId(typeId, styleId) {
|
|
3772
3772
|
return {
|
|
3773
3773
|
id: ObjectUtils.UId(),
|
|
3774
|
-
Type: EType.
|
|
3774
|
+
Type: EType.Entities,
|
|
3775
3775
|
Caption: "Generated Entity Type Menu Item",
|
|
3776
3776
|
BruceEntity: {
|
|
3777
3777
|
"EntityType.ID": typeId
|
|
@@ -3802,7 +3802,7 @@ var MenuItem;
|
|
|
3802
3802
|
else if (type == Tileset.EType.EntitiesSet) {
|
|
3803
3803
|
return {
|
|
3804
3804
|
id: ObjectUtils.UId(),
|
|
3805
|
-
Type: EType.
|
|
3805
|
+
Type: EType.EntityTileset,
|
|
3806
3806
|
Caption: "Generated Entities Menu Item",
|
|
3807
3807
|
FlyTo: false,
|
|
3808
3808
|
tileset: {
|
|
@@ -3824,7 +3824,7 @@ var MenuItem;
|
|
|
3824
3824
|
else if (type == Tileset.EType.EntitiesMap) {
|
|
3825
3825
|
return {
|
|
3826
3826
|
id: ObjectUtils.UId(),
|
|
3827
|
-
Type: EType.
|
|
3827
|
+
Type: EType.EntityRaster,
|
|
3828
3828
|
Caption: "Generated Entities Menu Item",
|
|
3829
3829
|
tileset: {
|
|
3830
3830
|
TilesetID: tilesetId
|
|
@@ -4784,5 +4784,5 @@ var MathUtils;
|
|
|
4784
4784
|
MathUtils.RandInt = RandInt;
|
|
4785
4785
|
})(MathUtils || (MathUtils = {}));
|
|
4786
4786
|
|
|
4787
|
-
export { AnnDocument, AbstractApi, Api, BruceApi, CamApi, IdmApi, Calculator, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityGlobe, EntityFilterGetter,
|
|
4787
|
+
export { AnnDocument, AbstractApi, Api, BruceApi, CamApi, IdmApi, Calculator, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityGlobe, EntityFilterGetter, BatchedDataGetter, ClientFile, ProgramKey, MenuItemZoomControl, MenuItem, ProjectViewBookmark, ProjectView, PendingAction, Style, TilesetEntitiesMapTiles, TilesetExtMapTiles, Tileset, Ucs, Permission, Session, UserGroup, User, EncryptUtils, MathUtils, ObjectUtils, PathUtils };
|
|
4788
4788
|
//# sourceMappingURL=bruce-models.es5.js.map
|