Docs: pattern.options sizes the tile to the art while sizeTileToArt is on

A brick tileType or gridType with brickOffset omitted or null sets the
offset to 0.5. While sizeTileToArt is on, every pattern.options call
sizes the tile to the art plus hSpacing and vSpacing again and ignores
width and height, so a new hSpacing changes the tile's width.
This commit is contained in:
dotCooCoo
2026-11-10 17:27:50 -08:00
parent 17b986d11c
commit 8430715ec7
+4 -2
View File
@@ -3106,8 +3106,10 @@ The pattern commands (`object.pattern.make`, `object.pattern.edit`, `object.patt
a `center` that is not `[x, y]`, and `object.repeat.radial` rejects a negative `radius`. In `object.pattern.make`,
`object.pattern.saveCopy`, `object.repeat.radial`, `object.repeat.grid` and `object.repeat.mirror`, omitting a param or
giving null keeps its default. In `pattern.options` and `object.repeat.options`, omitting a param or giving null keeps
the pattern's or the repeat's current value, with one exception: a brick `tileType` in `pattern.options` or a brick
`gridType` in `object.repeat.options` given without `brickOffset` sets the offset to 0.5. Without a `name`,
the pattern's or the repeat's current value, with two exceptions. A brick `tileType` in `pattern.options` or a brick
`gridType` in `object.repeat.options` with `brickOffset` omitted or null sets the offset to 0.5. While `sizeTileToArt`
is on, each `pattern.options` call sizes the tile to the art plus `hSpacing` and `vSpacing` again and ignores `width`
and `height`, so a new `hSpacing` changes the tile's width. Without a `name`,
`object.pattern.edit` edits the pattern that fills or strokes a selected object, and `pattern.options` changes the
pattern being edited; each returns an error when there is no such pattern. `pattern.delete` requires `name`.