chore: Linter
This commit is contained in:
parent
adb9e93024
commit
1a46c8e724
227 changed files with 660 additions and 936 deletions
|
@ -1,4 +1,4 @@
|
|||
export default function(part) {
|
||||
export default function (part) {
|
||||
let { Point, Path, points, paths, store } = part.shorthand()
|
||||
|
||||
let y = store.get('y')
|
||||
|
@ -7,10 +7,7 @@ export default function(part) {
|
|||
|
||||
points.crl = new Point(0, y)
|
||||
points.crr = new Point(w, y)
|
||||
paths.circles = new Path()
|
||||
.move(points.crl)
|
||||
.line(points.crr)
|
||||
.attr('data-text', 'circles')
|
||||
paths.circles = new Path().move(points.crl).line(points.crr).attr('data-text', 'circles')
|
||||
y += w / 2
|
||||
for (let i = 1; i < 50; i++) {
|
||||
points['cr' + i] = new Point(w / 2, y)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export default function(part) {
|
||||
export default function (part) {
|
||||
let { Point, Path, points, paths, store } = part.shorthand()
|
||||
|
||||
let y = store.get('y')
|
||||
|
@ -45,10 +45,7 @@ export default function(part) {
|
|||
y += 10
|
||||
points.ftl = new Point(0, y)
|
||||
points.ftr = new Point(w, y)
|
||||
paths.snip = new Path()
|
||||
.move(points.ftl)
|
||||
.line(points.ftr)
|
||||
.attr('data-text', 'fill')
|
||||
paths.snip = new Path().move(points.ftl).line(points.ftr).attr('data-text', 'fill')
|
||||
y += 15
|
||||
for (let i of colors) {
|
||||
let h = 10
|
||||
|
|
|
@ -8,6 +8,6 @@ import draftTest from './test'
|
|||
const Pattern = new freesewing.Design(config, plugins)
|
||||
|
||||
// Attach draft methods to prototype
|
||||
Pattern.prototype.draftTest = part => draftTest(part)
|
||||
Pattern.prototype.draftTest = (part) => draftTest(part)
|
||||
|
||||
export default Pattern
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export default function(part) {
|
||||
export default function (part) {
|
||||
let { macro, Point, Path, points, paths, store } = part.shorthand()
|
||||
|
||||
let y = store.get('y')
|
||||
|
@ -6,10 +6,7 @@ export default function(part) {
|
|||
y += 10
|
||||
points.ml = new Point(0, y)
|
||||
points.mr = new Point(w, y)
|
||||
paths.macros = new Path()
|
||||
.move(points.ml)
|
||||
.line(points.mr)
|
||||
.attr('data-text', 'macros')
|
||||
paths.macros = new Path().move(points.ml).line(points.mr).attr('data-text', 'macros')
|
||||
|
||||
y += 40
|
||||
macro('title', {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export default function(part) {
|
||||
export default function (part) {
|
||||
let { Point, Path, points, paths, snippets, Snippet, store } = part.shorthand()
|
||||
|
||||
let y = store.get('y')
|
||||
|
@ -14,10 +14,7 @@ export default function(part) {
|
|||
y += 10
|
||||
points.tl = new Point(0, y)
|
||||
points.tr = new Point(w, y)
|
||||
paths.texts = new Path()
|
||||
.move(points.tl)
|
||||
.line(points.tr)
|
||||
.attr('data-text', 'snippets')
|
||||
paths.texts = new Path().move(points.tl).line(points.tr).attr('data-text', 'snippets')
|
||||
y += 10
|
||||
points['sl1'] = new Point(w * 0.25, y)
|
||||
points['sl2'] = new Point(w * 0.5, y)
|
||||
|
|
|
@ -4,7 +4,7 @@ import text from './text'
|
|||
import snippets from './snippets'
|
||||
import macros from './macros'
|
||||
|
||||
export default function(part) {
|
||||
export default function (part) {
|
||||
let { macro, store, options, Path, paths, Point } = part.shorthand()
|
||||
store.set('y', 0)
|
||||
store.set('w', options.width)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export default function(part) {
|
||||
export default function (part) {
|
||||
let { Point, Path, points, paths, store } = part.shorthand()
|
||||
|
||||
let y = store.get('y')
|
||||
|
@ -7,10 +7,7 @@ export default function(part) {
|
|||
y += 10
|
||||
points.tl = new Point(0, y)
|
||||
points.tr = new Point(w, y)
|
||||
paths.text = new Path()
|
||||
.move(points.tl)
|
||||
.line(points.tr)
|
||||
.attr('data-text', 'text')
|
||||
paths.text = new Path().move(points.tl).line(points.tr).attr('data-text', 'text')
|
||||
y += 10
|
||||
points.tlc = new Point(0, y)
|
||||
points.trc = new Point(w, y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue