@g20/server
Version:
Server Side Rendering
19 lines (16 loc) • 533 B
TypeScript
import { Board } from '@g20/core';
interface BoardOptions {
boundingBox?: {
left: number;
top: number;
right: number;
bottom: number;
};
}
/**
* A convenience function for initializing a new GraphicsBoard using SVG.
* @param elementOrId HTML identifier (id) of element in which the board is rendered.
* @param options An object that sets some of the board properties.
*/
declare function initBoard(elementOrId: string | HTMLElement, options?: BoardOptions): Board;
export { initBoard };