From c927c7bec13469fff540d202d6004c6c65ebc444 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Thu, 1 Feb 2018 16:59:35 +0100 Subject: [PATCH] typo --- src/sliceActions/applyPrecision.js | 4 ++-- src/sliceActions/helpers/VectorUtils.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sliceActions/applyPrecision.js b/src/sliceActions/applyPrecision.js index 0f23b23..b1cbad2 100644 --- a/src/sliceActions/applyPrecision.js +++ b/src/sliceActions/applyPrecision.js @@ -1,4 +1,4 @@ -import { devide } from './helpers/VectorUtils.js'; +import { divide } from './helpers/VectorUtils.js'; import { PRECISION } from '../constants.js' export default function applyPrecision(layers) { @@ -16,7 +16,7 @@ function scaleUpShape(shape) { const path = shape[i]; for (let i = 0; i < path.length; i ++) { - path[i] = devide(path[i], PRECISION); + path[i] = divide(path[i], PRECISION); } } } diff --git a/src/sliceActions/helpers/VectorUtils.js b/src/sliceActions/helpers/VectorUtils.js index 1df015c..da7e197 100644 --- a/src/sliceActions/helpers/VectorUtils.js +++ b/src/sliceActions/helpers/VectorUtils.js @@ -10,7 +10,7 @@ export const scale = (a, factor) => ({ x: a.x * factor, y: a.y * factor }); -export const devide = (a, factor) => ({ +export const divide = (a, factor) => ({ x: a.x / factor, y: a.y / factor });