UNPKG

pencil.js

Version:

Nice modular interactive 2D drawing library.

20 lines (19 loc) 637 B
/** * Build all scene and display the first one * @param {Object} builders - Set of function building the scenes * @param {HTMLElement} container - Container for all the scenes * @return {Scene} First shown scene */ export function prepareScenes(builders: any, container?: HTMLElement): Scene; /** * Hide the current scene and display a new scene * @param {Scene} scene - Any scene to show * @return {Scene} Shown scene */ export function displayScene(scene: Scene): Scene; /** * Return the current scene * @return {Scene} */ export function getCurrentScene(): Scene; import Scene from "@pencil.js/scene";