@omnia/velcron 8.0.291-dev → 8.0.293-dev
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.
|
@@ -249,7 +249,7 @@ export interface VelcronImageDefinition extends VelcronDefinitionWithEditMode {
|
|
|
249
249
|
ratio?: VelcronImageRatios | string;
|
|
250
250
|
width?: number | string;
|
|
251
251
|
height?: number | string;
|
|
252
|
-
|
|
252
|
+
fit?: "contain" | "cover";
|
|
253
253
|
borderRadius?: VelcronDimensions;
|
|
254
254
|
events?: VelcronOnPressEvent;
|
|
255
255
|
}
|
package/package.json
CHANGED
package/parser/VelcronData.js
CHANGED
|
@@ -539,7 +539,7 @@ class VelcronData {
|
|
|
539
539
|
const lastParent = null;
|
|
540
540
|
for (let i = 0, n = a.length; i < n; ++i) {
|
|
541
541
|
const k = a[i];
|
|
542
|
-
if (object.hasOwnProperty(k)) {
|
|
542
|
+
if (object && object.hasOwnProperty(k)) {
|
|
543
543
|
//
|
|
544
544
|
if (typeof value !== "undefined" && (i + 1) == a.length) {
|
|
545
545
|
if (Array.isArray(object[k]) && typeof value === "string" || value instanceof String) {
|
|
@@ -619,7 +619,7 @@ class VelcronData {
|
|
|
619
619
|
//Fetch from current ctx
|
|
620
620
|
object = renderContext.currentContext;
|
|
621
621
|
}
|
|
622
|
-
if (VelcronData.isObject(object)) {
|
|
622
|
+
if (VelcronData.isObject(object) && object) {
|
|
623
623
|
result = VelcronData.getOrSetObjectByPath(object, path, value);
|
|
624
624
|
}
|
|
625
625
|
else {
|