|
1 | 1 | <h5 align='center'>
|
2 |
| - Trace Replayer |
| 2 | + Trace Player |
3 | 3 | </h5>
|
4 | 4 |
|
| 5 | +<div align='center' class='mb-3'> |
| 6 | + <BsButton |
| 7 | + class='th-btn' |
| 8 | + title='Previous' |
| 9 | + @onClick={{this.previous}} |
| 10 | + @type='button' |
| 11 | + > |
| 12 | + {{svg-jar 'chevron-left-16' class='octicon align-middle'}} |
| 13 | + </BsButton> |
| 14 | + |
| 15 | + <BsButton class='th-btn' title='Next' @onClick={{this.stop}} @type='button'> |
| 16 | + {{svg-jar 'square-fill-16' class='octicon align-middle'}} |
| 17 | + </BsButton> |
| 18 | + |
| 19 | + {{#if this.paused}} |
| 20 | + <BsButton |
| 21 | + class='th-btn' |
| 22 | + title='Play' |
| 23 | + @onClick={{this.start}} |
| 24 | + @type='button' |
| 25 | + > |
| 26 | + {{svg-jar 'play-16' class='octicon align-middle'}} |
| 27 | + </BsButton> |
| 28 | + {{else}} |
| 29 | + <BsButton |
| 30 | + class='th-btn navbar-highlight playing' |
| 31 | + title='Stop' |
| 32 | + @onClick={{this.pause}} |
| 33 | + @type='button' |
| 34 | + > |
| 35 | + {{svg-jar 'x-circle-16' class='octicon align-middle'}} |
| 36 | + </BsButton> |
| 37 | + {{/if}} |
| 38 | + |
| 39 | + <BsButton class='th-btn' title='Next' @onClick={{this.next}} @type='button'> |
| 40 | + {{svg-jar 'chevron-right-16' class='octicon align-middle'}} |
| 41 | + </BsButton> |
| 42 | +</div> |
| 43 | + |
| 44 | +<div class='mb-3'> |
| 45 | + <div class='range-slider--container'> |
| 46 | + <div style='width: 100%;'> |
| 47 | + <label for='trace-speed-selector'>Playback speed</label> |
| 48 | + <input |
| 49 | + id='trace-speed-slider' |
| 50 | + value={{this.selectedSpeed}} |
| 51 | + min={{this.minSpeed}} |
| 52 | + max={{this.maxSpeed}} |
| 53 | + type='range' |
| 54 | + step='1' |
| 55 | + class='form-control mr-2' |
| 56 | + onchange={{this.changeSpeed}} |
| 57 | + oninput={{fn this.inputSpeed this}} |
| 58 | + /> |
| 59 | + <div class='range-slider--values'> |
| 60 | + <span>{{this.minSpeed}}</span> |
| 61 | + <span style='font-weight: bold;'>{{this.selectedSpeed}}</span> |
| 62 | + <span>{{this.maxSpeed}}</span> |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + </div> |
| 66 | +</div> |
| 67 | + |
| 68 | +<div class='mb-3'> |
| 69 | + <div class='range-slider--container'> |
| 70 | + <div style='width: 100%;'> |
| 71 | + <label for='trace-progress'>Progress</label> |
| 72 | + <input |
| 73 | + id='trace-progress' |
| 74 | + value={{this.progress}} |
| 75 | + min='0' |
| 76 | + max='100' |
| 77 | + type='range' |
| 78 | + step='1' |
| 79 | + class='form-control mr-2' |
| 80 | + /> |
| 81 | + {{this.progress}}% |
| 82 | + </div> |
| 83 | + </div> |
| 84 | +</div> |
| 85 | + |
5 | 86 | <Visualization::PageSetup::Sidebar::Toolbar::TraceReplayer::TraceNavigation
|
6 |
| - @selectPreviousTraceStep={{this.selectPreviousTraceStep}} |
7 |
| - @selectNextTraceStep={{this.selectNextTraceStep}} |
8 |
| - @currentTraceStepIndex={{this.currentTraceStepIndex}} |
9 |
| - @traceStepCount={{this.traceSteps.length}} |
| 87 | + @selectPreviousTraceStep={{this.previous}} |
| 88 | + @selectNextTraceStep={{this.next}} |
| 89 | + @currentTraceStepIndex={{this.index}} |
| 90 | + @traceLength={{this.trace.length}} |
10 | 91 | />
|
11 | 92 |
|
12 |
| -<hr/> |
| 93 | +<hr /> |
13 | 94 |
|
14 | 95 | <Visualization::PageSetup::Sidebar::Toolbar::TraceReplayer::TraceStepDetails
|
15 | 96 | @operationName={{this.operationName}}
|
|
0 commit comments