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

Use scaled canvas dimensions #2972

Merged
merged 1 commit into from
May 15, 2016
Merged

Use scaled canvas dimensions #2972

merged 1 commit into from
May 15, 2016

Conversation

asturur
Copy link
Member

@asturur asturur commented May 15, 2016

When dataurling an object let's center it using the canvas.getWidth() and canvas.getHeight(). The dimensions returned take in account the eventual retina scaling.

closes #2886
closes #2968

@asturur asturur merged commit 11fd746 into master May 15, 2016
@asturur asturur deleted the asturur-retinaDataUrl-1 branch May 15, 2016 20:08
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.

Retina textbox toDataURL image appears different to fabric object on canvas. toDataURL with browser zoom
1 participant