@freesewing/legend
Version:
A FreeSewing pattern to document pattern notation
19 lines (14 loc) • 595 B
JavaScript
import { box } from './shared.mjs'
function legendButtons({ points, Point, snippets, Snippet, part }) {
points.a = new Point(30, 10)
points.atxt = new Point(30, 20).attr('data-text', 'button').attr('data-text-class', 'center')
snippets.a = new Snippet('button', points.a)
points.b = new Point(80, 10)
points.btxt = new Point(80, 20).attr('data-text', 'buttonhole').attr('data-text-class', 'center')
snippets.b = new Snippet('buttonhole', points.b).attr('data-rotate', 90)
return box(part, 120, 30)
}
export const buttons = {
name: 'legend.buttons',
draft: legendButtons,
}