mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 16:54:45 +00:00
Rule::edge and Draw::edge_rule draw a rule along one side of a rect, moved in by half its width, so a row's bottom rule, a cell's gridline or a strip's edge is no longer drawn on the first pixel outside, where the next row's clip or the next cell's fill hides it. List rows (layer dividers, rule), CellGrid gridlines and header edges, tab dividers, the tile grid's pinned band, font cards and ruler strips use it, as do the pane, end-region, title bar, timeline header and outline band rules that offset by hand. CellGrid draws the old's header edges toward the cells, its gridlines in the divider colour, and the selected header's accent bar inside the header.
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.