mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
Docs: envelope margins name the 1e-6 pt side threshold
A side of an envelope's content shorter than 1e-6 pt, not only one of zero length, has its margins measured as shares of the other side (envelope_margin_lengths). docs/mcp.md, the object.envelope.info params text and the bounds_margin doc comment now state that threshold.
This commit is contained in:
1 parent
823619c46e
commit
ee976e1b78
3 files changed
+5
-5
No files matched your search
@@ -95,8 +95,8 @@ pub struct EnvelopeOptions {
|
||||
/// Distort Pattern Fills (with Distort Appearance): pattern tiles bend with the art.
|
||||
pub distort_pattern_fills: bool,
|
||||
/// With Distort Appearance, how far the box the content maps from reaches past its geometric
|
||||
/// bounds at the top, bottom, left and right, as shares of their height and width; on content
|
||||
/// with no height or no width, the margins along that side are shares of the other side
|
||||
/// bounds at the top, bottom, left and right, as shares of their height and width; when the
|
||||
/// height or width is shorter than 1e-6 pt, the margins along that side are shares of the other side
|
||||
/// ([`envelope_margin_lengths`]). An envelope
|
||||
/// opened from a `.ai` whose saved size includes its strokes has these margins. New envelopes
|
||||
/// have none. Leaving Edit Contents measures them again when the strokes reach differently.
|
||||
|
||||
@@ -199,7 +199,7 @@ pub fn specs() -> Vec<CommandSpec> {
|
||||
"Envelope Info",
|
||||
[],
|
||||
None,
|
||||
"{} the selected envelope's settings, or with none selected the defaults new envelopes get → {id: n|null, type: warp|mesh|topObject, style, bend, h, v, horizontal, version (a warp's map: 1, each style as one Bézier patch; 0, the earlier map), rows, cols, fidelity, antiAlias, preserveShape: clippingMask|transparency, distortAppearance, distortLinearGradients, distortPatternFills, boundsMargin?: [top, bottom, left, right] (shares of the content's height and width, a side with no length taking the other side's, reported only when not zero: with distortAppearance, how far the box the content maps from reaches past its geometric bounds), editing}",
|
||||
"{} the selected envelope's settings, or with none selected the defaults new envelopes get → {id: n|null, type: warp|mesh|topObject, style, bend, h, v, horizontal, version (a warp's map: 1, each style as one Bézier patch; 0, the earlier map), rows, cols, fidelity, antiAlias, preserveShape: clippingMask|transparency, distortAppearance, distortLinearGradients, distortPatternFills, boundsMargin?: [top, bottom, left, right] (shares of the content's height and width, a side shorter than 1e-6 pt taking the other side's, reported only when not zero: with distortAppearance, how far the box the content maps from reaches past its geometric bounds), editing}",
|
||||
has_doc,
|
||||
env_info
|
||||
),
|
||||
|
||||
+2
-2
@@ -14940,8 +14940,8 @@ options existed keep their old look (appearance applied after the distortion).
|
||||
|
||||
An envelope opened from a `.ai` can have margins, written to native files as `boundsMargin` and reported by
|
||||
`object.envelope.info` when they are not zero: `[top, bottom, left, right]`, as shares of the content's height and
|
||||
width. On content with no height or no width, such as a straight line, the margins along that side are shares of the
|
||||
other side. While `distortAppearance` is on, the content maps from its geometric bounds grown by the margins, and while it
|
||||
width. When the content's height or width is shorter than 1e-6 pt (zero included), as on a straight line, the margins
|
||||
along that side are shares of the other side. While `distortAppearance` is on, the content maps from its geometric bounds grown by the margins, and while it
|
||||
is off, the content maps from its geometric bounds. Leaving Edit Contents measures the margins again when the content's
|
||||
strokes reach differently than when Edit Contents began, and always for an envelope whose file opened in Edit Contents.
|
||||
New envelopes have no margins, and no command sets them.
|
||||
|
||||
Reference in new issue
Block a user