@lightningjs/solid
Advanced tools
Comparing version 0.4.2 to 0.5.0
{ | ||
"name": "@lightningjs/solid", | ||
"version": "0.4.2", | ||
"version": "0.5.0", | ||
"description": "Lightning renderer for solid universal", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -85,2 +85,3 @@ /* | ||
'zIndex', | ||
'zIndexLocked', | ||
]; | ||
@@ -101,8 +102,9 @@ | ||
const LightningRendererNonAnimatingProps = [ | ||
'clipping', | ||
'contain', | ||
'fontFamily', | ||
'src', | ||
'text', | ||
'textAlign', | ||
'texture', | ||
'src', | ||
'fontFamily', | ||
'contain', | ||
'textAlign', | ||
]; | ||
@@ -454,7 +456,15 @@ | ||
if (isNaN(props.width) || isNaN(props.height)) { | ||
console.warn( | ||
`${node.name} may not be rendered - missing width and height`, | ||
); | ||
// Set width and height to parent less offset | ||
props.width = parent.width - props.x; | ||
props.height = parent.height - props.y; | ||
node._width = props.width; | ||
node._height = props.height; | ||
} | ||
if (!props.color && !props.src) { | ||
//Default color to transparent - If you later set a src, you'll need | ||
// to set color '#ffffffff' | ||
node._color = props.color = 0x00000000; | ||
} | ||
log('Rendering: ', node.name, props); | ||
@@ -461,0 +471,0 @@ node.hasChildren && node._applyZIndexToChildren(); |
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
58667
1147