pencil.js
Version:
Nice modular interactive 2D drawing library.
26 lines (25 loc) • 794 B
TypeScript
/**
* Build all scene and display the first one
* @param {Object<Function>} builders - Set of function building the scenes
* @param {HTMLElement} [container] - Container for all the scenes
* @return {Object<Scene>} Prepared scenes
*/
export function prepareScenes(builders: any, container?: HTMLElement): any;
/**
* Hide the current scene and display a new scene
* @param {Scene} scene - Any scene to show
* @param {Boolean} [save=true] - Should it be saved in history
* @return {Scene} Shown scene
*/
export function displayScene(scene: Scene, save?: boolean): Scene;
/**
* Go back in history
* @return {Scene}
*/
export function back(): Scene;
/**
* Return the current scene
* @return {Scene}
*/
export function getCurrentScene(): Scene;
import Scene from "@pencil.js/scene";