1
0
Fork 0
freesewing/markdown/dev/reference/api/macros/scalebox/en.md
2022-07-31 16:11:50 +02:00

1.2 KiB

title
scalebox

The scalebox macro adds a scale box to your pattern. This box allows users to verify their pattern is printed to scale.

The scalebox macro is provided by the scalebox plugin.

Example of the scalebox added by this macro
macro('scalebox', {
  at: points.anchor
})
Property Default Type Description
at Point The point to anchor the scale box on
lead FreeSewing String The lead text above the title
title pattern name + version String The title text
text (*) String The text below the title
rotate 0 Number Rotation in degrees

(*) freesewingIsMadeByJoostDeCockAndContributors \n withTheFinancialSupportOfOurPatrons

Removing the scalebox

If you inherit a part with a scalebox on it and you'd like to remove all points and paths generated by the scalebox macro, you can do so by passing false to the macro:

macro('scalebox', false)