release: improve rendering architecture and dark mode

This commit is contained in:
Formsmith
2026-07-28 14:52:59 +03:00
parent 33671c1aae
commit edbb11c97d
32 changed files with 3944 additions and 310 deletions
+6
View File
@@ -27,6 +27,7 @@ describe("workplane settings helpers", () => {
sizePreset: "",
gridBlockSize: 2.5,
gridBlockPreset: "Custom",
gridColor: "#a34fd1",
background: "#123456",
showShadows: false,
showGrid: false,
@@ -43,6 +44,7 @@ describe("workplane settings helpers", () => {
width: 500,
gridBlockSize: 2.5,
gridBlockPreset: "Custom",
gridColor: "#a34fd1",
background: "#123456",
showShadows: false,
showGrid: false,
@@ -53,6 +55,10 @@ describe("workplane settings helpers", () => {
});
expect(normalizeWorkspaceSettings({ accuracy: 9 }, fallback).accuracy).toBe(fallback.accuracy);
expect(normalizeWorkspaceSettings({ historyLimit: 73 }).historyLimit).toBe(73);
expect(normalizeWorkspaceSettings({ historyLimit: 9000 }).historyLimit).toBe(5000);
expect(normalizeWorkspaceSettings({ historyLimit: "invalid" }).historyLimit).toBe("unlimited");
expect(normalizeWorkspaceSettings({ gridColor: "not-a-color" }).gridColor).toBe(DEFAULT_WORKPLANE_WORKSPACE.gridColor);
});
it("keeps scale options in the selected unit family", () => {