feat: fit DICOM previews and show searchable file metadata

This commit is contained in:
SantaSpeen committed 2026-10-22 11:07:27 +03:00
1 parent 7a1d18dfc6
commit a69fdf2e09
17 files changed
+471 -221

No files matched your search

+11 -1
View File
@@ -41,4 +41,14 @@ assert.equal(replies[0]?.rgba[12], 255);
self.onmessage({ data: { id: 2, frame: 1 } });
assert.equal(replies[1]?.error, undefined);
assert.equal(replies[1]?.rgba[0], 255);
console.log("Production DICOM worker: decode and frame switching passed");
self.onmessage({ data: { id: 3, mode: "metadata", buffer: fixture(32) } });
assert.equal(replies[2]?.error, undefined);
assert.ok(
replies[2]?.metadata.some(
(entry) => entry.tag === "(0010,0010)" && entry.value === "Example Patient"
)
);
assert.ok(!replies[2]?.metadata.some((entry) => entry.tag === "(7FE0,0010)"));
console.log(
"Production DICOM worker: decode, frame switching and metadata passed"
);