-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adds API docs for fast-colors and fast-animation (#3359)
* wire api-extractor to library * wire animation packge to doc prep script * wire docs to build and ci * add api extractor to fast-colors * document fast-animation * export animate so that it can be properly documented * hook up build and test to doc generation * document fast-colors * sort sidebar
- Loading branch information
1 parent
528c161
commit d7324e5
Showing
42 changed files
with
2,481 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"mainEntryPointFilePath": "dist/index.d.ts", | ||
"apiReport": { | ||
"enabled": true, | ||
"reportFolder": "docs", | ||
"reportFileName": "api-report.md" | ||
}, | ||
"docModel": { | ||
"enabled": true, | ||
"apiJsonFilePath": "dist/fast-animation.api.json" | ||
}, | ||
"dtsRollup": { | ||
"enabled": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
## API Report File for "@microsoft/fast-animation" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
// @public | ||
export abstract class Animate { | ||
constructor(element: HTMLElement, options?: AnimateConfig, effectTiming?: EffectTiming); | ||
addKeyframes: (keyframes: Partial<Keyframe>[]) => void; | ||
cancel: () => void; | ||
effectTiming: EffectTiming; | ||
finish: () => void; | ||
readonly keyframeEffect: KeyframeEffect; | ||
readonly keyframes: Keyframe[]; | ||
// Warning: (ae-forgotten-export) The symbol "AnimationMode" needs to be exported by the entry point index.d.ts | ||
protected mode: AnimationMode; | ||
onCancel: () => void; | ||
// (undocumented) | ||
onFinish: () => void; | ||
// Warning: (ae-forgotten-export) The symbol "AnimateConfig" needs to be exported by the entry point index.d.ts | ||
options: AnimateConfig; | ||
pause: () => void; | ||
play: () => void; | ||
reverse: () => void; | ||
} | ||
|
||
// @public | ||
export class AnimateFrom extends Animate { | ||
// (undocumented) | ||
protected mode: AnimationMode; | ||
} | ||
|
||
// @public | ||
export class AnimateGroup { | ||
constructor(animations: Array<AnimateTo | AnimateFrom>); | ||
cancel: () => void; | ||
finish: () => void; | ||
onFinish: () => void; | ||
pause: () => void; | ||
play(): void; | ||
reverse(): void; | ||
} | ||
|
||
// @public | ||
export class AnimateSequence { | ||
constructor(animations: Array<AnimateTo | AnimateFrom>); | ||
cancel: () => void; | ||
finish: () => void; | ||
onFinish: () => void; | ||
pause: () => void; | ||
play: () => void; | ||
reverse: () => void; | ||
} | ||
|
||
// @public | ||
export class AnimateTo extends Animate { | ||
// (undocumented) | ||
protected mode: AnimationMode; | ||
} | ||
|
||
// @public | ||
export function cubicBezier(name: "linear" | "easeOut" | "easeOutSmooth" | "easeIn" | "drillIn" | "backToApp" | "appToApp" | "fastIn" | "fastOut" | "fastInOut" | "exponential" | "fastInFortySevenPercent" | "exponentialReversed" | "navPane" | /* @deprecated */ string): string; | ||
|
||
// @public | ||
export function fadeIn(element: HTMLElement, effectTiming?: EffectTiming): AnimateTo; | ||
|
||
// @public | ||
export function fadeOut(element: HTMLElement, effectTiming?: EffectTiming): AnimateTo; | ||
|
||
// Warning: (ae-forgotten-export) The symbol "ScrollTrigger" needs to be exported by the entry point index.d.ts | ||
// | ||
// @public | ||
export class ScrollTrigger extends ScrollTrigger_2 { | ||
protected update(): void; | ||
} | ||
|
||
// @public | ||
export class ViewEnterTrigger extends ScrollTrigger_2 { | ||
protected update(): void; | ||
} | ||
|
||
// @public | ||
export class ViewExitTrigger extends ScrollTrigger_2 { | ||
protected update(): void; | ||
} | ||
|
||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import Animate, { AnimationMode } from "../animate"; | ||
|
||
export default class extends Animate { | ||
/** | ||
* An animation from provided property values to the element's current values. | ||
* Extends {@link @microsoft/fast-animation#Animate}. | ||
* | ||
* @public | ||
*/ | ||
export default class AnimateFrom extends Animate { | ||
protected mode: AnimationMode = AnimationMode.animateFrom; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
import Animate, { AnimationMode } from "../animate"; | ||
|
||
export default class extends Animate { | ||
/** | ||
* An animation to provided property values from the element's current values. | ||
* Extends {@link @microsoft/fast-animation#Animate}. | ||
* @public | ||
*/ | ||
export default class AnimateTo extends Animate { | ||
protected mode: AnimationMode = AnimationMode.animateTo; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.