@lightningtv/core
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -7,3 +7,3 @@ import type { AnimationSettings, RendererMainSettings } from '@lightningjs/renderer'; | ||
focusDebug: boolean; | ||
animationSettings: Partial<AnimationSettings>; | ||
animationSettings?: Partial<AnimationSettings>; | ||
animationsEnabled: boolean; | ||
@@ -10,0 +10,0 @@ fontSettings: Partial<IntrinsicTextNodeStyleProps>; |
@@ -79,3 +79,3 @@ import { createShader } from './lightningInit.js'; | ||
get states(): States; | ||
get animationSettings(): Partial<AnimationSettings>; | ||
get animationSettings(): Partial<AnimationSettings> | undefined; | ||
set animationSettings(animationSettings: Partial<AnimationSettings>); | ||
@@ -82,0 +82,0 @@ set hidden(val: boolean); |
@@ -214,3 +214,3 @@ import { renderer, createShader } from './lightningInit.js'; | ||
assertTruthy(this.rendered, 'Node must be rendered before animating'); | ||
return this.lng.animate(props, animationSettings || this.animationSettings); | ||
return this.lng.animate(props, animationSettings || this.animationSettings || {}); | ||
} | ||
@@ -217,0 +217,0 @@ chain(props, animationSettings) { |
{ | ||
"name": "@lightningtv/core", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Lightning TV Core for Universal Renderers", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -11,3 +11,3 @@ import type { | ||
focusDebug: boolean; | ||
animationSettings: Partial<AnimationSettings>; | ||
animationSettings?: Partial<AnimationSettings>; | ||
animationsEnabled: boolean; | ||
@@ -14,0 +14,0 @@ fontSettings: Partial<IntrinsicTextNodeStyleProps>; |
@@ -353,3 +353,3 @@ import { renderer, createShader } from './lightningInit.js'; | ||
props, | ||
animationSettings || this.animationSettings, | ||
animationSettings || this.animationSettings || {}, | ||
); | ||
@@ -522,3 +522,3 @@ } | ||
get animationSettings(): Partial<AnimationSettings> { | ||
get animationSettings(): Partial<AnimationSettings> | undefined { | ||
return this._animationSettings || Config.animationSettings; | ||
@@ -525,0 +525,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
Sorry, the diff of this file is not supported yet
207000