Skip to content

Commit

Permalink
Merge branch 'main' into theme-not-persist
Browse files Browse the repository at this point in the history
  • Loading branch information
Irev-Dev authored Aug 7, 2024
2 parents eb6df02 + e1c45bd commit 311c247
Show file tree
Hide file tree
Showing 114 changed files with 959 additions and 433 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,20 @@ jobs:
- run: yarn build:wasm

- run: yarn simpleserver:ci
if: ${{ github.event_name != 'release' && github.event_name != 'schedule' }}

- name: Install Chromium Browser
if: ${{ github.event_name != 'release' && github.event_name != 'schedule' }}
run: yarn playwright install chromium --with-deps

- name: run unit tests
if: ${{ github.event_name != 'release' && github.event_name != 'schedule' }}
run: yarn test:nowatch
env:
VITE_KC_DEV_TOKEN: ${{ secrets.KITTYCAD_API_TOKEN_DEV }}

- name: check for changes
if: ${{ github.event_name != 'release' && github.event_name != 'schedule' }}
id: git-check
run: |
git add src/lang/std/artifactMapGraphs
Expand All @@ -107,7 +111,7 @@ jobs:
else echo "modified=false" >> $GITHUB_OUTPUT
fi
- name: Commit changes, if any
if: steps.git-check.outputs.modified == 'true'
if: ${{ github.event_name != 'release' && github.event_name != 'schedule' && steps.git-check.outputs.modified == 'true' }}
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
Expand Down Expand Up @@ -531,21 +535,21 @@ jobs:
project_id: kittycadapi

- name: Upload release files to public bucket
uses: google-github-actions/upload-cloud-storage@v2.1.0
uses: google-github-actions/upload-cloud-storage@v2.1.1
with:
path: artifact
glob: '*/Zoo*'
parent: false
destination: ${{ env.BUCKET_DIR }}/${{ env.VERSION }}

- name: Upload update endpoint to public bucket
uses: google-github-actions/upload-cloud-storage@v2.1.0
uses: google-github-actions/upload-cloud-storage@v2.1.1
with:
path: last_update.json
destination: ${{ env.BUCKET_DIR }}

- name: Upload download endpoint to public bucket
uses: google-github-actions/upload-cloud-storage@v2.1.0
uses: google-github-actions/upload-cloud-storage@v2.1.1
with:
path: last_download.json
destination: ${{ env.BUCKET_DIR }}
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ Note that these became separate apps on Macos, so make sure you open the right o

<img width="1232" alt="image (1)" src="https://user-images.githubusercontent.com/29681384/211947073-e76b4933-bef5-4636-bc4d-e930ac8e290f.png">

## Checking out commits / Bisecting

Which commands from setup are one off vs need to be run every time?

The following will need to be run when checking out a new commit and guarantees the build is not stale:
```bash
yarn install
yarn build:wasm-dev # or yarn build:wasm for slower but more production-like build
yarn start # or yarn build:local && yarn serve for slower but more production-like build
```

## Before submitting a PR

Before you submit a contribution PR to this repo, please ensure that:
Expand Down
4 changes: 2 additions & 2 deletions docs/kcl/abs.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "abs"
excerpt: "Computes the absolute value of a number."
excerpt: "Compute the absolute value of a number."
layout: manual
---

Computes the absolute value of a number.
Compute the absolute value of a number.



Expand Down
4 changes: 2 additions & 2 deletions docs/kcl/acos.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "acos"
excerpt: "Computes the arccosine of a number (in radians)."
excerpt: "Compute the arccosine of a number (in radians)."
layout: manual
---

Computes the arccosine of a number (in radians).
Compute the arccosine of a number (in radians).



Expand Down
4 changes: 2 additions & 2 deletions docs/kcl/angleToMatchLengthX.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "angleToMatchLengthX"
excerpt: "Returns the angle to match the given length for x."
excerpt: "Compute the angle (in degrees) in o"
layout: manual
---

Returns the angle to match the given length for x.
Compute the angle (in degrees) in o



Expand Down
6 changes: 3 additions & 3 deletions docs/kcl/angledLine.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "angledLine"
excerpt: "Draw an angled line."
excerpt: "Draw a line segment relative to the current origin using the polar"
layout: manual
---

Draw an angled line.

Draw a line segment relative to the current origin using the polar

measure of some angle and distance.

```js
angledLine(data: AngledLineData, sketch_group: SketchGroup, tag?: TagDeclarator) -> SketchGroup
Expand Down
6 changes: 3 additions & 3 deletions docs/kcl/angledLineOfXLength.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "angledLineOfXLength"
excerpt: "Draw an angled line of a given x length."
excerpt: "Create a line segment from the current 2-dimensional sketch origin"
layout: manual
---

Draw an angled line of a given x length.

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_group: SketchGroup, tag?: TagDeclarator) -> SketchGroup
Expand Down
6 changes: 3 additions & 3 deletions docs/kcl/angledLineOfYLength.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "angledLineOfYLength"
excerpt: "Draw an angled line of a given y length."
excerpt: "Create a line segment from the current 2-dimensional sketch origin"
layout: manual
---

Draw an angled line of a given y length.

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_group: SketchGroup, tag?: TagDeclarator) -> SketchGroup
Expand Down
6 changes: 3 additions & 3 deletions docs/kcl/angledLineThatIntersects.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "angledLineThatIntersects"
excerpt: "Draw an angled line that intersects with a given line."
excerpt: "Draw an angled line from the current origin, constructing a line segment"
layout: manual
---

Draw an angled line that intersects with a given line.

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_group: SketchGroup, tag?: TagDeclarator) -> SketchGroup
Expand Down
6 changes: 3 additions & 3 deletions docs/kcl/angledLineToX.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "angledLineToX"
excerpt: "Draw an angled line to a given x coordinate."
excerpt: "Create a line segment from the current 2-dimensional sketch origin"
layout: manual
---

Draw an angled line to a given x coordinate.

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_group: SketchGroup, tag?: TagDeclarator) -> SketchGroup
Expand Down
6 changes: 3 additions & 3 deletions docs/kcl/angledLineToY.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "angledLineToY"
excerpt: "Draw an angled line to a given y coordinate."
excerpt: "Create a line segment from the current 2-dimensional sketch origin"
layout: manual
---

Draw an angled line to a given y coordinate.

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_group: SketchGroup, tag?: TagDeclarator) -> SketchGroup
Expand Down
8 changes: 5 additions & 3 deletions docs/kcl/arc.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
---
title: "arc"
excerpt: "Draw an arc."
excerpt: "Starting at the current sketch's origin, draw a curved line segment along"
layout: manual
---

Draw an arc.

Starting at the current sketch's origin, draw a curved line segment along

an imaginary circle of the specified radius.
The arc is constructed such that the current position of the sketch is placed along an imaginary circle of the specified radius, at angleStart degrees. The resulting arc is the segment of the imaginary circle from that origin point to angleEnd, radius away from the center of the imaginary circle.
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_group: SketchGroup, tag?: TagDeclarator) -> SketchGroup
Expand Down
4 changes: 2 additions & 2 deletions docs/kcl/asin.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "asin"
excerpt: "Computes the arcsine of a number (in radians)."
excerpt: "Compute the arcsine of a number (in radians)."
layout: manual
---

Computes the arcsine of a number (in radians).
Compute the arcsine of a number (in radians).



Expand Down
37 changes: 37 additions & 0 deletions docs/kcl/assertEqual.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/kcl/atan.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "atan"
excerpt: "Computes the arctangent of a number (in radians)."
excerpt: "Compute the arctangent of a number (in radians)."
layout: manual
---

Computes the arctangent of a number (in radians).
Compute the arctangent of a number (in radians).



Expand Down
6 changes: 3 additions & 3 deletions docs/kcl/bezierCurve.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "bezierCurve"
excerpt: "Draw a bezier curve."
excerpt: "Draw a smooth, continuous, curved line segment from the current origin to"
layout: manual
---

Draw a bezier curve.

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_group: SketchGroup, tag?: TagDeclarator) -> SketchGroup
Expand Down
4 changes: 2 additions & 2 deletions docs/kcl/ceil.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "ceil"
excerpt: "Computes the smallest integer greater than or equal to a number."
excerpt: "Compute the smallest integer greater than or equal to a number."
layout: manual
---

Computes the smallest integer greater than or equal to a number.
Compute the smallest integer greater than or equal to a number.



Expand Down
6 changes: 3 additions & 3 deletions docs/kcl/chamfer.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "chamfer"
excerpt: "Create chamfers on tagged paths."
excerpt: "Cut a straight transitional edge along a tagged path."
layout: manual
---

Create chamfers on tagged paths.

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(data: ChamferData, extrude_group: ExtrudeGroup, tag?: TagDeclarator) -> ExtrudeGroup
Expand Down
6 changes: 3 additions & 3 deletions docs/kcl/circle.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "circle"
excerpt: "Sketch a circle."
excerpt: "Construct a 2-dimensional circle, of the specified radius, centered at"
layout: manual
---

Sketch a circle.

Construct a 2-dimensional circle, of the specified radius, centered at

the provided (x, y) origin point.

```js
circle(center: [number], radius: number, sketch_surface_or_group: SketchSurfaceOrGroup, tag?: TagDeclarator) -> SketchGroup
Expand Down
6 changes: 3 additions & 3 deletions docs/kcl/close.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "close"
excerpt: "Close the current sketch."
excerpt: "Construct a line segment from the current origin back to the profile's"
layout: manual
---

Close the current sketch.

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_group: SketchGroup, tag?: TagDeclarator) -> SketchGroup
Expand Down
4 changes: 2 additions & 2 deletions docs/kcl/cos.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "cos"
excerpt: "Computes the cosine of a number (in radians)."
excerpt: "Compute the cosine of a number (in radians)."
layout: manual
---

Computes the cosine of a number (in radians).
Compute the cosine of a number (in radians).



Expand Down
6 changes: 3 additions & 3 deletions docs/kcl/extrude.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "extrude"
excerpt: "Extrudes by a given amount."
excerpt: "Extend a 2-dimensional sketch through a third dimension in order to"
layout: manual
---

Extrudes by a given amount.

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(length: number, sketch_group_set: SketchGroupSet) -> ExtrudeGroupSet
Expand Down
6 changes: 3 additions & 3 deletions docs/kcl/fillet.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "fillet"
excerpt: "Create fillets on tagged paths."
excerpt: "Blend a transitional edge along a tagged path, smoothing the sharp edge."
layout: manual
---

Create fillets on tagged paths.

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(data: FilletData, extrude_group: ExtrudeGroup, tag?: TagDeclarator) -> ExtrudeGroup
Expand Down
4 changes: 2 additions & 2 deletions docs/kcl/floor.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "floor"
excerpt: "Computes the largest integer less than or equal to a number."
excerpt: "Compute the largest integer less than or equal to a number."
layout: manual
---

Computes the largest integer less than or equal to a number.
Compute the largest integer less than or equal to a number.



Expand Down
4 changes: 2 additions & 2 deletions docs/kcl/hole.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "hole"
excerpt: "Use a sketch to cut a hole in another sketch."
excerpt: "Use a 2-dimensional sketch to cut a hole in another 2-dimensional sketch."
layout: manual
---

Use a sketch to cut a hole in another sketch.
Use a 2-dimensional sketch to cut a hole in another 2-dimensional sketch.



Expand Down
Loading

0 comments on commit 311c247

Please sign in to comment.