* fix(OHIFv3):Overlays were broken. Adds a retrieveBulkData to elements containing BulkDataURI so that anyone display the data can retrieve the required information. * fix(OHIFv3):Added a call in the wrong spot, removed it. * docs(OHIFv3):Added some documentation as requested
8 lines
206 B
JavaScript
8 lines
206 B
JavaScript
/**
|
|
* Convert String to ArrayBuffer
|
|
*
|
|
* @param {String} str Input String
|
|
* @return {ArrayBuffer} Output converted ArrayBuffer
|
|
*/
|
|
export default str => Uint8Array.from(atob(str), c => c.charCodeAt(0));
|