mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-26 11:36:58 -06:00
Editing a table cell outlined the cell but drew no caret or selection, and Up/Down/Home/End fell back to paragraph moves, because the text layout used for drawing, hit testing and caret movement only existed for shapes. text::text_frame now lays out the edited text as it is drawn and gives the transform to the slide, for shapes and cells alike: a cell's text is laid out in its rect (merges honoured) with the cell's margins, anchor and the table style's look, through the renderer's own cell_body and cell_rects. layout_for and tools::text_pos use it, and the canvas draws the caret and selection from it. The cell outline follows merged cells.