🚧 Progress on create-freesewing-pattern
This commit is contained in:
parent
0b66901774
commit
ad9f559dc0
12 changed files with 128 additions and 72 deletions
|
@ -8,12 +8,12 @@
|
|||
"react-dom": "^16.8",
|
||||
"react-scripts": "^3.0.0",
|
||||
"@freesewing/core": "alpha",
|
||||
"@freesewing/plugin-bust": "alpha",
|
||||
"@freesewing/plugin-buttons": "alpha",
|
||||
"@freesewing/plugin-flip": "alpha",
|
||||
"@freesewing/plugin-debug": "alpha",
|
||||
"@freesewing/plugin-theme": "alpha",
|
||||
"@freesewing/plugin-designer": "alpha",
|
||||
"@freesewing/plugin-svgattr": "alpha",
|
||||
"@freesewing/plugin-i18n": "alpha",
|
||||
"@freesewing/plugin-validate": "alpha",
|
||||
"@freesewing/i18n": "alpha",
|
||||
"@freesewing/components": "alpha",
|
||||
"@freesewing/css-theme": "alpha",
|
||||
|
|
|
@ -1,12 +1,26 @@
|
|||
export default function(part) {
|
||||
let { Point, Path, points, paths, complete, paperless } = part.shorthand();
|
||||
let {
|
||||
options,
|
||||
Point,
|
||||
Path,
|
||||
points,
|
||||
paths,
|
||||
complete,
|
||||
paperless
|
||||
} = part.shorthand();
|
||||
|
||||
points.start = new Point(0, 0);
|
||||
points.end = new Point(75, 0);
|
||||
points.topLeft = new Point(0, 0);
|
||||
points.topRight = new Point(options.size, 0);
|
||||
points.bottomLeft = new Point(0, options.size);
|
||||
points.bottomRight = new Point(options.size, options.size);
|
||||
|
||||
paths.demo = new Path()
|
||||
.move(points.start)
|
||||
.line(points.end)
|
||||
.move(points.topLeft)
|
||||
.line(points.bottomLeft)
|
||||
.line(points.bottomRight)
|
||||
.line(points.topRight)
|
||||
.line(points.topLeft)
|
||||
.close()
|
||||
.attr("data-text", "thisIsTheFrontPart")
|
||||
.attr("data-text-class", "center");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue