(opts = {})
| 140 | }, |
| 141 | |
| 142 | mapHref(opts = {}) { |
| 143 | const params = new URLSearchParams(); |
| 144 | if (opts.root !== undefined && opts.root !== null) params.set('root', opts.root); |
| 145 | // Including 1: a reader who asked for top-level directories has said |
| 146 | // something, and dropping it would hand the choice back to the answer. |
| 147 | if (opts.depth) params.set('depth', String(opts.depth)); |
| 148 | if (opts.tests) params.set('tests', '1'); |
| 149 | return `#/map${query(params)}`; |
| 150 | }, |
| 151 | |
| 152 | flowHref(opts = {}) { |
| 153 | const params = new URLSearchParams(); |
no test coverage detected