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

Viewport / resize programmatically #13

Open
XORwell opened this issue Jun 22, 2012 · 3 comments
Open

Viewport / resize programmatically #13

XORwell opened this issue Jun 22, 2012 · 3 comments

Comments

@XORwell
Copy link

XORwell commented Jun 22, 2012

Any chance to get Viewport height/width as options like the image has it?

Or maybe you could give some advice how to resize the viewport?
I need to rotate the image. This already works, also with updating the preview. If the image is 180dg rotated, the viewport-dimension doesnt fit to the image-dimensions. I'm trying to update the viewport-dimension $('.jrac_viewport').css('height', value) / $viewport.height(value) but this also changes the image-dimension.

By the way: image rotation would be a great feature! ;)

@trepmag
Copy link
Owner

trepmag commented Jun 23, 2012

I have added the following options to the jrac() method:

  • viewport_width and viewport_height
  • viewport_image_surrounding

Let me know if it help in your case.

Ps: Yes I should look at adding rotation!

@trepmag
Copy link
Owner

trepmag commented Jun 23, 2012

Rotate feature try: #14

@XORwell
Copy link
Author

XORwell commented Jun 23, 2012

Great! Thank you! 👍
I'll try both asap and let you know..

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

No branches or pull requests

2 participants