The pleat
macro is used to mark a pleat on a pattern. It draws the appropriate
lines perpendicular to the line going from from
to to
.
The pleat
macro follows the convention of paths being counter-clockwise to
determine what is the inside or outside of the part.
It is provided by plugin-annotations, which is part of core-plugins (so it is available by default).
Signature
Javascript
macro('pleat', {
String id = 'pleat',
Point from,
Point to,
Number margin = 35,
Boolean reverse = false,
Boolean force = false,
Object calsses = {
arrow: 'note',
from: 'note',
to: 'note dashed',
},
})
Example
Configuration
Property | Default | Type | Description |
---|---|---|---|
from | Point | The start point of the pleat | |
id | pleat | string | The ID of this macro instance |
to | Point | The end point of the pleat | |
margin | 35 | Number | The size (in mm) of the pleat lines |
reverse | false | Boolean | Reverses the two pleat lines and the arrow |
force | false | boolean | Set this to true to display the macro output even when complete is false |
classes.arrow | note | string | CSS classes to apply to the arrow |
classes.from | note | string | CSS classes to apply to the line at the from point |
classes.to | note dashed | string | CSS classes to apply to the line at the to point |
Notes
This macro takes the complete
setting into account and won’t output anything when both complete and force
are false
.