MCPcopy Index your code
hub / github.com/microsoft/SandDance / getEmbedHTML

Function getEmbedHTML

docs/app/js/sanddance-app.js:11779–11784  ·  view source on GitHub ↗
(data, displayName, snapshots)

Source from the content-addressed store, hash-verified

11777 <script>SandDanceEmbed.load(Object.assign({rawText: document.getElementById('csv-data').innerText}, ${JSON.stringify(dataFile)}))</script>`;
11778}
11779function getEmbedHTML(data, displayName, snapshots) {
11780 const json = JSON.stringify(data, columnReplacer);
11781 const csv = (0, _exportDelimited.convertToDelimited)(JSON.parse(json), ",");
11782 const html = (0, _dataExporterHtml.embedHtml)(`${(0, _language.strings).appName} - ${escape(displayName)}`, embedScript(csv, displayName, snapshots));
11783 return html;
11784}
11785
11786},{"./dataExporterHtml":"69f1V","./dialog":"hBByT","../base":"b6Cy1","../exportDelimited":"7GONW","../language":"7qvdA","@msrvida/sanddance-react":"4uo3s","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"69f1V":[function(require,module,exports) {
11787var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 2

escapeFunction · 0.85
embedScriptFunction · 0.70

Tested by

no test coverage detected