The active pane's other edges drawn with the curves, so moving between panes repaints only those lines

A frame over the whole pane repainted the whole pane at every move (the forks keypress-to-paint
median rose by half a frame); its left, foot and right are now a hairline path in the curves'
layer, under what peeks, cut where the next column or pane covers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Opus 5.5 committed 2026-11-17 00:37:20 -05:00
1 parent d943285f95
commit 9c0f4b8c02
5 files changed
+35 -9

No files matched your search

+1 -1
View File
@@ -375,7 +375,7 @@ test("each fork has a colour, shared by its curve and the rule under its title;
expect((await curve("Simple cells")).stroke).not.toBe((await curve("Complex cells")).stroke);
expect((await curve("Simple cells")).stroke).not.toBe((await curve("Eukaryote")).stroke);
// The active pane's heavy ink rule is as it was.
expect(await page.locator(".pane.active").evaluate((el) => getComputedStyle(el, "::after").borderTopWidth)).toBe("3px");
expect(await page.locator(".pane.active").evaluate((el) => getComputedStyle(el, "::after").height)).toBe("3px");
// Off: plain ink everywhere, as before colours.
await page.keyboard.press(":");
await page.keyboard.type("/colors off");
+1 -1
View File
@@ -179,7 +179,7 @@ export const curveFaults = (page: Page) =>
const svg = document.querySelector<SVGSVGElement>(".curves")!.getBoundingClientRect();
const box = { left: Math.round(svg.left), top: Math.round(svg.top) };
const placed = new Map<number, any>(ie.panesPlaced.map((x: any) => [x.node.id, x]));
for (const p of document.querySelectorAll<SVGPathElement>(".curves path:not(.foot)")) {
for (const p of document.querySelectorAll<SVGPathElement>(".curves path:not(.foot):not(.frame)")) {
const to = Number(p.dataset.to);
const from = Number(p.dataset.from);
const ce = document.querySelector<HTMLElement>(`.pane[data-tid="${to}"]`);
+8 -4
View File
@@ -136,12 +136,16 @@ test("the selection bar is over the curves and under a pane peeking over it; cur
await noFaults(page, "with the bar (its place clear of the curves)");
const z = await page.evaluate(() => ({ curves: Number(getComputedStyle(document.querySelector(".curves")!).zIndex), peek: 6 }));
expect(z.curves).toBeGreaterThan(z.peek);
// The active pane: its other edges in the strong ink too.
// The active pane: the heavy rule on top, its other edges in the strong ink (drawn with the curves, along its left, foot and right).
const frame = await page.locator(".pane.active").evaluate((el) => {
const a = getComputedStyle(el, "::after");
return { top: a.borderTopWidth, left: a.borderLeftWidth, right: a.borderRightWidth, bottom: a.borderBottomWidth, same: a.borderLeftColor === a.borderRightColor && a.borderRightColor === a.borderBottomColor, notRule: a.borderLeftColor !== getComputedStyle(el).borderRightColor };
const r = el.getBoundingClientRect();
const f = document.querySelector<SVGPathElement>(".curves path.frame");
if (!f) return null;
const a = f.getPointAtLength(0);
const b = f.getPointAtLength(f.getTotalLength());
return { rule: getComputedStyle(el, "::after").height, left: Math.abs(a.x - r.left) < 1.5, right: Math.abs(b.x - r.right) < 1.5, stroke: getComputedStyle(f).stroke !== getComputedStyle(el).borderRightColor };
});
expect(frame).toEqual({ top: "3px", left: "1px", right: "1px", bottom: "1px", same: true, notRule: true });
expect(frame).toEqual({ rule: "3px", left: true, right: true, stroke: true });
});
test("a menu's button closes the menu it opened: the top bar's, and a pane's ⋯", async ({ page }) => {