docs: edit api doc comments for new template and style (#23682)

PR Close #23682
This commit is contained in:
Judy Bogart 2018-05-03 10:54:51 -07:00 committed by Miško Hevery
parent 52ce9d5dcb
commit a577c9e1f4
2 changed files with 666 additions and 675 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,36 +1,28 @@
/** @experimental */
export declare function animate(timings: string | number, styles?: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata | null): AnimationAnimateMetadata;
/** @experimental */
export declare function animateChild(options?: AnimateChildOptions | null): AnimationAnimateChildMetadata;
/** @experimental */
export interface AnimateChildOptions extends AnimationOptions {
duration?: number | string;
}
/** @experimental */
export declare type AnimateTimings = {
duration: number;
delay: number;
easing: string | null;
};
/** @experimental */
export declare function animation(steps: AnimationMetadata | AnimationMetadata[], options?: AnimationOptions | null): AnimationReferenceMetadata;
/** @experimental */
export interface AnimationAnimateChildMetadata extends AnimationMetadata {
options: AnimationOptions | null;
}
/** @experimental */
export interface AnimationAnimateMetadata extends AnimationMetadata {
styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata | null;
timings: string | number | AnimateTimings;
}
/** @experimental */
export interface AnimationAnimateRefMetadata extends AnimationMetadata {
animation: AnimationReferenceMetadata;
options: AnimationOptions | null;
@ -57,23 +49,19 @@ export declare abstract class AnimationFactory {
abstract create(element: any, options?: AnimationOptions): AnimationPlayer;
}
/** @experimental */
export interface AnimationGroupMetadata extends AnimationMetadata {
options: AnimationOptions | null;
steps: AnimationMetadata[];
}
/** @experimental */
export interface AnimationKeyframesSequenceMetadata extends AnimationMetadata {
steps: AnimationStyleMetadata[];
}
/** @experimental */
export interface AnimationMetadata {
type: AnimationMetadataType;
}
/** @experimental */
export declare const enum AnimationMetadataType {
State = 0,
Transition = 1,
@ -90,7 +78,6 @@ export declare const enum AnimationMetadataType {
Stagger = 12,
}
/** @experimental */
export interface AnimationOptions {
delay?: number | string;
params?: {
@ -118,38 +105,32 @@ export interface AnimationPlayer {
setPosition(p: any): void;
}
/** @experimental */
export interface AnimationQueryMetadata extends AnimationMetadata {
animation: AnimationMetadata | AnimationMetadata[];
options: AnimationQueryOptions | null;
selector: string;
}
/** @experimental */
export interface AnimationQueryOptions extends AnimationOptions {
limit?: number;
optional?: boolean;
}
/** @experimental */
export interface AnimationReferenceMetadata extends AnimationMetadata {
animation: AnimationMetadata | AnimationMetadata[];
options: AnimationOptions | null;
}
/** @experimental */
export interface AnimationSequenceMetadata extends AnimationMetadata {
options: AnimationOptions | null;
steps: AnimationMetadata[];
}
/** @experimental */
export interface AnimationStaggerMetadata extends AnimationMetadata {
animation: AnimationMetadata | AnimationMetadata[];
timings: string | number;
}
/** @experimental */
export interface AnimationStateMetadata extends AnimationMetadata {
name: string;
options?: {
@ -160,7 +141,6 @@ export interface AnimationStateMetadata extends AnimationMetadata {
styles: AnimationStyleMetadata;
}
/** @experimental */
export interface AnimationStyleMetadata extends AnimationMetadata {
offset: number | null;
styles: '*' | {
@ -170,7 +150,6 @@ export interface AnimationStyleMetadata extends AnimationMetadata {
} | '*'>;
}
/** @experimental */
export interface AnimationTransitionMetadata extends AnimationMetadata {
animation: AnimationMetadata | AnimationMetadata[];
expr: string | ((fromState: string, toState: string, element?: any, params?: {
@ -179,7 +158,6 @@ export interface AnimationTransitionMetadata extends AnimationMetadata {
options: AnimationOptions | null;
}
/** @experimental */
export interface AnimationTriggerMetadata extends AnimationMetadata {
definitions: AnimationMetadata[];
name: string;
@ -190,13 +168,10 @@ export interface AnimationTriggerMetadata extends AnimationMetadata {
} | null;
}
/** @experimental */
export declare const AUTO_STYLE = "*";
/** @experimental */
export declare function group(steps: AnimationMetadata[], options?: AnimationOptions | null): AnimationGroupMetadata;
/** @experimental */
export declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata;
/** @experimental */
@ -219,30 +194,24 @@ export declare class NoopAnimationPlayer implements AnimationPlayer {
setPosition(p: number): void;
}
/** @experimental */
export declare function query(selector: string, animation: AnimationMetadata | AnimationMetadata[], options?: AnimationQueryOptions | null): AnimationQueryMetadata;
/** @experimental */
export declare function sequence(steps: AnimationMetadata[], options?: AnimationOptions | null): AnimationSequenceMetadata;
/** @experimental */
export declare function stagger(timings: string | number, animation: AnimationMetadata | AnimationMetadata[]): AnimationStaggerMetadata;
/** @experimental */
export declare function state(name: string, styles: AnimationStyleMetadata, options?: {
params: {
[name: string]: any;
};
}): AnimationStateMetadata;
/** @experimental */
export declare function style(tokens: '*' | {
[key: string]: string | number;
} | Array<'*' | {
[key: string]: string | number;
}>): AnimationStyleMetadata;
/** @experimental */
export declare function transition(stateChangeExpr: string | ((fromState: string, toState: string, element?: any, params?: {
[key: string]: any;
}) => boolean), steps: AnimationMetadata | AnimationMetadata[], options?: AnimationOptions | null): AnimationTransitionMetadata;
@ -250,5 +219,4 @@ export declare function transition(stateChangeExpr: string | ((fromState: string
/** @experimental */
export declare function trigger(name: string, definitions: AnimationMetadata[]): AnimationTriggerMetadata;
/** @experimental */
export declare function useAnimation(animation: AnimationReferenceMetadata, options?: AnimationOptions | null): AnimationAnimateRefMetadata;