* Show more info on hover for variables Signed-off-by: Nick Cameron <nrc@ncameron.org> * Move hover impls to lsp module Signed-off-by: Nick Cameron <nrc@ncameron.org> * Make hover work on names inside calls, fix doc line breaking, trim docs in tool tips Signed-off-by: Nick Cameron <nrc@ncameron.org> * Test the new hovers; fix signature syntax Signed-off-by: Nick Cameron <nrc@ncameron.org> * Hover tips for kwargs Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
76 KiB
76 KiB
title, excerpt, layout
| title | excerpt | layout |
|---|---|---|
| angledLineToY | 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. | manual |
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.
angledLineToY(
data: AngledLineToData,
sketch: Sketch,
tag?: TagDeclarator,
): Sketch
Arguments
| Name | Type | Description | Required |
|---|---|---|---|
data |
AngledLineToData |
Data to draw an angled line to a point. | Yes |
sketch |
Sketch |
A sketch is a collection of paths. | Yes |
tag |
TagDeclarator |
No |
Returns
Sketch - A sketch is a collection of paths.
Examples
exampleSketch = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> angledLineToY({ angle = 60, to = 20 }, %)
|> line(end = [-20, 0])
|> angledLineToY({ angle = 70, to = 10 }, %)
|> close()
example = extrude(exampleSketch, length = 10)