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

@lightningtv/core

Package Overview
Dependencies
Maintainers
0
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningtv/core - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/src/elementNode.d.ts

@@ -76,2 +76,4 @@ import { createShader } from './lightningInit.js';

set animationSettings(animationSettings: Partial<AnimationSettings>);
set hidden(val: boolean);
get hidden(): boolean;
requiresLayout(): true | ((this: ElementNode, target: ElementNode, child?: ElementNode, dimensions?: Dimensions) => boolean | void) | undefined;

@@ -78,0 +80,0 @@ updateLayout(child?: ElementNode, dimensions?: Dimensions): void;

@@ -15,3 +15,3 @@ import { renderer, createShader } from './lightningInit.js';

for (const [type, props] of Object.entries(styleEffects)) {
effects.push({ name: `el${index}`, type, props });
effects.push({ name: `effect${index}`, type, props });
index++;

@@ -299,2 +299,8 @@ }

}
set hidden(val) {
this.alpha = val ? 0 : 1;
}
get hidden() {
return this.alpha === 0;
}
requiresLayout() {

@@ -551,3 +557,29 @@ return this.display === 'flex' || this.onBeforeLayout;

},
radialGradient: {
set(props = {}) {
this.effects = this.effects
? {
...this.effects,
...{ radialGradient: props },
}
: { radialGradient: props };
},
get() {
return this.effects?.radialGradient;
},
},
radialProgress: {
set(props = {}) {
this.effects = this.effects
? {
...this.effects,
...{ radialProgressGradient: props },
}
: { radialProgressGradient: props };
},
get() {
return this.effects?.radialProgress;
},
},
});
//# sourceMappingURL=elementNode.js.map

2

package.json
{
"name": "@lightningtv/core",
"version": "1.0.0",
"version": "1.0.1",
"description": "Lightning TV Core for Universal Renderers",

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

@@ -40,2 +40,4 @@ import { renderer, createShader } from './lightningInit.js';

ShaderController,
RadialGradientEffectProps,
RadialProgressEffectProps,
} from '@lightningjs/renderer';

@@ -55,3 +57,3 @@ import { assertTruthy } from '@lightningjs/renderer/utils';

for (const [type, props] of Object.entries(styleEffects)) {
effects.push({ name: `el${index}`, type, props } as EffectDescUnion);
effects.push({ name: `effect${index}`, type, props } as EffectDescUnion);
index++;

@@ -452,2 +454,10 @@ }

set hidden(val: boolean) {
this.alpha = val ? 0 : 1;
}
get hidden() {
return this.alpha === 0;
}
requiresLayout() {

@@ -746,2 +756,28 @@ return this.display === 'flex' || this.onBeforeLayout;

},
radialGradient: {
set(this: ElementNode, props: RadialGradientEffectProps = {}) {
this.effects = this.effects
? {
...this.effects,
...{ radialGradient: props },
}
: { radialGradient: props };
},
get(this: ElementNode): RadialGradientEffectProps | undefined {
return this.effects?.radialGradient;
},
},
radialProgress: {
set(this: ElementNode, props: RadialProgressEffectProps = {}) {
this.effects = this.effects
? {
...this.effects,
...{ radialProgressGradient: props },
}
: { radialProgressGradient: props };
},
get(this: ElementNode): RadialProgressEffectProps | undefined {
return this.effects?.radialProgress;
},
},
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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