UNPKG

@bardoui/vpopper

Version:

PopperJs powered popup for vue 3

19 lines (18 loc) 694 B
import { Placement as PopperPlc } from "@popperjs/core"; import { AnimeParams } from "animejs"; import { Placement, PopperAnimation } from "./types"; /** * get popperJs placement and return vPopper placement * for auto and default state returns bottom * * @param placement popperJs placement */ export declare function resolvePlacement(placement: PopperPlc): Placement; /** * get current animation based on placement * undefined animation skipped * * @param placement popper placement * @param animations animations list to search for animation state */ export declare function resolveAnimation(placement: PopperPlc, ...animations: PopperAnimation[]): AnimeParams;