UNPKG

blaze-2d

Version:

A fast and simple WebGL 2 2D game engine written in TypeScript

21 lines 817 B
import EditorPane from "./pane"; export default class ScenePane extends EditorPane { /** * Creates a {@link ScenePane}. * * @param canvas The canvas used by blaze * @param pos The top left corner of the pane in the editor grid * @param width The width of the pane in columns * @param height The height of the pane in rows */ constructor(canvas, pos, width, height) { super("scene", pos, width, height); this.element.style.display = "flex"; this.element.style.flexDirection = "column"; const canvasContainer = document.createElement("div"); canvasContainer.classList.add("blzCanvasContainer"); canvasContainer.appendChild(canvas); this.element.appendChild(canvasContainer); } } //# sourceMappingURL=scenePane.js.map