@drincs/pixi-vn
Version:
Pixi'VN is a npm package that provides various features for creating visual novels.
27 lines (24 loc) • 937 B
TypeScript
import { Ticker } from 'pixi.js';
import { MoveTickerProps } from '../../types/ticker/MoveTickerProps.js';
import { T as TickerBase } from '../../TickerBase-3rLpDpmb.js';
import '../../interface/TickerProgrationType.js';
import '../../types/StorageElementType.js';
import '../../types/TickerIdType.js';
/**
* 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 };