From 8d984d8dacdb39a9c493ff5f843d932a836bcec2 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 26 May 2021 07:32:31 -0400 Subject: [PATCH] only support Keyframe[] --- src/utilities/animation-registry.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utilities/animation-registry.ts b/src/utilities/animation-registry.ts index a297ac4f3..c786495b5 100644 --- a/src/utilities/animation-registry.ts +++ b/src/utilities/animation-registry.ts @@ -1,5 +1,5 @@ interface ElementAnimation { - keyframes: Keyframe[] | PropertyIndexedKeyframes; + keyframes: Keyframe[]; options?: KeyframeAnimationOptions; } @@ -12,7 +12,7 @@ const customAnimationRegistry = new WeakMap(); // // Sets a default animation. Components should use the `name.animation` for primary animations and `name.part.animation` -// for secondary animations, e.g. `alert.show` and `dialog.overlay.show`. +// for secondary animations, e.g. `dialog.show` and `dialog.overlay.show`. For modifiers, use `drawer.showTop`. // export function setDefaultAnimation(animationName: string, animation: ElementAnimation) { defaultAnimationRegistry.set(animationName, animation); @@ -31,7 +31,7 @@ export function setAnimation(el: Element, animationName: string, animation: Elem } // -// Gets an element's custom animation. Falls back to the default animation if no custom one is found. +// Gets an element's animation. Falls back to the default if no animation is found. // export function getAnimation(el: Element, animationName: string) { const customAnimation = customAnimationRegistry.get(el);