From 87b6e9851b8f02aa6c8d94127efe68e321c515fe Mon Sep 17 00:00:00 2001 From: Casper Lamboo Date: Wed, 19 May 2021 19:59:54 +0200 Subject: [PATCH] typo --- src/d2/tools/BaseTool.js | 2 +- src/reducer/selectionOperationReducer.js | 2 +- src/shape/shapeToPoints.js | 4 ++-- src/utils/subtractShapeFromState.js | 2 +- src/utils/textUtils.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/d2/tools/BaseTool.js b/src/d2/tools/BaseTool.js index a6f05a3..1fbd6c1 100644 --- a/src/d2/tools/BaseTool.js +++ b/src/d2/tools/BaseTool.js @@ -159,7 +159,7 @@ export default class BaseTool extends EventGroup { } else { return clipperShape .offset(margin, { joinType: 'jtSquare', endType: 'etOpenButt' }) - .seperateShapes() + .separateShapes() .some(_clipperShape => _clipperShape.pointInShape(position, true, true)); } }); diff --git a/src/reducer/selectionOperationReducer.js b/src/reducer/selectionOperationReducer.js index 214d18d..3ecae49 100644 --- a/src/reducer/selectionOperationReducer.js +++ b/src/reducer/selectionOperationReducer.js @@ -65,7 +65,7 @@ export default function (state, action) { unionShape = unionShape.union(shape); } - const unionShapes = unionShape.scaleDown(CLIPPER_PRECISION).seperateShapes().map(shape => { + const unionShapes = unionShape.scaleDown(CLIPPER_PRECISION).separateShapes().map(shape => { shape = shape .removeDuplicates() .mapToLower() diff --git a/src/shape/shapeToPoints.js b/src/shape/shapeToPoints.js index 0795c4d..8659416 100644 --- a/src/shape/shapeToPoints.js +++ b/src/shape/shapeToPoints.js @@ -185,7 +185,7 @@ function shapeToPointsRaw(shapeData) { if (shapeData.fill) { new ClipperShape([points, ...holes], true, true, false, false) .simplify('pftEvenOdd') - .seperateShapes() + .separateShapes() .forEach(shape => { const [points, ...holes] = shape .mapToLower() @@ -236,7 +236,7 @@ function shapeToPointsCorneredRaw(shapeData) { roundPrecision: 0.25 }) .scaleDown(CLIPPER_PRECISION) - .seperateShapes() + .separateShapes() .forEach(shape => { let [points, ...holes] = shape .mapToLower() diff --git a/src/utils/subtractShapeFromState.js b/src/utils/subtractShapeFromState.js index 5fb985d..50727af 100644 --- a/src/utils/subtractShapeFromState.js +++ b/src/utils/subtractShapeFromState.js @@ -67,7 +67,7 @@ export default function subtractShapeFromState(state, differenceShape, tool, opt // Returns two dimentional array, with per shape an array of paths. // The first item of each path is the outline, the others are holes, if there are any. let resultShapes = resultShape - .seperateShapes() + .separateShapes() .map(resultPaths => { // go through all created shapes (1 shape can be a combination of outline+holes) if (scale !== undefined) resultPaths.scaleDown(scale); resultPaths = resultPaths diff --git a/src/utils/textUtils.js b/src/utils/textUtils.js index e0d059a..610890e 100644 --- a/src/utils/textUtils.js +++ b/src/utils/textUtils.js @@ -24,7 +24,7 @@ export function createTextRaw(text, size, precision, family, style, weight) { const shapes = new ClipperShape(pathsOffset, true, true, false) .fixOrientation() - .seperateShapes() + .separateShapes() .map(shape => shape.mapToLower()) .map(shapeToVectorShape);