@issuegraph/editor 0.1.0 → 0.3.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/README.md +35 -3
- package/dist/audit/findings.d.ts +5 -2
- package/dist/audit/findings.d.ts.map +1 -1
- package/dist/audit/findings.js +33 -1
- package/dist/audit/findings.js.map +1 -1
- package/dist/firstpass/batch.d.ts +10 -0
- package/dist/firstpass/batch.d.ts.map +1 -1
- package/dist/firstpass/batch.js +26 -7
- package/dist/firstpass/batch.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/overlay/projected.d.ts +21 -0
- package/dist/overlay/projected.d.ts.map +1 -0
- package/dist/overlay/projected.js +49 -0
- package/dist/overlay/projected.js.map +1 -0
- package/dist/scale/ladder.d.ts +6 -0
- package/dist/scale/ladder.d.ts.map +1 -1
- package/dist/scale/ladder.js +13 -0
- package/dist/scale/ladder.js.map +1 -1
- package/dist/scale/render.d.ts +19 -0
- package/dist/scale/render.d.ts.map +1 -1
- package/dist/scale/render.js +10 -29
- package/dist/scale/render.js.map +1 -1
- package/dist/workspace/chrome.d.ts +21 -0
- package/dist/workspace/chrome.d.ts.map +1 -0
- package/dist/workspace/chrome.js +178 -0
- package/dist/workspace/chrome.js.map +1 -0
- package/dist/workspace/host.d.ts +148 -0
- package/dist/workspace/host.d.ts.map +1 -0
- package/dist/workspace/host.js +316 -0
- package/dist/workspace/host.js.map +1 -0
- package/dist/workspace/mount.d.ts +139 -0
- package/dist/workspace/mount.d.ts.map +1 -0
- package/dist/workspace/mount.js +882 -0
- package/dist/workspace/mount.js.map +1 -0
- package/dist/workspace/rail.d.ts.map +1 -1
- package/dist/workspace/rail.js +11 -0
- package/dist/workspace/rail.js.map +1 -1
- package/dist/workspace/render.d.ts +7 -0
- package/dist/workspace/render.d.ts.map +1 -1
- package/dist/workspace/render.js +66 -5
- package/dist/workspace/render.js.map +1 -1
- package/dist/workspace/styles.d.ts +1 -1
- package/dist/workspace/styles.d.ts.map +1 -1
- package/dist/workspace/styles.js +20 -0
- package/dist/workspace/styles.js.map +1 -1
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ The canvas is a **local** instrument — it answers "what surrounds this issue"
|
|
|
51
51
|
| Nodes | Behaviour |
|
|
52
52
|
|---|---|
|
|
53
53
|
| ≤ `GRAPH_NODE_BUDGET` | draw the neighbourhood |
|
|
54
|
-
| up to `CLUSTER_ONLY_BUDGET` | component **capsules** — size, `blocked-by` count, chain depth, cycle flag |
|
|
54
|
+
| up to `CLUSTER_ONLY_BUDGET` | component **capsules** — size, `blocked-by` count, chain depth, cycle flag (the host's `ViewerDocument.cycles`, the same reader answer the audit reads) |
|
|
55
55
|
| beyond it | capsules truncated, and **search leads** |
|
|
56
56
|
|
|
57
57
|
Both thresholds are the viewer's own exports, read rather than restated, so the ladder and the canvas cannot disagree about what "past budget" means.
|
|
@@ -193,7 +193,7 @@ Which bindings reach `target-search` is **data on the binding table**, so no cal
|
|
|
193
193
|
|
|
194
194
|
**A `together-with` edge needs no special case.** The viewer gives its connector an *edge* identity precisely because an enclosure has no line to click, so by the time a selection arrives here it is an ordinary edge id and `⌫` and `T` work on it unchanged.
|
|
195
195
|
|
|
196
|
-
**Validity stays in the store.** These modules emit intent; `structuralRefusal` owns `self-edge`, `duplicate-edge` and `
|
|
196
|
+
**Validity stays in the store.** These modules emit intent; `structuralRefusal` owns `self-edge`, `duplicate-edge`, `unknown-issue` and `cardinality`. A second validity rule out here is exactly what `picker/view.ts` refused, and for the same reason.
|
|
197
197
|
|
|
198
198
|
## The three-zone workspace
|
|
199
199
|
|
|
@@ -209,6 +209,8 @@ The window is an **offset**, not a rank, because a held slot has `rank: null` an
|
|
|
209
209
|
|
|
210
210
|
**The issues and edges are windowed alongside the slots**, down to exactly what the drawn rows need. Keeping the whole issue list is the obvious thing and it is wrong: the linear projection renders a count of the keys that appear in no slot and on no edge, so every edgeless issue outside the window was reported to the reader as *isolated* — the rail describing the reader's scroll position as though it were the document.
|
|
211
211
|
|
|
212
|
+
**A hold's holder is a control.** The inspector lists the selected issue's holds with `data-code` and `data-subject` mirroring layer 1's `holdLine`, and renders a `subject` — the open blocker, the claimed peer, the unready member, routinely not among the members drawn — as a `select-issue` button naming it — when the document carries that key; an unresolvable reference names an issue no document has, and gets the attribute but no control — so the holder becomes a deep link into the one selection below rather than a name in a sentence.
|
|
213
|
+
|
|
212
214
|
**Selection is one value, shared, never copied.** §17b makes `selected` the only edge state that also filters the inspector, so the workspace owns exactly one `WorkspaceSelection` and each zone reads it. It is a discriminated union rather than two nullable fields for a reason worth stating: `{ issue, edge }` can represent *both at once*, which is not a state this design has — every reader would need a rule for it, and the bug would surface as two zones disagreeing about what is selected rather than as a type error.
|
|
213
215
|
|
|
214
216
|
A selection naming a **member** of a `together-with` unit resolves to that unit's lead, because the unit is one row and `ViewerSlot.lead` is documented as the detail surface's subject — the projections canonicalize the same way before drawing, so all three zones name one issue for one selection.
|
|
@@ -229,9 +231,39 @@ Ranking a unit's members is `heaviestRow`'s job, in the audit module, **because
|
|
|
229
231
|
|
|
230
232
|
**Dark only.** The pass-2 brief carries "light + dark" over from pass 1; light was cut after that pass. There is no forked token set and no `prefers-color-scheme` block — the palette is the viewer's, reached through its custom properties.
|
|
231
233
|
|
|
234
|
+
## The mount
|
|
235
|
+
|
|
236
|
+
`mountWorkspace` is the shell a host actually consumes — the entry point [`mountViewer`](../viewer) already is for layer 1, in the same shape:
|
|
237
|
+
|
|
238
|
+
```ts
|
|
239
|
+
import { mountWorkspace } from '@issuegraph/editor';
|
|
240
|
+
|
|
241
|
+
const handle = mountWorkspace(element, {
|
|
242
|
+
store, // @issuegraph/store — built by the host, with its own DataSource and OrderDeriver
|
|
243
|
+
project, // (snapshot) => { viewer: ViewerDocument; audit?: AuditInput } — the host's projection
|
|
244
|
+
words, // MountWords: WorkspaceWords plus the picker's and the chrome's
|
|
245
|
+
theme?, themeSelector?,
|
|
246
|
+
canvas?: 'neighbourhood' | 'tree',
|
|
247
|
+
});
|
|
248
|
+
handle.update({ theme }); // new options, redrawn in place; the selection and the focus survive
|
|
249
|
+
handle.dispatch({ kind: 'point', key: '12' }); // a command from the host's own chrome
|
|
250
|
+
handle.state; // the selection, the draft, the scale, the rail window
|
|
251
|
+
handle.destroy(); // every listener off, the nodes it built removed
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
**It was the demo's, and it ships because a second host was about to write it again.** `renderWorkspace` publishes every control as `data-ig-command` and the viewer publishes its identities as data, so wiring them to listeners was documented as a mount's job and therefore a host's. The in-repo demo was that mount: a 930-line shell and a 387-line reducer, nine review rounds to get right, and every finding in the shell. The design's layer rule puts the interaction shell in layer 2, not in a host, so it moved here as `workspace/mount.ts` and `workspace/host.ts`, unchanged in what it does.
|
|
255
|
+
|
|
256
|
+
**The reducer is pure and the shell is thin, and that split is the test strategy.** `host.ts` composes `selectionReducer`, `scaleReducer`, `createReducer` and `pickerView`, and adds only what those leave to a mount — the one shared selection, when a draft begins and ends, the rail's scroll offset, the drag that becomes a draft — so every decision runs under `node --test` with no DOM. `mount.ts` is one delegated listener per event, an `innerHTML` assignment of the package's own escaped markup, and the chrome the panels leave to a mount: the add button, the kind chooser, the target search, the delete button, all built with `createElement` and `textContent`. It is driven through jsdom, because a DOM double written for it would be a second place the shell could be wrong about the first.
|
|
257
|
+
|
|
258
|
+
**It touches the element it is given and nothing else.** The document comes from `element.ownerDocument`; a pointer release outside the element is heard on that document rather than on a window; an element is recognised by what it can do rather than by `instanceof` against a global. So the module imports on a runtime with no DOM, and `purity.test.ts` still loads it with the browser globals removed. It installs one `<style>` inside the element carrying every sheet the surface needs — the viewer's, the theme's, the ladder's, the overlays', the picker's, the workspace's and its own `mountStylesheet` — so a host installs nothing by hand.
|
|
259
|
+
|
|
260
|
+
**The canvas draws each edge's write states.** `renderWorkspace` and `renderScaleLadder` take `projected` — the store's own `ProjectedEdge` list — and the ladder attaches an overlay per edge the tier draws: `pending-write`'s dash, an `invalid` or `failed` cross, a `conflict`'s second version, composed with the selection halo on the same line. The mount passes `snapshot.projected` and reconciles the viewer document the host projected with it — the unsettled edges are added, and a landed edge the store hides behind a pending retype or flip is dropped — because the host projects the **order** from the landed document, which must not move for an edit that did not land, while what to **draw** is the store's projection by the store's own contract. The order's status is published on the surface as `data-order="held"` while a write is in flight, in the store's vocabulary, so a host says so without this package inventing the sentence.
|
|
261
|
+
|
|
262
|
+
**Words are the host's, as everywhere here.** `MountWords` extends `WorkspaceWords` with the picker's vocabulary and the chrome's five strings; `keys` is the one optional entry. A command the reducer does not know changes nothing, so a host's own chrome may publish `data-ig-command` on the same attribute outside the element and read it from its own listener — the demo's theme switch does exactly that, and hands the writes log's `retry` and `discard` to `handle.dispatch`.
|
|
263
|
+
|
|
232
264
|
## Status
|
|
233
265
|
|
|
234
|
-
The first-pass review queue lands as its own change.
|
|
266
|
+
The first-pass review queue lands as its own change. The mount is this package's from `0.3.0`; what a host still supplies is what the specification puts there — the data source, the order, the executor holds, the words, the theme — and every listener is the mount's.
|
|
235
267
|
|
|
236
268
|
## Licence
|
|
237
269
|
|
package/dist/audit/findings.d.ts
CHANGED
|
@@ -123,8 +123,11 @@ export interface AuditFinding {
|
|
|
123
123
|
readonly keepAsHistory: boolean;
|
|
124
124
|
/**
|
|
125
125
|
* Every issue the finding is about: a SET, sorted, with no ref twice. A cycle
|
|
126
|
-
* names its whole component;
|
|
127
|
-
* of the edge that produced
|
|
126
|
+
* names its whole component; an encoding refusal names one issue; a stale
|
|
127
|
+
* blocker names the two ends of the edge that produced it; a dead duplicate
|
|
128
|
+
* ref names those two AND the closed canonical the chain resolves to, when
|
|
129
|
+
* that is a third issue — see {@link deadDuplicateFindings} for why the two
|
|
130
|
+
* edge classes differ here.
|
|
128
131
|
*
|
|
129
132
|
* Both properties are established where a finding is built, not merely
|
|
130
133
|
* expected — the row grammar counts an entry per member, so a repeated ref
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findings.d.ts","sourceRoot":"","sources":["../../src/audit/findings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAc,MAAM,mBAAmB,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,aAAa,+EAKf,CAAC;AAEZ,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAExD;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa;AACvB,8EAA8E;AAC5E,aAAa;AACf,0EAA0E;GACxE,WAAW;AACb,kEAAkE;GAChE,YAAY;AACd,qDAAqD;GACnD,kBAAkB,CAAC;AAEvB,wDAAwD;AACxD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;;;;;;;OAQG;IACH,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;CACjC;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EASoC,CAAC;AAGnE,+EAA+E;AAC/E;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC
|
|
1
|
+
{"version":3,"file":"findings.d.ts","sourceRoot":"","sources":["../../src/audit/findings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAc,MAAM,mBAAmB,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,aAAa,+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Q,CAAC,kBAAkB,EAAE,CAAC,GAAG,EAAE,QAAQ,KAAK,QAAQ,GAAG,IAAI,CAAC;CACjE;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,eAAe,EAAE,GAAG,SAAS,CAAC;CACnE;AAsbD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,YAAY,EAAE,CAUxE"}
|
package/dist/audit/findings.js
CHANGED
|
@@ -261,6 +261,17 @@ function staleBlockerFindings(document, graph, refused) {
|
|
|
261
261
|
continue;
|
|
262
262
|
const effective = verdict.effective;
|
|
263
263
|
const via = effective === edge.to ? '' : ` (via ${edge.to}, which duplicates it)`;
|
|
264
|
+
// THE TWO ENDS ONLY — the effective canonical is named in `detail` and
|
|
265
|
+
// deliberately NOT in `members`, which is the opposite of what
|
|
266
|
+
// `deadDuplicateFindings` does, and the asymmetry is decided rather than
|
|
267
|
+
// inherited. This finding's remedy sits on the DECLARER's edge — clear it,
|
|
268
|
+
// or keep it as history — so the row a reader acts on is `edge.from`, and
|
|
269
|
+
// `edge.to` is the ref they wrote. The canonical is where `edge.to`'s work
|
|
270
|
+
// went, not where this edge's bookkeeping is; marking its row would put a
|
|
271
|
+
// `misleading` bar on a closed issue with nothing to do there. And the
|
|
272
|
+
// spelling shape that forced the dead-duplicate change cannot reach here:
|
|
273
|
+
// a target the document does not carry is never resolved on the `'to'`
|
|
274
|
+
// side, so the finding is withheld as unknown rather than mis-membered.
|
|
264
275
|
findings.push(finding('stale-blocker', [edge.from, edge.to].sort(), `${edge.from} is blocked-by ${effective}${via}, which is closed; readiness is already satisfied`));
|
|
265
276
|
}
|
|
266
277
|
return findings.sort((a, b) => compareMembers(a.members, b.members));
|
|
@@ -281,6 +292,26 @@ function staleBlockerFindings(document, graph, refused) {
|
|
|
281
292
|
* The fallback to the immediate target covers a chain the model could not
|
|
282
293
|
* resolve, where `duplicateCanonical` answers `null`. Reporting on what the
|
|
283
294
|
* edge itself names is the fail-safe direction for a `dangerous` class.
|
|
295
|
+
*
|
|
296
|
+
* THE MEMBERS NAME THE CANONICAL AS WELL AS THE EDGE'S TWO ENDS. The closed
|
|
297
|
+
* canonical is the issue whose state this finding asserts — "its work is
|
|
298
|
+
* tracked nowhere" is a fact about where the chain ENDS — so it is what the
|
|
299
|
+
* finding is about, and the overlay can only mark a row it is handed. Naming
|
|
300
|
+
* the two ends alone left the closed target's row bare in the shape that
|
|
301
|
+
* matters most: the document carries the issue under its BARE ref while the
|
|
302
|
+
* edge names it QUALIFIED (`a duplicate-of acme/app#2`, carried as `2`). The
|
|
303
|
+
* host translates that correctly, so the finding fires — but `acme/app#2` is
|
|
304
|
+
* a spelling the overlay does not carry, it is dropped, and the one row the
|
|
305
|
+
* finding is centrally about carried no bar. The detector cannot tell a
|
|
306
|
+
* spelling from a hop, and does not need to: the canonical is a member in
|
|
307
|
+
* both, the immediate target stays a member because it is the ref the author
|
|
308
|
+
* wrote and the row they will look at, and a set collapses the ordinary
|
|
309
|
+
* same-spelling case back to two.
|
|
310
|
+
*
|
|
311
|
+
* In a resolved chain (`a -> b -> c`, `c` closed) this names `c` on `a`'s
|
|
312
|
+
* finding too. That row was already marked by `b`'s own finding, so nothing
|
|
313
|
+
* newly appears on the rail; what changes is that `a`'s finding now says
|
|
314
|
+
* on `c` what its `detail` already said. One rule, not a spelling special case.
|
|
284
315
|
*/
|
|
285
316
|
function deadDuplicateFindings(document, graph, refused) {
|
|
286
317
|
const closed = closedRefs(document);
|
|
@@ -295,7 +326,8 @@ function deadDuplicateFindings(document, graph, refused) {
|
|
|
295
326
|
continue;
|
|
296
327
|
const canonical = verdict.effective;
|
|
297
328
|
const via = canonical === edge.to ? '' : ` (through ${edge.to})`;
|
|
298
|
-
|
|
329
|
+
// `finding` deduplicates, so the same-spelling case stays two members.
|
|
330
|
+
findings.push(finding('dead-duplicate-ref', [edge.from, edge.to, canonical].sort(), `${edge.from} is duplicate-of ${canonical}${via}, which is closed; its work is excluded from the order and tracked nowhere`));
|
|
299
331
|
}
|
|
300
332
|
return findings.sort((a, b) => compareMembers(a.members, b.members));
|
|
301
333
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findings.js","sourceRoot":"","sources":["../../src/audit/findings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,OAAO;IACP,eAAe;IACf,oBAAoB;IACpB,kBAAkB;CACV,CAAC,CAAC;AA6CZ;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;IAClF,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;IAC/F,kBAAkB,EAAE,MAAM,CAAC,MAAM,CAAC;QAChC,QAAQ,EAAE,kBAAkB;QAC5B,MAAM,EAAE,CAAC;QACT,aAAa,EAAE,KAAK;KACrB,CAAC;IACF,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;CAClF,CAAwD,CAAC;
|
|
1
|
+
{"version":3,"file":"findings.js","sourceRoot":"","sources":["../../src/audit/findings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;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GAAG,CAAC,CAAC,CAAC;IAChE,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,GAAG,aAAa,CAAC,KAAK,CAAC;QACvB,GAAG,oBAAoB,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC;QACjD,GAAG,qBAAqB,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC;QAClD,GAAG,uBAAuB,CAAC,QAAQ,CAAC;KACrC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -107,6 +107,16 @@ export type BatchRefusal =
|
|
|
107
107
|
| {
|
|
108
108
|
readonly reason: 'direction-not-applicable';
|
|
109
109
|
readonly kind: EdgeKind;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* A `from-anchor` star of a single-valued directed kind: the anchor would
|
|
113
|
+
* carry one reference per member, and the field holds one (§4.3). Decidable
|
|
114
|
+
* from the request alone — no document is consulted — which is what keeps
|
|
115
|
+
* it this module's rather than `structuralRefusal`'s.
|
|
116
|
+
*/
|
|
117
|
+
| {
|
|
118
|
+
readonly reason: 'anchor-cannot-carry';
|
|
119
|
+
readonly kind: EdgeKind;
|
|
110
120
|
};
|
|
111
121
|
/**
|
|
112
122
|
* THERE IS NO `unknown-kind` REFUSAL, and its absence is deliberate.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../../src/firstpass/batch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,WAAW,CAAC;AAEzD,6CAA6C;AAC7C,MAAM,WAAW,YAAY;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;I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,EACf,WAAW,EAAE,SAAS,eAAe,EAAE,GACtC,SAAS,GAAG,IAAI,CAWlB"}
|
package/dist/firstpass/batch.js
CHANGED
|
@@ -58,14 +58,18 @@
|
|
|
58
58
|
* for the answer to drift. This module refuses only what it alone can see:
|
|
59
59
|
* whether the REQUEST names a batch at all.
|
|
60
60
|
*/
|
|
61
|
-
import { isSymmetricEdgeField } from '@issuegraph/core';
|
|
61
|
+
import { EDGE_CARDINALITY, isSymmetricEdgeField } from '@issuegraph/core';
|
|
62
62
|
/** One edge of the star, in the direction the request asked for. */
|
|
63
63
|
function edgeFor(anchor, member, kind, direction) {
|
|
64
64
|
// A SYMMETRIC KIND STILL LANDS AS AN ORDERED PAIR, which is not a
|
|
65
65
|
// contradiction: `create/draft.ts` records why the store keeps the pair for
|
|
66
66
|
// symmetric kinds too — an editor has to know which issue carries the field.
|
|
67
|
-
// `
|
|
68
|
-
//
|
|
67
|
+
// `to-anchor` is the arm a symmetric request takes: each MEMBER carries the
|
|
68
|
+
// field, pointing at the anchor, which is how a writer joins a group (§4.3.4,
|
|
69
|
+
// §4.3.7 — point at one existing member) and the only star the format can
|
|
70
|
+
// hold, because `serialize-with` and `together-with` are single-valued. An
|
|
71
|
+
// earlier revision put every arm on the anchor, and the store's `cardinality`
|
|
72
|
+
// refusal then admitted exactly one of them.
|
|
69
73
|
return direction === 'from-anchor'
|
|
70
74
|
? { op: 'create', kind, from: anchor, to: member }
|
|
71
75
|
: { op: 'create', kind, from: member, to: anchor };
|
|
@@ -87,11 +91,26 @@ export function planBatch(request) {
|
|
|
87
91
|
if (!symmetric && direction === undefined) {
|
|
88
92
|
return { ok: false, refusal: { reason: 'direction-required', kind } };
|
|
89
93
|
}
|
|
90
|
-
//
|
|
94
|
+
// A DIRECTED SINGLE-VALUED KIND CANNOT FAN OUT FROM THE ANCHOR. `duplicate-of`
|
|
95
|
+
// and `decomposed-from` hold one reference, so `from-anchor` asks the anchor
|
|
96
|
+
// to carry N of them — a star the format cannot hold, whatever the document
|
|
97
|
+
// says, so it is refused here as a request shape rather than left for the
|
|
98
|
+
// store to refuse one arm at a time after the first lands. `blocked-by` is
|
|
99
|
+
// the list and fans out either way. Read from the vocabulary, not listed:
|
|
100
|
+
// a sixth single-valued field is covered the day core learns about it.
|
|
101
|
+
// ONE DISTINCT MEMBER IS ONE REFERENCE, and that is legal — a batch of one
|
|
102
|
+
// is a batch the API accepts, so the refusal is keyed on the count the
|
|
103
|
+
// anchor would carry, not on the direction alone.
|
|
104
|
+
if (direction === 'from-anchor' &&
|
|
105
|
+
EDGE_CARDINALITY[kind] === 'single' &&
|
|
106
|
+
new Set(members).size > 1) {
|
|
107
|
+
return { ok: false, refusal: { reason: 'anchor-cannot-carry', kind } };
|
|
108
|
+
}
|
|
109
|
+
// `direction ?? 'to-anchor'` rather than a non-null assertion: the checks
|
|
91
110
|
// above make the fallback unreachable for a directed kind, and it is the
|
|
92
|
-
// arm a symmetric kind takes
|
|
93
|
-
// cast, which the strict-TypeScript rule forbids.
|
|
94
|
-
const pointing = direction ?? '
|
|
111
|
+
// arm a symmetric kind takes — see `edgeFor` — so the expression is total
|
|
112
|
+
// without a cast, which the strict-TypeScript rule forbids.
|
|
113
|
+
const pointing = direction ?? 'to-anchor';
|
|
95
114
|
const proposals = members.map((member) => edgeFor(anchor, member, kind, pointing));
|
|
96
115
|
return { ok: true, plan: { proposals, count: proposals.length, kind, anchor } };
|
|
97
116
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.js","sourceRoot":"","sources":["../../src/firstpass/batch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"batch.js","sourceRoot":"","sources":["../../src/firstpass/batch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;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4EAA4E;IAC5E,6BAA6B;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAChC,CAAC,QAAQ,EAAW,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,EAAW,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CACrF,CAAC;IACF,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACnC,OAAO,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;AAC1D,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,YAAY,CAAC,IAAc,EAAE,KAAe;IACnD,IAAI,IAAI,CAAC,EAAE,KAAK,QAAQ,IAAI,KAAK,CAAC,EAAE,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAChE,OAAO,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC;AACtF,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -147,4 +147,7 @@ export { type RailWindow, type RailWindowOptions, RAIL_WINDOW, railWindow, } fro
|
|
|
147
147
|
export { type InspectorPosition, type InspectorRelationship, type InspectorView, inspectorView, } from './workspace/inspector.ts';
|
|
148
148
|
export { type Zone, type WorkspaceOptions, type WorkspaceResult, type WorkspaceView, type WorkspaceWords, ZONES, renderWorkspace, } from './workspace/render.ts';
|
|
149
149
|
export { workspaceStylesheet } from './workspace/styles.ts';
|
|
150
|
+
export { type HostCommand, type HostEffect, type HostResult, type HostState, INITIAL_HOST_STATE, KINDS, RAIL_SLACK, railSlackFor, railWindowTarget, reconcileHost, reduceHost, targetMatches, } from './workspace/host.ts';
|
|
151
|
+
export { type CanvasMode, type MountWords, type MountWorkspaceOptions, type WorkspaceHandle, type WorkspaceProjection, type WorkspaceUpdate, CANVAS_MODES, MOUNT_RAIL_COUNT, mountWorkspace, } from './workspace/mount.ts';
|
|
152
|
+
export { mountStylesheet } from './workspace/chrome.ts';
|
|
150
153
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgHG;AAEH,YAAY,EACV,UAAU,EACV,cAAc,EACd,YAAY,EACZ,UAAU,EACV,UAAU,EACV,aAAa,EACb,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEtF,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EACL,mBAAmB,EACnB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,YAAY,GACb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL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ACxB,KAAK,eAAe,EACpB,YAAY,EACZ,gBAAgB,EAChB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -144,4 +144,7 @@ export { RAIL_WINDOW, railWindow, } from "./workspace/rail.js";
|
|
|
144
144
|
export { inspectorView, } from "./workspace/inspector.js";
|
|
145
145
|
export { ZONES, renderWorkspace, } from "./workspace/render.js";
|
|
146
146
|
export { workspaceStylesheet } from "./workspace/styles.js";
|
|
147
|
+
export { INITIAL_HOST_STATE, KINDS, RAIL_SLACK, railSlackFor, railWindowTarget, reconcileHost, reduceHost, targetMatches, } from "./workspace/host.js";
|
|
148
|
+
export { CANVAS_MODES, MOUNT_RAIL_COUNT, mountWorkspace, } from "./workspace/mount.js";
|
|
149
|
+
export { mountStylesheet } from "./workspace/chrome.js";
|
|
147
150
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgHG;AAWH,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGtF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EACL,mBAAmB,EAGnB,YAAY,GACb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAUL,WAAW,GACZ,MAAM,mBAAmB,C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uB,CAAC;AAE/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAGL,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAGL,WAAW,EACX,UAAU,GACX,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAIL,aAAa,GACd,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAML,KAAK,EACL,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAKL,kBAAkB,EAClB,KAAK,EACL,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,aAAa,GACd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAOL,YAAY,EACZ,gBAAgB,EAChB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The overlays a canvas draws for the edges it drew: the store's write states,
|
|
3
|
+
* composed with the one selection.
|
|
4
|
+
*
|
|
5
|
+
* ONE MERGE, TWO CANVASES. The scale ladder and the workspace's tree mode both
|
|
6
|
+
* draw a scene over a document and both owe it the same overlays; written
|
|
7
|
+
* twice, the two drifted within a review round (the tree drew none). So the
|
|
8
|
+
* merge is a pure function over the drawn edges, the store's projection and
|
|
9
|
+
* the selected identity, and both canvases call it.
|
|
10
|
+
*
|
|
11
|
+
* Narrowed to the edges the scene drew, by identity, so an entry for an edge a
|
|
12
|
+
* narrower tier left out attaches to nothing rather than being reported as
|
|
13
|
+
* unattached. `states: ['selected']` is synthesised for the selection — the
|
|
14
|
+
* one state that is not about a write — and folded INTO a projected record for
|
|
15
|
+
* the same edge rather than added beside it, because `attachEdgeOverlays` keys
|
|
16
|
+
* overlays by identity and a second record would replace the first.
|
|
17
|
+
*/
|
|
18
|
+
import type { ProjectedEdge } from '@issuegraph/store';
|
|
19
|
+
import type { ViewerEdge } from '@issuegraph/viewer';
|
|
20
|
+
export declare function overlaysFor(drawn: readonly ViewerEdge[], projected: readonly ProjectedEdge[] | undefined, selectedEdge: string | null | undefined): readonly ProjectedEdge[];
|
|
21
|
+
//# sourceMappingURL=projected.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projected.d.ts","sourceRoot":"","sources":["../../src/overlay/projected.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,wBAAgB,WAAW,CACzB,KAAK,EAAE,SAAS,UAAU,EAAE,EAC5B,SAAS,EAAE,SAAS,aAAa,EAAE,GAAG,SAAS,EAC/C,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACtC,SAAS,aAAa,EAAE,CA8B1B"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The overlays a canvas draws for the edges it drew: the store's write states,
|
|
3
|
+
* composed with the one selection.
|
|
4
|
+
*
|
|
5
|
+
* ONE MERGE, TWO CANVASES. The scale ladder and the workspace's tree mode both
|
|
6
|
+
* draw a scene over a document and both owe it the same overlays; written
|
|
7
|
+
* twice, the two drifted within a review round (the tree drew none). So the
|
|
8
|
+
* merge is a pure function over the drawn edges, the store's projection and
|
|
9
|
+
* the selected identity, and both canvases call it.
|
|
10
|
+
*
|
|
11
|
+
* Narrowed to the edges the scene drew, by identity, so an entry for an edge a
|
|
12
|
+
* narrower tier left out attaches to nothing rather than being reported as
|
|
13
|
+
* unattached. `states: ['selected']` is synthesised for the selection — the
|
|
14
|
+
* one state that is not about a write — and folded INTO a projected record for
|
|
15
|
+
* the same edge rather than added beside it, because `attachEdgeOverlays` keys
|
|
16
|
+
* overlays by identity and a second record would replace the first.
|
|
17
|
+
*/
|
|
18
|
+
import { edgeIdentity } from '@issuegraph/core';
|
|
19
|
+
export function overlaysFor(drawn, projected, selectedEdge) {
|
|
20
|
+
const identities = new Set(drawn.map((edge) => edgeIdentity(edge.field, edge.from, edge.to)));
|
|
21
|
+
const selected = selectedEdge === null || selectedEdge === undefined
|
|
22
|
+
? null
|
|
23
|
+
: (drawn.find((edge) => edgeIdentity(edge.field, edge.from, edge.to) === selectedEdge) ?? null);
|
|
24
|
+
const selectedOverlay = selected === null
|
|
25
|
+
? null
|
|
26
|
+
: {
|
|
27
|
+
id: edgeIdentity(selected.field, selected.from, selected.to),
|
|
28
|
+
kind: selected.field,
|
|
29
|
+
from: selected.from,
|
|
30
|
+
to: selected.to,
|
|
31
|
+
states: ['selected'],
|
|
32
|
+
writes: [],
|
|
33
|
+
};
|
|
34
|
+
const overlays = [];
|
|
35
|
+
for (const edge of projected ?? []) {
|
|
36
|
+
if (!identities.has(edge.id) || edge.states.length === 0)
|
|
37
|
+
continue;
|
|
38
|
+
if (selectedOverlay !== null && edge.id === selectedOverlay.id) {
|
|
39
|
+
overlays.push({ ...edge, states: [...edge.states, 'selected'] });
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
overlays.push(edge);
|
|
43
|
+
}
|
|
44
|
+
if (selectedOverlay !== null && !overlays.some((edge) => edge.id === selectedOverlay.id)) {
|
|
45
|
+
overlays.push(selectedOverlay);
|
|
46
|
+
}
|
|
47
|
+
return overlays;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=projected.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projected.js","sourceRoot":"","sources":["../../src/overlay/projected.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIhD,MAAM,UAAU,WAAW,CACzB,KAA4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IAAI,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC,CAAC;YACjE,SAAS;QACX,CAAC;QACD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,IAAI,eAAe,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,eAAe,CAAC,EAAE,CAAC,EAAE,CAAC;QACzF,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/dist/scale/ladder.d.ts
CHANGED
|
@@ -26,6 +26,12 @@
|
|
|
26
26
|
* input space drifts from the canvas it is describing — the exact failure the
|
|
27
27
|
* package split exists to prevent — and the two would eventually disagree about
|
|
28
28
|
* whether a component contains a cycle while both were rendered on one screen.
|
|
29
|
+
*
|
|
30
|
+
* The cycle flag goes one layer further down the same rule: the viewer does
|
|
31
|
+
* not derive it either. `clustersOf` reads `ViewerDocument.cycles`, which the
|
|
32
|
+
* host fills from its reader's `Model.cycles` — the same array the audit
|
|
33
|
+
* overlay on this screen reads — so a capsule's `cycle` badge and an audit's
|
|
34
|
+
* `cycle` finding are one answer rendered twice, not two answers.
|
|
29
35
|
*/
|
|
30
36
|
import { type ViewerDocument, type ViewerIssue } from '@issuegraph/viewer';
|
|
31
37
|
import { type ScaleState } from './commands.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ladder.d.ts","sourceRoot":"","sources":["../../src/scale/ladder.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ladder.d.ts","sourceRoot":"","sources":["../../src/scale/ladder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAKL,KA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Ac,EACrB,KAAK,GAAE,UAAgC,GACtC,WAAW,CA+Db"}
|
package/dist/scale/ladder.js
CHANGED
|
@@ -26,6 +26,12 @@
|
|
|
26
26
|
* input space drifts from the canvas it is describing — the exact failure the
|
|
27
27
|
* package split exists to prevent — and the two would eventually disagree about
|
|
28
28
|
* whether a component contains a cycle while both were rendered on one screen.
|
|
29
|
+
*
|
|
30
|
+
* The cycle flag goes one layer further down the same rule: the viewer does
|
|
31
|
+
* not derive it either. `clustersOf` reads `ViewerDocument.cycles`, which the
|
|
32
|
+
* host fills from its reader's `Model.cycles` — the same array the audit
|
|
33
|
+
* overlay on this screen reads — so a capsule's `cycle` badge and an audit's
|
|
34
|
+
* `cycle` finding are one answer rendered twice, not two answers.
|
|
29
35
|
*/
|
|
30
36
|
import { CLUSTER_ONLY_BUDGET, GRAPH_NODE_BUDGET, clustersOf, normalizeDocument, } from '@issuegraph/viewer';
|
|
31
37
|
import { INITIAL_SCALE_STATE } from "./commands.js";
|
|
@@ -88,6 +94,13 @@ function narrow(input, keep) {
|
|
|
88
94
|
slots: input.order.slots.filter((slot) => slot.members.every((member) => keep.has(member))),
|
|
89
95
|
excluded: input.order.excluded.filter((exclusion) => keep.has(exclusion.key)),
|
|
90
96
|
},
|
|
97
|
+
// NARROWED, NOT RE-DERIVED — as `normalizeDocument` narrows a cycle to the
|
|
98
|
+
// keys it carries. A cycle is the host's answer; a focus keeps the members
|
|
99
|
+
// it draws and drops the rest, and a partial cycle is still a stuck group
|
|
100
|
+
// (`ViewerCycle` says so), so `hasCycle` on the drawn component is unchanged.
|
|
101
|
+
cycles: input.cycles
|
|
102
|
+
.map((cycle) => cycle.filter((member) => keep.has(member)))
|
|
103
|
+
.filter((cycle) => cycle.length > 0),
|
|
91
104
|
};
|
|
92
105
|
}
|
|
93
106
|
/**
|
package/dist/scale/ladder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ladder.js","sourceRoot":"","sources":["../../src/scale/ladder.ts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M;QAC5B,KAAK,EAAE,GAAG,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,aAAa,cAAc,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,gCAAgC;QACpI,IAAI,EAAE,KAAK,CAAC,YAAY;QACxB,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;KACjD,CAAC;IAEF,OAAO;QACL,IAAI;QACJ,SAAS;QACT,OAAO,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,mBAAmB,EAAE;QACtE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;QACjD,OAAO,EAAE,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,cAAc,KAAK,IAAI,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;QAClF,QAAQ;QACR,4EAA4E;QAC5E,2EAA2E;QAC3E,4DAA4D;QAC5D,eAAe,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM;QAC1E,QAAQ;QACR,MAAM,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC;QAC3E,MAAM;QACN,WAAW;KACZ,CAAC;AACJ,CAAC"}
|
package/dist/scale/render.d.ts
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
* which has no routes.
|
|
31
31
|
*/
|
|
32
32
|
import { type Theme, type ViewerDocument } from '@issuegraph/viewer';
|
|
33
|
+
import type { ProjectedEdge } from '@issuegraph/store';
|
|
33
34
|
import { type ScaleState } from './commands.ts';
|
|
34
35
|
import { type ScaleLadder } from './ladder.ts';
|
|
35
36
|
export interface ScaleLadderOptions {
|
|
@@ -71,6 +72,24 @@ export interface ScaleLadderOptions {
|
|
|
71
72
|
* nothing selected rather than as a halo on a line that is not there.
|
|
72
73
|
*/
|
|
73
74
|
readonly selectedEdge?: string | null | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* The store's projection — every edge to draw, each carrying its write
|
|
77
|
+
* states — so the canvas shows what is HAPPENING to an edge, not only what
|
|
78
|
+
* it is: a `pending-write` dash, an `invalid` or `failed` cross, a
|
|
79
|
+
* `conflict`'s second version.
|
|
80
|
+
*
|
|
81
|
+
* ADDITIVE AND OPTIONAL, like the two options above, and for the same reason:
|
|
82
|
+
* the overlays module already composes the store's projection, and the
|
|
83
|
+
* ladder is the layer that holds the scene the overlays attach to. Without
|
|
84
|
+
* this the only state the canvas could draw was the selection, and a host
|
|
85
|
+
* had no way to show a write in flight on the line it concerns.
|
|
86
|
+
*
|
|
87
|
+
* Resolved against `ladder.canvas.edges` exactly as `selectedEdge` is: an
|
|
88
|
+
* entry naming an edge this tier does not draw contributes nothing. An entry
|
|
89
|
+
* for the selected edge composes with the halo rather than replacing it,
|
|
90
|
+
* because `overlayFor` reads a list of states.
|
|
91
|
+
*/
|
|
92
|
+
readonly projected?: readonly ProjectedEdge[] | undefined;
|
|
74
93
|
}
|
|
75
94
|
export interface ScaleLadderResult {
|
|
76
95
|
readonly ladder: ScaleLadder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/scale/render.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,cAAc,EAOpB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/scale/render.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,E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