UNPKG

@drincs/pixi-vn

Version:

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

27 lines (24 loc) 942 B
import { Ticker } from 'pixi.js'; import { MoveTickerProps } from '../../types/ticker/MoveTickerProps.mjs'; import { T as TickerBase } from '../../TickerBase-DKYzbzro.mjs'; import '../../interface/TickerProgrationType.mjs'; import '../../types/StorageElementType.mjs'; import '../../types/TickerIdType.mjs'; /** * A ticker that moves the canvas element of the canvas. * This ticker can be used on all canvas elements that extend the {@link Container} class. * @example * ```typescript * let alien = addImage("alien", 'https://pixijs.com/assets/eggHead.png') * GameWindowManager.addCanvasElement("alien", alien); * const ticker = new MoveTicker({ * speed: 0.1, * destination: { x: 100, y: 100 }, * }), * ``` */ declare class MoveTicker extends TickerBase<MoveTickerProps> { fn(ticker: Ticker, args: MoveTickerProps, tags: string[], tickerId: string): void; private speedConvert; } export { MoveTicker as default };