construction: Pre-weekend commit
This commit is contained in:
parent
95ea42916f
commit
92aca3b339
4 changed files with 31 additions and 7 deletions
2
packages/brian/dist/browser/bundle.js
vendored
2
packages/brian/dist/browser/bundle.js
vendored
File diff suppressed because one or more lines are too long
|
@ -23,6 +23,7 @@
|
||||||
shoulderToWrist: 700,
|
shoulderToWrist: 700,
|
||||||
wristCircumference: 190
|
wristCircumference: 190
|
||||||
};
|
};
|
||||||
|
pattern.settings.paperless = true;
|
||||||
pattern.on('preRenderSvg', function(next) {
|
pattern.on('preRenderSvg', function(next) {
|
||||||
this.attributes.add("viewBox", "-10 -10 600 800");
|
this.attributes.add("viewBox", "-10 -10 600 800");
|
||||||
next();
|
next();
|
||||||
|
@ -35,7 +36,6 @@ pattern.on('preRenderSvg', function(next) {
|
||||||
// this.svg = this.svg.replace('green', 'yellow');
|
// this.svg = this.svg.replace('green', 'yellow');
|
||||||
// next();
|
// next();
|
||||||
//});
|
//});
|
||||||
console.log(pattern);
|
|
||||||
//console.log(freesewing_theme_default);
|
//console.log(freesewing_theme_default);
|
||||||
pattern.loadPlugin(freesewing_theme_designer);
|
pattern.loadPlugin(freesewing_theme_designer);
|
||||||
pattern.loadPlugin(freesewing_theme_default);
|
pattern.loadPlugin(freesewing_theme_default);
|
||||||
|
|
|
@ -3,10 +3,10 @@ import base from './base';
|
||||||
|
|
||||||
var back =
|
var back =
|
||||||
{
|
{
|
||||||
draft: function(part, context, final = true)
|
draft: function(part, context)
|
||||||
{
|
{
|
||||||
let { measurements, options, points, paths, snippets } = F.utils.shorthand(part, context);
|
let { measurements, options, points, paths, snippets, macro, final, paperless } = F.utils.shorthand(part, context);
|
||||||
|
console.log('shorthand', F.utils.shorthand(part, context));
|
||||||
base.draft(part, context);
|
base.draft(part, context);
|
||||||
|
|
||||||
paths.seam = new F.path()
|
paths.seam = new F.path()
|
||||||
|
@ -21,6 +21,30 @@ var back =
|
||||||
.curve(points.neckCp1, points.cbNeck, points.cbNeck)
|
.curve(points.neckCp1, points.cbNeck, points.cbNeck)
|
||||||
.close()
|
.close()
|
||||||
;
|
;
|
||||||
|
|
||||||
|
// Final?
|
||||||
|
|
||||||
|
var decorate = function(part, context)
|
||||||
|
{
|
||||||
|
//macro('cof', {
|
||||||
|
// from: points.cbNeck
|
||||||
|
// ,to: points.cbHips
|
||||||
|
//});
|
||||||
|
}
|
||||||
|
|
||||||
|
if(final) {
|
||||||
|
decorate(part, context);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Paperless?
|
||||||
|
|
||||||
|
var gauge = function(part, context) {
|
||||||
|
}
|
||||||
|
|
||||||
|
if(paperless) {
|
||||||
|
gauge(part, context);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@ import back from './back'
|
||||||
|
|
||||||
var brian = new F.pattern(patternConfig);
|
var brian = new F.pattern(patternConfig);
|
||||||
|
|
||||||
brian.draft = function(final = true)
|
brian.draft = function()
|
||||||
{
|
{
|
||||||
back.draft(brian.parts.back, brian.context, final);
|
back.draft(brian.parts.back, brian.context);
|
||||||
|
|
||||||
return brian;
|
return brian;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue