Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit d442f0d

Browse files
committed
Override link options to prevent link tools resizing
resolves #393
1 parent 4f164fc commit d442f0d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ui/src/app/streams/flo/support/view-helper.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,14 @@ export class ViewHelper {
6161
const V = joint.V;
6262

6363
return joint.shapes.flo.LinkView.extend({
64-
64+
options: {
65+
shortLinkLength: 0,
66+
doubleLinkTools: false,
67+
longLinkLength: 160,
68+
linkToolsOffset: 30,
69+
doubleLinkToolsOffset: 60,
70+
sampleInterval: 50
71+
},
6572
renderLabels: function () {
6673

6774
if (!this._V.labels) {
@@ -173,7 +180,6 @@ export class ViewHelper {
173180
}));
174181

175182
}, this);
176-
177183
return this;
178184
}
179185
});

0 commit comments

Comments
 (0)