Expand description
Pivot & Melt builder state: a form of rows, each edited through one Picker scoped to that row alone, and the live preview of the spec it stages. The spec is echoed live; Enter applies it.
Structs§
- Melt
Spec - Spec for melt operation.
- Pivot
Melt Modal - Pivot
Spec - Spec for pivot operation.
- Preview
Frame - What a preview found: the first rows of the result, and its shape.
- Preview
Input - The head of the view the preview runs over.
- Reshape
Preview - The builder’s live preview: the head it runs over, the request in flight, and the last answer. Requests are numbered; one runs at a time, and an edit made while it runs is previewed when it ends, so typing never piles up workers.
- Reshape
Source - What a pivot or melt ran over: the query, filters and sort in effect when it was applied. A view replays these before the reshape.
Enums§
- Melt
Type Filter - Type filter for Melt “by type”.
- Melt
Value Strategy - Melt value-column strategy.
- Pivot
Aggregation - Aggregation for pivot value column.
- Pivot
Melt Focus - Focus: the tab bar, or one row of the active tab’s form.
- Pivot
Melt Tab - Preview
Spec - A staged reshape the preview runs: what Enter would apply.
Constants§
- PREVIEW_
INPUT_ ROWS - Rows of the view the preview reshapes. Small enough that every edit reruns it at once; the head is read once per opening of the builder.
- PREVIEW_
ROWS - Rows of the result the preview keeps to draw.
- PREVIEW_
WIDE_ PIVOT - New columns past which the preview warns that a pivot is wide.
Functions§
- run_
preview specrun overinput, in memory: the preview’s worker.