diff --git a/app/assets/json/bzGraflow/testFlowICMP2.json b/app/assets/json/bzGraflow/testFlowICMP2.json
index 392c61d..2dea84b 100644
--- a/app/assets/json/bzGraflow/testFlowICMP2.json
+++ b/app/assets/json/bzGraflow/testFlowICMP2.json
@@ -132,19 +132,19 @@
}
],
"links": [
- { "from": ["eval", "out1"], "to": ["gap", "in1"] },
- { "from": ["eval", "out1"], "to": ["cid", "in1"] },
- { "from": ["eval", "out1"], "to": ["allocation", "in1"] },
- { "from": ["gap", "out1"], "to": ["signature", "in1"] },
- { "from": ["signature", "out1"], "to": ["progress-meeting", "in1"] },
- { "from": ["cid", "out1"], "to": ["techdd", "in1"] },
- { "from": ["allocation", "out1"], "to": ["techdd", "in1"] },
- { "from": ["allocation", "out1"], "to": ["kyc", "in1"] },
+ { "from": ["eval", "out1"], "to": ["gap", "in1"] , "endArrow":true},
+ { "from": ["eval", "out1"], "to": ["cid", "in1"] , "endArrow":true},
+ { "from": ["eval", "out1"], "to": ["allocation", "in1"] , "endArrow":true},
+ { "from": ["gap", "out1"], "to": ["signature", "in1"] , "endArrow":true},
+ { "from": ["signature", "out1"], "to": ["progress-meeting", "in1"] , "endArrow":true},
+ { "from": ["cid", "out1"], "to": ["techdd", "in1"] , "endArrow":true, "startArrow":true},
+ { "from": ["allocation", "out1"], "to": ["techdd", "in1"] , "endArrow":true, "startArrow":true},
+ { "from": ["allocation", "out1"], "to": ["kyc", "in1"] , "endArrow":true, "startArrow":true},
{ "from": ["techdd", "out1"], "to": ["aifm-advisory", "in1"] },
- { "from": ["kyc", "out1"], "to": ["aifm-advisory", "in1"] },
- { "from": ["aifm-advisory", "out1"], "to": ["aifm-investment", "in1"] },
- { "from": ["aifm-investment", "out1"], "to": ["agreement", "in1"] },
- { "from": ["gap", "out1"], "to": ["aifm-investment", "in1"] }
+ { "from": ["kyc", "out1"], "to": ["aifm-advisory", "in1"] , "endArrow":true},
+ { "from": ["aifm-advisory", "out1"], "to": ["aifm-investment", "in1"] , "endArrow":true},
+ { "from": ["aifm-investment", "out1"], "to": ["agreement", "in1"] , "endArrow":true},
+ { "from": ["gap", "out1"], "to": ["aifm-investment", "in1"] , "endArrow":true}
]
}
}
\ No newline at end of file
diff --git a/app/thirdparty/buildoz/bzGraflow.js b/app/thirdparty/buildoz/bzGraflow.js
index 3ceade5..ccca598 100644
--- a/app/thirdparty/buildoz/bzGraflow.js
+++ b/app/thirdparty/buildoz/bzGraflow.js
@@ -431,7 +431,7 @@ class BZgraflow extends Buildoz{
if(bb.width > bb.height) this.currentOrientation = 'horizontal'
else this.currentOrientation = 'vertical'
}
- if(forceAutoplace) this.autoPlace(this.currentOrientation, 60, 60)
+ if(forceAutoplace) this.autoPlace(this.currentOrientation)
}
// Convert viewport (client) coordinates to this instance's SVG local coordinates.
@@ -604,7 +604,14 @@ class BZgraflow extends Buildoz{
return(path)
}
- autoPlace(orientation = 'horizontal', gapx = 80, gapy = 80, tween=500, align='center'){
+ autoPlace(orientation = 'horizontal', gapx = null, gapy = null, tween = null, align = null){
+ if(gapx == null) gapx = parseInt(this.getBZAttribute('gapx')) || 80
+ if(gapy == null) gapy = parseInt(this.getBZAttribute('gapy')) || 80
+ if(tween == null) tween = parseInt(this.getBZAttribute('tween')) || 500
+ if(align == null) align = this.getBZAttribute('align') || 'center'
+
+ console.log('autoPlace', orientation, gapx, gapy, tween, align)
+
this.currentOrientation = orientation
// Cancel any previous autoPlace() animations by bumping a token.
// moveNode() checks this token each frame and will no-op if superseded.