Files
designcraft/crates/idml
moppeeerandClaude Opus 5.5 c22c48dc8e Object styles hold named corners; IDML styles inherit the corners they don't set
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>
2026-10-22 10:24:19 +02:00
..