bruce-models 4.6.7 → 4.6.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 +8 -9
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +8 -9
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/common/geometry.js +7 -8
- package/dist/lib/common/geometry.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -4676,15 +4676,11 @@ var Geometry;
|
|
|
4676
4676
|
// This will append to the "full" object as it goes.
|
|
4677
4677
|
const traverse = (feature) => {
|
|
4678
4678
|
// Geometry collections don't have coords so we have to cast as any.
|
|
4679
|
-
const { type, coordinates, properties } = feature.geometry;
|
|
4679
|
+
const { type, coordinates, properties, geometries } = feature.geometry;
|
|
4680
4680
|
// Unknown thing. Ignoring.
|
|
4681
4681
|
if (!type) {
|
|
4682
4682
|
return;
|
|
4683
4683
|
}
|
|
4684
|
-
// No coordinates. Ignoring.
|
|
4685
|
-
if (!coordinates) {
|
|
4686
|
-
return;
|
|
4687
|
-
}
|
|
4688
4684
|
// Simple properties merge.
|
|
4689
4685
|
// Doesn't handle nested properties very well.
|
|
4690
4686
|
if (properties) {
|
|
@@ -4693,9 +4689,8 @@ var Geometry;
|
|
|
4693
4689
|
// We'll first match cases of nested collections and handle them early.
|
|
4694
4690
|
// Then we'll be left with simple geometry cases.
|
|
4695
4691
|
if (type === GeoJson.EType.GeometryCollection) {
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
const geo = collection.geometries[i];
|
|
4692
|
+
for (let i = 0; i < geometries.length; i++) {
|
|
4693
|
+
const geo = geometries[i];
|
|
4699
4694
|
traverse({
|
|
4700
4695
|
type: GeoJson.EType.Feature,
|
|
4701
4696
|
geometry: geo,
|
|
@@ -4711,6 +4706,10 @@ var Geometry;
|
|
|
4711
4706
|
}
|
|
4712
4707
|
return;
|
|
4713
4708
|
}
|
|
4709
|
+
// No coordinates. Ignoring.
|
|
4710
|
+
if (!coordinates) {
|
|
4711
|
+
return;
|
|
4712
|
+
}
|
|
4714
4713
|
const geometry = {};
|
|
4715
4714
|
switch (type) {
|
|
4716
4715
|
case GeoJson.EType.Polygon:
|
|
@@ -14026,7 +14025,7 @@ var DataSource;
|
|
|
14026
14025
|
})(DataSource || (DataSource = {}));
|
|
14027
14026
|
|
|
14028
14027
|
// This is updated with the package.json version on build.
|
|
14029
|
-
const VERSION = "4.6.
|
|
14028
|
+
const VERSION = "4.6.8";
|
|
14030
14029
|
|
|
14031
14030
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, EntityTableView, 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 };
|
|
14032
14031
|
//# sourceMappingURL=bruce-models.es5.js.map
|