🚧 Ongoing work on CFP
This commit is contained in:
parent
7cc4130a11
commit
6b6f6fd7cd
54 changed files with 1360 additions and 3295 deletions
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"env": {
|
||||
"jest": true
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
export default function(part) {
|
||||
let { Point, Path, points, paths, complete, paperless } = part.shorthand();
|
||||
|
||||
points.start = new Point(0, 0);
|
||||
points.end = new Point(75, 0);
|
||||
|
||||
paths.demo = new Path()
|
||||
.move(points.start)
|
||||
.line(points.end)
|
||||
.attr("data-text", "thisIsTheFrontPart")
|
||||
.attr("data-text-class", "center");
|
||||
|
||||
// Complete?
|
||||
if (complete) {
|
||||
}
|
||||
|
||||
// Paperless?
|
||||
if (paperless) {
|
||||
}
|
||||
|
||||
return part;
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
/*
|
||||
* This file was created by create-freesewing-pattern
|
||||
* -> https://github.com/freesewing/create-freesewing-pattern
|
||||
*
|
||||
* Freesewing documentation:
|
||||
* -> https://beta.freesewing.org/en/docs/developer
|
||||
*
|
||||
* Freesewing help & advice:
|
||||
* -> https://gitter.im/freesewing/freesewing
|
||||
*/
|
||||
import freesewing from "freesewing";
|
||||
import config from "../config";
|
||||
|
||||
/*
|
||||
* Our most popular plugins are part of the plugin bundle
|
||||
* which is already installed and imported.
|
||||
* If you need additional plugins, you should install and
|
||||
* import them.
|
||||
*
|
||||
* A list of all plugins is available at:
|
||||
* -> https://beta.freesewing.org/en/docs/developer/plugins
|
||||
*/
|
||||
import plugins from "@freesewing/plugin-bundle";
|
||||
// import buttons from "@freesewing/plugin-buttons";
|
||||
|
||||
/*
|
||||
* If you want to extend an existing pattern, you should
|
||||
* install it as a dev-dependency, and then import it.
|
||||
*
|
||||
* A list of all patterns is available at:
|
||||
* -> https://beta.freesewing.org/en/patterns
|
||||
*/
|
||||
//import Brian from "@freesewing/brian";
|
||||
|
||||
/*
|
||||
* It's a best practice to put each pattern part in its own file:
|
||||
* -> https://beta.freesewing.org/en/docs/developer/do
|
||||
*/
|
||||
import draftBox from "./box";
|
||||
|
||||
/* Create new design*/
|
||||
const {{name}} = new freesewing.Design(config, [
|
||||
plugins,
|
||||
//buttons
|
||||
]);
|
||||
|
||||
/*
|
||||
* If you want to extend an existing pattern, you should
|
||||
* attach those draft methods you need to the design prototype
|
||||
* as such:
|
||||
*/
|
||||
//{{name}}.prototype.draftBrianBase = function(part) {
|
||||
// return new Brian(this.settings).draftBase(part);
|
||||
//};
|
||||
//{{name}}.prototype.draftBrianBack = function(part) {
|
||||
// return new Brian(this.settings).draftBack(part);
|
||||
//};
|
||||
//{{name}}.prototype.draftBrianFront = function(part) {
|
||||
// return new Brian(this.settings).draftFront(part);
|
||||
//};
|
||||
|
||||
/*
|
||||
* Attach the draft methods of your own parts to the
|
||||
* design prototype as such:
|
||||
*/
|
||||
{{name}}.prototype.draftBox = draftBox;
|
||||
|
||||
// Export your design
|
||||
export default {{name}};
|
Loading…
Add table
Add a link
Reference in a new issue