meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
en:design_guide_align [2020/12/04 07:57] JSCAD Editor created |
en:design_guide_align [2021/11/07 07:33] (current) JSCAD Editor |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== Align ==== | ==== Align ==== | ||
| - | tbw | + | Shapes can be aligned across X, Y, and Z axis. In other words, each shape is translated to the requested position, aligning the boundaries of the shapes. The '' |
| + | |||
| + | Defaults: | ||
| + | * modes : [' | ||
| + | * group : false (do not align all shapes as a group) | ||
| + | * relativeTo : [0, 0, 0] | ||
| + | |||
| + | <code javascript> | ||
| + | const newshapes = align({modes: | ||
| + | const newshapes = align({modes: | ||
| + | </ | ||