| 1 | class Arrow { |
| 2 | /** |
| 3 | * Creates a new arrow |
| 4 | * @param {Object} [opt] - Optional parameters. |
| 5 | * @param {string} [opt.arrowType] - Arrow type |
| 6 | * @param {string} [opt.leftText] - For EXIT ONLY, left text |
| 7 | * @param {string} [opt.rightText] - For EXIT ONLY, right text |
| 8 | * @param {boolean} [opt.individual] - For EXIT ONLY, if possible, combine with next arrow |
| 9 | */ |
| 10 | |
| 11 | constructor({ |
| 12 | |
| 13 | // Arrow Information |
| 14 | |
| 15 | arrowType = "", |
| 16 | leftText = "", |
| 17 | rightText = "", |
| 18 | individual = true, |
| 19 | |
| 20 | // Arrow location |
| 21 | |
| 22 | parentIndex = 0, |
| 23 | arrowIndex = 0 |
| 24 | |
| 25 | } = {} |
| 26 | ) { |
| 27 | this.arrowType = arrowType; |
| 28 | this.lefttext = leftText; |
| 29 | this.rightText = rightText; |
| 30 | this.individual = individual; |
| 31 | |
| 32 | this.parentIndex = parentIndex; |
| 33 | this.arrowIndex = arrowIndex; |
| 34 | |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | Arrow.prototype.arrows = [ |
| 39 | "Slighter Left:H-1", |
nothing calls this directly
no outgoing calls
no test coverage detected