This commit is contained in:
casperlamboo 2018-02-01 16:59:35 +01:00
parent 0ef85cc918
commit c927c7bec1
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import { devide } from './helpers/VectorUtils.js'; import { divide } from './helpers/VectorUtils.js';
import { PRECISION } from '../constants.js' import { PRECISION } from '../constants.js'
export default function applyPrecision(layers) { export default function applyPrecision(layers) {
@ -16,7 +16,7 @@ function scaleUpShape(shape) {
const path = shape[i]; const path = shape[i];
for (let i = 0; i < path.length; i ++) { for (let i = 0; i < path.length; i ++) {
path[i] = devide(path[i], PRECISION); path[i] = divide(path[i], PRECISION);
} }
} }
} }

View File

@ -10,7 +10,7 @@ export const scale = (a, factor) => ({
x: a.x * factor, x: a.x * factor,
y: a.y * factor y: a.y * factor
}); });
export const devide = (a, factor) => ({ export const divide = (a, factor) => ({
x: a.x / factor, x: a.x / factor,
y: a.y / factor y: a.y / factor
}); });