mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 11:03:48 +01:00
typo
This commit is contained in:
parent
31e9ec735f
commit
87b6e9851b
@ -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));
|
||||
}
|
||||
});
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user