Skip to content

Commit 87c8b1a

Browse files
author
Mark Robinson
committed
Enable simple zoom/drag functionality
1 parent c5b18f5 commit 87c8b1a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/main/resources/static/css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ body {
4444

4545
#visualisation {
4646
overflow: auto;
47-
padding: 10px;
47+
padding: 0;
4848
}
4949

5050
#graph svg {

src/main/resources/static/js/workflow.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ require(['jquery', 'bootstrap.modal', 'renderer'],
4848
var dotGraph = $("#dot").val();
4949

5050
// Initialise graph
51-
renderer.init("#graph");
51+
renderer.init({
52+
element: "#graph",
53+
zoom: true
54+
});
5255

5356
// Update stage with new dot source
5457
renderer.render(dotGraph);

0 commit comments

Comments
 (0)