Isometric line figures that answer the pointer. For React and for anything with a DOM.
Site test: a missing made page's tile is measured once the Marks shelf is the one built
Lucas Marques8aed4fac8ecc
diff --git a/apps/site/test/figures.spec.ts b/apps/site/test/figures.spec.tsindex cbaa53b..fa38913 100644--- a/apps/site/test/figures.spec.ts+++ b/apps/site/test/figures.spec.ts@@ -247,6 +247,8 @@ test("Escape pressed inside a made page's frame closes the drawer, as it does outest("a made tile keeps its box when its page is missing", async ({ page }) => {await page.route("**/skill/hairline-mastra.html*", (route) => route.fulfill({ status: 404, body: "" }));await page.goto("/figures#marks");+ // the hash is read after mount and the shelves are built again for it: measure the frame that stays+ await expect(page.locator('.shelf[data-filter="marks"]')).toHaveAttribute("aria-pressed", "true");const box = (await page.locator("#shelf-marks .fig-tile").nth(1).locator("iframe.made-frame").boundingBox())!;expect(box.width / box.height).toBeCloseTo(5 / 4, 1);});