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.3.1 to 0.3.2

2

package.json
{
"name": "@lightningjs/solid",
"version": "0.3.1",
"version": "0.3.2",
"description": "Lightning renderer for solid universal",

@@ -5,0 +5,0 @@ "type": "module",

@@ -28,8 +28,2 @@ /*

function convertColor(key, value) {
return {
[key]: key.startsWith('color') ? normalizeColor(value) : value,
};
}
function convertEffectsToShader(styleEffects) {

@@ -136,3 +130,5 @@ const effects = [];

this[`_${key}`] = v;
if (!isArray(v)) {
if (isArray(v)) {
v[0] = normalizeColor(v[0]);
} else {
v = normalizeColor(v);

@@ -177,2 +173,20 @@ }

});
Object.defineProperties(this, {
linearGradient: {
set(props) {
this._linearGradient = props;
if (props.colors) {
props.colors = props.colors.map((c) => normalizeColor(c));
}
this.effects = {
...(this.effects || {}),
...{ linearGradient: props },
};
},
get() {
return this._linearGradient;
},
},
});
}

@@ -216,4 +230,3 @@

if (isArray(value)) {
let prop = convertColor(name, value[0]);
return this.animate(prop, value[1]).start();
return this.animate({ [name]: value[0] }, value[1]).start();
}

@@ -227,2 +240,6 @@

} else {
// Need to render before animating
if (isArray(value)) {
value = value[0];
}
this._renderProps[name] = value;

@@ -229,0 +246,0 @@ }

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