MCPcopy Create free account
hub / github.com/microsoft/SandDance / getBlob

Function getBlob

docs/app/js/sanddance-app.js:57655–57660  ·  view source on GitHub ↗
(arrayBuffer, url)

Source from the content-addressed store, hash-verified

57653 return getBlob(arrayBuffer, url);
57654}
57655function getBlob(arrayBuffer, url) {
57656 if (isSVG(url)) throw new Error("SVG cannot be parsed directly to imagebitmap");
57657 return new Blob([
57658 new Uint8Array(arrayBuffer)
57659 ]);
57660}
57661
57662},{"@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"6xIqW":[function(require,module,exports) {
57663var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

getBlobOrSVGDataUrlFunction · 0.70

Calls 1

isSVGFunction · 0.70

Tested by

no test coverage detected