.
This commit is contained in:
@@ -467,10 +467,12 @@
|
|||||||
const readFile = (file, el) => {
|
const readFile = (file, el) => {
|
||||||
reader(file).then(reader => {
|
reader(file).then(reader => {
|
||||||
console.log("12345", reader)
|
console.log("12345", reader)
|
||||||
|
$(el).parent().parent().find(".temp-thumb").remove();
|
||||||
|
|
||||||
if (reader.result.startsWith("data:application/octet-stream;base64")) {
|
if (reader.result.startsWith("data:application/octet-stream;base64")) {
|
||||||
const element = $("<div class='temp-thumb'></div>").get(0)
|
const element = $("<div class='temp-thumb'></div>").get(0)
|
||||||
element.height = 100;
|
element.height = 100;
|
||||||
|
element.width = 100;
|
||||||
const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
|
const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
|
||||||
file
|
file
|
||||||
);
|
);
|
||||||
@@ -488,7 +490,6 @@
|
|||||||
image.title = file.name;
|
image.title = file.name;
|
||||||
image.src = reader.result;
|
image.src = reader.result;
|
||||||
image.className = "temp-thumb";
|
image.className = "temp-thumb";
|
||||||
$(el).parent().parent().find(".temp-thumb").remove();
|
|
||||||
$(el).parent().parent().prepend(image);
|
$(el).parent().parent().prepend(image);
|
||||||
//images.push(reader.result);
|
//images.push(reader.result);
|
||||||
}
|
}
|
||||||
@@ -497,6 +498,7 @@
|
|||||||
|
|
||||||
|
|
||||||
active_file_inputs.delete(el)
|
active_file_inputs.delete(el)
|
||||||
|
console.log("active", active_file_inputs)
|
||||||
// Only load once all queued files have been processed
|
// Only load once all queued files have been processed
|
||||||
if (active_file_inputs.size < 1) {
|
if (active_file_inputs.size < 1) {
|
||||||
loadViewer();
|
loadViewer();
|
||||||
|
|||||||
Reference in New Issue
Block a user