1
0
Fork 0

chore: Linter

This commit is contained in:
Joost De Cock 2021-01-31 09:22:15 +01:00
parent adb9e93024
commit 1a46c8e724
227 changed files with 660 additions and 936 deletions

View file

@ -280,16 +280,7 @@ export default (part) => {
for (let s in snippets) delete snippets[s]
macro('sprinkle', {
snippet: 'notch',
on: [
'armhole',
'armholePitch',
'cfArmhole',
'cfWaist',
'cfHem',
'hips',
'waist',
'bust_rot2',
]
on: ['armhole', 'armholePitch', 'cfArmhole', 'cfWaist', 'cfHem', 'hips', 'waist', 'bust_rot2']
})
points.logo = new Point(points.armhole.x / 2, points.armhole.y)
snippets.logo = new Snippet('logo', points.logo)

View file

@ -13,16 +13,16 @@ import draftFbaFront from './fba-front'
const Pattern = new freesewing.Design(config, [plugins, flipPlugin, buttonPlugin, bustPlugin])
// Attach draft methods to prototype
Pattern.prototype.draftBase = function(part) {
Pattern.prototype.draftBase = function (part) {
return new Brian(this.settings).draftBase(part)
}
Pattern.prototype.draftFrontBase = function(part) {
Pattern.prototype.draftFrontBase = function (part) {
return new Brian(this.settings).draftFront(part)
}
Pattern.prototype.draftBackBase = function(part) {
Pattern.prototype.draftBackBase = function (part) {
return new Brian(this.settings).draftBack(part)
}
Pattern.prototype.draftSleeveBase = function(part) {
Pattern.prototype.draftSleeveBase = function (part) {
let brian = new Brian(this.settings)
return brian.draftSleeve(brian.draftSleevecap(part))
}
@ -45,7 +45,7 @@ let simonParts = [
]
for (let Part of simonParts) {
Pattern.prototype[`draft${Part}`] = function(part) {
Pattern.prototype[`draft${Part}`] = function (part) {
let simon = new Simon(this.settings)
return simon[`draft${Part}`](part)
}