8000 Fix adding CanvasPattern by x4d3 · Pull Request #7 · zenozeng/svgcanvas · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix adding CanvasPattern #7

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

Merged
merged 1 commit into from
Nov 13, 2021
Merged

Fix adding CanvasPattern #7

merged 1 commit into from
Nov 13, 2021

Conversation

x4d3
Copy link
@x4d3 x4d3 commented Nov 10, 2021

The current code was going into an infinite loop.
It's also setting patternUnits to userSpaceOnUse in order to get the same behaviour as canvas patterns

The current code was going into an infinite loop
It's also setting `patternUnits` to `userSpaceOnUse` in order to get the same behaviour as canvas patterns
@x4d3
Copy link
Author
x4d3 commented Nov 10, 2021

Dear @zenozeng

I took the liberty of writing this PR to fix an infinite loop when createPattern was called.

Please have a look.

Thanks

@zenozeng
Copy link
Owner

@x4d3
Thanks for your pull request. Your code looks good to me. 👍
There is only one small question, what is the copyright agreement of the pattern.png? Is it licensed under Creative Commons (CC) license?

@zenozeng zenozeng self-assigned this Nov 11, 2021
@x4d3
Copy link
Author
x4d3 commented Nov 11, 2021

@zenozeng zenozeng merged commit e23938e into zenozeng:main Nov 13, 2021
@zenozeng
Copy link
Owner

@x4d3 Thanks!

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

Successfully merging this pull request may close these issues.

2 participants
0