
This is a flat (without history) import of (some of) the content from our markdown module. We've imported this without history because the repo contains our blog posts and showcases posts content prior to porting them to strapi. Since this contains many images, it would balloon the size of this repo to import the full history. Instead, please refer to the history of the (archived) markdown repo at: https://github.com/freesewing/markdown
803 B
803 B
title | order |
---|---|
Snippet | 35 |
A snippet is a reuseable bit of markup for your pattern. They are added to the
SVG defs
section, and rendered with the SVG use
tag.
The snippet constructor takes two arguments:
def
: Thexlink:href
id that links to the relevant entry in the SVGdefs
sectionanchor
: APoint
on which to anchor the snippet
Snippet new Snippet(def, Point);
A Snippet object comes with the following properties:
def
: Thexlink:href
id that links to the relevant entry in the SVGdefs
sectionanchor
: APoint
on which to anchor the snippetattributes
: AnAttributes
instance holding the snippet's attributes
In addition, a Snippet object exposes the following methods: