diff --git a/docs/kcl/angleToMatchLengthX.md b/docs/kcl/angleToMatchLengthX.md index e638adfbe..e666283df 100644 --- a/docs/kcl/angleToMatchLengthX.md +++ b/docs/kcl/angleToMatchLengthX.md @@ -236,7 +236,7 @@ const extrusion = extrude(5, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -254,7 +254,7 @@ const extrusion = extrude(5, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -445,7 +445,7 @@ const extrusion = extrude(5, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -463,7 +463,7 @@ const extrusion = extrude(5, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/angleToMatchLengthY.md b/docs/kcl/angleToMatchLengthY.md index b142e25ae..20243dab0 100644 --- a/docs/kcl/angleToMatchLengthY.md +++ b/docs/kcl/angleToMatchLengthY.md @@ -240,7 +240,7 @@ const extrusion = extrude(5, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -258,7 +258,7 @@ const extrusion = extrude(5, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -449,7 +449,7 @@ const extrusion = extrude(5, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -467,7 +467,7 @@ const extrusion = extrude(5, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/angledLine.md b/docs/kcl/angledLine.md index 224648bae..432fcb642 100644 --- a/docs/kcl/angledLine.md +++ b/docs/kcl/angledLine.md @@ -155,7 +155,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -173,7 +173,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -364,7 +364,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -382,7 +382,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -575,7 +575,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -593,7 +593,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -784,7 +784,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -802,7 +802,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/angledLineOfXLength.md b/docs/kcl/angledLineOfXLength.md index 61bee3866..2ff7573e9 100644 --- a/docs/kcl/angledLineOfXLength.md +++ b/docs/kcl/angledLineOfXLength.md @@ -154,7 +154,7 @@ const extrusion = extrude(10, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -172,7 +172,7 @@ const extrusion = extrude(10, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -363,7 +363,7 @@ const extrusion = extrude(10, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -381,7 +381,7 @@ const extrusion = extrude(10, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -574,7 +574,7 @@ const extrusion = extrude(10, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -592,7 +592,7 @@ const extrusion = extrude(10, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -783,7 +783,7 @@ const extrusion = extrude(10, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -801,7 +801,7 @@ const extrusion = extrude(10, sketch001) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/angledLineOfYLength.md b/docs/kcl/angledLineOfYLength.md index 2428f0a86..dd87e7344 100644 --- a/docs/kcl/angledLineOfYLength.md +++ b/docs/kcl/angledLineOfYLength.md @@ -156,7 +156,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -174,7 +174,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -365,7 +365,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -383,7 +383,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -576,7 +576,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -594,7 +594,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -785,7 +785,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -803,7 +803,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/angledLineThatIntersects.md b/docs/kcl/angledLineThatIntersects.md index df5c9475e..9e039ef23 100644 --- a/docs/kcl/angledLineThatIntersects.md +++ b/docs/kcl/angledLineThatIntersects.md @@ -248,7 +248,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -266,7 +266,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -457,7 +457,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -475,7 +475,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -668,7 +668,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -686,7 +686,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -877,7 +877,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -895,7 +895,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/angledLineToX.md b/docs/kcl/angledLineToX.md index 459ec8590..27c299817 100644 --- a/docs/kcl/angledLineToX.md +++ b/docs/kcl/angledLineToX.md @@ -153,7 +153,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -171,7 +171,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -362,7 +362,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -380,7 +380,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -573,7 +573,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -591,7 +591,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -782,7 +782,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -800,7 +800,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/angledLineToY.md b/docs/kcl/angledLineToY.md index c9ad13a92..ffc1f0fae 100644 --- a/docs/kcl/angledLineToY.md +++ b/docs/kcl/angledLineToY.md @@ -153,7 +153,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -171,7 +171,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -362,7 +362,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -380,7 +380,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -573,7 +573,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -591,7 +591,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -782,7 +782,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -800,7 +800,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/arc.md b/docs/kcl/arc.md index 97b79c813..ac9fca561 100644 --- a/docs/kcl/arc.md +++ b/docs/kcl/arc.md @@ -166,7 +166,7 @@ const exampleSketch = startSketchOn('XZ') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -184,7 +184,7 @@ const exampleSketch = startSketchOn('XZ') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -375,7 +375,7 @@ const exampleSketch = startSketchOn('XZ') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -393,7 +393,7 @@ const exampleSketch = startSketchOn('XZ') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -586,7 +586,7 @@ const exampleSketch = startSketchOn('XZ') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -604,7 +604,7 @@ const exampleSketch = startSketchOn('XZ') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -795,7 +795,7 @@ const exampleSketch = startSketchOn('XZ') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -813,7 +813,7 @@ const exampleSketch = startSketchOn('XZ') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/bezierCurve.md b/docs/kcl/bezierCurve.md index 3bfa1d06a..9db9871a9 100644 --- a/docs/kcl/bezierCurve.md +++ b/docs/kcl/bezierCurve.md @@ -159,7 +159,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -177,7 +177,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -368,7 +368,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -386,7 +386,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -579,7 +579,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -597,7 +597,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -788,7 +788,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -806,7 +806,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/chamfer.md b/docs/kcl/chamfer.md index aed140064..29551c4f7 100644 --- a/docs/kcl/chamfer.md +++ b/docs/kcl/chamfer.md @@ -381,7 +381,7 @@ const mountingPlate = extrude(thickness, mountingPlateSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -399,7 +399,7 @@ const mountingPlate = extrude(thickness, mountingPlateSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -785,7 +785,7 @@ const mountingPlate = extrude(thickness, mountingPlateSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -803,7 +803,7 @@ const mountingPlate = extrude(thickness, mountingPlateSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/circle.md b/docs/kcl/circle.md index 36b165dcd..6b26214c7 100644 --- a/docs/kcl/circle.md +++ b/docs/kcl/circle.md @@ -152,7 +152,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -170,7 +170,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -528,7 +528,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -546,7 +546,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -739,7 +739,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -757,7 +757,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -948,7 +948,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -966,7 +966,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/close.md b/docs/kcl/close.md index eea54db00..251a383a6 100644 --- a/docs/kcl/close.md +++ b/docs/kcl/close.md @@ -154,7 +154,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -172,7 +172,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -363,7 +363,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -381,7 +381,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -574,7 +574,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -592,7 +592,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -783,7 +783,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -801,7 +801,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/extrude.md b/docs/kcl/extrude.md index aa589b55d..569a75bca 100644 --- a/docs/kcl/extrude.md +++ b/docs/kcl/extrude.md @@ -179,7 +179,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -197,7 +197,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -389,7 +389,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -407,7 +407,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -719,7 +719,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -737,7 +737,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/fillet.md b/docs/kcl/fillet.md index a4d353c29..06de606fe 100644 --- a/docs/kcl/fillet.md +++ b/docs/kcl/fillet.md @@ -411,7 +411,7 @@ const mountingPlate = extrude(thickness, mountingPlateSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -429,7 +429,7 @@ const mountingPlate = extrude(thickness, mountingPlateSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -815,7 +815,7 @@ const mountingPlate = extrude(thickness, mountingPlateSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -833,7 +833,7 @@ const mountingPlate = extrude(thickness, mountingPlateSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/helix.md b/docs/kcl/helix.md index dc8ebd674..e5e2758ad 100644 --- a/docs/kcl/helix.md +++ b/docs/kcl/helix.md @@ -35,7 +35,7 @@ const part001 = startSketchOn('XY') // Start angle (in degrees). angleStart: number, // Is the helix rotation counter clockwise? The default is `false`. - ccw: string, + ccw: bool, // Length of the helix. If this argument is not provided, the height of the extrude group is used. length: number, // Number of revolutions. @@ -282,7 +282,7 @@ const part001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -300,7 +300,7 @@ const part001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -677,7 +677,7 @@ const part001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -695,7 +695,7 @@ const part001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/hole.md b/docs/kcl/hole.md index 0535e10dc..51a6d79af 100644 --- a/docs/kcl/hole.md +++ b/docs/kcl/hole.md @@ -165,7 +165,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -183,7 +183,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -375,7 +375,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -393,7 +393,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -577,7 +577,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -595,7 +595,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -786,7 +786,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -804,7 +804,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -988,7 +988,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -1006,7 +1006,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -1197,7 +1197,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -1215,7 +1215,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/lastSegX.md b/docs/kcl/lastSegX.md index 5295c597d..dcf0959ac 100644 --- a/docs/kcl/lastSegX.md +++ b/docs/kcl/lastSegX.md @@ -145,7 +145,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -163,7 +163,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -354,7 +354,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -372,7 +372,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/lastSegY.md b/docs/kcl/lastSegY.md index 89925430b..d507276b0 100644 --- a/docs/kcl/lastSegY.md +++ b/docs/kcl/lastSegY.md @@ -145,7 +145,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -163,7 +163,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -354,7 +354,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -372,7 +372,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/line.md b/docs/kcl/line.md index c09b97757..a0e690b7f 100644 --- a/docs/kcl/line.md +++ b/docs/kcl/line.md @@ -158,7 +158,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -176,7 +176,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -367,7 +367,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -385,7 +385,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -578,7 +578,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -596,7 +596,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -787,7 +787,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -805,7 +805,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/lineTo.md b/docs/kcl/lineTo.md index 08fefb642..dedc14384 100644 --- a/docs/kcl/lineTo.md +++ b/docs/kcl/lineTo.md @@ -145,7 +145,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -163,7 +163,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -354,7 +354,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -372,7 +372,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -565,7 +565,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -583,7 +583,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -774,7 +774,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -792,7 +792,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/patternCircular2d.md b/docs/kcl/patternCircular2d.md index 79b469c80..626f6a528 100644 --- a/docs/kcl/patternCircular2d.md +++ b/docs/kcl/patternCircular2d.md @@ -45,7 +45,7 @@ const example = extrude(1, exampleSketch) // The number of repetitions. Must be greater than 0. This excludes the original entity. For example, if `repetitions` is 1, the original entity will be copied once. repetitions: number, // Whether or not to rotate the duplicates as they are copied. - rotateDuplicates: string, + rotateDuplicates: bool, } ``` * `sketch_group_set`: `SketchGroupSet` - A sketch group or a group of sketch groups. (REQUIRED) @@ -163,7 +163,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -181,7 +181,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -373,7 +373,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -391,7 +391,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/patternCircular3d.md b/docs/kcl/patternCircular3d.md index f95bf5262..83765e1f5 100644 --- a/docs/kcl/patternCircular3d.md +++ b/docs/kcl/patternCircular3d.md @@ -44,7 +44,7 @@ const example = extrude(-5, exampleSketch) // The number of repetitions. Must be greater than 0. This excludes the original entity. For example, if `repetitions` is 1, the original entity will be copied once. repetitions: number, // Whether or not to rotate the duplicates as they are copied. - rotateDuplicates: string, + rotateDuplicates: bool, } ``` * `extrude_group_set`: `ExtrudeGroupSet` - A extrude group or a group of extrude groups. (REQUIRED) @@ -287,7 +287,7 @@ const example = extrude(-5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -305,7 +305,7 @@ const example = extrude(-5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/patternLinear2d.md b/docs/kcl/patternLinear2d.md index e317d9f2e..313133ac7 100644 --- a/docs/kcl/patternLinear2d.md +++ b/docs/kcl/patternLinear2d.md @@ -156,7 +156,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -174,7 +174,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -366,7 +366,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -384,7 +384,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/patternLinear3d.md b/docs/kcl/patternLinear3d.md index 9981f0f0d..5fb31e5f4 100644 --- a/docs/kcl/patternLinear3d.md +++ b/docs/kcl/patternLinear3d.md @@ -285,7 +285,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -303,7 +303,7 @@ const example = extrude(1, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/patternTransform.md b/docs/kcl/patternTransform.md index cfbb5c8c2..5b3a03560 100644 --- a/docs/kcl/patternTransform.md +++ b/docs/kcl/patternTransform.md @@ -287,7 +287,7 @@ let vase = layer() } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -305,7 +305,7 @@ let vase = layer() } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/profileStart.md b/docs/kcl/profileStart.md index 4c7f3d5ee..2abd0f627 100644 --- a/docs/kcl/profileStart.md +++ b/docs/kcl/profileStart.md @@ -146,7 +146,7 @@ const sketch001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -164,7 +164,7 @@ const sketch001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -355,7 +355,7 @@ const sketch001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -373,7 +373,7 @@ const sketch001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/profileStartX.md b/docs/kcl/profileStartX.md index e52fa38e4..37067715e 100644 --- a/docs/kcl/profileStartX.md +++ b/docs/kcl/profileStartX.md @@ -141,7 +141,7 @@ const sketch001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -159,7 +159,7 @@ const sketch001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -350,7 +350,7 @@ const sketch001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -368,7 +368,7 @@ const sketch001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/profileStartY.md b/docs/kcl/profileStartY.md index b7d8f593d..1980831f6 100644 --- a/docs/kcl/profileStartY.md +++ b/docs/kcl/profileStartY.md @@ -140,7 +140,7 @@ const sketch001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -158,7 +158,7 @@ const sketch001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -349,7 +349,7 @@ const sketch001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -367,7 +367,7 @@ const sketch001 = startSketchOn('XY') } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/revolve.md b/docs/kcl/revolve.md index ccf491281..b758e91e9 100644 --- a/docs/kcl/revolve.md +++ b/docs/kcl/revolve.md @@ -384,7 +384,7 @@ uuid | } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -402,7 +402,7 @@ uuid | } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -593,7 +593,7 @@ uuid | } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -611,7 +611,7 @@ uuid | } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -920,7 +920,7 @@ uuid | } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -938,7 +938,7 @@ uuid | } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/shell.md b/docs/kcl/shell.md index b3be5a8ff..5aadc3b00 100644 --- a/docs/kcl/shell.md +++ b/docs/kcl/shell.md @@ -399,7 +399,7 @@ shell({ faces: [myTag], thickness: 0.25 }, firstSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -417,7 +417,7 @@ shell({ faces: [myTag], thickness: 0.25 }, firstSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -794,7 +794,7 @@ shell({ faces: [myTag], thickness: 0.25 }, firstSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -812,7 +812,7 @@ shell({ faces: [myTag], thickness: 0.25 }, firstSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/startProfileAt.md b/docs/kcl/startProfileAt.md index 30e9a0c00..c4f854f3f 100644 --- a/docs/kcl/startProfileAt.md +++ b/docs/kcl/startProfileAt.md @@ -224,7 +224,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -242,7 +242,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -527,7 +527,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -545,7 +545,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -736,7 +736,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -754,7 +754,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/startSketchAt.md b/docs/kcl/startSketchAt.md index 37ea51a98..2ebdd57de 100644 --- a/docs/kcl/startSketchAt.md +++ b/docs/kcl/startSketchAt.md @@ -171,7 +171,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -189,7 +189,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -380,7 +380,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -398,7 +398,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/startSketchOn.md b/docs/kcl/startSketchOn.md index b4f6335ac..3d3d94826 100644 --- a/docs/kcl/startSketchOn.md +++ b/docs/kcl/startSketchOn.md @@ -293,7 +293,7 @@ const a1 = startSketchOn({ } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -311,7 +311,7 @@ const a1 = startSketchOn({ } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -709,7 +709,7 @@ const a1 = startSketchOn({ } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -727,7 +727,7 @@ const a1 = startSketchOn({ } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/tangentialArc.md b/docs/kcl/tangentialArc.md index cceb0c74a..3afc28c41 100644 --- a/docs/kcl/tangentialArc.md +++ b/docs/kcl/tangentialArc.md @@ -155,7 +155,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -173,7 +173,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -364,7 +364,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -382,7 +382,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -575,7 +575,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -593,7 +593,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -784,7 +784,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -802,7 +802,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/tangentialArcTo.md b/docs/kcl/tangentialArcTo.md index 1b66836f9..e71cc830e 100644 --- a/docs/kcl/tangentialArcTo.md +++ b/docs/kcl/tangentialArcTo.md @@ -145,7 +145,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -163,7 +163,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -354,7 +354,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -372,7 +372,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -565,7 +565,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -583,7 +583,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -774,7 +774,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -792,7 +792,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/xLine.md b/docs/kcl/xLine.md index 756784e89..ef42d32b9 100644 --- a/docs/kcl/xLine.md +++ b/docs/kcl/xLine.md @@ -148,7 +148,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -166,7 +166,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -357,7 +357,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -375,7 +375,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -568,7 +568,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -586,7 +586,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -777,7 +777,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -795,7 +795,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/xLineTo.md b/docs/kcl/xLineTo.md index 27d975e10..9d3eb31a4 100644 --- a/docs/kcl/xLineTo.md +++ b/docs/kcl/xLineTo.md @@ -148,7 +148,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -166,7 +166,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -357,7 +357,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -375,7 +375,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -568,7 +568,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -586,7 +586,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -777,7 +777,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -795,7 +795,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/yLine.md b/docs/kcl/yLine.md index 09ade740e..dc90b095e 100644 --- a/docs/kcl/yLine.md +++ b/docs/kcl/yLine.md @@ -146,7 +146,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -164,7 +164,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -355,7 +355,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -373,7 +373,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -566,7 +566,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -584,7 +584,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -775,7 +775,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -793,7 +793,7 @@ const example = extrude(10, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/docs/kcl/yLineTo.md b/docs/kcl/yLineTo.md index f3605c6d6..4a9fd3b3a 100644 --- a/docs/kcl/yLineTo.md +++ b/docs/kcl/yLineTo.md @@ -144,7 +144,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -162,7 +162,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -353,7 +353,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -371,7 +371,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -564,7 +564,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -582,7 +582,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -773,7 +773,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. @@ -791,7 +791,7 @@ const example = extrude(5, exampleSketch) } | { // arc's direction - ccw: string, + ccw: bool, // the arc's center center: [number, number], // The from point. diff --git a/src/wasm-lib/kcl/src/docs.rs b/src/wasm-lib/kcl/src/docs.rs index 312973267..760c11f52 100644 --- a/src/wasm-lib/kcl/src/docs.rs +++ b/src/wasm-lib/kcl/src/docs.rs @@ -467,8 +467,14 @@ pub fn get_type_string_from_schema(schema: &schemars::schema::Schema) -> Result< return Ok((fn_docs, true)); } - if let Some(schemars::schema::SingleOrVec::Single(_string)) = &o.instance_type { - return Ok((Primitive::String.to_string(), false)); + if let Some(schemars::schema::SingleOrVec::Single(single)) = &o.instance_type { + if schemars::schema::InstanceType::Boolean == **single { + return Ok((Primitive::Bool.to_string(), false)); + } else if schemars::schema::InstanceType::String == **single + || schemars::schema::InstanceType::Null == **single + { + return Ok((Primitive::String.to_string(), false)); + } } if let Some(reference) = &o.reference { @@ -630,8 +636,14 @@ pub fn get_autocomplete_snippet_from_schema( return Ok(Some((index, fn_docs))); } - if let Some(schemars::schema::SingleOrVec::Single(_string)) = &o.instance_type { - return Ok(Some((index, format!(r#"${{{}:"string"}}"#, index)))); + if let Some(schemars::schema::SingleOrVec::Single(single)) = &o.instance_type { + if schemars::schema::InstanceType::Boolean == **single { + return Ok(Some((index, format!(r#"${{{}:false}}"#, index)))); + } else if schemars::schema::InstanceType::String == **single { + return Ok(Some((index, format!(r#"${{{}:"string"}}"#, index)))); + } else if schemars::schema::InstanceType::Null == **single { + return Ok(None); + } } anyhow::bail!("unknown type: {:#?}", o) @@ -764,8 +776,14 @@ pub fn get_autocomplete_string_from_schema(schema: &schemars::schema::Schema) -> return Ok(fn_docs); } - if let Some(schemars::schema::SingleOrVec::Single(_string)) = &o.instance_type { - return Ok(Primitive::String.to_string()); + if let Some(schemars::schema::SingleOrVec::Single(single)) = &o.instance_type { + if schemars::schema::InstanceType::Boolean == **single { + return Ok(Primitive::Bool.to_string()); + } else if schemars::schema::InstanceType::String == **single + || schemars::schema::InstanceType::Null == **single + { + return Ok(Primitive::String.to_string()); + } } anyhow::bail!("unknown type: {:#?}", o) @@ -898,7 +916,7 @@ mod tests { axis: [${1:3.14}, ${2:3.14}, ${3:3.14}], center: [${2:3.14}, ${3:3.14}, ${4:3.14}], repetitions: ${3:10}, - rotateDuplicates: ${4:"string"}, + rotateDuplicates: ${4:false}, }, ${5:%})${}"# ); }