graphite fixes
This commit is contained in:
@ -1825,8 +1825,8 @@ async fn inner_elliptic_point(
|
|||||||
Err(KclError::Type {
|
Err(KclError::Type {
|
||||||
details: KclErrorDetails::new(
|
details: KclErrorDetails::new(
|
||||||
format!(
|
format!(
|
||||||
"Invalid input. The y value, {}, cannot be larger than the major radius {}.",
|
"Invalid input. The y value, {}, cannot be larger than the minor radius {}.",
|
||||||
y.n, major_radius
|
y.n, minor_radius
|
||||||
)
|
)
|
||||||
.to_owned(),
|
.to_owned(),
|
||||||
vec![args.source_range],
|
vec![args.source_range],
|
||||||
@ -2416,7 +2416,8 @@ pub(crate) async fn inner_conic(
|
|||||||
{
|
{
|
||||||
return Err(KclError::Type {
|
return Err(KclError::Type {
|
||||||
details: KclErrorDetails::new(
|
details: KclErrorDetails::new(
|
||||||
"Invalid combination of arguments. Either provide coefficients or (startTangent, endTangent)".to_owned(),
|
"Invalid combination of arguments. Either provide coefficients or (startTangent, endTangent)"
|
||||||
|
.to_owned(),
|
||||||
vec![args.source_range],
|
vec![args.source_range],
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|||||||
@ -2026,13 +2026,13 @@ export fn conic(
|
|||||||
coefficients?: [number; 6],
|
coefficients?: [number; 6],
|
||||||
/// The tangent of the conic section at the start. If not provided the tangent of the previous path segment is used. Incompatible with `coefficients`.
|
/// The tangent of the conic section at the start. If not provided the tangent of the previous path segment is used. Incompatible with `coefficients`.
|
||||||
startTangent?: Point2d,
|
startTangent?: Point2d,
|
||||||
/// The tangent of the conic section at the end. Incompatible with `coefficients`. Incompatible with `coefficients`.
|
/// The tangent of the conic section at the end. Incompatible with `coefficients`.
|
||||||
endTangent?: Point2d,
|
endTangent?: Point2d,
|
||||||
/// Create a new tag which refers to this segment.
|
/// Create a new tag which refers to this segment.
|
||||||
tag?: tag,
|
tag?: tag,
|
||||||
): Sketch {}
|
): Sketch {}
|
||||||
|
|
||||||
/// Add a parabolic segment to an existing skwtch.
|
/// Add a parabolic segment to an existing sketch.
|
||||||
///
|
///
|
||||||
/// ```kcl
|
/// ```kcl
|
||||||
/// exampleSketch = startSketchOn(XY)
|
/// exampleSketch = startSketchOn(XY)
|
||||||
|
|||||||
Reference in New Issue
Block a user