Skip to content

Commit

Permalink
fix(core): export animation classes required for Renderer impl
Browse files Browse the repository at this point in the history
  • Loading branch information
DzmitryShylovich committed Jan 18, 2017
1 parent 523fd84 commit 21144b9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
3 changes: 3 additions & 0 deletions modules/@angular/core/src/animation/animation_keyframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

import {AnimationStyles} from './animation_styles';

/**
* @experimental
*/
export class AnimationKeyframe {
constructor(public offset: number, public styles: AnimationStyles) {}
}
3 changes: 3 additions & 0 deletions modules/@angular/core/src/animation/animation_styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/

/**
* @experimental
*/
export class AnimationStyles {
constructor(public styles: {[key: string]: string | number}[]) {}
}
4 changes: 3 additions & 1 deletion modules/@angular/core/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ export {ErrorHandler} from './error_handler';
export * from './core_private_export';
export * from './animation/metadata';
export {AnimationTransitionEvent} from './animation/animation_transition_event';
export {AnimationPlayer} from './animation/animation_player';
export {AnimationPlayer, NoOpAnimationPlayer} from './animation/animation_player';
export {AnimationStyles} from './animation/animation_styles';
export {AnimationKeyframe} from './animation/animation_keyframe';
export {Sanitizer, SecurityContext} from './security';
10 changes: 10 additions & 0 deletions tools/public_api_guard/core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export declare class AnimationGroupMetadata extends AnimationWithStepsMetadata {
constructor(_steps: AnimationMetadata[]);
}

/** @experimental */
export class AnimationKeyframe {
constructor(offset: number, styles: AnimationStyles);
}

/** @experimental */
export declare class AnimationKeyframesSequenceMetadata extends AnimationMetadata {
steps: AnimationStyleMetadata[];
Expand Down Expand Up @@ -95,6 +100,11 @@ export declare class AnimationStateTransitionMetadata extends AnimationStateMeta
constructor(stateChangeExpr: string | ((fromState: string, toState: string) => boolean), steps: AnimationMetadata);
}

/** @experimental */
export class AnimationStyles {
constructor(styles: {[key: string]: string | number}[]);
}

/** @experimental */
export declare class AnimationStyleMetadata extends AnimationMetadata {
offset: number;
Expand Down

0 comments on commit 21144b9

Please sign in to comment.