mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-21 21:27:56 +01:00
typo
This commit is contained in:
parent
0ef85cc918
commit
c927c7bec1
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user