-
Notifications
You must be signed in to change notification settings - Fork 208
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
Large Diagrams #7
Comments
Another alternative without the use of jQuery: |
The difficulty that arises is that I really like that the transparent textarea floats on top of the canvas. This causes some issues when scrolling both or just one of the canvas and/or textarea. Especially horizontally. There is probably some nice solution out there. Probably looking into some kind of zoom/pan tool. |
Maybe a partially solution in https://github.com/macino/nomnoml. I added some move handlers to the canvas so you can drag it wherever you want. Double click restores the original position. The position of the canvas is not affected by it. Unfortunately, it works only in FF. Chrome has some difficulties handling the mouse event on canvas. Don't know why, but looking to it. |
I try to keep compatibility with IE9, Firefox and Chrome. |
I'll keep that in mind. I'll let you know when I solve that problem. |
We now have a candidate solution to this issue. |
Too bad the image becomes fuzzy when becoming smaller (such thing does not happen with the SVG renderer.. #15 ;) ) |
@ctzurcanu do you mean the fuzziness when downloading an image? |
@achudars that too, but in general the letters on canvas are less sharp than SVG letters of the same dims even when displaying. |
For large diagrams, top/bottom left/right get's cut off.
If you add these two CSS styles, it should do the trick:
Alternatively, you could make the
#canvas
element draggable and resizable using jQuery (or any other preferred method) for better visibility and control over the output of the diagram.Otherwise, great job on the tool!
The text was updated successfully, but these errors were encountered: