fix: Reimplement with C2/G2 continuity

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs
2026-03-23 20:59:11 +00:00
parent 03d46aa62f
commit eb6ab3f5b0
2 changed files with 259 additions and 293 deletions
@@ -434,12 +434,12 @@ describe("Test Linear Elements", () => {
expect(midPointsWithRoundEdge).toMatchInlineSnapshot(`
[
[
"47.30521",
"57.27340",
"42.76190",
"62.13334",
],
[
"83.70877",
"40.46424",
"87.23810",
"37.65714",
],
]
`);
@@ -482,7 +482,7 @@ describe("Test Linear Elements", () => {
expect(renderInteractiveScene.mock.calls.length).toMatchInlineSnapshot(
`12`,
);
expect(renderStaticScene.mock.calls.length).toMatchInlineSnapshot(`7`);
expect(renderStaticScene.mock.calls.length).toMatchInlineSnapshot(`6`);
expect([line.x, line.y]).toEqual([
points[0][0] + deltaX,
@@ -809,12 +809,12 @@ describe("Test Linear Elements", () => {
expect(newMidPoints).toMatchInlineSnapshot(`
[
[
"13.73276",
"41.73533",
"5.35122",
"49.57854",
],
[
"83.95050",
"40.24690",
"87.32439",
"37.60536",
],
]
`);
@@ -898,12 +898,12 @@ describe("Test Linear Elements", () => {
expect(newMidPoints).toMatchInlineSnapshot(`
[
[
"47.30521",
"57.27340",
"42.76190",
"62.13334",
],
[
"83.70877",
"40.46424",
"87.23810",
"37.65714",
],
]
`);
@@ -1181,12 +1181,12 @@ describe("Test Linear Elements", () => {
),
).toMatchInlineSnapshot(`
[
"19.99875",
20,
"18.54397",
"19.35821",
105,
80,
"56.25357",
"46.47665",
"56.33510",
"47.11973",
]
`);
@@ -1196,7 +1196,7 @@ describe("Test Linear Elements", () => {
.toMatchInlineSnapshot(`
{
"height": 130,
"width": "367.68709",
"width": "369.28398",
}
`);
@@ -1208,7 +1208,7 @@ describe("Test Linear Elements", () => {
),
).toMatchInlineSnapshot(`
{
"x": "272.68709",
"x": "274.28398",
"y": 45,
}
`);
@@ -1223,12 +1223,12 @@ describe("Test Linear Elements", () => {
),
).toMatchInlineSnapshot(`
[
20,
"18.77567",
"502.68709",
"123.53753",
"203.94165",
"71.15660",
"19.96519",
"9.07108",
"504.28398",
"146.41791",
"204.79250",
"77.74450",
]
`);
});