sparkles: Examples up to freesewing 10.0
This commit is contained in:
parent
4947124e13
commit
1098736aac
20 changed files with 456 additions and 95 deletions
|
@ -32,17 +32,24 @@ import pathReverse from "./path.reverse";
|
|||
import pathShiftAlong from "./path.shiftalong";
|
||||
import pathShiftFractionAlong from "./path.shiftfractionalong";
|
||||
import pathEdge from "./path.edge";
|
||||
import pathCrossesX from "./path.crossesx";
|
||||
import pathCrossesY from "./path.crossesy";
|
||||
import pathIntersectsX from "./path.intersectsx";
|
||||
import pathIntersectsY from "./path.intersectsy";
|
||||
import pathIntersects from "./path.intersects";
|
||||
import pathDivide from "./path.divide";
|
||||
import pathSplit from "./path.split";
|
||||
|
||||
import utilsLinesCross from "./utils.linescross";
|
||||
import utilsBeamsCross from "./utils.beamscross";
|
||||
import utilsBeamCrossesX from "./utils.beamcrossesx";
|
||||
import utilsBeamCrossesY from "./utils.beamcrossesy";
|
||||
import utilsCurveCrossesLine from "./utils.curvecrossesline";
|
||||
import utilsCurveCrossesCurve from "./utils.curvecrossescurve";
|
||||
import utilsLinesIntersect from "./utils.linesintersect";
|
||||
import utilsBeamsIntersect from "./utils.beamsintersect";
|
||||
import utilsBeamIntersectsX from "./utils.beamintersectsx";
|
||||
import utilsBeamIntersectsY from "./utils.beamintersectsy";
|
||||
import utilsLineIntersectsCurve from "./utils.lineintersectscurve";
|
||||
import utilsCurvesIntersect from "./utils.curvesintersect";
|
||||
import utilsPointOnBeam from "./utils.pointonbeam";
|
||||
import utilsPointOnLine from "./utils.pointonline";
|
||||
import utilsPointOnCurve from "./utils.pointoncurve";
|
||||
import utilsCirclesIntersect from "./utils.circlesintersect";
|
||||
import utilsBeamIntersectsCircle from "./utils.beamintersectscircle";
|
||||
import utilsLineIntersectsCircle from "./utils.lineintersectscircle";
|
||||
|
||||
import settingsSa from "./settings.sa";
|
||||
import macroGrainline from "./macro.grainline";
|
||||
|
@ -52,48 +59,55 @@ var pattern = new freesewing.Pattern({ version: version, ...config }).with(
|
|||
);
|
||||
|
||||
pattern.draft = function() {
|
||||
this.parts.pointAttr = this.draftPointAttr(new pattern.Part());
|
||||
this.parts.pointDist = this.draftPointDist(new pattern.Part());
|
||||
this.parts.pointDx = this.draftPointDx(new pattern.Part());
|
||||
this.parts.pointDy = this.draftPointDy(new pattern.Part());
|
||||
this.parts.pointAngle = this.draftPointAngle(new pattern.Part());
|
||||
this.parts.pointRotate = this.draftPointRotate(new pattern.Part());
|
||||
this.parts.pointCopy = this.draftPointCopy(new pattern.Part());
|
||||
this.parts.pointFlipX = this.draftPointFlipX(new pattern.Part());
|
||||
this.parts.pointFlipY = this.draftPointFlipY(new pattern.Part());
|
||||
this.parts.pointShift = this.draftPointShift(new pattern.Part());
|
||||
this.parts.pointShiftTowards = this.draftPointShiftTowards(new pattern.Part());
|
||||
this.parts.pointShiftFractionTowards = this.draftPointShiftFractionTowards(new pattern.Part());
|
||||
this.parts.pointShiftOutwards = this.draftPointShiftOutwards(new pattern.Part());
|
||||
this.parts.pointSitsOn = this.draftPointSitsOn(new pattern.Part());
|
||||
this.parts.pointClone = this.draftPointClone(new pattern.Part());
|
||||
if (this.needs('pointAttr')) this.parts.pointAttr = this.draftPointAttr(new pattern.Part());
|
||||
if (this.needs('pointDist')) this.parts.pointDist = this.draftPointDist(new pattern.Part());
|
||||
if (this.needs('pointDx')) this.parts.pointDx = this.draftPointDx(new pattern.Part());
|
||||
if (this.needs('pointDy')) this.parts.pointDy = this.draftPointDy(new pattern.Part());
|
||||
if (this.needs('pointAngle')) this.parts.pointAngle = this.draftPointAngle(new pattern.Part());
|
||||
if (this.needs('pointRotate')) this.parts.pointRotate = this.draftPointRotate(new pattern.Part());
|
||||
if (this.needs('pointCopy')) this.parts.pointCopy = this.draftPointCopy(new pattern.Part());
|
||||
if (this.needs('pointFlipX')) this.parts.pointFlipX = this.draftPointFlipX(new pattern.Part());
|
||||
if (this.needs('pointFlipY')) this.parts.pointFlipY = this.draftPointFlipY(new pattern.Part());
|
||||
if (this.needs('pointShift')) this.parts.pointShift = this.draftPointShift(new pattern.Part());
|
||||
if (this.needs('pointShiftTowards')) this.parts.pointShiftTowards = this.draftPointShiftTowards(new pattern.Part());
|
||||
if (this.needs('pointShiftFractionTowards')) this.parts.pointShiftFractionTowards = this.draftPointShiftFractionTowards(new pattern.Part());
|
||||
if (this.needs('pointShiftOutwards')) this.parts.pointShiftOutwards = this.draftPointShiftOutwards(new pattern.Part());
|
||||
if (this.needs('pointSitsOn')) this.parts.pointSitsOn = this.draftPointSitsOn(new pattern.Part());
|
||||
if (this.needs('pointClone')) this.parts.pointClone = this.draftPointClone(new pattern.Part());
|
||||
|
||||
this.parts.pathOps = this.draftPathOps(new pattern.Part());
|
||||
this.parts.pathAttr = this.draftPathAttr(new pattern.Part());
|
||||
this.parts.pathOffset = this.draftPathOffset(new pattern.Part());
|
||||
this.parts.pathLength = this.draftPathLength(new pattern.Part());
|
||||
this.parts.pathStart = this.draftPathStart(new pattern.Part());
|
||||
this.parts.pathEnd = this.draftPathEnd(new pattern.Part());
|
||||
this.parts.pathClone = this.draftPathClone(new pattern.Part());
|
||||
this.parts.pathJoin = this.draftPathJoin(new pattern.Part());
|
||||
this.parts.pathReverse = this.draftPathReverse(new pattern.Part());
|
||||
this.parts.pathShiftAlong = this.draftPathShiftAlong(new pattern.Part());
|
||||
this.parts.pathShiftFractionAlong = this.draftPathShiftFractionAlong(new pattern.Part());
|
||||
this.parts.pathEdge = this.draftPathEdge(new pattern.Part());
|
||||
this.parts.pathCrossesX = this.draftPathCrossesX(new pattern.Part());
|
||||
this.parts.pathCrossesY = this.draftPathCrossesY(new pattern.Part());
|
||||
this.parts.pathIntersects = this.draftPathIntersects(new pattern.Part());
|
||||
this.parts.pathDivide = this.draftPathDivide(new pattern.Part());
|
||||
if (this.needs('pathOps')) this.parts.pathOps = this.draftPathOps(new pattern.Part());
|
||||
if (this.needs('pathAttr')) this.parts.pathAttr = this.draftPathAttr(new pattern.Part());
|
||||
if (this.needs('pathOffset')) this.parts.pathOffset = this.draftPathOffset(new pattern.Part());
|
||||
if (this.needs('pathLength')) this.parts.pathLength = this.draftPathLength(new pattern.Part());
|
||||
if (this.needs('pathStart')) this.parts.pathStart = this.draftPathStart(new pattern.Part());
|
||||
if (this.needs('pathEnd')) this.parts.pathEnd = this.draftPathEnd(new pattern.Part());
|
||||
if (this.needs('pathClone')) this.parts.pathClone = this.draftPathClone(new pattern.Part());
|
||||
if (this.needs('pathJoin')) this.parts.pathJoin = this.draftPathJoin(new pattern.Part());
|
||||
if (this.needs('pathReverse')) this.parts.pathReverse = this.draftPathReverse(new pattern.Part());
|
||||
if (this.needs('pathShiftAlong')) this.parts.pathShiftAlong = this.draftPathShiftAlong(new pattern.Part());
|
||||
if (this.needs('pathShiftFractionAlong')) this.parts.pathShiftFractionAlong = this.draftPathShiftFractionAlong(new pattern.Part());
|
||||
if (this.needs('pathEdge')) this.parts.pathEdge = this.draftPathEdge(new pattern.Part());
|
||||
if (this.needs('pathIntersectsX')) this.parts.pathIntersectsX = this.draftPathIntersectsX(new pattern.Part());
|
||||
if (this.needs('pathIntersectsY')) this.parts.pathIntersectsY = this.draftPathIntersectsY(new pattern.Part());
|
||||
if (this.needs('pathIntersects')) this.parts.pathIntersects = this.draftPathIntersects(new pattern.Part());
|
||||
if (this.needs('pathDivide')) this.parts.pathDivide = this.draftPathDivide(new pattern.Part());
|
||||
if (this.needs('pathSplit')) this.parts.pathSplit = this.draftPathSplit(new pattern.Part());
|
||||
|
||||
this.parts.utilsLinesCross = this.draftUtilsLinesCross(new pattern.Part());
|
||||
this.parts.utilsBeamsCross = this.draftUtilsBeamsCross(new pattern.Part());
|
||||
this.parts.utilsBeamCrossesX = this.draftUtilsBeamCrossesX(new pattern.Part());
|
||||
this.parts.utilsBeamCrossesY = this.draftUtilsBeamCrossesY(new pattern.Part());
|
||||
this.parts.utilsCurveCrossesLine = this.draftUtilsCurveCrossesLine(new pattern.Part());
|
||||
this.parts.utilsCurveCrossesCurve = this.draftUtilsCurveCrossesCurve(new pattern.Part());
|
||||
if (this.needs('utilsLinesIntersect')) this.parts.utilsLinesIntersect = this.draftUtilsLinesIntersect(new pattern.Part());
|
||||
if (this.needs('utilsBeamsIntersect')) this.parts.utilsBeamsIntersect = this.draftUtilsBeamsIntersect(new pattern.Part());
|
||||
if (this.needs('utilsBeamIntersectsX')) this.parts.utilsBeamIntersectsX = this.draftUtilsBeamIntersectsX(new pattern.Part());
|
||||
if (this.needs('utilsBeamIntersectsY')) this.parts.utilsBeamIntersectsY = this.draftUtilsBeamIntersectsY(new pattern.Part());
|
||||
if (this.needs('utilsLineIntersectsCurve')) this.parts.utilsLineIntersectsCurve = this.draftUtilsLineIntersectsCurve(new pattern.Part());
|
||||
if (this.needs('utilsCurvesIntersect')) this.parts.utilsCurvesIntersect = this.draftUtilsCurvesIntersect(new pattern.Part());
|
||||
if (this.needs('utilsPointOnLine')) this.parts.utilsPointOnLine = this.draftUtilsPointOnLine(new pattern.Part());
|
||||
if (this.needs('utilsPointOnBeam')) this.parts.utilsPointOnBeam = this.draftUtilsPointOnBeam(new pattern.Part());
|
||||
if (this.needs('utilsPointOnCurve')) this.parts.utilsPointOnCurve = this.draftUtilsPointOnCurve(new pattern.Part());
|
||||
if (this.needs('utilsCirclesIntersect')) this.parts.utilsCirclesIntersect = this.draftUtilsCirclesIntersect(new pattern.Part());
|
||||
if (this.needs('utilsBeamIntersectsCircle')) this.parts.utilsBeamIntersectsCircle = this.draftUtilsBeamIntersectsCircle(new pattern.Part());
|
||||
if (this.needs('utilsLineIntersectsCircle')) this.parts.utilsLineIntersectsCircle = this.draftUtilsLineIntersectsCircle(new pattern.Part());
|
||||
|
||||
this.parts.settingsSa = this.draftSettingsSa(new pattern.Part());
|
||||
this.parts.macroGrainline = this.draftMacroGrainline(new pattern.Part());
|
||||
if (this.needs('settingsSa')) this.parts.settingsSa = this.draftSettingsSa(new pattern.Part());
|
||||
if (this.needs('macroGrainline')) this.parts.macroGrainline = this.draftMacroGrainline(new pattern.Part());
|
||||
return pattern;
|
||||
};
|
||||
|
||||
|
@ -125,17 +139,24 @@ pattern.draftPathReverse = part => pathReverse.draft(part);
|
|||
pattern.draftPathShiftAlong = part => pathShiftAlong.draft(part);
|
||||
pattern.draftPathShiftFractionAlong = part => pathShiftFractionAlong.draft(part);
|
||||
pattern.draftPathEdge = part => pathEdge.draft(part);
|
||||
pattern.draftPathCrossesX = part => pathCrossesX.draft(part);
|
||||
pattern.draftPathCrossesY = part => pathCrossesY.draft(part);
|
||||
pattern.draftPathIntersectsX = part => pathIntersectsX.draft(part);
|
||||
pattern.draftPathIntersectsY = part => pathIntersectsY.draft(part);
|
||||
pattern.draftPathIntersects = part => pathIntersects.draft(part);
|
||||
pattern.draftPathDivide = part => pathDivide.draft(part);
|
||||
pattern.draftPathSplit = part => pathSplit.draft(part);
|
||||
|
||||
pattern.draftUtilsLinesCross = part => utilsLinesCross.draft(part);
|
||||
pattern.draftUtilsBeamsCross = part => utilsBeamsCross.draft(part);
|
||||
pattern.draftUtilsBeamCrossesX = part => utilsBeamCrossesX.draft(part);
|
||||
pattern.draftUtilsBeamCrossesY = part => utilsBeamCrossesY.draft(part);
|
||||
pattern.draftUtilsCurveCrossesLine = part => utilsCurveCrossesLine.draft(part);
|
||||
pattern.draftUtilsCurveCrossesCurve = part => utilsCurveCrossesCurve.draft(part);
|
||||
pattern.draftUtilsLinesIntersect = part => utilsLinesIntersect.draft(part);
|
||||
pattern.draftUtilsBeamsIntersect = part => utilsBeamsIntersect.draft(part);
|
||||
pattern.draftUtilsBeamIntersectsX = part => utilsBeamIntersectsX.draft(part);
|
||||
pattern.draftUtilsBeamIntersectsY = part => utilsBeamIntersectsY.draft(part);
|
||||
pattern.draftUtilsLineIntersectsCurve = part => utilsLineIntersectsCurve.draft(part);
|
||||
pattern.draftUtilsCurvesIntersect = part => utilsCurvesIntersect.draft(part);
|
||||
pattern.draftUtilsPointOnBeam = part => utilsPointOnBeam.draft(part);
|
||||
pattern.draftUtilsPointOnLine = part => utilsPointOnLine.draft(part);
|
||||
pattern.draftUtilsPointOnCurve = part => utilsPointOnCurve.draft(part);
|
||||
pattern.draftUtilsCirclesIntersect = part => utilsCirclesIntersect.draft(part);
|
||||
pattern.draftUtilsBeamIntersectsCircle = part => utilsBeamIntersectsCircle.draft(part);
|
||||
pattern.draftUtilsLineIntersectsCircle = part => utilsLineIntersectsCircle.draft(part);
|
||||
|
||||
pattern.draftSettingsSa = part => settingsSa.draft(part);
|
||||
pattern.draftMacroGrainline = part => macroGrainline.draft(part);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue