How to use the @jimp/utils.scanIterator function in @jimp/utils

To help you get started, we’ve selected a few @jimp/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github oliver-moran / jimp / packages / core / src / index.js View on Github external
scanIterator(x, y, w, h) {
    if (typeof x !== 'number' || typeof y !== 'number') {
      return throwError.call(this, 'x and y must be numbers');
    }

    if (typeof w !== 'number' || typeof h !== 'number') {
      return throwError.call(this, 'w and h must be numbers');
    }

    return scanIterator(this, x, y, w, h);
  }
}

@jimp/utils

MIT
Latest version published 3 months ago

Package Health Score

92 / 100
Full package analysis