Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KCL: Change core sketch functions to use keyword args #4826

Open
wants to merge 74 commits into
base: main
Choose a base branch
from

Conversation

adamchalmers
Copy link
Collaborator

@adamchalmers adamchalmers commented Dec 17, 2024

Changes to KCL stdlib:

  • line(point, sketch, tag) and lineTo(point, sketch, tag) are combined into line(@sketch, end?, endAbsolute?, tag?)
  • close(sketch, tag?) is now close(@sketch, tag?)
  • extrude(length, sketch) is now extrude(@sketch, length)
  • Update all the docs everywhere

Part of #4600

Also changes frontend tests to use KittyCAD/kcl-samples#139 instead of its main

@adamchalmers adamchalmers requested review from jtran and nrc December 17, 2024 01:44
Copy link

qa-wolf bot commented Dec 17, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Jan 21, 2025 11:22pm

@jtran
Copy link
Collaborator

jtran commented Dec 17, 2024

I skimmed this and it looks great so far.

Does it maintain backward compatibility? If not, the UI needs to generate the new code.

@adamchalmers adamchalmers force-pushed the achalmers/kw-fn-sketches branch from 962de70 to 9e4b48e Compare January 17, 2025 21:59
Copy link
Contributor

src/lib/exampleKcl.ts has been updated in this PR, please review and update the src/routes/onboarding, if needed.

Signed-off-by: Nick Cameron <nrc@ncameron.org>
adamchalmers and others added 3 commits January 21, 2025 16:55
Signed-off-by: Nick Cameron <nrc@ncameron.org>
Signed-off-by: Nick Cameron <nrc@ncameron.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants