@nmmty/lazycanvas
Version:
A simple way to interact with @napi-rs/canvas in an advanced way!
19 lines (18 loc) • 650 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import { IRenderManager } from "../../types";
import { LazyCanvas } from "../LazyCanvas";
import { SKRSContext2D } from "@napi-rs/canvas";
export declare class RenderManager implements IRenderManager {
lazyCanvas: LazyCanvas;
debug: boolean;
constructor(lazyCanvas: LazyCanvas, debug?: boolean);
private renderLayer;
private renderStatic;
private renderAnimation;
/**
* This will render all the layers and return the rendered canvas buffer or ctx.
* @returns {Promise<Buffer | SKRSContext2D>}
*/
render(): Promise<Buffer | SKRSContext2D>;
}