@flemo/core 1.12.1 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/engine/__tests__/driverPolicy.test.d.ts +1 -0
- package/dist/core/engine/__tests__/transitionPlayer.test.d.ts +1 -0
- package/dist/core/engine/driverPolicy.d.ts +18 -0
- package/dist/core/engine/transitionPlayer.d.ts +30 -0
- package/dist/core/engine/types.d.ts +1 -0
- package/dist/index.mjs +609 -190
- package/dist/screen/animStartAnchor.d.ts +1 -0
- package/dist/transition/__tests__/cubicBezier.test.d.ts +1 -0
- package/dist/transition/__tests__/variantMotion.test.d.ts +1 -0
- package/dist/transition/animateInline.d.ts +1 -0
- package/dist/transition/cubicBezier.d.ts +4 -0
- package/dist/transition/variantMotion.d.ts +16 -0
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export declare const ANIM_HOLD_DECODE_CAP_MS = 150;
|
|
|
10
10
|
export declare function collectDecodableImages(scope: HTMLElement): HTMLImageElement[];
|
|
11
11
|
export declare function eagerlyDecodeImages(scope: HTMLElement | null): void;
|
|
12
12
|
export interface AnimHoldReleaseOptions {
|
|
13
|
+
extraFrames?: number;
|
|
13
14
|
scope?: HTMLElement | null;
|
|
14
15
|
}
|
|
15
16
|
export declare function scheduleAnimHoldRelease(release: () => void, options?: AnimHoldReleaseOptions): () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SwipeAnimate } from './typing';
|
|
2
|
+
export declare const trackInlineWrite: (el: HTMLElement, property: string) => void;
|
|
2
3
|
export declare const clearInlineAnimation: (el: HTMLElement, properties?: string[]) => void;
|
|
3
4
|
declare const animateInline: SwipeAnimate;
|
|
4
5
|
export default animateInline;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AnimationOptions } from './cssTypes';
|
|
2
|
+
export type EasingFunction = (progress: number) => number;
|
|
3
|
+
export declare const cubicBezier: (x1: number, y1: number, x2: number, y2: number) => EasingFunction;
|
|
4
|
+
export declare const resolveEasing: (ease: AnimationOptions["ease"] | undefined) => EasingFunction;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AnimationOptions, InitialTarget } from './cssTypes';
|
|
2
|
+
import { Transition, TransitionVariant, TransitionVariantValue } from './typing';
|
|
3
|
+
export declare const FROM_VARIANT: Record<TransitionVariant, "initial" | TransitionVariant | "self">;
|
|
4
|
+
export declare const TRANSITION_VARIANTS: TransitionVariant[];
|
|
5
|
+
export type MotionTarget = TransitionVariantValue["value"] | InitialTarget;
|
|
6
|
+
export interface VariantMotion {
|
|
7
|
+
from: MotionTarget;
|
|
8
|
+
to: MotionTarget;
|
|
9
|
+
duration: number;
|
|
10
|
+
delay: number;
|
|
11
|
+
ease: AnimationOptions["ease"] | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare const variantDuration: (options: AnimationOptions | undefined) => number;
|
|
14
|
+
export declare const variantDelay: (options: TransitionVariantValue["options"] | undefined) => number;
|
|
15
|
+
export declare const resolveVariantFromValue: (transitionLike: Pick<Transition, "initial" | "variants">, variant: TransitionVariant) => MotionTarget | null;
|
|
16
|
+
export declare const resolveVariantMotion: (transitionLike: Pick<Transition, "initial" | "variants">, variant: TransitionVariant) => VariantMotion | null;
|
package/package.json
CHANGED