mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-08 01:20:59 +00:00
When Distort Appearance is on and the size a `.ai` saves for an envelope's contents (`AIDeformArtWidthKey`, `AIDeformArtHeightKey`) matches the contents' bounds with strokes, the reader now maps the contents from that stroked box. It used to map them from the geometric bounds, half a stroke inside that box, so an envelope of stroked art could differ from its drawn art and keep the drawn art with a note. Envelope Options hold the box's margins as `boundsMargin`, shares of the geometric bounds at the top, bottom, left and right. Native files write them only when they are not zero, and `object.envelope.info` reports them then. Leaving Edit Contents measures them again when the strokes reach differently than when Edit Contents began, and the node holds what they measured then until it leaves. New envelopes have no margins, so their results do not change. Contents with no width or no height, such as one straight line, get no margins. Docs: docs/mcp.md, docs/target-app-parity.md.