(csv, displayName, snapshots)
| 11768 | return value === null ? "" : value; |
| 11769 | } |
| 11770 | function embedScript(csv, displayName, snapshots) { |
| 11771 | const dataFile = { |
| 11772 | type: "csv", |
| 11773 | displayName, |
| 11774 | snapshots |
| 11775 | }; |
| 11776 | return `<pre id='csv-data' style='display:none'>${csv}</pre> |
| 11777 | <script>SandDanceEmbed.load(Object.assign({rawText: document.getElementById('csv-data').innerText}, ${JSON.stringify(dataFile)}))</script>`; |
| 11778 | } |
| 11779 | function getEmbedHTML(data, displayName, snapshots) { |
| 11780 | const json = JSON.stringify(data, columnReplacer); |
| 11781 | const csv = (0, _exportDelimited.convertToDelimited)(JSON.parse(json), ","); |
no outgoing calls
no test coverage detected