()
| 40 | const controller = new dat.GUI(); |
| 41 | |
| 42 | function updateScrollbar() { |
| 43 | scrollbars.forEach((s) => { |
| 44 | // real-time options |
| 45 | Object.assign(s.options, options); |
| 46 | s.updatePluginOptions('overscroll', { |
| 47 | ...overscrollOptions, |
| 48 | effect: overscrollOptions.enable ? overscrollOptions.effect : undefined, |
| 49 | }); |
| 50 | |
| 51 | if (options.alwaysShowTracks) { |
| 52 | s.track.xAxis.show(); |
| 53 | s.track.yAxis.show(); |
| 54 | } else { |
| 55 | s.track.xAxis.hide(); |
| 56 | s.track.yAxis.hide(); |
| 57 | } |
| 58 | }); |
| 59 | } |
| 60 | |
| 61 | const f1 = controller.addFolder('Scrollbar Options'); |
| 62 | f1.open(); |
nothing calls this directly
no test coverage detected
searching dependent graphs…