-
Notifications
You must be signed in to change notification settings - Fork 26
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
[BUG] - Center Content, doesn't actually center the content based on the content dimensions. #36
Comments
@davidmarogy Thanks for the report. Please provide a reduced test case using the Stackblitz link I’ve provided in the issue template, including the other information it asks for. |
Also @davidmarogy, please see #34. |
@KensingtonTech Thanks for the reference to the other issue :D, and sorry for taking so long. Here are the reduced test case and the other informations you wanted. Describe the bug Reduced Test Case To Reproduce
Expected behavior Screenshots Desktop (please complete the following information):
Additional context |
@davidmarogy I'm looking into this. |
@KensingtonTech Thanks :) |
@davidmarogy So that you're not waiting around for me, I'll be straight with you -- I've rather a lot on at the moment and I don't see myself having the time to support your use case in the near future. I shall leave this open for now. When time allows, I do plan to come back to it. Apologies. |
Like issue #47 this problem seems related to the |
Try this const point = new fabric.Point(canvasWidth / 2, canvasHeight / 2); |
Hello I am trying to implement zoom and pan for a single picture in Angular.
The picture is much bigger than the the parent container. Therefore i wanted to center the picture to match the dimensions of the container. But currently center content is only centering so that the content top and left are 0. Also panning only work for the given container dimensions. It would be nice to pan till reaching the contents dimension. I also tried setting the initial pan x and y but on centering the piccture it jumped back the the left corner.
My container is about: height: 150 px width: 100px,
Image is without setting these parameters about: (but picture can have different dimension)height:500px, width: 750px
The text was updated successfully, but these errors were encountered: