graphite fixes

This commit is contained in:
benjamaan476
2025-07-03 17:22:59 +01:00
parent dbed075648
commit fb36c1703a
2 changed files with 6 additions and 5 deletions

View File

@ -1825,8 +1825,8 @@ async fn inner_elliptic_point(
Err(KclError::Type {
details: KclErrorDetails::new(
format!(
"Invalid input. The y value, {}, cannot be larger than the major radius {}.",
y.n, major_radius
"Invalid input. The y value, {}, cannot be larger than the minor radius {}.",
y.n, minor_radius
)
.to_owned(),
vec![args.source_range],
@ -2416,7 +2416,8 @@ pub(crate) async fn inner_conic(
{
return Err(KclError::Type {
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],
),
});

View File

@ -2026,13 +2026,13 @@ export fn conic(
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`.
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,
/// Create a new tag which refers to this segment.
tag?: tag,
): Sketch {}
/// Add a parabolic segment to an existing skwtch.
/// Add a parabolic segment to an existing sketch.
///
/// ```kcl
/// exampleSketch = startSketchOn(XY)