Skip to content

Commit

Permalink
Merge branch 'main' into lf94/hidpi-hovering-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pierremtb authored Feb 27, 2025
2 parents 1016f96 + da236d9 commit d20bd26
Show file tree
Hide file tree
Showing 229 changed files with 59,819 additions and 27,241 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
src/wasm-lib/*
*.typegen.ts
packages/codemirror-lsp-client/dist/*
e2e/playwright/snapshots/prompt-to-edit/*
8 changes: 4 additions & 4 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
# TODO: break this in its own job, for now it's not slowing down the overall execution as ubuntu is the quickest,
# but we could do better. This forces a large 1/1 shard of all 20 snapshot tests that runs in about 3 minutes.
run: |
PLATFORM=web yarn playwright test --config=playwright.config.ts --retries="3" --update-snapshots --grep=@snapshot --shard=1/1
PLATFORM=web yarn playwright test --config=playwright.config.ts --retries="3" --update-snapshots --grep=@snapshot --trace=on --shard=1/1
env:
CI: true
NODE_ENV: development
Expand All @@ -153,7 +153,7 @@ jobs:
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() && (success() || failure()) }}
with:
name: playwright-report-${{ matrix.os }}-snapshot-${{ matrix.shardIndex }}-${{ github.sha }}
name: playwright-report-snapshots-${{ matrix.os }}-snapshot-${{ matrix.shardIndex }}-${{ github.sha }}
path: playwright-report/
include-hidden-files: true
retention-days: 30
Expand All @@ -167,7 +167,7 @@ jobs:
shell: bash
id: git-check
run: |
git add e2e/playwright/snapshot-tests.spec.ts-snapshots
git add e2e/playwright/snapshot-tests.spec.ts-snapshots e2e/playwright/snapshots
if git status | grep -q "Changes to be committed"
then echo "modified=true" >> $GITHUB_OUTPUT
else echo "modified=false" >> $GITHUB_OUTPUT
Expand All @@ -176,7 +176,7 @@ jobs:
if: steps.git-check.outputs.modified == 'true'
shell: bash
run: |
git add e2e/playwright/snapshot-tests.spec.ts-snapshots
git add e2e/playwright/snapshot-tests.spec.ts-snapshots e2e/playwright/snapshots
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ venv

# electron
out/
*.snap.new
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ target
src/wasm-lib/pkg
src/wasm-lib/kcl/bindings
e2e/playwright/export-snapshots
e2e/playwright/snapshots/prompt-to-edit


# XState generated files
Expand Down
15 changes: 0 additions & 15 deletions docs/kcl/QUARTER_TURN.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/kcl/THREE_QUARTER_TURN.md

This file was deleted.

6 changes: 5 additions & 1 deletion docs/kcl/angleToMatchLengthX.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Returns the angle to match the given length for x.


```js
angleToMatchLengthX(tag: TagIdentifier, to: number, sketch: Sketch) -> number
angleToMatchLengthX(
tag: TagIdentifier,
to: number,
sketch: Sketch,
) -> number
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/angleToMatchLengthY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Returns the angle to match the given length for y.


```js
angleToMatchLengthY(tag: TagIdentifier, to: number, sketch: Sketch) -> number
angleToMatchLengthY(
tag: TagIdentifier,
to: number,
sketch: Sketch,
) -> number
```


Expand Down
8 changes: 6 additions & 2 deletions docs/kcl/angledLine.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Draw a line segment relative to the current origin using the polar
measure of some angle and distance.

```js
angledLine(data: AngledLineData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
angledLine(
data: AngledLineData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand All @@ -29,7 +33,7 @@ angledLine(data: AngledLineData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
### Examples

```js
exampleSketch = startSketchOn('XZ')
exampleSketch = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> yLineTo(15, %)
|> angledLine({ angle = 30, length = 15 }, %)
Expand Down
8 changes: 6 additions & 2 deletions docs/kcl/angledLineOfXLength.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ 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: Sketch, tag?: TagDeclarator) -> Sketch
angledLineOfXLength(
data: AngledLineData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand All @@ -29,7 +33,7 @@ angledLineOfXLength(data: AngledLineData, sketch: Sketch, tag?: TagDeclarator) -
### Examples

```js
sketch001 = startSketchOn('XZ')
sketch001 = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> angledLineOfXLength({ angle = 45, length = 10 }, %, $edge1)
|> angledLineOfXLength({ angle = -15, length = 20 }, %, $edge2)
Expand Down
8 changes: 6 additions & 2 deletions docs/kcl/angledLineOfYLength.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ 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: Sketch, tag?: TagDeclarator) -> Sketch
angledLineOfYLength(
data: AngledLineData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand All @@ -29,7 +33,7 @@ angledLineOfYLength(data: AngledLineData, sketch: Sketch, tag?: TagDeclarator) -
### Examples

```js
exampleSketch = startSketchOn('XZ')
exampleSketch = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> line(end = [10, 0])
|> angledLineOfYLength({ angle = 45, length = 10 }, %)
Expand Down
8 changes: 6 additions & 2 deletions docs/kcl/angledLineThatIntersects.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ 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: Sketch, tag?: TagDeclarator) -> Sketch
angledLineThatIntersects(
data: AngledLineThatIntersectsData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand All @@ -29,7 +33,7 @@ angledLineThatIntersects(data: AngledLineThatIntersectsData, sketch: Sketch, tag
### Examples

```js
exampleSketch = startSketchOn('XZ')
exampleSketch = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> line(endAbsolute = [5, 10])
|> line(endAbsolute = [-10, 10], tag = $lineToIntersect)
Expand Down
8 changes: 6 additions & 2 deletions docs/kcl/angledLineToX.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ 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: Sketch, tag?: TagDeclarator) -> Sketch
angledLineToX(
data: AngledLineToData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand All @@ -29,7 +33,7 @@ angledLineToX(data: AngledLineToData, sketch: Sketch, tag?: TagDeclarator) -> Sk
### Examples

```js
exampleSketch = startSketchOn('XZ')
exampleSketch = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> angledLineToX({ angle = 30, to = 10 }, %)
|> line(end = [0, 10])
Expand Down
8 changes: 6 additions & 2 deletions docs/kcl/angledLineToY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ 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: Sketch, tag?: TagDeclarator) -> Sketch
angledLineToY(
data: AngledLineToData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand All @@ -29,7 +33,7 @@ angledLineToY(data: AngledLineToData, sketch: Sketch, tag?: TagDeclarator) -> Sk
### Examples

```js
exampleSketch = startSketchOn('XZ')
exampleSketch = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> angledLineToY({ angle = 60, to = 20 }, %)
|> line(end = [-20, 0])
Expand Down
9 changes: 7 additions & 2 deletions docs/kcl/appearance.md

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions docs/kcl/arc.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ The arc is constructed such that the current position of the sketch is placed al
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: Sketch, tag?: TagDeclarator) -> Sketch
arc(
data: ArcData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand All @@ -31,7 +35,7 @@ arc(data: ArcData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
### Examples

```js
exampleSketch = startSketchOn('XZ')
exampleSketch = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> line(end = [10, 0])
|> arc({
Expand Down
8 changes: 6 additions & 2 deletions docs/kcl/arcTo.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Draw a 3 point arc.
The arc is constructed such that the start point is the current position of the sketch and two more points defined as the end and interior point. The interior point is placed between the start point and end point. The radius of the arc will be controlled by how far the interior point is placed from the start and end.

```js
arcTo(data: ArcToData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
arcTo(
data: ArcToData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand All @@ -29,7 +33,7 @@ arcTo(data: ArcToData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
### Examples

```js
exampleSketch = startSketchOn('XZ')
exampleSketch = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> arcTo({ end = [10, 0], interior = [5, 5] }, %)
|> close()
Expand Down
5 changes: 4 additions & 1 deletion docs/kcl/assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Check a value at runtime, and raise an error if the argument provided
is false.

```js
assert(data: bool, message: string) -> ()
assert(
data: bool,
message: string,
) -> ()
```


Expand Down
7 changes: 6 additions & 1 deletion docs/kcl/assertEqual.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ Check that a numerical value equals another at runtime,
otherwise raise an error.

```js
assertEqual(left: number, right: number, epsilon: number, message: string) -> ()
assertEqual(
left: number,
right: number,
epsilon: number,
message: string,
) -> ()
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/assertGreaterThan.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Check that a numerical value is greater than another at runtime,
otherwise raise an error.

```js
assertGreaterThan(left: number, right: number, message: string) -> ()
assertGreaterThan(
left: number,
right: number,
message: string,
) -> ()
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/assertGreaterThanOrEq.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Check that a numerical value is greater than or equal to another at runtime,
otherwise raise an error.

```js
assertGreaterThanOrEq(left: number, right: number, message: string) -> ()
assertGreaterThanOrEq(
left: number,
right: number,
message: string,
) -> ()
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/assertLessThan.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Check that a numerical value is less than to another at runtime,
otherwise raise an error.

```js
assertLessThan(left: number, right: number, message: string) -> ()
assertLessThan(
left: number,
right: number,
message: string,
) -> ()
```


Expand Down
6 changes: 5 additions & 1 deletion docs/kcl/assertLessThanOrEq.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Check that a numerical value is less than or equal to another at runtime,
otherwise raise an error.

```js
assertLessThanOrEq(left: number, right: number, message: string) -> ()
assertLessThanOrEq(
left: number,
right: number,
message: string,
) -> ()
```


Expand Down
5 changes: 4 additions & 1 deletion docs/kcl/atan2.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Compute the four quadrant arctangent of Y and X (in radians).


```js
atan2(y: number, x: number) -> number
atan2(
y: number,
x: number,
) -> number
```

### Tags
Expand Down
8 changes: 6 additions & 2 deletions docs/kcl/bezierCurve.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ 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: Sketch, tag?: TagDeclarator) -> Sketch
bezierCurve(
data: BezierData,
sketch: Sketch,
tag?: TagDeclarator,
) -> Sketch
```


Expand All @@ -29,7 +33,7 @@ bezierCurve(data: BezierData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
### Examples

```js
exampleSketch = startSketchOn('XZ')
exampleSketch = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> line(end = [0, 10])
|> bezierCurve({
Expand Down
Loading

0 comments on commit d20bd26

Please sign in to comment.