mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-14 22:35:26 +00:00
An object style's corners are top left, top right, bottom right and bottom left, as InDesign's and as IDML import and export already read them. `corners::named_slots` finds which anchor of a path is at which corner, and `CornerOptions::named_to_path` / `path_to_named` convert: applying a style puts each corner on the anchor at that corner, whatever order the path runs in; a style made from a selection, and redefining one, convert the item's corners. IDML export's `corner_names` uses the same mapping. An IDML object style that sets some corners takes the others from its Based On chain, so applying a child that changes one corner keeps the parent's other corners. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>