bruce-models 4.2.6 → 4.2.8
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 +64 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +64 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +63 -0
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity.d.ts +25 -6
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -3665,6 +3665,21 @@ var Entity;
|
|
|
3665
3665
|
else if (path[0] == "boundaries") {
|
|
3666
3666
|
value = checkForValue(["Bruce"].concat(path));
|
|
3667
3667
|
}
|
|
3668
|
+
else if (path[0] == "geometryPivot") {
|
|
3669
|
+
value = checkForValue(["Bruce"].concat(path));
|
|
3670
|
+
}
|
|
3671
|
+
else if (path[0] == "worldPivot") {
|
|
3672
|
+
value = checkForValue(["Bruce"].concat(path));
|
|
3673
|
+
}
|
|
3674
|
+
else if (path[0] == "worldPosition") {
|
|
3675
|
+
value = checkForValue(["Bruce"].concat(path));
|
|
3676
|
+
}
|
|
3677
|
+
else if (path[0] == "tilesetID") {
|
|
3678
|
+
value = checkForValue(["Bruce"].concat(path));
|
|
3679
|
+
}
|
|
3680
|
+
else if (path[0] == "geometryRadius") {
|
|
3681
|
+
value = checkForValue(["Bruce"].concat(path));
|
|
3682
|
+
}
|
|
3668
3683
|
// Now we'll check against properties that could still be in the top-level and haven't been migrated yet.
|
|
3669
3684
|
if (path[0] == "Bruce" && path.length > 1) {
|
|
3670
3685
|
if (path[1] == "location") {
|
|
@@ -3679,6 +3694,21 @@ var Entity;
|
|
|
3679
3694
|
else if (path[1] == "boundaries") {
|
|
3680
3695
|
value = checkForValue(path.slice(1));
|
|
3681
3696
|
}
|
|
3697
|
+
else if (path[1] == "geometryPivot") {
|
|
3698
|
+
value = checkForValue(path.slice(1));
|
|
3699
|
+
}
|
|
3700
|
+
else if (path[1] == "worldPivot") {
|
|
3701
|
+
value = checkForValue(path.slice(1));
|
|
3702
|
+
}
|
|
3703
|
+
else if (path[1] == "worldPosition") {
|
|
3704
|
+
value = checkForValue(path.slice(1));
|
|
3705
|
+
}
|
|
3706
|
+
else if (path[1] == "tilesetID") {
|
|
3707
|
+
value = checkForValue(path.slice(1));
|
|
3708
|
+
}
|
|
3709
|
+
else if (path[1] == "geometryRadius") {
|
|
3710
|
+
value = checkForValue(path.slice(1));
|
|
3711
|
+
}
|
|
3682
3712
|
}
|
|
3683
3713
|
}
|
|
3684
3714
|
return value;
|
|
@@ -3954,6 +3984,39 @@ var Entity;
|
|
|
3954
3984
|
});
|
|
3955
3985
|
}
|
|
3956
3986
|
Entity.GetList = GetList;
|
|
3987
|
+
/**
|
|
3988
|
+
* Helper method that returns an Entity object.
|
|
3989
|
+
* This will ensure the basics exist ("Bruce" structure).
|
|
3990
|
+
* @param params
|
|
3991
|
+
*/
|
|
3992
|
+
function Assert(params) {
|
|
3993
|
+
var _a, _b;
|
|
3994
|
+
let { entityId, entityTypeId, baseEntity } = params ? params : {};
|
|
3995
|
+
if (!entityId) {
|
|
3996
|
+
entityId = (_a = baseEntity === null || baseEntity === void 0 ? void 0 : baseEntity["Bruce"]) === null || _a === void 0 ? void 0 : _a["ID"];
|
|
3997
|
+
}
|
|
3998
|
+
if (!entityId) {
|
|
3999
|
+
entityId = ObjectUtils.UId();
|
|
4000
|
+
}
|
|
4001
|
+
if (!entityTypeId) {
|
|
4002
|
+
entityTypeId = (_b = baseEntity === null || baseEntity === void 0 ? void 0 : baseEntity["Bruce"]) === null || _b === void 0 ? void 0 : _b["EntityType.ID"];
|
|
4003
|
+
}
|
|
4004
|
+
let bruce = baseEntity === null || baseEntity === void 0 ? void 0 : baseEntity["Bruce"];
|
|
4005
|
+
if (!bruce) {
|
|
4006
|
+
bruce = {
|
|
4007
|
+
"EntityType.ID": null
|
|
4008
|
+
};
|
|
4009
|
+
}
|
|
4010
|
+
bruce["ID"] = entityId;
|
|
4011
|
+
bruce["EntityType.ID"] = entityTypeId;
|
|
4012
|
+
return Object.assign(Object.assign({}, baseEntity), { "Bruce": bruce });
|
|
4013
|
+
}
|
|
4014
|
+
Entity.Assert = Assert;
|
|
4015
|
+
/**
|
|
4016
|
+
* Helper method that returns a geojson object for a given set of Entities.
|
|
4017
|
+
* @param params
|
|
4018
|
+
* @returns
|
|
4019
|
+
*/
|
|
3957
4020
|
function ToGeoJson(params) {
|
|
3958
4021
|
const { entities, excludeAltitude, altitude, includeUserData, allowedDisplayTypes } = params;
|
|
3959
4022
|
const features = [];
|
|
@@ -13245,7 +13308,7 @@ var DataSource;
|
|
|
13245
13308
|
})(DataSource || (DataSource = {}));
|
|
13246
13309
|
|
|
13247
13310
|
// This is updated with the package.json version on build.
|
|
13248
|
-
const VERSION = "4.2.
|
|
13311
|
+
const VERSION = "4.2.8";
|
|
13249
13312
|
|
|
13250
13313
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
13251
13314
|
//# sourceMappingURL=bruce-models.es5.js.map
|