|
@@ -174,7 +174,6 @@ Graph.registerConnector(
|
|
|
const offset = 6
|
|
|
const deltaX = Math.abs(e.x - s.x)
|
|
|
const control = Math.floor((deltaX / 3) * 2)
|
|
|
-
|
|
|
const v1 = { x: s.x + offset + control, y: s.y }
|
|
|
const v2 = { x: e.x - offset - control, y: e.y }
|
|
|
return Path.normalize(
|
|
@@ -258,6 +257,8 @@ const initChart = () => {
|
|
|
// },
|
|
|
// },
|
|
|
connector: 'algo-connector',
|
|
|
+ connectionPoint: 'anchor',
|
|
|
+ anchor: 'center',
|
|
|
// connector: {
|
|
|
// name: 'rounded',
|
|
|
// args: {
|
|
@@ -269,6 +270,7 @@ const initChart = () => {
|
|
|
return new Shape.Edge({
|
|
|
id,
|
|
|
attrs: lineStyle,
|
|
|
+ zIndex: -1,
|
|
|
tools: [
|
|
|
{
|
|
|
name: 'contextmenu',
|