Replies: 1 comment
-
I did some digging, found it and adapted the navigation example. Added libraries: <script src="../src/js/dagre-0.7.3.min.js"></script>
<script src="../src/js/graphlib-2.1.3.min.js"></script> Added buttons in body: <body>
<div id="diagram" style="width: 1000px; height: 600px;"></div>
<button onclick="automaticLayout()">Render</button>
<button id="zoomOutButton">-</button>
<button id="zoomInButton">+</button>
</body> In the success function referenced the buttons: $('#zoomOutButton').click(diagram.zoomOut);
$('#zoomInButton').click(diagram.zoomIn); Here the new function automaticLayout() {
diagram.runDagre("TopBottom",300,300,0,false,400,false);
diagram.autoPageSize();
diagram.zoomFitWidth();
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, is it possible that the
autoLayout
fromviews
of a JSON workspace is not applied in any of the/examples
html pages?Beta Was this translation helpful? Give feedback.
All reactions