bruce-models 1.9.4 → 1.9.6
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
CHANGED
|
@@ -2077,11 +2077,11 @@ function parseLegacyPath(path) {
|
|
|
2077
2077
|
if (path.startsWith("${") && path.endsWith("}")) {
|
|
2078
2078
|
path = path.replace("${", "");
|
|
2079
2079
|
path = path.replace("}", "");
|
|
2080
|
-
// Split by dots.
|
|
2081
|
-
paths.push(PathUtils.ParseLegacy(path));
|
|
2082
|
-
// Take string as is.
|
|
2083
|
-
paths.push([path]);
|
|
2084
2080
|
}
|
|
2081
|
+
// Split by dots.
|
|
2082
|
+
paths.push(PathUtils.ParseLegacy(path));
|
|
2083
|
+
// Take string as is.
|
|
2084
|
+
paths.push([path]);
|
|
2085
2085
|
// Split by backslashes.
|
|
2086
2086
|
paths.push(PathUtils.Parse(path));
|
|
2087
2087
|
return paths;
|
|
@@ -2221,16 +2221,19 @@ var Calculator;
|
|
|
2221
2221
|
let value;
|
|
2222
2222
|
switch (field.type) {
|
|
2223
2223
|
case EValueType.Gradient:
|
|
2224
|
-
value =
|
|
2224
|
+
value = GetGradientValue(field.value, entity);
|
|
2225
2225
|
break;
|
|
2226
2226
|
case EValueType.Color:
|
|
2227
2227
|
case EValueType.Input:
|
|
2228
|
-
value =
|
|
2228
|
+
value = GetInputValue(field.value, entity);
|
|
2229
2229
|
break;
|
|
2230
2230
|
case EValueType.Mapping:
|
|
2231
|
-
value =
|
|
2231
|
+
value = GetMappingValue(field.value, entity);
|
|
2232
2232
|
break;
|
|
2233
2233
|
}
|
|
2234
|
+
if (value != "") {
|
|
2235
|
+
value = Number(value);
|
|
2236
|
+
}
|
|
2234
2237
|
if (value || value == 0) {
|
|
2235
2238
|
return value;
|
|
2236
2239
|
}
|