fix(ivy): setting up animation properties correctly (FW-643) (#27496)
Prior to this change, animation properties were defined as element attributes, which caused errors at runtime. Now all animation-related attributes are defined as element properties. Also as a part of this update, we start to account for bindings used in animations, which was previously missing. PR Close #27496
This commit is contained in:

committed by
Igor Minar

parent
4da739a970
commit
c71d7b5633
@ -19,6 +19,8 @@ import {getTNode} from '../util';
|
||||
|
||||
import {CorePlayerHandler} from './core_player_handler';
|
||||
|
||||
const ANIMATION_PROP_PREFIX = '@';
|
||||
|
||||
export function createEmptyStylingContext(
|
||||
element?: RElement | null, sanitizer?: StyleSanitizeFn | null,
|
||||
initialStylingValues?: InitialStyles): StylingContext {
|
||||
@ -91,6 +93,10 @@ export function isStylingContext(value: any): value is StylingContext {
|
||||
typeof value[ACTIVE_INDEX] !== 'number';
|
||||
}
|
||||
|
||||
export function isAnimationProp(name: string): boolean {
|
||||
return name[0] === ANIMATION_PROP_PREFIX;
|
||||
}
|
||||
|
||||
export function addPlayerInternal(
|
||||
playerContext: PlayerContext, rootContext: RootContext, element: HTMLElement,
|
||||
player: Player | null, playerContextIndex: number, ref?: any): boolean {
|
||||
|
Reference in New Issue
Block a user