bruce-models 4.2.5 → 4.2.7
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 +30 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +30 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +24 -0
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/tileset/tileset.js +5 -2
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/tileset/tileset.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -3665,6 +3665,18 @@ var Entity;
|
|
|
3665
3665
|
else if (path[0] == "boundaries") {
|
|
3666
3666
|
value = checkForValue(["Bruce"].concat(path));
|
|
3667
3667
|
}
|
|
3668
|
+
else if (path[0] == "position") {
|
|
3669
|
+
value = checkForValue(["Bruce"].concat(path));
|
|
3670
|
+
}
|
|
3671
|
+
else if (path[0] == "worldPosition") {
|
|
3672
|
+
value = checkForValue(["Bruce"].concat(path));
|
|
3673
|
+
}
|
|
3674
|
+
else if (path[0] == "tilesetID") {
|
|
3675
|
+
value = checkForValue(["Bruce"].concat(path));
|
|
3676
|
+
}
|
|
3677
|
+
else if (path[0] == "geometryRadius") {
|
|
3678
|
+
value = checkForValue(["Bruce"].concat(path));
|
|
3679
|
+
}
|
|
3668
3680
|
// Now we'll check against properties that could still be in the top-level and haven't been migrated yet.
|
|
3669
3681
|
if (path[0] == "Bruce" && path.length > 1) {
|
|
3670
3682
|
if (path[1] == "location") {
|
|
@@ -3679,6 +3691,18 @@ var Entity;
|
|
|
3679
3691
|
else if (path[1] == "boundaries") {
|
|
3680
3692
|
value = checkForValue(path.slice(1));
|
|
3681
3693
|
}
|
|
3694
|
+
else if (path[1] == "position") {
|
|
3695
|
+
value = checkForValue(path.slice(1));
|
|
3696
|
+
}
|
|
3697
|
+
else if (path[1] == "worldPosition") {
|
|
3698
|
+
value = checkForValue(path.slice(1));
|
|
3699
|
+
}
|
|
3700
|
+
else if (path[1] == "tilesetID") {
|
|
3701
|
+
value = checkForValue(path.slice(1));
|
|
3702
|
+
}
|
|
3703
|
+
else if (path[1] == "geometryRadius") {
|
|
3704
|
+
value = checkForValue(path.slice(1));
|
|
3705
|
+
}
|
|
3682
3706
|
}
|
|
3683
3707
|
}
|
|
3684
3708
|
return value;
|
|
@@ -9419,10 +9443,13 @@ var Tileset;
|
|
|
9419
9443
|
*/
|
|
9420
9444
|
function IsAccessAllowed(params) {
|
|
9421
9445
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9422
|
-
let { tilesetId, sourceAccountId, getters, forAccountId, req } = params;
|
|
9446
|
+
let { tilesetId, sourceAccountId, getters, forAccountId, checkFreeOption, req } = params;
|
|
9423
9447
|
if (!forAccountId) {
|
|
9424
9448
|
forAccountId = ENVIRONMENT.PARAMS.accountId;
|
|
9425
9449
|
}
|
|
9450
|
+
if (checkFreeOption == null) {
|
|
9451
|
+
checkFreeOption = true;
|
|
9452
|
+
}
|
|
9426
9453
|
// Null source account id means it's a tileset from within the same account.
|
|
9427
9454
|
// We also don't want to bother looking for records if we're loading in our own account.
|
|
9428
9455
|
if (forAccountId == sourceAccountId || !sourceAccountId) {
|
|
@@ -9454,7 +9481,7 @@ var Tileset;
|
|
|
9454
9481
|
}
|
|
9455
9482
|
// If not allowed we'll check if this is a CC3D tileset and if it's set as the selected "free" one.
|
|
9456
9483
|
// This is a placeholder feature until a marketplace system is made.
|
|
9457
|
-
if (String(sourceAccountId).toLowerCase().trim() == "cc3d") {
|
|
9484
|
+
if (String(sourceAccountId).toLowerCase().trim() == "cc3d" && checkFreeOption) {
|
|
9458
9485
|
const settings = (yield Account.GetAppSettings({
|
|
9459
9486
|
accountId: forAccountId,
|
|
9460
9487
|
appId: Account.EAppId.Navigator,
|
|
@@ -13242,7 +13269,7 @@ var DataSource;
|
|
|
13242
13269
|
})(DataSource || (DataSource = {}));
|
|
13243
13270
|
|
|
13244
13271
|
// This is updated with the package.json version on build.
|
|
13245
|
-
const VERSION = "4.2.
|
|
13272
|
+
const VERSION = "4.2.7";
|
|
13246
13273
|
|
|
13247
13274
|
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 };
|
|
13248
13275
|
//# sourceMappingURL=bruce-models.es5.js.map
|