bruce-models 3.0.2 → 3.0.3
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 +23 -4
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +23 -4
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/calculator/calculator.js +22 -3
- package/dist/lib/calculator/calculator.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
|
@@ -2690,16 +2690,35 @@ var Calculator;
|
|
|
2690
2690
|
let value;
|
|
2691
2691
|
switch (field.type) {
|
|
2692
2692
|
case EValueType.Gradient:
|
|
2693
|
-
|
|
2693
|
+
{
|
|
2694
|
+
const tmp = GetGradientValue(field.value, entity);
|
|
2695
|
+
// This avoids null turning into "null".
|
|
2696
|
+
if (tmp) {
|
|
2697
|
+
value = String(tmp);
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2694
2700
|
break;
|
|
2695
2701
|
case EValueType.Color:
|
|
2696
2702
|
case EValueType.Input:
|
|
2697
|
-
|
|
2703
|
+
{
|
|
2704
|
+
const tmp = GetInputValue(field.value, entity);
|
|
2705
|
+
// This avoids null turning into "null".
|
|
2706
|
+
if (tmp) {
|
|
2707
|
+
value = String(tmp);
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2698
2710
|
break;
|
|
2699
2711
|
case EValueType.Mapping:
|
|
2700
|
-
|
|
2712
|
+
{
|
|
2713
|
+
const tmp = GetMappingValue(field.value, entity);
|
|
2714
|
+
// This avoids null turning into "null".
|
|
2715
|
+
if (tmp) {
|
|
2716
|
+
value = String(tmp);
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2701
2719
|
break;
|
|
2702
2720
|
case EValueType.RandomColor:
|
|
2721
|
+
// Would be nice to randomize based on an attribute or entity ID instead of pure random.
|
|
2703
2722
|
var color = Color.RandomColor();
|
|
2704
2723
|
value = `rgba(${color.red},${color.green},${color.blue},${color.alpha})`;
|
|
2705
2724
|
break;
|
|
@@ -9108,7 +9127,7 @@ var DataSource;
|
|
|
9108
9127
|
DataSource.GetList = GetList;
|
|
9109
9128
|
})(DataSource || (DataSource = {}));
|
|
9110
9129
|
|
|
9111
|
-
const VERSION = "3.0.
|
|
9130
|
+
const VERSION = "3.0.3";
|
|
9112
9131
|
|
|
9113
9132
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, CamApi, IdmApi, 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, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
9114
9133
|
//# sourceMappingURL=bruce-models.es5.js.map
|