Automattic / Automattic/node-canvas

Document or list/reference `ImageData` and other missing public APIs and further clarify which are non-standard

Open
#1,476 2 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

## Feature

Could the API for `createImageData` be replaced by or supplemented by `ImageData` for slightly easier parity with the [browser constructor](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/ImageData)?

## Steps to Produce

```js
const {ImageData} = require('canvas');
const data = new ImageData(200, 200);
```

## Your Environment
* Version of node-canvas (output of `npm list canvas` or `yarn list canvas`): 2.6.0
* Environment (e.g. node 4.2.0 on Mac OS X 10.8): 10.16.3, Mac OS X 10.14.6

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.