@lightningjs/solid
Advanced tools
Comparing version 0.5.3 to 0.5.4
{ | ||
"name": "@lightningjs/solid", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "Lightning renderer for solid universal", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -458,17 +458,20 @@ /* | ||
} else { | ||
// Set width and height to parent less offset | ||
if (isNaN(props.width)) { | ||
props.width = parent.width - props.x; | ||
node._width = props.width; | ||
} | ||
// If its not an image or texture apply some defaults | ||
if (!(props.src || props.texture)) { | ||
// Set width and height to parent less offset | ||
if (isNaN(props.width)) { | ||
props.width = parent.width - props.x; | ||
node._width = props.width; | ||
} | ||
if (isNaN(props.height)) { | ||
props.height = parent.height - props.y; | ||
node._height = props.height; | ||
} | ||
if (isNaN(props.height)) { | ||
props.height = parent.height - props.y; | ||
node._height = props.height; | ||
} | ||
if (!props.color && !(props.src || props.texture)) { | ||
//Default color to transparent - If you later set a src, you'll need | ||
// to set color '#ffffffff' | ||
node._color = props.color = 0x00000000; | ||
if (!props.color) { | ||
//Default color to transparent - If you later set a src, you'll need | ||
// to set color '#ffffffff' | ||
node._color = props.color = 0x00000000; | ||
} | ||
} | ||
@@ -475,0 +478,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59472
1161