@daign/2d-graphics
Version:
Two dimensional graphics library that implements the daign-2d-pipeline.
32 lines (31 loc) • 950 B
TypeScript
/**
* Class that manages the steps to update and redraw the graphic.
*/
export declare class UpdateManager {
private redrawEvent;
private redrawControlsSignal;
private renderSignal;
/**
* Constructor.
*/
constructor();
/**
* Set a callback that gets informed when a redraw event was started.
* @param callback - The callback that will be called when a redraw event was started.
*/
subscribeToRedrawEvent(callback: () => void): void;
/**
* Set the callback that redraws the control layer.
* @param callback - The callback that redraws the control layer.
*/
setRedrawControlsFunction(callback: () => void): void;
/**
* Set the callback that renders the graphic.
* @param callback - The callback that renders the graphic.
*/
setRenderFunction(callback: () => void): void;
/**
* Redraw and render the application.
*/
redraw(): void;
}