mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-06 18:51:26 +00:00
Drawing shapes (`draw:rect`, `draw:ellipse`, `draw:line`, and `draw:custom-shape` of a predefined geometry named by its `draw:enhanced-geometry` `draw:type`) open as WordCraft shapes instead of being skipped: size, placement (in line or floating, as frames are), fill and line from the graphic style chain and the default graphic style (LibreOffice's solid fill and hairline where nothing is stated), their text, and a line's direction from its two ends. LibreOffice's type names and its `ooxml-` preset names map onto WordCraft's kinds; a geometry WordCraft has no shape for opens as a rectangle. WordCraft's shapes are saved the same way: a custom shape by its type alone (LibreOffice rebuilds the geometry from it), a line by its ends, connectors as lines. A shape is saved with `draw:auto-grow-*` off unless it resizes to fit its text, so LibreOffice keeps its size. The flow model's text box becomes `Inline::Shape` with a kind; text boxes are the `TextBox` kind and are written as frames, as before. Not yet: shapes in groups, polygons, paths, rotation, arrowheads, dashes, gradients. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GBVQLyDnrG8Tn1yDQcUabC