UNPKG

@pilotlab/data

Version:

A luxurious user experience framework, developed by your friends at Pilot.

26 lines (17 loc) 780 B
import { Animation, IAnimationBatch, AnimationBatch } from '@pilotlab/animation'; import IAttribute from './interfaces/iAttribute'; import IAttributeSetReturn from './interfaces/iAttributeSetReturn'; import IAttributeUpdateTracker from './interfaces/iAttributeUpdateTracker'; export class AttributeSetReturn<TAttribute extends IAttribute> implements IAttributeSetReturn { constructor(attribute:TAttribute, isChanged:boolean) { this.attribute = attribute; this.isChanged = isChanged; this.animation = new AnimationBatch(Animation.animate, [], false); } attribute:TAttribute; isChanged:boolean = false; animation:IAnimationBatch; updateTracker:IAttributeUpdateTracker = null; } // End class export default AttributeSetReturn;