UNPKG

@drincs/pixi-vn

Version:

Pixi'VN is a npm package that provides various features for creating visual novels.

30 lines (27 loc) 855 B
'use strict'; var pixi_js = require('pixi.js'); // src/classes/canvas/CanvasBase.ts var CanvasBase = class extends pixi_js.Container { constructor() { super(...arguments); /** * Get the id of the canvas element. This variable is used in the system to get the canvas element by id, {@link getCanvasElementInstanceById} */ this.pixivnId = "canvas_element_id_not_set"; } /** * This method return the memory of the canvas element. */ get memory() { throw new Error("[Pixi'VN] The method CanvasBase.memory must be overridden"); } /** * This method set the memory of the canvas element. */ set memory(_value) { throw new Error("[Pixi'VN] The method CanvasBase.memory must be overridden"); } }; module.exports = CanvasBase; //# sourceMappingURL=CanvasBase.js.map //# sourceMappingURL=CanvasBase.js.map