2018-07-24 10:16:31 +00:00
|
|
|
import * as freesewing from "freesewing";
|
|
|
|
import * as cutonfold from "@freesewing-plugins/macro-cutonfold";
|
|
|
|
import { config } from "../config/config";
|
|
|
|
import back from "./back";
|
|
|
|
import { version } from "../package.json";
|
2018-07-15 18:57:27 +02:00
|
|
|
|
2018-07-24 14:36:12 +00:00
|
|
|
var brian = new freesewing.pattern(config).with(cutonfold);
|
|
|
|
brian.on("preRenderSvg", function(next) {
|
|
|
|
this.attributes.add("freesewing:brian", version);
|
|
|
|
next();
|
|
|
|
});
|
2018-07-24 14:37:32 +00:00
|
|
|
|
2018-07-24 10:16:31 +00:00
|
|
|
brian.draft = function() {
|
2018-07-19 14:43:27 +00:00
|
|
|
back.draft(brian.parts.back, brian.context);
|
2018-07-15 18:57:27 +02:00
|
|
|
|
|
|
|
return brian;
|
2018-07-24 10:16:31 +00:00
|
|
|
};
|
2018-07-15 18:57:27 +02:00
|
|
|
|
2018-07-23 19:37:49 +02:00
|
|
|
export default brian;
|