UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

111 lines (110 loc) 3.06 kB
import { GridEasingFunctionType_$type } from "./GridEasingFunctionType"; import { GridAnimationPhaseSettings as GridAnimationPhaseSettings_internal } from "./GridAnimationPhaseSettings"; import { ensureBool, ensureEnum } from "igniteui-react-core"; /** * This class is used to group the settings to define an animation phase. */ export class IgrGridAnimationPhaseSettings { createImplementation() { return new GridAnimationPhaseSettings_internal(); } get nativeElement() { return this._implementation.nativeElement; } /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } constructor() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } /** * The duration of an animation, in milliseconds */ get durationMilliseconds() { return this.i.l; } set durationMilliseconds(v) { this.i.l = +v; } /** * The amount of time to delay an animation, in milliseconds. */ get holdInitialMilliseconds() { return this.i.m; } set holdInitialMilliseconds(v) { this.i.m = +v; } /** * The amount of time to delay each item animating, in milliseconds */ get perItemDelayMilliseconds() { return this.i.n; } set perItemDelayMilliseconds(v) { this.i.n = +v; } /** * The amount of time each item animating should take, in milliseconds */ get subItemDurationMilliseconds() { return this.i.o; } set subItemDurationMilliseconds(v) { this.i.o = +v; } /** * The desired amount of time each item animating should take, in milliseconds */ get desiredSubItemDurationMilliseconds() { return this.i.k; } set desiredSubItemDurationMilliseconds(v) { this.i.k = +v; } /** * Configures whether all items animating should finish simultaneously */ get shouldItemsFinishSimultaneously() { return this.i.e; } set shouldItemsFinishSimultaneously(v) { this.i.e = ensureBool(v); } /** * Configures the Easing function used to animate the individual items */ get easingFunctionType() { return this.i.c; } set easingFunctionType(v) { this.i.c = ensureEnum(GridEasingFunctionType_$type, v); } findByName(name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } return null; } }