We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It looks like the getTransform function is missing from the CanvasRenderingContext2d.
getTransform
const canvas = CanvasBuilder.createCanvas(200, 200); const ctx = canvas.getContext('2d'); console.log(ctx.beginPath); console.log(ctx.moveTo); console.log(ctx.arc); console.log(ctx.getTransform); console.log(ctx.setTransform);
results in:
[Function: beginPath] [Function: moveTo] [Function: arc] undefined [Function: setTransform]
I tried shimming this using ctx.getTransform = () => ctx.currentTransform; which seems to work?
ctx.getTransform = () => ctx.currentTransform;
The text was updated successfully, but these errors were encountered:
@zbjornson, Looks like this issue can be closed now.
Sorry, something went wrong.
No branches or pull requests
Issue or Feature
It looks like the
getTransform
function is missing from the CanvasRenderingContext2d.Steps to Reproduce
results in:
Your Environment
Workaround
I tried shimming this using
ctx.getTransform = () => ctx.currentTransform;
which seems to work?The text was updated successfully, but these errors were encountered: