feat(ui): Created design and added core components for ui-next (#4324)

This commit is contained in:
Dan Rukas authored and GitHub committed 2024-08-02 12:35:07 -04:00
1 parent 00707db1ad
commit 90364189b8
32 files changed
+1004 -34

No files matched your search

@@ -22,7 +22,7 @@ const testPixel = (dx, dy, expectedPixel) => {
const { viewport } = cornerstone.getEnabledElements()[0];
const imageData = viewport.getImageData();
// cy.log("imageData", imageData);
const origin = viewport.worldToCanvas(imageData.origin);
const origin = viewport.worldToCanvas(imageData?.origin);
const orX = origin[0] * devicePixelRatio;
const orY = origin[1] * devicePixelRatio;
const x = Math.round(orX + dx);