UNPKG

illusory

Version:

Seamlessly morph one element into another.

20 lines (19 loc) 762 B
import { IllusoryElement } from '../IllusoryElement'; interface IDelta { x: number; y: number; scaleX: number; scaleY: number; inverseScaleX: number; inverseScaleY: number; } declare type DeltaHandlerFunction = (delta: IDelta, deltaStyle: string, thisStyle: string) => string; interface IDeltaHandlerMap { [propertyName: string]: DeltaHandlerFunction; } interface IDeltaHandlerConfigMap { [propertyName: string]: DeltaHandlerFunction | false; } declare const DELTA_PASS_THROUGH_HANDLER: DeltaHandlerFunction; declare function getDelta(start: IllusoryElement, end: IllusoryElement): IDelta; export { getDelta, DeltaHandlerFunction, IDeltaHandlerMap, IDeltaHandlerConfigMap, IDelta, DELTA_PASS_THROUGH_HANDLER };