UNPKG

@drincs/pixi-vn

Version:

Pixi'VN is a npm package that provides various features for creating visual novels.

46 lines (43 loc) 1.19 kB
import { TickerProgrationType } from '../../interface/TickerProgrationType.js'; type ZoomTickerProps = { /** * The speed of the zoom effect * @default 0.1 */ speed?: number | { x: number; y: number; }; /** * The type of the zoom effect * @default "zoom" */ type?: "zoom" | "unzoom"; /** * The limit of the effect * @default type === "zoom" ? Infinity : 0 */ limit?: number | { x: number; y: number; }; /** * The progression of the speed. * There are two types of progression: linear and exponential. * - Linear: The speed will increase by the amount of `amt` every frame. * - Exponential: The speed will increase by the percentage of the current speed every frame. * @default undefined */ speedProgression?: TickerProgrationType; /** * The tag to remove after the effect is done * @default [] */ tagToRemoveAfter?: string[] | string; /** * If true, the effect only starts if the canvas element have a texture * @default false */ startOnlyIfHaveTexture?: boolean; }; export type { ZoomTickerProps };