mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-22 10:31:37 +01:00
The same read as in the Layers and Channels panels: pointer::frame(..).mods notes the pointer as a tracked input, so a memoized view holding the component ran on every pointer move in the window. pointer::mods returns the same modifiers and notes only the modifiers. Fifteen more sites read the frame for its modifiers only (the preset browser, the tile grid, the section footer, the dock's drop, the canvas guides, the crop tool, the bins, Color Range, the raw develop dialog, the table conditions, the form dialogs, Save for Web) and the text style panel; each reads pointer::mods now. The preset browser also reads the pointer's buttons, press and release for its rows' events; it reads the frame only when there are events, so a pass without one does not depend on the pointer. In PhotoCraft this left Swatches, Gradients, Patterns, Styles, Shapes, Tool Presets, Character and Paragraph Styles, Brushes and Glyphs running on every pointer move over the canvas; with the change every docked panel replays. Trial: the preset browser in a host view replays on a pointer move beside it, in its list view (fails without the browser change) and its tile view (fails without the tile grid change), and Alt held runs it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
craft-table
Spreadsheet widgets for Craft apps, from GridCraft (Excel), with LightCraft's condition builder. A UI-only family: everything is in craft_table::ui behind the ui feature.
grid:CellAt,CellRange,CellSelection,LineIndex(sizes with prefix sums),SheetGeometry(zoom, headers, frozen panes, right-to-left) and theCellGridwidget over aGridModelthe app implements, with Excel's keys.conditions:ConditionBuilder, rows of field, operator and value with nested groups.outline:OutlineBand, the group brackets and level buttons of grouped rows and columns.fields:FieldListPane, the PivotTable Fields pane.chart:ChartPrimitiveandpaint_chart, a chart drawn from a primitive list.slicer:Slicer, toggle tiles that filter a table.refpick:ReferencePicker, point mode for a formula field.stats:SelectionStatsand the status bar'sSelectionStatsReadout.error_tag:ErrorTag, the warning tag beside a cell with its fixes.filter:FilterButton, the filter arrow in a header cell.
Edits go out as events; the app applies them to its workbook.
Stories are #[story] functions in src/ui/*/stories.rs; they register in craft_ui::testing::stories() and the craft-ui-gallery viewer lists them by the type they show.