bindings.js 280 B

12345678910111213
  1. 'use strict'
  2. const bindings = require('../build/Release/canvas.node')
  3. module.exports = bindings
  4. bindings.ImageData.prototype.toString = function () {
  5. return '[object ImageData]'
  6. }
  7. bindings.CanvasGradient.prototype.toString = function () {
  8. return '[object CanvasGradient]'
  9. }