bruce-models 0.1.1 → 0.1.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.umd.js
CHANGED
|
@@ -1122,6 +1122,9 @@
|
|
|
1122
1122
|
switch (field.type) {
|
|
1123
1123
|
case EValueType.Color:
|
|
1124
1124
|
value = field.value;
|
|
1125
|
+
if (value) {
|
|
1126
|
+
value = exports.Color.ColorFromStr(value);
|
|
1127
|
+
}
|
|
1125
1128
|
break;
|
|
1126
1129
|
case EValueType.Gradient:
|
|
1127
1130
|
value = GetGradientValue(field.value, entity);
|
|
@@ -1145,7 +1148,7 @@
|
|
|
1145
1148
|
}
|
|
1146
1149
|
break;
|
|
1147
1150
|
}
|
|
1148
|
-
if (
|
|
1151
|
+
if (value || value == 0) {
|
|
1149
1152
|
return value;
|
|
1150
1153
|
}
|
|
1151
1154
|
}
|