-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TypeScript conversion of
animation
package (#12702)
* WIP * WIP: Partial refactor and conversion to TypeScript Note that the main story editor does not compile at this stage, but the animation package works in isolation and can be seen in action through Storybook: `npm run storybook`. * Forgot to simplify the animation creation in this file * Converted tests to TS and added to tsconfig * Fixed test for `sanitizeTimings` * Updated story editor to use new animation state enum * Fixed a bunch of references to anim enum A bunch of anim constants have been converted from object to enums and thus had their casing updating from `SCREAMING_SNAKE_CASE` to `PascalCase`. * Fixed constant * Excluded stories from TS * Excluded stories from TS * Fixed some bugs found in test failures * Fixed last ts errors Thís required creating a union type for all the animations. However, it works a little weird, so had to do a bunch of `as const` stuff in tests, so worry about typing the implementation of this in other packages, but for now this is good. * Restructured animation parts * Fixed a missing export * Adjusted comment to clarify * Fixed bug, that I feel must have been there before too? * Fixed bug due to misspelled field name Yes, `panDirection` would be better, but it is already referenced a ton of places, so it is a lot of unnecessary work to change it. * Fixed pulse keyframe generator test * Fixed types and test for `getGlobalSpace` * Trying to fix errors in d.ts. files Dunno why eslint complains, but maybe it is the missing header? * Fixed test with bad animation ids * (Re)fixed test with bad animation ids * Fix config for text-sets package * Update lock file * Fix types for amp components * Update tsconfig * Try to adjust web-animations-js types * Removed irrelevant polyfill * Moved element offset functions once more * Added clarifying comment * Fixed some types * Fix case * Typo * Fixed import after reorg Co-authored-by: Pascal Birchler <pascalb@google.com>
- Loading branch information
1 parent
3f30fe7
commit 7e8f703
Showing
190 changed files
with
3,795 additions
and
4,164 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
File renamed without changes.
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.