fix(core): export animation classes required for Renderer impl (#14002)

Closes #14001
This commit is contained in:
Dzmitry Shylovich 2017-01-24 21:22:47 +03:00 committed by Alex Rickabaugh
parent 1f54040ef4
commit 83361d811d
4 changed files with 25 additions and 0 deletions

View File

@ -8,6 +8,9 @@
import {AnimationStyles} from './animation_styles'; import {AnimationStyles} from './animation_styles';
/**
* @experimental
*/
export class AnimationKeyframe { export class AnimationKeyframe {
constructor(public offset: number, public styles: AnimationStyles) {} constructor(public offset: number, public styles: AnimationStyles) {}
} }

View File

@ -6,6 +6,9 @@
* found in the LICENSE file at https://angular.io/license * found in the LICENSE file at https://angular.io/license
*/ */
/**
* @experimental
*/
export class AnimationStyles { export class AnimationStyles {
constructor(public styles: {[key: string]: string | number}[]) {} constructor(public styles: {[key: string]: string | number}[]) {}
} }

View File

@ -35,4 +35,6 @@ export * from './core_private_export';
export * from './animation/metadata'; export * from './animation/metadata';
export {AnimationTransitionEvent} from './animation/animation_transition_event'; export {AnimationTransitionEvent} from './animation/animation_transition_event';
export {AnimationPlayer} from './animation/animation_player'; export {AnimationPlayer} from './animation/animation_player';
export {AnimationStyles} from './animation/animation_styles';
export {AnimationKeyframe} from './animation/animation_keyframe';
export {Sanitizer, SecurityContext} from './security'; export {Sanitizer, SecurityContext} from './security';

View File

@ -44,6 +44,13 @@ export declare class AnimationGroupMetadata extends AnimationWithStepsMetadata {
constructor(_steps: AnimationMetadata[]); constructor(_steps: AnimationMetadata[]);
} }
/** @experimental */
export declare class AnimationKeyframe {
offset: number;
styles: AnimationStyles;
constructor(offset: number, styles: AnimationStyles);
}
/** @experimental */ /** @experimental */
export declare class AnimationKeyframesSequenceMetadata extends AnimationMetadata { export declare class AnimationKeyframesSequenceMetadata extends AnimationMetadata {
steps: AnimationStyleMetadata[]; steps: AnimationStyleMetadata[];
@ -106,6 +113,16 @@ export declare class AnimationStyleMetadata extends AnimationMetadata {
}>, offset?: number); }>, offset?: number);
} }
/** @experimental */
export declare class AnimationStyles {
styles: {
[key: string]: string | number;
}[];
constructor(styles: {
[key: string]: string | number;
}[]);
}
/** @experimental */ /** @experimental */
export declare class AnimationTransitionEvent { export declare class AnimationTransitionEvent {
element: ElementRef; element: ElementRef;