mirror of
https://github.com/olehomelchenko/astrolabe.git
synced 2026-08-08 02:02:33 +00:00
Fix documentation drift surfaced by the full-docs consistency review
This commit is contained in:
@@ -335,10 +335,12 @@ useSettingsStore.subscribe((s, prev) => {
|
||||
|
||||
### Implemented policy: what renders immediately vs. debounced
|
||||
|
||||
> The service above is a **sketch**; the shipped renderer lives inline in
|
||||
> `LivePreview.tsx` (one `setTimeout` whose delay is computed per change) and
|
||||
> subscribes to the stores via hooks rather than startup subscribers. When it is
|
||||
> extracted into a service, preserve this policy.
|
||||
> The service above is a **sketch** — its `useEditorStore`/`useSettingsStore` are
|
||||
> illustrative placeholders; the real inputs are `useAppStore` (`previewFitMode` +
|
||||
> `uiTheme`) and `useSnippetStore` (draft text / `bufferEpoch`). The shipped renderer
|
||||
> lives inline in `LivePreview.tsx` (one `setTimeout` whose delay is computed per
|
||||
> change) and subscribes to the stores via hooks rather than startup subscribers.
|
||||
> When it is extracted into a service, preserve this policy.
|
||||
|
||||
The debounce exists to stay out of the way **while typing** — nothing else. So the
|
||||
delay is `0` (immediate) for everything except keystrokes (spec §03C):
|
||||
@@ -403,8 +405,10 @@ It does two deterministic things, on a **deep copy** of the spec:
|
||||
referenced dataset's actual contents (inline values, raw CSV/TSV text, or a
|
||||
URL reference), recursing into layered/concat/child sub-specs.
|
||||
2. **Fit-mode sizing** — rewrites `width`/`height` per the active fit mode using
|
||||
Vega-Lite's `"container"` keyword (Original = untouched; Width/Height/Full set
|
||||
the corresponding dimension(s) to `"container"`), recursing the same way.
|
||||
Vega-Lite's `"container"` keyword (Original = untouched; Width sets
|
||||
`width:"container"` and **removes** `height`; Height sets `height:"container"`
|
||||
and **removes** `width`; Full sets both — see spec §04 → Fit-mode sizing),
|
||||
recursing the same way.
|
||||
|
||||
This is _content_ preparation, not embedding, and it is fully covered by the
|
||||
_Live Preview_ spec. The only invariant this doc cares about:
|
||||
|
||||
Reference in New Issue
Block a user