UNPKG

native-canvas

Version:

A canvas library allows for a HTML canvas to run natively on NodeJs, without a WebBrowser

52 lines 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var NodeCanvasImage = require('canvas').Image; var Image = /** @class */ (function () { function Image() { this.image = new NodeCanvasImage(); } Object.defineProperty(Image.prototype, "width", { get: function () { return this.image.width; }, enumerable: true, configurable: true }); Object.defineProperty(Image.prototype, "height", { get: function () { return this.image.height; }, enumerable: true, configurable: true }); Object.defineProperty(Image.prototype, "imageImplementation", { get: function () { return this.image; }, enumerable: true, configurable: true }); Object.defineProperty(Image.prototype, "onload", { get: function () { return this.image.onload; }, set: function (onload) { this.image.onload = onload; }, enumerable: true, configurable: true }); Object.defineProperty(Image.prototype, "src", { get: function () { return this.image.src; }, set: function (src) { this.image.src = src; }, enumerable: true, configurable: true }); return Image; }()); exports.Image = Image; //# sourceMappingURL=image.js.map