Skip to content

Commit

Permalink
Improve hover tool tips and function docs (#5538)
Browse files Browse the repository at this point in the history
* Improve hover tool tips and function docs

Signed-off-by: Nick Cameron <[email protected]>

* A snapshot a day keeps the bugs away! πŸ“·πŸ› (OS: namespace-profile-ubuntu-8-cores)

* A snapshot a day keeps the bugs away! πŸ“·πŸ› (OS: namespace-profile-ubuntu-8-cores)

---------

Signed-off-by: Nick Cameron <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
nrc and github-actions[bot] authored Feb 27, 2025
1 parent 2efea3e commit 1104d90
Show file tree
Hide file tree
Showing 71 changed files with 389 additions and 87 deletions.
6 changes: 5 additions & 1 deletion docs/kcl/angleToMatchLengthX.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Returns the angle to match the given length for x.


```js
angleToMatchLengthX(tag: TagIdentifier, to: number, sketch: Sketch) -> number
angleToMatchLengthX(
tag: TagIdentifier,
to: number,
sketch: Sketch,
) -> number
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/angleToMatchLengthY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Returns the angle to match the given length for y.


```js
angleToMatchLengthY(tag: TagIdentifier, to: number, sketch: Sketch) -> number
angleToMatchLengthY(
tag: TagIdentifier,
to: number,
sketch: Sketch,
) -> number
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/angledLine.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Draw a line segment relative to the current origin using the polar
measure of some angle and distance.

```js
angledLine(data: AngledLineData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
angledLine(
data: AngledLineData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/angledLineOfXLength.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Create a line segment from the current 2-dimensional sketch origin
along some angle (in degrees) for some relative length in the 'x' dimension.

```js
angledLineOfXLength(data: AngledLineData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
angledLineOfXLength(
data: AngledLineData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/angledLineOfYLength.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Create a line segment from the current 2-dimensional sketch origin
along some angle (in degrees) for some relative length in the 'y' dimension.

```js
angledLineOfYLength(data: AngledLineData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
angledLineOfYLength(
data: AngledLineData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/angledLineThatIntersects.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Draw an angled line from the current origin, constructing a line segment
such that the newly created line intersects the desired target line segment.

```js
angledLineThatIntersects(data: AngledLineThatIntersectsData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
angledLineThatIntersects(
data: AngledLineThatIntersectsData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/angledLineToX.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Create a line segment from the current 2-dimensional sketch origin
along some angle (in degrees) for some length, ending at the provided value in the 'x' dimension.

```js
angledLineToX(data: AngledLineToData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
angledLineToX(
data: AngledLineToData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/angledLineToY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Create a line segment from the current 2-dimensional sketch origin
along some angle (in degrees) for some length, ending at the provided value in the 'y' dimension.

```js
angledLineToY(data: AngledLineToData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
angledLineToY(
data: AngledLineToData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand Down
7 changes: 6 additions & 1 deletion docs/kcl/appearance.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ Set the appearance of a solid. This only works on solids, not sketches or indivi
This will work on any solid, including extruded solids, revolved solids, and shelled solids.

```js
appearance(solidSet: SolidSet, color: String, metalness?: number, roughness?: number) -> SolidSet
appearance(
solidSet: SolidSet,
color: String,
metalness?: number,
roughness?: number,
) -> SolidSet
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/arc.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ The arc is constructed such that the current position of the sketch is placed al
Unless this makes a lot of sense and feels like what you're looking for to construct your shape, you're likely looking for tangentialArc.

```js
arc(data: ArcData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
arc(
data: ArcData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/arcTo.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Draw a 3 point arc.
The arc is constructed such that the start point is the current position of the sketch and two more points defined as the end and interior point. The interior point is placed between the start point and end point. The radius of the arc will be controlled by how far the interior point is placed from the start and end.

```js
arcTo(data: ArcToData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
arcTo(
data: ArcToData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand Down
5 changes: 4 additions & 1 deletion docs/kcl/assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Check a value at runtime, and raise an error if the argument provided
is false.

```js
assert(data: bool, message: string) -> ()
assert(
data: bool,
message: string,
) -> ()
```


Expand Down
7 changes: 6 additions & 1 deletion docs/kcl/assertEqual.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ Check that a numerical value equals another at runtime,
otherwise raise an error.

```js
assertEqual(left: number, right: number, epsilon: number, message: string) -> ()
assertEqual(
left: number,
right: number,
epsilon: number,
message: string,
) -> ()
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/assertGreaterThan.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Check that a numerical value is greater than another at runtime,
otherwise raise an error.

```js
assertGreaterThan(left: number, right: number, message: string) -> ()
assertGreaterThan(
left: number,
right: number,
message: string,
) -> ()
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/assertGreaterThanOrEq.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Check that a numerical value is greater than or equal to another at runtime,
otherwise raise an error.

```js
assertGreaterThanOrEq(left: number, right: number, message: string) -> ()
assertGreaterThanOrEq(
left: number,
right: number,
message: string,
) -> ()
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/assertLessThan.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Check that a numerical value is less than to another at runtime,
otherwise raise an error.

```js
assertLessThan(left: number, right: number, message: string) -> ()
assertLessThan(
left: number,
right: number,
message: string,
) -> ()
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/assertLessThanOrEq.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Check that a numerical value is less than or equal to another at runtime,
otherwise raise an error.

```js
assertLessThanOrEq(left: number, right: number, message: string) -> ()
assertLessThanOrEq(
left: number,
right: number,
message: string,
) -> ()
```


Expand Down
5 changes: 4 additions & 1 deletion docs/kcl/atan2.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Compute the four quadrant arctangent of Y and X (in radians).


```js
atan2(y: number, x: number) -> number
atan2(
y: number,
x: number,
) -> number
```

### Tags
Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/bezierCurve.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Draw a smooth, continuous, curved line segment from the current origin to
the desired (x, y), using a number of control points to shape the curve's shape.

```js
bezierCurve(data: BezierData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
bezierCurve(
data: BezierData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand Down
7 changes: 6 additions & 1 deletion docs/kcl/chamfer.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ Cut a straight transitional edge along a tagged path.
Chamfer is similar in function and use to a fillet, except a fillet will blend the transition along an edge, rather than cut a sharp, straight transitional edge.

```js
chamfer(solid: Solid, length: number, tags: [EdgeReference], tag?: TagDeclarator) -> Solid
chamfer(
solid: Solid,
length: number,
tags: [EdgeReference],
tag?: TagDeclarator,
) -> Solid
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/circle.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Construct a 2-dimensional circle, of the specified radius, centered at
the provided (x, y) origin point.

```js
circle(data: CircleData, sketchSurfaceOrGroup: SketchOrSurface, tag?: TagDeclarator) -> Sketch
circle(
data: CircleData,
sketchSurfaceOrGroup: SketchOrSurface,
tag?: TagDeclarator,
) -> Sketch
```


Expand Down
8 changes: 7 additions & 1 deletion docs/kcl/circleThreePoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ Construct a circle derived from 3 points.


```js
circleThreePoint(p1: [number], p2: [number], p3: [number], sketchSurfaceOrGroup: SketchOrSurface, tag?: TagDeclarator) -> Sketch
circleThreePoint(
p1: [number],
p2: [number],
p3: [number],
sketchSurfaceOrGroup: SketchOrSurface,
tag?: TagDeclarator,
) -> Sketch
```


Expand Down
5 changes: 4 additions & 1 deletion docs/kcl/close.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Construct a line segment from the current origin back to the profile's
origin, ensuring the resulting 2-dimensional sketch is not open-ended.

```js
close(sketch: Sketch, tag?: TagDeclarator) -> Sketch
close(
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand Down
5 changes: 4 additions & 1 deletion docs/kcl/extrude.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Extend a 2-dimensional sketch through a third dimension in order to
create new 3-dimensional volume, or if extruded into an existing volume, cut into an existing solid.

```js
extrude(sketchSet: SketchSet, length: number) -> SolidSet
extrude(
sketchSet: SketchSet,
length: number,
) -> SolidSet
```


Expand Down
8 changes: 7 additions & 1 deletion docs/kcl/fillet.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ Blend a transitional edge along a tagged path, smoothing the sharp edge.
Fillet is similar in function and use to a chamfer, except a chamfer will cut a sharp transition along an edge while fillet will smoothly blend the transition.

```js
fillet(solid: Solid, radius: number, tags: [EdgeReference], tolerance?: number, tag?: TagDeclarator) -> Solid
fillet(
solid: Solid,
radius: number,
tags: [EdgeReference],
tolerance?: number,
tag?: TagDeclarator,
) -> Solid
```


Expand Down
9 changes: 8 additions & 1 deletion docs/kcl/helix.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ Create a helix.


```js
helix(revolutions: number, angleStart: number, ccw?: bool, radius: number, axis: Axis3dOrEdgeReference, length?: number) -> HelixValue
helix(
revolutions: number,
angleStart: number,
ccw?: bool,
radius: number,
axis: Axis3dOrEdgeReference,
length?: number,
) -> HelixValue
```


Expand Down
5 changes: 4 additions & 1 deletion docs/kcl/helixRevolutions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Create a helix on a cylinder.


```js
helixRevolutions(data: HelixRevolutionsData, solid: Solid) -> Solid
helixRevolutions(
data: HelixRevolutionsData,
solid: Solid,
) -> Solid
```


Expand Down
5 changes: 4 additions & 1 deletion docs/kcl/hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Use a 2-dimensional sketch to cut a hole in another 2-dimensional sketch.


```js
hole(holeSketch: SketchSet, sketch: Sketch) -> Sketch
hole(
holeSketch: SketchSet,
sketch: Sketch,
) -> Sketch
```


Expand Down
5 changes: 4 additions & 1 deletion docs/kcl/hollow.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Make the inside of a 3D object hollow.
Remove volume from a 3-dimensional shape such that a wall of the provided thickness remains around the exterior of the shape.

```js
hollow(thickness: number, solid: Solid) -> Solid
hollow(
thickness: number,
solid: Solid,
) -> Solid
```


Expand Down
5 changes: 4 additions & 1 deletion docs/kcl/import.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ For formats lacking unit data (such as STL, OBJ, or PLY files), the default unit
Note: The import command currently only works when using the native Modeling App.

```js
import(filePath: String, options?: ImportFormat) -> ImportedGeometry
import(
filePath: String,
options?: ImportFormat,
) -> ImportedGeometry
```


Expand Down
Loading

0 comments on commit 1104d90

Please sign in to comment.