Skip to content

fix(canvas): fix pattern is not correctly scaled in canvas renderer#938

Merged
plainheart merged 2 commits into
masterfrom
fix-canvas-pattern-scale
Jul 26, 2022
Merged

fix(canvas): fix pattern is not correctly scaled in canvas renderer#938
plainheart merged 2 commits into
masterfrom
fix-canvas-pattern-scale

Conversation

@plainheart
Copy link
Copy Markdown
Collaborator

When setting an image as the background color, the canvas renderer doesn't scale it by the device pixel ratio, which results in the pattern effect being different from the effect in the SVG renderer.

Before After
image image

Note that the size of the background image is 180px×180px 👆

@plainheart plainheart requested review from Ovilia and pissang July 24, 2022 15:36
Comment thread src/canvas/Layer.ts Outdated
@plainheart plainheart merged commit 58ca31f into master Jul 26, 2022
@plainheart plainheart deleted the fix-canvas-pattern-scale branch July 26, 2022 06:42
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.

2 participants