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

pClock size handling #9

Open
dhornbein opened this issue Apr 1, 2014 · 2 comments
Open

pClock size handling #9

dhornbein opened this issue Apr 1, 2014 · 2 comments

Comments

@dhornbein
Copy link
Owner

The pClock needs to adjust it's size to fix the viewport.
It will have to take into account it's current size, the amount of data, the user defined options for line width and radius. Then calculate the best way to fit it on screen.

Let's discuss those parameters here.

@thiagodemellobueno
Copy link
Collaborator

This will probably do the trick.
http://raphaeljs.com/reference.html#Paper.setViewBox
I sort of implemented it, but its a bit tricky, probably set up a feature branch for it.

@thiagodemellobueno
Copy link
Collaborator

I set up the zoom on mousewheel action... there's tweaking to be done, but its a proof of concept.
Raphael zooms oddly, line-weights seem to scale up.
Rendering is superfast though, so we can redraw on zoom as well (though, then why not just redraw instead of using setviewBox... ) in any case we probably want to tweak strokeweights on zoom. Haven't found a sweetspot.

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

No branches or pull requests

2 participants