@lightningtv/core
Advanced tools
Comparing version 2.3.0-beta.4 to 2.3.0-beta.5
@@ -135,3 +135,4 @@ import { renderer, createShader } from './lightningInit.js'; | ||
if (this.rendered) { | ||
this.shader = convertEffectsToShader(v); | ||
v._shader = v._shader || convertEffectsToShader(v); | ||
this.shader = v._shader; | ||
} | ||
@@ -433,3 +434,3 @@ } | ||
if (isDev) { | ||
if (!this.style[styleKey]) { | ||
if (this.style[styleKey] === undefined) { | ||
console.warn('fallback style key not found: ', styleKey); | ||
@@ -493,5 +494,6 @@ } | ||
if (node.style?.effects && !this._states) { | ||
node.style._shader = | ||
node.style._shader || convertEffectsToShader(node._effects); | ||
shader = node.style._shader; | ||
const effects = node.style.effects; | ||
effects._shader = | ||
effects._shader || convertEffectsToShader(node._effects); | ||
shader = effects._shader; | ||
} | ||
@@ -498,0 +500,0 @@ else { |
@@ -23,2 +23,3 @@ import { type FadeOutEffectProps, type GlitchEffectProps, type GrayscaleEffectProps, type AnimationSettings as RendererAnimationSettings, type LinearGradientEffectProps, type RadialGradientEffectProps, type RadialProgressEffectProps, type ITextNodeProps, ShaderController } from '@lightningjs/renderer'; | ||
holePunch?: any; | ||
_shader?: ShaderController<'DynamicShader'>; | ||
} | ||
@@ -69,3 +70,2 @@ export interface BorderEffects { | ||
[key: `$${string}`]: NodeProps; | ||
_shader?: ShaderController<'DynamicShader'>; | ||
} | ||
@@ -79,3 +79,2 @@ type NestedNodeStyles = NodeStyles | Array<NestedNodeStyles | undefined>; | ||
[key: `$${string}`]: TextProps; | ||
_shader?: ShaderController<'DynamicShader'>; | ||
} | ||
@@ -82,0 +81,0 @@ type NestedTextStyles = TextStyles | Array<NestedTextStyles | undefined>; |
{ | ||
"name": "@lightningtv/core", | ||
"version": "2.3.0-beta.4", | ||
"version": "2.3.0-beta.5", | ||
"description": "Lightning TV Core for Universal Renderers", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -284,3 +284,4 @@ import { renderer, createShader } from './lightningInit.js'; | ||
if (this.rendered) { | ||
this.shader = convertEffectsToShader(v); | ||
v._shader = v._shader || convertEffectsToShader(v); | ||
this.shader = v._shader; | ||
} | ||
@@ -652,3 +653,3 @@ } | ||
if (isDev) { | ||
if (!this.style[styleKey]) { | ||
if (this.style[styleKey] === undefined) { | ||
console.warn('fallback style key not found: ', styleKey); | ||
@@ -725,5 +726,6 @@ } | ||
if (node.style?.effects && !this._states) { | ||
node.style._shader = | ||
node.style._shader || convertEffectsToShader(node._effects); | ||
shader = node.style._shader; | ||
const effects = node.style.effects; | ||
effects._shader = | ||
effects._shader || convertEffectsToShader(node._effects); | ||
shader = effects._shader; | ||
} else { | ||
@@ -730,0 +732,0 @@ shader = convertEffectsToShader(node._effects); |
@@ -38,2 +38,3 @@ import { | ||
holePunch?: any; // shoud be HolePunchEffectProps; | ||
_shader?: ShaderController<'DynamicShader'>; | ||
} | ||
@@ -131,3 +132,2 @@ | ||
[key: `$${string}`]: NodeProps; | ||
_shader?: ShaderController<'DynamicShader'>; | ||
} | ||
@@ -167,3 +167,2 @@ type NestedNodeStyles = NodeStyles | Array<NestedNodeStyles | undefined>; | ||
[key: `$${string}`]: TextProps; | ||
_shader?: ShaderController<'DynamicShader'>; | ||
} | ||
@@ -170,0 +169,0 @@ type NestedTextStyles = TextStyles | Array<NestedTextStyles | undefined>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
217779
3296