feat(ui): add docking, viewport controls and composed settings
Add shared dock layouts, navigation cube, range bands, progress actions and comparison surfaces. Extend toolbar menus and loading composition, and align tokens, registry entries, documentation and the living catalog.
This commit is contained in:
@@ -35,3 +35,15 @@ test("dense viewer controls remain a public Button and SegmentedControl contract
|
||||
assert.match(docs, /size="dense"/);
|
||||
assert.match(docs, /viewer/);
|
||||
});
|
||||
|
||||
test("viewport controls share one scale without scaling nested controls twice", async () => {
|
||||
const [tokens,styles,registrySource] = await Promise.all([
|
||||
readFile(new URL("../packages/tokens/tokens.css",import.meta.url),"utf8"),
|
||||
readFile(new URL("../packages/ui-core/styles.css",import.meta.url),"utf8"),
|
||||
readFile(new URL("../registry/components.json",import.meta.url),"utf8"),
|
||||
]);
|
||||
assert.match(tokens,/--nodedc-viewport-control-scale: 0\.7/);
|
||||
assert.match(styles,/zoom: var\(--nodedc-viewport-control-scale\)/);
|
||||
assert.match(styles, /\.nodedc-segmented\) :is\([^}]+zoom: 1;/);
|
||||
assert.ok(JSON.parse(registrySource).components.find(c=>c.id==='button').domContract.includes('nodedc-viewport-controls'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user