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

+4 -4
View File
@@ -25,10 +25,10 @@ export default defineConfig({
baseUrl: 'http://localhost:3000',
waitForAnimations: true,
chromeWebSecurity: false,
defaultCommandTimeout: 10000,
requestTimeout: 10000,
responseTimeout: 10000,
pageLoadTimeout: 10000,
defaultCommandTimeout: 30000,
requestTimeout: 30000,
responseTimeout: 30000,
pageLoadTimeout: 30000,
specPattern: 'cypress/integration/**/*.spec.[jt]s',
projectId: '4oe38f',
video: true,
@@ -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);