Returns position state of the step with the given index.
(index: number)
| 532 | |
| 533 | /** Returns position state of the step with the given index. */ |
| 534 | _getAnimationDirection(index: number): StepContentPositionState { |
| 535 | const position = index - this._selectedIndex(); |
| 536 | if (position < 0) { |
| 537 | return this._layoutDirection() === 'rtl' ? 'next' : 'previous'; |
| 538 | } else if (position > 0) { |
| 539 | return this._layoutDirection() === 'rtl' ? 'previous' : 'next'; |
| 540 | } |
| 541 | return 'current'; |
| 542 | } |
| 543 | |
| 544 | /** Returns the index of the currently-focused step header. */ |
| 545 | _getFocusIndex(): number | null { |
no test coverage detected