(opts = {})
| 150 | }, |
| 151 | |
| 152 | flowHref(opts = {}) { |
| 153 | const params = new URLSearchParams(); |
| 154 | if (opts.from) params.set('from', opts.from); |
| 155 | if (opts.to) params.set('to', opts.to); |
| 156 | if (opts.symbols) params.set('symbols', opts.symbols); |
| 157 | // `t`, not `trail`: the trail already travels under that name everywhere |
| 158 | // else, and a flow read from one is the same walk under a different lens. |
| 159 | if (opts.trail) params.set('t', opts.trail); |
| 160 | return `#/flow${query(params)}`; |
| 161 | }, |
| 162 | |
| 163 | entryHref() { |
| 164 | return '#/entry'; |
no test coverage detected