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

4x4 transforms for CanvasRenderingContext2D #6683

Closed
wants to merge 3 commits into from

Conversation

mysteryDate
Copy link
Contributor

@mysteryDate mysteryDate commented May 13, 2021

Original propoasl
Issue thread

  • At least two implementers are interested (and none opposed):
    • Chromium
    • Firefox (Expressed surprise at 3d DOMMATRIXs being abbreviated to their 2d versions in setTransform)
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:

/canvas.html ( diff )

@Kaiido
Copy link
Member

Kaiido commented May 14, 2021

Is there any reason for limiting Path2D.addPath() and CanvasPattern.setTransform() to a 2D matrix?

That seems a bit weird Path2D can do less than the context's subpath, and for patterns, it would be possible to apply a 3D transform to it, when using the context's subpath (by setting the transform after the path declaration), once again making Path2D less powerful.

@mysteryDate
Copy link
Contributor Author

Good point @Kaiido! I'll do that. I believe that the implementation in chromium already supports that.

@domenic
Copy link
Member

domenic commented Aug 21, 2023

Is this still being pursued?

@mysteryDate
Copy link
Contributor Author

It is not. Core graphics is not capable so it was nixed by webkit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements topic: canvas
Development

Successfully merging this pull request may close these issues.

3 participants