@lightningtv/core
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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 |
{ | ||
"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
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
162168
2413