Hallvard Trætteberg
Hallvard Trætteberg
Links: - https://github.com/ariutta/svg-pan-zoom - http://jillix.github.io/svg.pan-zoom.js
I couldn't make this work in the internal SWT browser widget, not the internal web browser. For these, double-clicking selected text in the diagram. It did however work in Safari....
It works now! I needed to enable javascript and use https for the js source url. Only remaining problem is that the browser control won't grow with the view, it...
After some debug output I don't think it's the browser that is the problem, it may be the viewBox attribute of the svg tag that does the clipping and that...
The SVG view prototype uses an embedded browser, which supports executing "arbitrary" javascript. One possible solution is to implement a small javascript API in the web page, in such a...
If you could make a prototype of the template including what javascript to execute from "outside" to handle zooming (and perhaps also panning).
The fix didn't work, unfortunately. Note, I'm on MacOS.
I'll have to try again...
I've implemented this as the default, but have also added support for [jmustache](https://github.com/samskivert/jmustache) and a preference for setting the template URL. You can select a resource from the workspace and...
I notice that the diagram is zoomed to fill the whole view, which makes small (simple) diagrams very big. Otherwise it seems to work well. I've also added (copied from...