fix: Overlays were broken. (#2614)
* 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
This commit is contained in:
1 parent
fac04ccb5e
commit
277c3bf419
4 files changed
+41
-105
No files matched your search
@@ -4,13 +4,4 @@
|
||||
* @param {String} str Input String
|
||||
* @return {ArrayBuffer} Output converted ArrayBuffer
|
||||
*/
|
||||
export default function str2ab(str) {
|
||||
const strLen = str.length;
|
||||
const bytes = new Uint8Array(strLen);
|
||||
|
||||
for (let i = 0; i < strLen; i++) {
|
||||
bytes[i] = str.charCodeAt(i);
|
||||
}
|
||||
|
||||
return bytes.buffer;
|
||||
}
|
||||
export default str => Uint8Array.from(atob(str), c => c.charCodeAt(0));
|
||||
Reference in new issue
Block a user