-
Notifications
You must be signed in to change notification settings - Fork 598
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
How to center the image. #1223
Comments
Hi, which version of dwv are you using? I think it should work with the latest code, check out the demo viewer of the tests. |
Hi, I am using version 0.30.8 |
v0.31 has got some changes regarding the use of the canvas and its centering. You can try it with the latest beta (0.31.0-beta.14). |
Thank you very much. Changing to the latest version has solved this problem |
Nice! If you are happy, can you close the issue please? |
Good catch, can you create another issue please for this one? |
Ok, I'll create a new issue |
I fixed #1233. Closing this one, feel free to comment if you need. |
Hello, excuse me, I would like to ask you how to center the picture on the canvas.
Before:
app.getActiveLayerGroup().fitToContainer({ x: 1000, y: 500 });
app.getActiveLayerGroup().draw();
After:
What should I do to achieve this effect?
The text was updated successfully, but these errors were encountered: