1
0
Fork 0

fix(plugin-mirror): removed named exports

This commit is contained in:
Joost De Cock 2020-08-08 17:18:41 +02:00
parent e968dd378c
commit 0e443bfb1e

View file

@ -1,6 +1,6 @@
import { name, version } from '../package.json'
export const lineValues = (start, end) => {
const lineValues = (start, end) => {
const { x: x1, y: y1 } = start
const { x: x2, y: y2 } = end
const [A, B] = [-(y2 - y1), x2 - x1]
@ -8,7 +8,7 @@ export const lineValues = (start, end) => {
return [A, B, C]
}
export const mirrorGen = (start, end) => {
const mirrorGen = (start, end) => {
const [A, B, C] = lineValues(start, end)
return (point) => {
const { x, y } = point
@ -19,7 +19,7 @@ export const mirrorGen = (start, end) => {
}
}
const capFirst = string => string.charAt(0).toUpperCase() + string.slice(1)
const capFirst = (string) => string.charAt(0).toUpperCase() + string.slice(1)
export default {
name: name,