feat(web): close remaining editor, layout and persistence gaps
- Area headers get a per-area editor switcher backed by a shared AreaEditorContext; Preferences can hide it. - Animation camera area is a real navigable viewport aligned to the scene camera; Graph Editor adds channel selection, keyframe drag/ insert/delete and interpolation. - Geometry Nodes node locations round-trip through the native writer and reader, so saved graphs keep their layout. - Texture Paint can make linked library images local via a new native makeImageLocal command before packing strokes. - Compositor IMAGE and Render Layers nodes now persist to Main and execute against packed images / the last PBR render. - Spreadsheet row cap raised to 250k; Outliner gains Ctrl+A and arrow/ Home/End navigation. Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -65,6 +65,16 @@ test("Geometry Nodes canvas graph survives an OPFS save and reopen", async ({ pa
|
||||
await openStudioAndMonkey(page);
|
||||
const canvas = await openCanvas(page);
|
||||
await addTransformAndConnect(page, canvas);
|
||||
const node = page.locator('.react-flow__node[data-id="node-geometrynodetransform"]');
|
||||
const nodeBox = await node.boundingBox();
|
||||
if (!nodeBox) throw new Error("geometry node has no box");
|
||||
await page.mouse.move(nodeBox.x + 30, nodeBox.y + 15);
|
||||
await page.mouse.down();
|
||||
await page.mouse.move(nodeBox.x + 150, nodeBox.y + 85, { steps: 10 });
|
||||
await page.mouse.up();
|
||||
await page.waitForTimeout(400);
|
||||
const expectedPosition = JSON.parse(await canvas.getAttribute("data-node-positions") ?? "[]").at(-1) as { x: number; y: number };
|
||||
expect(expectedPosition).toBeTruthy();
|
||||
await canvas.getByRole("button", { name: "提交图", exact: true }).evaluate((element) => (element as HTMLElement).click());
|
||||
await expect.poll(async () => page.locator('[data-testid="geometry-node-graph-count"]').innerText(), { timeout: 60_000 }).toBe("1 graphs");
|
||||
await expect.poll(async () => canvas.getAttribute("data-node-count"), { timeout: 60_000 }).toBe("3");
|
||||
@@ -82,4 +92,6 @@ test("Geometry Nodes canvas graph survives an OPFS save and reopen", async ({ pa
|
||||
await expect.poll(async () => page.locator('[data-testid="geometry-node-graph-count"]').innerText(), { timeout: 60_000 }).toBe("1 graphs");
|
||||
await expect.poll(async () => reopened.getAttribute("data-node-count"), { timeout: 60_000 }).toBe("3");
|
||||
await expect.poll(async () => reopened.getAttribute("data-link-count"), { timeout: 60_000 }).toBe("2");
|
||||
const positions = JSON.parse(await reopened.getAttribute("data-node-positions") ?? "[]") as Array<{ x: number; y: number } | null>;
|
||||
expect(positions.some((position) => position && Math.abs(position.x - expectedPosition.x) <= 1 && Math.abs(position.y - expectedPosition.y) <= 1)).toBe(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user