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

Add ctx.getTransform() and ctx.setTransform(DOMMatrix) methods #1769

Merged
merged 2 commits into from
Apr 20, 2021

Conversation

Tirondzo
Copy link
Contributor

Issue: #1642


  • Have you updated CHANGELOG.md?
  • Added unit tests

Based on currentTransform getter
Based on currentTransform setter
Copy link
Collaborator

@zbjornson zbjornson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you.

@zbjornson zbjornson merged commit c166443 into Automattic:master Apr 20, 2021
@Tirondzo Tirondzo deleted the get-set-transform branch April 22, 2021 01:06
pouretrebelle added a commit to pouretrebelle/jigsaws that referenced this pull request May 1, 2021
In some sketches we create temporary canvases for layering and transforms, but on the server-side we can't reference document. This passes in a createCanvas function which uses document on the client side and node-canvas on the server side.

N.B. This is still causing errors on sketches that have multiple
canvases because c.getTransform isn't implemented in v2.7.0 if
node-canvas. This was fixed a week ago
(Automattic/node-canvas#1769) but a new version
of the lib hasn't been released yet. I won't merge this until the
package upgrade.
pouretrebelle added a commit to pouretrebelle/jigsaws that referenced this pull request May 17, 2021
This includes the context.getTransform method which is needed in the preview lambda

See:
- Automattic/node-canvas#1769
- https://github.com/Automattic/node-canvas/blob/HEAD/CHANGELOG.md#280
pouretrebelle added a commit to pouretrebelle/jigsaws that referenced this pull request Jun 27, 2021
In some sketches we create temporary canvases for layering and transforms, but on the server-side we can't reference document. This passes in a createCanvas function which uses document on the client side and node-canvas on the server side.

N.B. This is still causing errors on sketches that have multiple
canvases because c.getTransform isn't implemented in v2.7.0 if
node-canvas. This was fixed a week ago
(Automattic/node-canvas#1769) but a new version
of the lib hasn't been released yet. I won't merge this until the
package upgrade.
pouretrebelle added a commit to pouretrebelle/jigsaws that referenced this pull request Jun 27, 2021
This includes the context.getTransform method which is needed in the preview lambda

See:
- Automattic/node-canvas#1769
- https://github.com/Automattic/node-canvas/blob/HEAD/CHANGELOG.md#280
pouretrebelle added a commit to pouretrebelle/jigsaws that referenced this pull request Jun 27, 2021
In some sketches we create temporary canvases for layering and transforms, but on the server-side we can't reference document. This passes in a createCanvas function which uses document on the client side and node-canvas on the server side.

N.B. This is still causing errors on sketches that have multiple
canvases because c.getTransform isn't implemented in v2.7.0 if
node-canvas. This was fixed a week ago
(Automattic/node-canvas#1769) but a new version
of the lib hasn't been released yet. I won't merge this until the
package upgrade.
pouretrebelle added a commit to pouretrebelle/jigsaws that referenced this pull request Jun 27, 2021
This includes the context.getTransform method which is needed in the preview lambda

See:
- Automattic/node-canvas#1769
- https://github.com/Automattic/node-canvas/blob/HEAD/CHANGELOG.md#280
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 this pull request may close these issues.

None yet

2 participants