@creator-notes/cnotes 0.139.0 → 0.141.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/commands/canvas.js
CHANGED
|
@@ -1920,8 +1920,9 @@ nothing.
|
|
|
1920
1920
|
"edges":[{"from":"@A","to":"DECISION-12","label":"grounds"}]}
|
|
1921
1921
|
|
|
1922
1922
|
Sections: a section container in the spec ({"kind":"section","name":…,"child":…})
|
|
1923
|
-
creates an ARRANGED section. It keeps its cards laid out
|
|
1924
|
-
or removed, until someone moves a card by hand. Put
|
|
1923
|
+
creates an ARRANGED section (every new section is). It keeps its cards laid out
|
|
1924
|
+
as they are added, edited or removed, until someone moves a card by hand. Put
|
|
1925
|
+
more cards in it later with
|
|
1925
1926
|
--into SECTION-<n>; never by picking coordinates inside the frame.
|
|
1926
1927
|
|
|
1927
1928
|
Placement (relative to nodes already on the canvas):
|
package/dist/lib/mcp-spec.js
CHANGED
|
@@ -256,7 +256,7 @@ export function buildMcpSpec(z, opts) {
|
|
|
256
256
|
"Edges resolve endpoints in priority order: '@<key>' of an item placed in this call, the noteId of a note placed in this call, or the displayId / id of a node already on the canvas.\n\n" +
|
|
257
257
|
"NEW NOTES IN THE SAME CALL: pass `notes` (the cnotes_notes_create item shape, rubric rules included) and place each with a note leaf whose noteId is '@<key>'. Bodies cross-link with [@<key>: Title](relationship:<verb>); edges and anchors say '@<key>'. One call replaces notes_create then place. The notes are created only if the layout solves, and come back under `notes`.\n\n" +
|
|
258
258
|
"placement: 'auto' (default, drops into a clear band below existing nodes and slides down to de-collide), 'append' (always below everything), 'exact' (honor origin verbatim).\n\n" +
|
|
259
|
-
"SECTIONS ARRANGE THEMSELVES.
|
|
259
|
+
"SECTIONS ARRANGE THEMSELVES. Every new section is ARRANGED: it keeps its cards laid out as cards are added, edited or removed, until someone moves a card by hand. To add cards to an existing section, pass `intoSection: 'SECTION-<n>'` with a doc of just those items: they are appended to its layout and the frame resizes to fit. Never aim `origin` inside a frame.\n\n" +
|
|
260
260
|
"The schema is strict server-side: a typo'd key anywhere in the doc is rejected with the offending path named. If a large layout is refused as a whole, place it in two or three smaller calls — each is independent.",
|
|
261
261
|
shape: {
|
|
262
262
|
intent,
|
package/package.json
CHANGED
|
@@ -127,10 +127,10 @@ This is also how a card that `add-quote` or `add-node` dropped outside a frame g
|
|
|
127
127
|
|
|
128
128
|
## Arranged sections
|
|
129
129
|
|
|
130
|
-
A section
|
|
131
|
-
|
|
132
|
-
`cnotes canvas arrange <canvas> --section SECTION-<n>` on (no `--nodes`).
|
|
133
|
-
arranged section:
|
|
130
|
+
A section lays out its own cards. Every new section starts arranged, however
|
|
131
|
+
it is made, and so does any section you run
|
|
132
|
+
`cnotes canvas arrange <canvas> --section SECTION-<n>` on (no `--nodes`). A
|
|
133
|
+
frame drawn around another frame starts freeform. An arranged section:
|
|
134
134
|
|
|
135
135
|
- tidies what is inside it, keeping the rows and columns the cards are roughly
|
|
136
136
|
in, and sizes the frame to fit (what sits below is pushed down if it grows);
|