plugin/plugin copy.js
// Creates a curved (diagonal) path from parent to the child nodes
Creates a curved (diagonal) path from parent to the child nodes
Creates a curved ( diagonal ) path from parent to the child nodes
function diagonal(s, d) {
    path = `M ${s.y} ${s.x}
            C ${(s.y + d.y) / 2} ${s.x},
                ${(s.y + d.y) / 2} ${d.x},
                ${d.y} ${d.x}`
    return path
}
function diagonal ( s , d ) { path = ` ${ s . y } ${ s . x } ${ ( s . y + d . y ) / 2 } ${ s . x } ${ ( s . y + d . y ) / 2 } ${ d . x } ${ d . y } ${ d . x } ` return path }
Creates a curved (diagonal) path from parent to the child nodes
Creates a curved ( diagonal ) path from parent to the child nodes