chore: Linter run
This commit is contained in:
parent
e693c7712e
commit
ef3bd03e2c
183 changed files with 919 additions and 1838 deletions
|
@ -12,23 +12,18 @@ const output = [
|
|||
format: 'cjs',
|
||||
sourcemap: true,
|
||||
exports: rollup.exports,
|
||||
}
|
||||
},
|
||||
]
|
||||
if (typeof module !== 'undefined')
|
||||
output.push({
|
||||
banner,
|
||||
file: module,
|
||||
format: 'es',
|
||||
sourcemap: true
|
||||
sourcemap: true,
|
||||
})
|
||||
|
||||
export default {
|
||||
input: 'src/index.js',
|
||||
output,
|
||||
plugins: [
|
||||
peerDepsExternal(),
|
||||
resolve({ modulesOnly: true }),
|
||||
commonjs(),
|
||||
json(),
|
||||
]
|
||||
plugins: [peerDepsExternal(), resolve({ modulesOnly: true }), commonjs(), json()],
|
||||
}
|
||||
|
|
|
@ -1,19 +1,15 @@
|
|||
export default (part) => {
|
||||
let { Point, points, Path, paths } = part.shorthand()
|
||||
|
||||
let { Point, points, Path, paths } = part.shorthand()
|
||||
points.from = new Point(10, 10)
|
||||
points.to = new Point(80, 70)
|
||||
|
||||
points.from = new Point(10, 10)
|
||||
points.to = new Point(80, 70)
|
||||
points.text = points.from
|
||||
.shiftFractionTowards(points.to, 0.6)
|
||||
.attr('data-text', points.from.dist(points.to) + 'mm')
|
||||
.attr('data-text-class', 'text-sm fill-note center')
|
||||
|
||||
points.text = points.from
|
||||
.shiftFractionTowards(points.to, 0.6)
|
||||
.attr("data-text", points.from.dist(points.to)+"mm")
|
||||
.attr("data-text-class", "text-sm fill-note center")
|
||||
|
||||
paths.line = new Path()
|
||||
.move(points.from)
|
||||
.line(points.to)
|
||||
.attr("class", "dashed")
|
||||
paths.line = new Path().move(points.from).line(points.to).attr('class', 'dashed')
|
||||
|
||||
return part
|
||||
return part
|
||||
}
|
||||
|
|
|
@ -1,32 +1,22 @@
|
|||
export default (part) => {
|
||||
let { Point, points, Path, paths } = part.shorthand()
|
||||
|
||||
let { Point, points, Path, paths } = part.shorthand()
|
||||
points.from = new Point(10, 10)
|
||||
points.to = new Point(80, 70)
|
||||
|
||||
points.from = new Point(10, 10)
|
||||
points.to = new Point(80, 70)
|
||||
|
||||
paths.line = new Path()
|
||||
.move(points.from)
|
||||
.line(points.to)
|
||||
.attr("class", "dashed")
|
||||
paths.line = new Path().move(points.from).line(points.to).attr('class', 'dashed')
|
||||
|
||||
points.totop = points.from.shift(0,points.from.dx(points.to))
|
||||
points.totop = points.from.shift(0, points.from.dx(points.to))
|
||||
|
||||
points.text_dx = points.from
|
||||
.shiftFractionTowards(points.totop, 0.6)
|
||||
.shiftFractionTowards(points.to,0.1)
|
||||
.attr("data-text", points.from.dx(points.to)+"mm")
|
||||
.attr("data-text-class", "text-sm fill-note center")
|
||||
points.text_dx = points.from
|
||||
.shiftFractionTowards(points.totop, 0.6)
|
||||
.shiftFractionTowards(points.to, 0.1)
|
||||
.attr('data-text', points.from.dx(points.to) + 'mm')
|
||||
.attr('data-text-class', 'text-sm fill-note center')
|
||||
|
||||
paths.line_dx = new Path()
|
||||
.move(points.from)
|
||||
.line(points.totop)
|
||||
.attr("class", "dashed")
|
||||
|
||||
paths.line_dy = new Path()
|
||||
.move(points.to)
|
||||
.line(points.totop)
|
||||
.attr("class", "dashed")
|
||||
|
||||
return part
|
||||
paths.line_dx = new Path().move(points.from).line(points.totop).attr('class', 'dashed')
|
||||
|
||||
paths.line_dy = new Path().move(points.to).line(points.totop).attr('class', 'dashed')
|
||||
|
||||
return part
|
||||
}
|
||||
|
|
|
@ -1,31 +1,21 @@
|
|||
export default (part) => {
|
||||
let { Point, points, Path, paths } = part.shorthand()
|
||||
|
||||
let { Point, points, Path, paths } = part.shorthand()
|
||||
points.from = new Point(10, 10)
|
||||
points.to = new Point(80, 70)
|
||||
|
||||
points.from = new Point(10, 10)
|
||||
points.to = new Point(80, 70)
|
||||
|
||||
paths.line = new Path()
|
||||
.move(points.from)
|
||||
.line(points.to)
|
||||
.attr("class", "dashed")
|
||||
paths.line = new Path().move(points.from).line(points.to).attr('class', 'dashed')
|
||||
|
||||
points.totop = points.from.shift(0,points.from.dx(points.to))
|
||||
points.totop = points.from.shift(0, points.from.dx(points.to))
|
||||
|
||||
paths.line_dx = new Path()
|
||||
.move(points.from)
|
||||
.line(points.totop)
|
||||
.attr("class", "dashed")
|
||||
paths.line_dx = new Path().move(points.from).line(points.totop).attr('class', 'dashed')
|
||||
|
||||
points.text_dy = points.totop
|
||||
.shiftFractionTowards(points.to, 0.4)
|
||||
.attr("data-text", points.from.dy(points.to)+"mm")
|
||||
.attr("data-text-class", "text-sm fill-note right")
|
||||
|
||||
paths.line_dy = new Path()
|
||||
.move(points.to)
|
||||
.line(points.totop)
|
||||
.attr("class", "dashed")
|
||||
|
||||
return part
|
||||
points.text_dy = points.totop
|
||||
.shiftFractionTowards(points.to, 0.4)
|
||||
.attr('data-text', points.from.dy(points.to) + 'mm')
|
||||
.attr('data-text-class', 'text-sm fill-note right')
|
||||
|
||||
paths.line_dy = new Path().move(points.to).line(points.totop).attr('class', 'dashed')
|
||||
|
||||
return part
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue