fix(plugin-mirror): removed named exports
This commit is contained in:
parent
e968dd378c
commit
0e443bfb1e
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue