Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lightningjs/solid

Package Overview
Dependencies
Maintainers
7
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningjs/solid - npm Package Compare versions

Comparing version 0.4.2 to 0.5.0

2

package.json
{
"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();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc