Automattic / Automattic/node-canvas
Support setTransform with 6 arguments
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 1.2k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
## Issue or Feature
- [x] If this is an issue with installation, I have read the [troubleshooting guide](https://github.com/Automattic/node-canvas/issues/1511).
The non-matrix object version of setTransform is missing from CanvasRenderingContext2D
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void
## Steps to Reproduce
```ts
import { createCanvas } from 'canvas';
const canvas = createCanvas(200, 200);
const ctx = canvas.getContext('2d');
ctx.setTransform(1, 0, 0, 1, 0, 0);
```
## Your Environment
* Version of node-canvas (output of `npm list canvas` or `yarn list canvas`):
* Environment (e.g. node 4.2.0 on Mac OS X 10.8):
canvas@2.11.0
node@19.4.0
6.1.8-gentoo-x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jan 27 17:36:19 GMT 2023 x86_64 AMD Ryzen 9 5950X 16-Core Processor AuthenticAMD GNU/Linux
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.