Consolidate duplicated editor code, trim comments, refresh README
Split GraphCanvas (1076 -> 831 lines) into EdgeLayer and graphMenus; the port and marker menus were the same list and are now one function. Value specs of the inspector and the list tab share valueSpecs.ts, and the remaining copies (compound commands, type glyphs, typed asset lookup, name rule, play/editor world setup, marquee) are merged. Four copies had already drifted apart; merging them fixes: - "Disconnect N links" in the port menu is one undo step, not N - "+ Add collider" is hidden on a placed container instance, as in the hierarchy menu, instead of always failing - a bool property coerced from the text "false" becomes false - a port command on an unknown node type reports instead of crashing Comment-only edits leave the bundle byte-identical. README corrected in 35 places (step limit, jump-run clock, suite duration, 409 body, ...). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9212e61c4c
commit
8f92a06c84
96 files changed
+999
-1261
No files matched your search
@@ -124,10 +124,7 @@ describe('the address a list is edited through', () => {
|
||||
expect(resolveList(f.state, words)!.value).toEqual(['red', 'blue']);
|
||||
});
|
||||
|
||||
/**
|
||||
* An unconnected `list` input carries its inline value in the same params bag a setting does,
|
||||
* so it is the same slot – before this it offered a number field instead.
|
||||
*/
|
||||
/** An unconnected `list` input carries its inline value in the same params bag a setting does. */
|
||||
it('reaches the inline value of an unconnected list input', () => {
|
||||
const add = new AddNodeCommand(f.behavior.id, 'Count', 0, 0);
|
||||
expect(f.state.execute(add)).toBe(true);
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
/**
|
||||
* A variable is drawn by one builder on the asset that declares it and on a placed object, and
|
||||
* every row of the inspector shares one column grid. The asset may rename and reshape; a placed
|
||||
* object may not, so there the names are labels. `NumberField extends TextField`, so counting
|
||||
* editable widgets by type would count the value fields too: the tests go by the name's widget.
|
||||
* One builder draws a variable on its asset (renamable) and on a placed object (names are labels).
|
||||
* `NumberField extends TextField`, so the tests go by the name's widget rather than counting by type.
|
||||
*/
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { createEmptyProject } from '../../src/core/model/Project';
|
||||
|
||||
Reference in new issue
Block a user