mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 15:31:54 +00:00
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:
+4
-2
@@ -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`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user