From 83361d811d1b2cb874f28b64071bdea24c53b45c Mon Sep 17 00:00:00 2001 From: Dzmitry Shylovich Date: Tue, 24 Jan 2017 21:22:47 +0300 Subject: [PATCH] fix(core): export animation classes required for Renderer impl (#14002) Closes #14001 --- .../core/src/animation/animation_keyframe.ts | 3 +++ .../core/src/animation/animation_styles.ts | 3 +++ modules/@angular/core/src/core.ts | 2 ++ tools/public_api_guard/core/index.d.ts | 17 +++++++++++++++++ 4 files changed, 25 insertions(+) diff --git a/modules/@angular/core/src/animation/animation_keyframe.ts b/modules/@angular/core/src/animation/animation_keyframe.ts index f33aeeaff4..a367bdc0d9 100644 --- a/modules/@angular/core/src/animation/animation_keyframe.ts +++ b/modules/@angular/core/src/animation/animation_keyframe.ts @@ -8,6 +8,9 @@ import {AnimationStyles} from './animation_styles'; +/** + * @experimental + */ export class AnimationKeyframe { constructor(public offset: number, public styles: AnimationStyles) {} } diff --git a/modules/@angular/core/src/animation/animation_styles.ts b/modules/@angular/core/src/animation/animation_styles.ts index 78f249969d..12e3b14027 100644 --- a/modules/@angular/core/src/animation/animation_styles.ts +++ b/modules/@angular/core/src/animation/animation_styles.ts @@ -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}[]) {} } diff --git a/modules/@angular/core/src/core.ts b/modules/@angular/core/src/core.ts index 94c576cb7c..b033069b1a 100644 --- a/modules/@angular/core/src/core.ts +++ b/modules/@angular/core/src/core.ts @@ -35,4 +35,6 @@ export * from './core_private_export'; export * from './animation/metadata'; export {AnimationTransitionEvent} from './animation/animation_transition_event'; export {AnimationPlayer} from './animation/animation_player'; +export {AnimationStyles} from './animation/animation_styles'; +export {AnimationKeyframe} from './animation/animation_keyframe'; export {Sanitizer, SecurityContext} from './security'; diff --git a/tools/public_api_guard/core/index.d.ts b/tools/public_api_guard/core/index.d.ts index b59124e704..23a0f32492 100644 --- a/tools/public_api_guard/core/index.d.ts +++ b/tools/public_api_guard/core/index.d.ts @@ -44,6 +44,13 @@ export declare class AnimationGroupMetadata extends AnimationWithStepsMetadata { constructor(_steps: AnimationMetadata[]); } +/** @experimental */ +export declare class AnimationKeyframe { + offset: number; + styles: AnimationStyles; + constructor(offset: number, styles: AnimationStyles); +} + /** @experimental */ export declare class AnimationKeyframesSequenceMetadata extends AnimationMetadata { steps: AnimationStyleMetadata[]; @@ -106,6 +113,16 @@ export declare class AnimationStyleMetadata extends AnimationMetadata { }>, offset?: number); } +/** @experimental */ +export declare class AnimationStyles { + styles: { + [key: string]: string | number; + }[]; + constructor(styles: { + [key: string]: string | number; + }[]); +} + /** @experimental */ export declare class AnimationTransitionEvent { element: ElementRef;