lexical_layout 1.11.0
lexical_layout: ^1.11.0 copied to clipboard
Column layout nodes for lexical_core (layout-container, layout-item), wire-compatible with the Lexical playground's layout nodes. Pure Dart.
Changelog #
1.11.0 #
First release. LayoutContainerNode (layout-container, with
templateColumns) and LayoutItemNode (layout-item), in the Lexical
playground's wire shape and verified against fixtures generated by Lexical
0.48. Both are shadow roots; the container cannot be empty, and backspace in
the first of a layout's all-empty columns removes the layout, as upstream.
parseTemplateColumns and resolveTemplateColumns read a grid template and
turn it into column widths, or null when the width is too narrow for the
fixed tracks and the columns should stack. registerLayout brings the insert
and update commands and the structural transforms of upstream's
LayoutExtension.