()
| 4155 | const graphNote = hasBackendGraph |
| 4156 | ? ui().wiki.graphRealNote(layout.nodes.length, totalNodes, layout.sourceEdgeCount) |
| 4157 | : state.wikiNodes.length |
| 4158 | ? ui().wiki.graphSearchNote(layout.sourceCount, layout.nodes.length) |
| 4159 | : ui().wiki.graphDemoNote; |
| 4160 | target.innerHTML = ` |
| 4161 | <div class="graph-canvas"> |
| 4162 | <div class="graph-viewport"> |
| 4163 | <svg class="graph-svg" viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true">${lineHtml}</svg> |
| 4164 | ${nodeHtml} |
| 4165 | </div> |
| 4166 | <div class="graph-legend"> |
| 4167 | <span><i class="legend-dot topic"></i>${escapeHtml(ui().wiki.legend.topic)}</span> |
| 4168 | <span><i class="legend-dot method"></i>${escapeHtml(ui().wiki.legend.method)}</span> |
| 4169 | <span><i class="legend-dot paper"></i>${escapeHtml(ui().wiki.legend.paper)}</span> |
| 4170 | <span><i class="legend-dot frontier"></i>${escapeHtml(ui().wiki.legend.frontier)}</span> |
| 4171 | </div> |
| 4172 | <div class="graph-tools" aria-label="${escapeHtml(ui().wiki.toolsLabel)}"> |
| 4173 | <button data-graph-action="zoom-in" type="button" title="${escapeHtml(ui().wiki.zoomIn)}">+</button> |
| 4174 | <button data-graph-action="zoom-out" type="button" title="${escapeHtml(ui().wiki.zoomOut)}">-</button> |
| 4175 | <button data-graph-action="focus" type="button" title="${escapeHtml(ui().wiki.focusCenter)}">⌖</button> |
| 4176 | </div> |
| 4177 | </div> |
| 4178 | <div class="graph-note">${graphNote}</div> |
| 4179 | `; |
no test coverage detected