本文へ移動

@eightkk/vue-weave / core / dependencyPath

Function: dependencyPath() ​

dependencyPath(x1, y1, x2, y2, style?): string

Defined in: src/core/timeline.ts:319

SVG path of a dependency connector from (x1, y1) to (x2, y2). It leaves the source and enters the target horizontally, and loops around through the middle when the target starts left of the source. Any other style throws RangeError.

Parameters ​

x1 ​

number

y1 ​

number

x2 ​

number

y2 ​

number

style? ​

DependencyPathStyle = 'orthogonal'

Returns ​

string

MIT ライセンスで公開しています。