跳到主要内容

Adding annotations

Our pattern is still a little bit bare. It would be nice to add some annotations to it.

When I say annotations it's an umbrella term for things like text or other bits of information that help the user understand the pattern.

Adding snippets

代码片段 are little re-useable things to embellish our pattern with. Things like buttons or buttonholes, a logo, or snaps.

To use them, much like points and paths, we need to destructure both the Snippet constructor 以及 the snippets object to hold our snippets.

We'll be using them below to add a snap-stud, snap-socket, and a logo snippet.

注意

You can find all possible snippets in our documentation.

This looks better

Setting the cutlist, adding a title and scalebox

We are also going to add a title and scalebox. For both of these we will use a macro. The title and scalebox macros to be precise.

Before we add the title, we will also set the cutlist via a method that was added to the store by one of the core plugins.

As a matter of fact, all of these snippets, macros, and store methods are provided by plugins. For more details, refer to the plugin guide.

1 Sunday, Mar 8, 2026 bib open clothes Tutorial v0.0.1 ( ephemeral ) plugin-annotations:cut 1 plugin-annotations:from plugin-annotations:fabric open clothes Tutorial v0.0.1 plugin-annotations:supportopen clothesBecomeAPatron open clothes.org/patrons/join plugin-annotations:theWhiteInsideOfThisBoxShouldMeasure 10cm x 5cm plugin-annotations:theBlackOutsideOfThisBoxShouldMeasure 4" x 2"

This looks way better