bruce-models 4.2.7 → 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 +42 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +42 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +41 -2
- 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.umd.js
CHANGED
|
@@ -3611,7 +3611,10 @@
|
|
|
3611
3611
|
else if (path[0] == "boundaries") {
|
|
3612
3612
|
value = checkForValue(["Bruce"].concat(path));
|
|
3613
3613
|
}
|
|
3614
|
-
else if (path[0] == "
|
|
3614
|
+
else if (path[0] == "geometryPivot") {
|
|
3615
|
+
value = checkForValue(["Bruce"].concat(path));
|
|
3616
|
+
}
|
|
3617
|
+
else if (path[0] == "worldPivot") {
|
|
3615
3618
|
value = checkForValue(["Bruce"].concat(path));
|
|
3616
3619
|
}
|
|
3617
3620
|
else if (path[0] == "worldPosition") {
|
|
@@ -3637,7 +3640,10 @@
|
|
|
3637
3640
|
else if (path[1] == "boundaries") {
|
|
3638
3641
|
value = checkForValue(path.slice(1));
|
|
3639
3642
|
}
|
|
3640
|
-
else if (path[1] == "
|
|
3643
|
+
else if (path[1] == "geometryPivot") {
|
|
3644
|
+
value = checkForValue(path.slice(1));
|
|
3645
|
+
}
|
|
3646
|
+
else if (path[1] == "worldPivot") {
|
|
3641
3647
|
value = checkForValue(path.slice(1));
|
|
3642
3648
|
}
|
|
3643
3649
|
else if (path[1] == "worldPosition") {
|
|
@@ -3924,6 +3930,39 @@
|
|
|
3924
3930
|
});
|
|
3925
3931
|
}
|
|
3926
3932
|
Entity.GetList = GetList;
|
|
3933
|
+
/**
|
|
3934
|
+
* Helper method that returns an Entity object.
|
|
3935
|
+
* This will ensure the basics exist ("Bruce" structure).
|
|
3936
|
+
* @param params
|
|
3937
|
+
*/
|
|
3938
|
+
function Assert(params) {
|
|
3939
|
+
var _a, _b;
|
|
3940
|
+
let { entityId, entityTypeId, baseEntity } = params ? params : {};
|
|
3941
|
+
if (!entityId) {
|
|
3942
|
+
entityId = (_a = baseEntity === null || baseEntity === void 0 ? void 0 : baseEntity["Bruce"]) === null || _a === void 0 ? void 0 : _a["ID"];
|
|
3943
|
+
}
|
|
3944
|
+
if (!entityId) {
|
|
3945
|
+
entityId = exports.ObjectUtils.UId();
|
|
3946
|
+
}
|
|
3947
|
+
if (!entityTypeId) {
|
|
3948
|
+
entityTypeId = (_b = baseEntity === null || baseEntity === void 0 ? void 0 : baseEntity["Bruce"]) === null || _b === void 0 ? void 0 : _b["EntityType.ID"];
|
|
3949
|
+
}
|
|
3950
|
+
let bruce = baseEntity === null || baseEntity === void 0 ? void 0 : baseEntity["Bruce"];
|
|
3951
|
+
if (!bruce) {
|
|
3952
|
+
bruce = {
|
|
3953
|
+
"EntityType.ID": null
|
|
3954
|
+
};
|
|
3955
|
+
}
|
|
3956
|
+
bruce["ID"] = entityId;
|
|
3957
|
+
bruce["EntityType.ID"] = entityTypeId;
|
|
3958
|
+
return Object.assign(Object.assign({}, baseEntity), { "Bruce": bruce });
|
|
3959
|
+
}
|
|
3960
|
+
Entity.Assert = Assert;
|
|
3961
|
+
/**
|
|
3962
|
+
* Helper method that returns a geojson object for a given set of Entities.
|
|
3963
|
+
* @param params
|
|
3964
|
+
* @returns
|
|
3965
|
+
*/
|
|
3927
3966
|
function ToGeoJson(params) {
|
|
3928
3967
|
const { entities, excludeAltitude, altitude, includeUserData, allowedDisplayTypes } = params;
|
|
3929
3968
|
const features = [];
|
|
@@ -13003,7 +13042,7 @@
|
|
|
13003
13042
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
13004
13043
|
|
|
13005
13044
|
// This is updated with the package.json version on build.
|
|
13006
|
-
const VERSION = "4.2.
|
|
13045
|
+
const VERSION = "4.2.8";
|
|
13007
13046
|
|
|
13008
13047
|
exports.VERSION = VERSION;
|
|
13009
13048
|
exports.AbstractApi = AbstractApi;
|