bruce-models 3.5.7 → 3.5.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 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +8 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/calculator/calculator.js +7 -2
- 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
|
@@ -4028,9 +4028,14 @@ var Calculator;
|
|
|
4028
4028
|
str: value,
|
|
4029
4029
|
entity: entity
|
|
4030
4030
|
});
|
|
4031
|
-
|
|
4031
|
+
const isJsEval = typeof value == "string" && value.startsWith("JS:");
|
|
4032
4032
|
const MATH_REGEX = /(\d+\.?\d*|\.\d+)([+\-*/])(\d+\.?\d*|\.\d+)/;
|
|
4033
|
-
|
|
4033
|
+
const isMathEval = isJsEval || MATH_REGEX.test(value);
|
|
4034
|
+
if (isJsEval || isMathEval) {
|
|
4035
|
+
if (isJsEval) {
|
|
4036
|
+
value = value.replace("JS:", "");
|
|
4037
|
+
value = value.trim();
|
|
4038
|
+
}
|
|
4034
4039
|
// https://rollupjs.org/guide/en/#avoiding-eval
|
|
4035
4040
|
// This stops eval warning.
|
|
4036
4041
|
const eval2 = eval;
|
|
@@ -10887,7 +10892,7 @@ var DataSource;
|
|
|
10887
10892
|
})(DataSource || (DataSource = {}));
|
|
10888
10893
|
|
|
10889
10894
|
// This is updated with the package.json version on build.
|
|
10890
|
-
const VERSION = "3.5.
|
|
10895
|
+
const VERSION = "3.5.8";
|
|
10891
10896
|
|
|
10892
10897
|
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, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, 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 };
|
|
10893
10898
|
//# sourceMappingURL=bruce-models.es5.js.map
|