@lightningtv/core
Advanced tools
Comparing version 2.2.5 to 2.2.6
@@ -135,4 +135,3 @@ import { renderer, createShader } from './lightningInit.js'; | ||
if (this.rendered) { | ||
v._shader = v._shader || convertEffectsToShader(v); | ||
this.shader = v._shader; | ||
this.shader = convertEffectsToShader(v); | ||
} | ||
@@ -473,9 +472,14 @@ } | ||
} | ||
this._undoStyles = Object.keys(newStyles); | ||
// Apply transition first | ||
if (newStyles.transition !== undefined) { | ||
this.transition = newStyles.transition; | ||
if (newStyles) { | ||
this._undoStyles = Object.keys(newStyles); | ||
// Apply transition first | ||
if (newStyles.transition !== undefined) { | ||
this.transition = newStyles.transition; | ||
} | ||
// Apply the styles | ||
Object.assign(this, newStyles); | ||
} | ||
// Apply the styles | ||
Object.assign(this, newStyles); | ||
else { | ||
this._undoStyles = []; | ||
} | ||
} | ||
@@ -482,0 +486,0 @@ } |
{ | ||
"name": "@lightningtv/core", | ||
"version": "2.2.5", | ||
"version": "2.2.6", | ||
"description": "Lightning TV Core for Universal Renderers", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -285,4 +285,3 @@ import { renderer, createShader } from './lightningInit.js'; | ||
if (this.rendered) { | ||
v._shader = v._shader || convertEffectsToShader(v); | ||
this.shader = v._shader; | ||
this.shader = convertEffectsToShader(v); | ||
} | ||
@@ -696,11 +695,14 @@ } | ||
this._undoStyles = Object.keys(newStyles); | ||
if (newStyles) { | ||
this._undoStyles = Object.keys(newStyles); | ||
// Apply transition first | ||
if (newStyles.transition !== undefined) { | ||
this.transition = newStyles.transition as Styles['transition']; | ||
} | ||
// Apply transition first | ||
if (newStyles.transition !== undefined) { | ||
this.transition = newStyles.transition as Styles['transition']; | ||
// Apply the styles | ||
Object.assign(this, newStyles); | ||
} else { | ||
this._undoStyles = []; | ||
} | ||
// Apply the styles | ||
Object.assign(this, newStyles); | ||
} | ||
@@ -707,0 +709,0 @@ } |
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
219841
3350