Skip to content
New issue

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

CanvasRenderingContext2D.canvas is undefined #588

Closed
deyihu opened this issue Nov 30, 2022 · 1 comment · Fixed by #597
Closed

CanvasRenderingContext2D.canvas is undefined #588

deyihu opened this issue Nov 30, 2022 · 1 comment · Fixed by #597
Assignees

Comments

@deyihu
Copy link

deyihu commented Nov 30, 2022

const { createCanvas } = require('@napi-rs/canvas');
const canvas = createCanvas(1, 1);
const ctx = canvas.getContext('2d');
console.log(ctx.canvas);
//out:undefined

Q%18(57}U8PG$E2I@D IR

@deyihu deyihu changed the title ctx.canvas is undefined CanvasRenderingContext2D.canvas is undefined Nov 30, 2022
@Brooooooklyn Brooooooklyn self-assigned this Dec 9, 2022
@mjgerace
Copy link

@Brooooooklyn this issue has surfaced for me too since 0.1.30 and breaks many existing applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants