pixi-fusion
Version:
This module offers a set of common components needed for playing games.
14 lines (13 loc) • 393 B
TypeScript
import { Container } from "pixi.js";
export type EnsureVisibleOptions = {
x: number;
y: number;
width: number;
height: number;
resizeToFit?: boolean;
};
export type CameraContextValue = {
follow: (object: Container) => void;
ensureVisible: (options: EnsureVisibleOptions) => void;
};
export declare const CameraContext: import("react").Context<CameraContextValue>;