pattern.js 375 B

1234567891011121314151617
  1. 'use strict'
  2. /*!
  3. * Canvas - CanvasPattern
  4. * Copyright (c) 2010 LearnBoost <tj@learnboost.com>
  5. * MIT Licensed
  6. */
  7. const bindings = require('./bindings')
  8. const { DOMMatrix } = require('./DOMMatrix')
  9. bindings.CanvasPatternInit(DOMMatrix)
  10. module.exports = bindings.CanvasPattern
  11. bindings.CanvasPattern.prototype.toString = function () {
  12. return '[object CanvasPattern]'
  13. }