diff --git a/rust/kcl-lib/src/execution/artifact/mermaid_tests.rs b/rust/kcl-lib/src/execution/artifact/mermaid_tests.rs index 2989353ee..2f7d70817 100644 --- a/rust/kcl-lib/src/execution/artifact/mermaid_tests.rs +++ b/rust/kcl-lib/src/execution/artifact/mermaid_tests.rs @@ -298,40 +298,48 @@ impl ArtifactGraph { let range = code_ref.range; [range.start(), range.end(), range.module_id().as_usize()] } + fn node_path_display(output: &mut W, prefix: &str, code_ref: &CodeRef) -> std::fmt::Result { + // %% is a mermaid comment. Prefix is increased one level since it's + // a child of the line above it. + if code_ref.node_path.is_empty() { + return writeln!(output, "{prefix} %% Missing NodePath"); + } + writeln!(output, "{prefix} %% {:?}", code_ref.node_path.steps) + } match artifact { Artifact::CompositeSolid(composite_solid) => { writeln!( output, - "{prefix}{}[\"CompositeSolid {:?}
{:?}\"]", - id, + "{prefix}{id}[\"CompositeSolid {:?}
{:?}\"]", composite_solid.sub_type, code_ref_display(&composite_solid.code_ref) )?; + node_path_display(output, prefix, &composite_solid.code_ref)?; } Artifact::Plane(plane) => { writeln!( output, - "{prefix}{}[\"Plane
{:?}\"]", - id, + "{prefix}{id}[\"Plane
{:?}\"]", code_ref_display(&plane.code_ref) )?; + node_path_display(output, prefix, &plane.code_ref)?; } Artifact::Path(path) => { writeln!( output, - "{prefix}{}[\"Path
{:?}\"]", - id, + "{prefix}{id}[\"Path
{:?}\"]", code_ref_display(&path.code_ref) )?; + node_path_display(output, prefix, &path.code_ref)?; } Artifact::Segment(segment) => { writeln!( output, - "{prefix}{}[\"Segment
{:?}\"]", - id, + "{prefix}{id}[\"Segment
{:?}\"]", code_ref_display(&segment.code_ref) )?; + node_path_display(output, prefix, &segment.code_ref)?; } Artifact::Solid2d(_solid2d) => { writeln!(output, "{prefix}{}[Solid2d]", id)?; @@ -339,56 +347,56 @@ impl ArtifactGraph { Artifact::StartSketchOnFace(StartSketchOnFace { code_ref, .. }) => { writeln!( output, - "{prefix}{}[\"StartSketchOnFace
{:?}\"]", - id, + "{prefix}{id}[\"StartSketchOnFace
{:?}\"]", code_ref_display(code_ref) )?; + node_path_display(output, prefix, code_ref)?; } Artifact::StartSketchOnPlane(StartSketchOnPlane { code_ref, .. }) => { writeln!( output, - "{prefix}{}[\"StartSketchOnPlane
{:?}\"]", - id, + "{prefix}{id}[\"StartSketchOnPlane
{:?}\"]", code_ref_display(code_ref) )?; + node_path_display(output, prefix, code_ref)?; } Artifact::Sweep(sweep) => { writeln!( output, - "{prefix}{}[\"Sweep {:?}
{:?}\"]", - id, + "{prefix}{id}[\"Sweep {:?}
{:?}\"]", sweep.sub_type, code_ref_display(&sweep.code_ref) )?; + node_path_display(output, prefix, &sweep.code_ref)?; } Artifact::Wall(_wall) => { - writeln!(output, "{prefix}{}[Wall]", id)?; + writeln!(output, "{prefix}{id}[Wall]")?; } Artifact::Cap(cap) => { - writeln!(output, "{prefix}{}[\"Cap {:?}\"]", id, cap.sub_type)?; + writeln!(output, "{prefix}{id}[\"Cap {:?}\"]", cap.sub_type)?; } Artifact::SweepEdge(sweep_edge) => { - writeln!(output, "{prefix}{}[\"SweepEdge {:?}\"]", id, sweep_edge.sub_type,)?; + writeln!(output, "{prefix}{id}[\"SweepEdge {:?}\"]", sweep_edge.sub_type)?; } Artifact::EdgeCut(edge_cut) => { writeln!( output, - "{prefix}{}[\"EdgeCut {:?}
{:?}\"]", - id, + "{prefix}{id}[\"EdgeCut {:?}
{:?}\"]", edge_cut.sub_type, code_ref_display(&edge_cut.code_ref) )?; + node_path_display(output, prefix, &edge_cut.code_ref)?; } Artifact::EdgeCutEdge(_edge_cut_edge) => { - writeln!(output, "{prefix}{}[EdgeCutEdge]", id)?; + writeln!(output, "{prefix}{id}[EdgeCutEdge]")?; } Artifact::Helix(helix) => { writeln!( output, - "{prefix}{}[\"Helix
{:?}\"]", - id, + "{prefix}{id}[\"Helix
{:?}\"]", code_ref_display(&helix.code_ref) )?; + node_path_display(output, prefix, &helix.code_ref)?; } } Ok(()) diff --git a/rust/kcl-lib/src/parsing/ast/types/path.rs b/rust/kcl-lib/src/parsing/ast/types/path.rs index 331f53a90..933fbad1e 100644 --- a/rust/kcl-lib/src/parsing/ast/types/path.rs +++ b/rust/kcl-lib/src/parsing/ast/types/path.rs @@ -318,6 +318,10 @@ impl NodePath { Some(path) } + pub fn is_empty(&self) -> bool { + self.steps.is_empty() + } + fn push(&mut self, step: Step) { self.steps.push(step); } diff --git a/rust/kcl-lib/src/simulation_tests.rs b/rust/kcl-lib/src/simulation_tests.rs index f6001c0e0..a5d656a89 100644 --- a/rust/kcl-lib/src/simulation_tests.rs +++ b/rust/kcl-lib/src/simulation_tests.rs @@ -280,11 +280,11 @@ fn assert_common_snapshots( let result1 = catch_unwind(AssertUnwindSafe(|| { assert_snapshot(test, "Operations executed", || { insta::assert_json_snapshot!("ops", operations, { - "[].unlabeledArg.*.value.**[].from[]" => rounded_redaction(4), - "[].unlabeledArg.*.value.**[].to[]" => rounded_redaction(4), - "[].*.unlabeledArg.value.value" => rounded_redaction(4), - "[].labeledArgs.*.value.**[].from[]" => rounded_redaction(4), - "[].labeledArgs.*.value.**[].to[]" => rounded_redaction(4), + "[].*.unlabeledArg.*.value.**[].from[]" => rounded_redaction(4), + "[].*.unlabeledArg.*.value.**[].to[]" => rounded_redaction(4), + "[].**.value.value" => rounded_redaction(4), + "[].*.labeledArgs.*.value.**[].from[]" => rounded_redaction(4), + "[].*.labeledArgs.*.value.**[].to[]" => rounded_redaction(4), ".**.sourceRange" => Vec::new(), ".**.functionSourceRange" => Vec::new(), ".**.moduleId" => 0, @@ -294,9 +294,10 @@ fn assert_common_snapshots( let result2 = catch_unwind(AssertUnwindSafe(|| { assert_snapshot(test, "Artifact commands", || { insta::assert_json_snapshot!("artifact_commands", artifact_commands, { - "[].command.segment.*.x" => rounded_redaction(4), - "[].command.segment.*.y" => rounded_redaction(4), - "[].command.segment.*.z" => rounded_redaction(4), + "[].command.**.value" => rounded_redaction(4), + "[].command.**.x" => rounded_redaction(4), + "[].command.**.y" => rounded_redaction(4), + "[].command.**.z" => rounded_redaction(4), ".**.range" => Vec::new(), }); }) diff --git a/rust/kcl-lib/tests/angled_line/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/angled_line/artifact_graph_flowchart.snap.md index 4bb2d4b1c..5b846ab76 100644 --- a/rust/kcl-lib/tests/angled_line/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/angled_line/artifact_graph_flowchart.snap.md @@ -2,16 +2,25 @@ flowchart LR subgraph path2 [Path] 2["Path
[33, 65, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[71, 95, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[101, 140, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[146, 172, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[178, 227, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7["Segment
[233, 260, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 8["Segment
[266, 273, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 9[Solid2d] end 1["Plane
[10, 27, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 10["Sweep Extrusion
[279, 298, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 11[Wall] 12[Wall] 13[Wall] diff --git a/rust/kcl-lib/tests/artifact_graph_example_code1/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/artifact_graph_example_code1/artifact_graph_flowchart.snap.md index 0ea7bbdac..b8da24ade 100644 --- a/rust/kcl-lib/tests/artifact_graph_example_code1/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/artifact_graph_example_code1/artifact_graph_flowchart.snap.md @@ -2,25 +2,40 @@ flowchart LR subgraph path3 [Path] 3["Path
[35, 62, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 5["Segment
[68, 87, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 6["Segment
[93, 129, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 7["Segment
[135, 169, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 8["Segment
[175, 231, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 9["Segment
[237, 244, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 15[Solid2d] end subgraph path4 [Path] 4["Path
[388, 415, 0]"] + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 10["Segment
[421, 439, 0]"] + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 11["Segment
[445, 464, 0]"] + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 12["Segment
[470, 526, 0]"] + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 13["Segment
[532, 539, 0]"] + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 14[Solid2d] end 1["Plane
[12, 29, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[343, 382, 0]"] + %% Missing NodePath 16["Sweep Extrusion
[258, 290, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 17["Sweep Extrusion
[553, 583, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit] 18[Wall] 19[Wall] 20[Wall] @@ -46,6 +61,7 @@ flowchart LR 40["SweepEdge Adjacent"] 41["SweepEdge Adjacent"] 42["EdgeCut Fillet
[296, 330, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 1 --- 3 21 x--> 2 3 --- 5 diff --git a/rust/kcl-lib/tests/artifact_graph_example_code_no_3d/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/artifact_graph_example_code_no_3d/artifact_graph_flowchart.snap.md index 2db3b288a..6c59fc83c 100644 --- a/rust/kcl-lib/tests/artifact_graph_example_code_no_3d/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/artifact_graph_example_code_no_3d/artifact_graph_flowchart.snap.md @@ -2,21 +2,33 @@ flowchart LR subgraph path3 [Path] 3["Path
[35, 63, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 5["Segment
[69, 137, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 6["Segment
[143, 240, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 7["Segment
[246, 363, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 8["Segment
[369, 425, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 9["Segment
[431, 438, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 13[Solid2d] end subgraph path4 [Path] 4["Path
[475, 504, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 10["Segment
[510, 535, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 11["Segment
[541, 576, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 12["Segment
[582, 623, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] end 1["Plane
[12, 29, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["Plane
[451, 469, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 1 --- 3 2 --- 4 3 --- 5 diff --git a/rust/kcl-lib/tests/artifact_graph_example_code_offset_planes/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/artifact_graph_example_code_offset_planes/artifact_graph_flowchart.snap.md index 7e48c6b63..da11ce3b6 100644 --- a/rust/kcl-lib/tests/artifact_graph_example_code_offset_planes/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/artifact_graph_example_code_offset_planes/artifact_graph_flowchart.snap.md @@ -2,12 +2,18 @@ flowchart LR subgraph path5 [Path] 5["Path
[187, 212, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 6["Segment
[218, 243, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] end 1["Plane
[17, 45, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit] 2["Plane
[63, 92, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] 3["Plane
[110, 138, 0]"] + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit] 4["StartSketchOnPlane
[152, 181, 0]"] + %% Missing NodePath 1 <--x 4 1 --- 5 5 --- 6 diff --git a/rust/kcl-lib/tests/assembly_mixed_units_cubes/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/assembly_mixed_units_cubes/artifact_graph_flowchart.snap.md index 0ae862432..b0dda536c 100644 --- a/rust/kcl-lib/tests/assembly_mixed_units_cubes/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/assembly_mixed_units_cubes/artifact_graph_flowchart.snap.md @@ -2,26 +2,42 @@ flowchart LR subgraph path3 [Path] 3["Path
[74, 114, 1]"] + %% Missing NodePath 5["Segment
[120, 137, 1]"] + %% Missing NodePath 6["Segment
[143, 161, 1]"] + %% Missing NodePath 7["Segment
[167, 185, 1]"] + %% Missing NodePath 8["Segment
[191, 247, 1]"] + %% Missing NodePath 9["Segment
[253, 260, 1]"] + %% Missing NodePath 15[Solid2d] end subgraph path4 [Path] 4["Path
[74, 112, 2]"] + %% Missing NodePath 10["Segment
[118, 135, 2]"] + %% Missing NodePath 11["Segment
[141, 159, 2]"] + %% Missing NodePath 12["Segment
[165, 183, 2]"] + %% Missing NodePath 13["Segment
[189, 245, 2]"] + %% Missing NodePath 14["Segment
[251, 258, 2]"] + %% Missing NodePath 16[Solid2d] end 1["Plane
[47, 64, 1]"] + %% Missing NodePath 2["Plane
[47, 64, 2]"] + %% Missing NodePath 17["Sweep Extrusion
[266, 288, 1]"] + %% Missing NodePath 18["Sweep Extrusion
[264, 286, 2]"] + %% Missing NodePath 19[Wall] 20[Wall] 21[Wall] diff --git a/rust/kcl-lib/tests/assembly_non_default_units/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/assembly_non_default_units/artifact_graph_flowchart.snap.md index 4209fa6e2..9ea56425f 100644 --- a/rust/kcl-lib/tests/assembly_non_default_units/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/assembly_non_default_units/artifact_graph_flowchart.snap.md @@ -2,16 +2,22 @@ flowchart LR subgraph path3 [Path] 3["Path
[195, 230, 1]"] + %% Missing NodePath 5["Segment
[195, 230, 1]"] + %% Missing NodePath 8[Solid2d] end subgraph path4 [Path] 4["Path
[111, 146, 3]"] + %% Missing NodePath 6["Segment
[111, 146, 3]"] + %% Missing NodePath 7[Solid2d] end 1["Plane
[172, 189, 1]"] + %% Missing NodePath 2["Plane
[88, 105, 3]"] + %% Missing NodePath 1 --- 3 2 --- 4 3 --- 5 diff --git a/rust/kcl-lib/tests/basic_fillet_cube_close_opposite/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/basic_fillet_cube_close_opposite/artifact_graph_flowchart.snap.md index 0cd03a068..c8a046dc2 100644 --- a/rust/kcl-lib/tests/basic_fillet_cube_close_opposite/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/basic_fillet_cube_close_opposite/artifact_graph_flowchart.snap.md @@ -2,14 +2,21 @@ flowchart LR subgraph path2 [Path] 2["Path
[33, 58, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[64, 97, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[103, 122, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[128, 163, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[169, 189, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7[Solid2d] end 1["Plane
[10, 27, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[195, 215, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9[Wall] 10[Wall] 11[Wall] @@ -25,7 +32,9 @@ flowchart LR 21["SweepEdge Adjacent"] 22["SweepEdge Adjacent"] 23["EdgeCut Fillet
[221, 281, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 24["EdgeCut Fillet
[221, 281, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/basic_fillet_cube_end/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/basic_fillet_cube_end/artifact_graph_flowchart.snap.md index b088863a3..3acc23f0d 100644 --- a/rust/kcl-lib/tests/basic_fillet_cube_end/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/basic_fillet_cube_end/artifact_graph_flowchart.snap.md @@ -2,14 +2,21 @@ flowchart LR subgraph path2 [Path] 2["Path
[33, 58, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[64, 97, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[103, 122, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[128, 163, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[169, 177, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7[Solid2d] end 1["Plane
[10, 27, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[183, 203, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9[Wall] 10[Wall] 11[Wall] @@ -25,7 +32,9 @@ flowchart LR 21["SweepEdge Adjacent"] 22["SweepEdge Adjacent"] 23["EdgeCut Fillet
[209, 267, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 24["EdgeCut Fillet
[209, 267, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/basic_fillet_cube_next_adjacent/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/basic_fillet_cube_next_adjacent/artifact_graph_flowchart.snap.md index 7bccc7091..a9f7237d6 100644 --- a/rust/kcl-lib/tests/basic_fillet_cube_next_adjacent/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/basic_fillet_cube_next_adjacent/artifact_graph_flowchart.snap.md @@ -2,14 +2,21 @@ flowchart LR subgraph path2 [Path] 2["Path
[33, 58, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[64, 97, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[103, 137, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[143, 178, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[184, 204, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7[Solid2d] end 1["Plane
[10, 27, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[210, 230, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9[Wall] 10[Wall] 11[Wall] @@ -25,6 +32,7 @@ flowchart LR 21["SweepEdge Adjacent"] 22["SweepEdge Adjacent"] 23["EdgeCut Fillet
[236, 292, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/basic_fillet_cube_previous_adjacent/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/basic_fillet_cube_previous_adjacent/artifact_graph_flowchart.snap.md index 676482703..9b2e57494 100644 --- a/rust/kcl-lib/tests/basic_fillet_cube_previous_adjacent/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/basic_fillet_cube_previous_adjacent/artifact_graph_flowchart.snap.md @@ -2,14 +2,21 @@ flowchart LR subgraph path2 [Path] 2["Path
[33, 58, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[64, 97, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[103, 137, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[143, 178, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[184, 204, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7[Solid2d] end 1["Plane
[10, 27, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[210, 230, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9[Wall] 10[Wall] 11[Wall] @@ -25,6 +32,7 @@ flowchart LR 21["SweepEdge Adjacent"] 22["SweepEdge Adjacent"] 23["EdgeCut Fillet
[236, 296, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/basic_fillet_cube_start/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/basic_fillet_cube_start/artifact_graph_flowchart.snap.md index 506df92e3..c4c0a8352 100644 --- a/rust/kcl-lib/tests/basic_fillet_cube_start/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/basic_fillet_cube_start/artifact_graph_flowchart.snap.md @@ -2,14 +2,21 @@ flowchart LR subgraph path2 [Path] 2["Path
[33, 58, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[64, 97, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[103, 122, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[128, 163, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[169, 177, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7[Solid2d] end 1["Plane
[10, 27, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[183, 203, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9[Wall] 10[Wall] 11[Wall] @@ -25,7 +32,9 @@ flowchart LR 21["SweepEdge Adjacent"] 22["SweepEdge Adjacent"] 23["EdgeCut Fillet
[209, 251, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 24["EdgeCut Fillet
[209, 251, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/circle_three_point/artifact_commands.snap b/rust/kcl-lib/tests/circle_three_point/artifact_commands.snap index ce743b20a..9d83b3937 100644 --- a/rust/kcl-lib/tests/circle_three_point/artifact_commands.snap +++ b/rust/kcl-lib/tests/circle_three_point/artifact_commands.snap @@ -110,7 +110,7 @@ description: Artifact commands circle_three_point.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 30.00594901040716, + "x": 30.0059, "y": 19.75, "z": 0.0 } diff --git a/rust/kcl-lib/tests/circle_three_point/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/circle_three_point/artifact_graph_flowchart.snap.md index af7189597..845bbdd79 100644 --- a/rust/kcl-lib/tests/circle_three_point/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/circle_three_point/artifact_graph_flowchart.snap.md @@ -2,11 +2,15 @@ flowchart LR subgraph path2 [Path] 2["Path
[35, 96, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[35, 96, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 4[Solid2d] end 1["Plane
[12, 29, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["Sweep Extrusion
[102, 122, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 6[Wall] 7["Cap Start"] 8["Cap End"] diff --git a/rust/kcl-lib/tests/circular_pattern3d_a_pattern/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/circular_pattern3d_a_pattern/artifact_graph_flowchart.snap.md index 09bb3382a..727175c07 100644 --- a/rust/kcl-lib/tests/circular_pattern3d_a_pattern/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/circular_pattern3d_a_pattern/artifact_graph_flowchart.snap.md @@ -2,14 +2,21 @@ flowchart LR subgraph path2 [Path] 2["Path
[39, 64, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[70, 88, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[94, 112, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[118, 137, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[143, 151, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7[Solid2d] end 1["Plane
[16, 33, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[157, 176, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9[Wall] 10[Wall] 11[Wall] diff --git a/rust/kcl-lib/tests/clone_w_fillets/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/clone_w_fillets/artifact_graph_flowchart.snap.md index c8897523b..d17abb195 100644 --- a/rust/kcl-lib/tests/clone_w_fillets/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/clone_w_fillets/artifact_graph_flowchart.snap.md @@ -2,14 +2,21 @@ flowchart LR subgraph path2 [Path] 2["Path
[100, 140, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[146, 200, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[206, 259, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[265, 319, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[325, 344, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7[Solid2d] end 1["Plane
[77, 94, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[362, 410, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 9[Wall] 10[Wall] 11[Wall] @@ -25,9 +32,13 @@ flowchart LR 21["SweepEdge Adjacent"] 22["SweepEdge Adjacent"] 23["EdgeCut Fillet
[416, 609, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 24["EdgeCut Fillet
[416, 609, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 25["EdgeCut Fillet
[416, 609, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 26["EdgeCut Fillet
[416, 609, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/clone_w_shell/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/clone_w_shell/artifact_graph_flowchart.snap.md index ff4ed02b4..7f6407078 100644 --- a/rust/kcl-lib/tests/clone_w_shell/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/clone_w_shell/artifact_graph_flowchart.snap.md @@ -2,14 +2,21 @@ flowchart LR subgraph path2 [Path] 2["Path
[81, 109, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[117, 136, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[144, 164, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[172, 192, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[200, 207, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7[Solid2d] end 1["Plane
[56, 73, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[215, 234, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9[Wall] 10[Wall] 11[Wall] diff --git a/rust/kcl-lib/tests/crazy_multi_profile/artifact_commands.snap b/rust/kcl-lib/tests/crazy_multi_profile/artifact_commands.snap index 8268a90bc..fef05408f 100644 --- a/rust/kcl-lib/tests/crazy_multi_profile/artifact_commands.snap +++ b/rust/kcl-lib/tests/crazy_multi_profile/artifact_commands.snap @@ -554,7 +554,7 @@ description: Artifact commands crazy_multi_profile.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 6.8100000000000005, + "x": 6.81, "y": 4.34, "z": 0.0 } diff --git a/rust/kcl-lib/tests/cube/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/cube/artifact_graph_flowchart.snap.md index 295ec63f2..a29d3fd3e 100644 --- a/rust/kcl-lib/tests/cube/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/cube/artifact_graph_flowchart.snap.md @@ -2,15 +2,23 @@ flowchart LR subgraph path2 [Path] 2["Path
[210, 231, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 1 }] 3["Segment
[239, 261, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 2 }] 4["Segment
[269, 291, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 3 }] 5["Segment
[299, 321, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 4 }] 6["Segment
[329, 351, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 5 }] 7["Segment
[359, 366, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 6 }] 8[Solid2d] end 1["Plane
[185, 202, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 0 }] 9["Sweep Extrusion
[374, 402, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 7 }] 10[Wall] 11[Wall] 12[Wall] diff --git a/rust/kcl-lib/tests/cube_with_error/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/cube_with_error/artifact_graph_flowchart.snap.md index 6c0f01c18..abaa56859 100644 --- a/rust/kcl-lib/tests/cube_with_error/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/cube_with_error/artifact_graph_flowchart.snap.md @@ -2,15 +2,23 @@ flowchart LR subgraph path2 [Path] 2["Path
[202, 223, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 1 }] 3["Segment
[231, 253, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 2 }] 4["Segment
[261, 283, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 3 }] 5["Segment
[291, 313, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 4 }] 6["Segment
[321, 343, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 5 }] 7["Segment
[351, 358, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 6 }] 8[Solid2d] end 1["Plane
[177, 194, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 0 }] 9["Sweep Extrusion
[366, 390, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 7 }, ReturnStatementArg, PipeBodyItem { index: 7 }] 10[Wall] 11[Wall] 12[Wall] diff --git a/rust/kcl-lib/tests/execute_engine_error_return/artifact_commands.snap b/rust/kcl-lib/tests/execute_engine_error_return/artifact_commands.snap index fb35971b1..6b219e8aa 100644 --- a/rust/kcl-lib/tests/execute_engine_error_return/artifact_commands.snap +++ b/rust/kcl-lib/tests/execute_engine_error_return/artifact_commands.snap @@ -78,7 +78,7 @@ description: Artifact commands execute_engine_error_return.kcl "path": "[uuid]", "to": { "x": 5.5229, - "y": 5.25217, + "y": 5.2522, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/execute_engine_error_return/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/execute_engine_error_return/artifact_graph_flowchart.snap.md index fdc4357be..14c32b6c8 100644 --- a/rust/kcl-lib/tests/execute_engine_error_return/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/execute_engine_error_return/artifact_graph_flowchart.snap.md @@ -2,12 +2,18 @@ flowchart LR subgraph path2 [Path] 2["Path
[33, 69, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[75, 107, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[113, 144, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[150, 182, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[188, 220, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] end 1["Plane
[10, 27, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/fillet-and-shell/artifact_commands.snap b/rust/kcl-lib/tests/fillet-and-shell/artifact_commands.snap index 40100501f..ca94bf2fe 100644 --- a/rust/kcl-lib/tests/fillet-and-shell/artifact_commands.snap +++ b/rust/kcl-lib/tests/fillet-and-shell/artifact_commands.snap @@ -78,7 +78,7 @@ description: Artifact commands fillet-and-shell.kcl "path": "[uuid]", "to": { "x": 0.0, - "y": 10.799999999999999, + "y": 10.8, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/fillet_duplicate_tags/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/fillet_duplicate_tags/artifact_graph_flowchart.snap.md index 82dd922cc..b3b3ea6ae 100644 --- a/rust/kcl-lib/tests/fillet_duplicate_tags/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/fillet_duplicate_tags/artifact_graph_flowchart.snap.md @@ -2,14 +2,21 @@ flowchart LR subgraph path2 [Path] 2["Path
[0, 44, 0]"] + %% [ProgramBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 0 }] 3["Segment
[50, 84, 0]"] + %% [ProgramBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 1 }] 4["Segment
[90, 124, 0]"] + %% [ProgramBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 2 }] 5["Segment
[130, 183, 0]"] + %% [ProgramBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 3 }] 6["Segment
[189, 210, 0]"] + %% [ProgramBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 4 }] 7[Solid2d] end 1["Plane
[13, 30, 0]"] + %% [ProgramBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 8["Sweep Extrusion
[216, 236, 0]"] + %% [ProgramBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 5 }] 9[Wall] 10[Wall] 11[Wall] diff --git a/rust/kcl-lib/tests/flush_batch_on_end/artifact_commands.snap b/rust/kcl-lib/tests/flush_batch_on_end/artifact_commands.snap index c69f21b9e..ee4dabab5 100644 --- a/rust/kcl-lib/tests/flush_batch_on_end/artifact_commands.snap +++ b/rust/kcl-lib/tests/flush_batch_on_end/artifact_commands.snap @@ -110,7 +110,7 @@ description: Artifact commands flush_batch_on_end.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 6.9453125, + "x": 6.9453, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/flush_batch_on_end/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/flush_batch_on_end/artifact_graph_flowchart.snap.md index b710cb865..b097cf846 100644 --- a/rust/kcl-lib/tests/flush_batch_on_end/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/flush_batch_on_end/artifact_graph_flowchart.snap.md @@ -2,16 +2,22 @@ flowchart LR subgraph path2 [Path] 2["Path
[278, 370, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit] 4["Segment
[278, 370, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit] 6[Solid2d] end subgraph path3 [Path] 3["Path
[433, 525, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit] 5["Segment
[433, 525, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit] 7[Solid2d] end 1["Plane
[197, 214, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit] 8["Sweep Extrusion
[702, 739, 0]"] + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit] 9[Wall] 10["Cap Start"] 11["Cap End"] diff --git a/rust/kcl-lib/tests/function_sketch/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/function_sketch/artifact_graph_flowchart.snap.md index a50c0fdb5..c83eb84a7 100644 --- a/rust/kcl-lib/tests/function_sketch/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/function_sketch/artifact_graph_flowchart.snap.md @@ -2,14 +2,21 @@ flowchart LR subgraph path2 [Path] 2["Path
[53, 78, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[86, 104, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[112, 130, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[138, 157, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[165, 173, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7[Solid2d] end 1["Plane
[28, 45, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[181, 200, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9[Wall] 10[Wall] 11[Wall] diff --git a/rust/kcl-lib/tests/function_sketch_with_position/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/function_sketch_with_position/artifact_graph_flowchart.snap.md index a98ada480..bdcde3846 100644 --- a/rust/kcl-lib/tests/function_sketch_with_position/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/function_sketch_with_position/artifact_graph_flowchart.snap.md @@ -2,14 +2,21 @@ flowchart LR subgraph path2 [Path] 2["Path
[56, 76, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[84, 102, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[110, 128, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[136, 155, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[163, 171, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7[Solid2d] end 1["Plane
[31, 48, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[179, 198, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9[Wall] 10[Wall] 11[Wall] diff --git a/rust/kcl-lib/tests/helix_ccw/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/helix_ccw/artifact_graph_flowchart.snap.md index 2d6dc7fc3..8773e0688 100644 --- a/rust/kcl-lib/tests/helix_ccw/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/helix_ccw/artifact_graph_flowchart.snap.md @@ -2,11 +2,15 @@ flowchart LR subgraph path2 [Path] 2["Path
[33, 69, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[33, 69, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 4[Solid2d] end 1["Plane
[10, 27, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["Sweep Extrusion
[75, 95, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 6[Wall] 7["Cap Start"] 8["Cap End"] diff --git a/rust/kcl-lib/tests/helix_simple/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/helix_simple/artifact_graph_flowchart.snap.md index f8a1a609e..eccb0d6fd 100644 --- a/rust/kcl-lib/tests/helix_simple/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/helix_simple/artifact_graph_flowchart.snap.md @@ -2,10 +2,14 @@ flowchart LR subgraph path2 [Path] 2["Path
[69, 94, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[100, 135, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] end 1["Plane
[46, 63, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 4["Helix
[149, 255, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] 1 --- 2 2 --- 3 3 <--x 4 diff --git a/rust/kcl-lib/tests/i_shape/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/i_shape/artifact_graph_flowchart.snap.md index 26910ab4b..8a10452a2 100644 --- a/rust/kcl-lib/tests/i_shape/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/i_shape/artifact_graph_flowchart.snap.md @@ -2,49 +2,88 @@ flowchart LR subgraph path3 [Path] 3["Path
[422, 459, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 5["Segment
[465, 505, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 6["Segment
[511, 562, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 7["Segment
[568, 604, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 8["Segment
[610, 662, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 9["Segment
[668, 733, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 10["Segment
[739, 791, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 11["Segment
[797, 855, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 12["Segment
[861, 912, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 13["Segment
[918, 960, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 10 }] 14["Segment
[966, 1017, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 11 }] 15["Segment
[1023, 1059, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 12 }] 16["Segment
[1065, 1117, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 13 }] 17["Segment
[1123, 1192, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 14 }] 18["Segment
[1198, 1251, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 15 }] 19["Segment
[1257, 1296, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 16 }] 20["Segment
[1302, 1354, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 17 }] 21["Segment
[1360, 1402, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 18 }] 22["Segment
[1408, 1460, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 19 }] 23["Segment
[1466, 1527, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 20 }] 24["Segment
[1533, 1586, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 21 }] 25["Segment
[1592, 1722, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 22 }] 26["Segment
[1728, 1781, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 23 }] 27["Segment
[1787, 1826, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 24 }] 28["Segment
[1832, 1884, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 25 }] 29["Segment
[1890, 1898, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 26 }] 39[Solid2d] end subgraph path4 [Path] 4["Path
[1931, 1956, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 30["Segment
[1962, 1981, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 31["Segment
[1987, 2038, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 32["Segment
[2044, 2086, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 33["Segment
[2092, 2144, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 34["Segment
[2150, 2170, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 35["Segment
[2176, 2229, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 36["Segment
[2235, 2280, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 37["Segment
[2286, 2338, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 38["Segment
[2344, 2352, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 10 }] 40[Solid2d] end 1["Plane
[399, 416, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["Plane
[1908, 1925, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 41["Sweep Extrusion
[2408, 2429, 0]"] + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 42[Wall] 43[Wall] 44[Wall] diff --git a/rust/kcl-lib/tests/import_async/artifact_commands.snap b/rust/kcl-lib/tests/import_async/artifact_commands.snap index 79aaaf8ee..af037dc30 100644 --- a/rust/kcl-lib/tests/import_async/artifact_commands.snap +++ b/rust/kcl-lib/tests/import_async/artifact_commands.snap @@ -5571139,7 +5571139,7 @@ description: Artifact commands import_async.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 3.3541019662496847, + "x": 3.3541, "y": 1.0, "z": 0.0 } @@ -5571225,7 +5571225,7 @@ description: Artifact commands import_async.kcl "radius": 3.5, "start": { "unit": "degrees", - "value": 343.3984504009797 + "value": 343.3985 }, "end": { "unit": "degrees", @@ -5571254,7 +5571254,7 @@ description: Artifact commands import_async.kcl }, "end": { "unit": "degrees", - "value": 16.601549599020235 + "value": 16.6015 }, "relative": false } @@ -5571440,8 +5571440,8 @@ description: Artifact commands import_async.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 0.0000000000000012083311382392428, - "y": 19.733545036504076, + "x": 0.0, + "y": 19.7335, "z": 0.0 } } @@ -5571453,8 +5571453,8 @@ description: Artifact commands import_async.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 2.1026747593723187, - "y": 19.62120176146286, + "x": 2.1027, + "y": 19.6212, "z": 0.0 } } @@ -5571466,8 +5571466,8 @@ description: Artifact commands import_async.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 4.20534951874464, - "y": 19.280244685504613, + "x": 4.2053, + "y": 19.2802, "z": 0.0 } } @@ -5571571,7 +5571571,7 @@ description: Artifact commands import_async.kcl "end_radius": 23.0, "angle": { "unit": "degrees", - "value": 83.88333258352058 + "value": 83.8833 }, "reverse": false } @@ -5571589,7 +5571589,7 @@ description: Artifact commands import_async.kcl "end_radius": 23.0, "angle": { "unit": "degrees", - "value": 77.6955281798938 + "value": 77.6955 }, "reverse": false } @@ -5571658,7 +5571658,7 @@ description: Artifact commands import_async.kcl "end_radius": 23.0, "angle": { "unit": "degrees", - "value": 616.4231928988978 + "value": 616.4232 }, "reverse": true } @@ -5571676,7 +5571676,7 @@ description: Artifact commands import_async.kcl "end_radius": 23.0, "angle": { "unit": "degrees", - "value": -97.46013968462269 + "value": -97.4601 }, "reverse": true } @@ -5571694,7 +5571694,7 @@ description: Artifact commands import_async.kcl "end_radius": 23.0, "angle": { "unit": "degrees", - "value": -91.27233528099592 + "value": -91.2723 }, "reverse": true } diff --git a/rust/kcl-lib/tests/import_async/ops.snap b/rust/kcl-lib/tests/import_async/ops.snap index afc8a1cd3..c9ebdf851 100644 --- a/rust/kcl-lib/tests/import_async/ops.snap +++ b/rust/kcl-lib/tests/import_async/ops.snap @@ -165,7 +165,7 @@ description: Operations executed import_async.kcl "angle": { "value": { "type": "Number", - "value": 1.5707963267948966, + "value": 1.5708, "ty": { "type": "Known", "type": "Angle", @@ -177,7 +177,7 @@ description: Operations executed import_async.kcl "length": { "value": { "type": "Number", - "value": 19.733545036504076, + "value": 19.7335, "ty": { "type": "Default", "len": { @@ -205,7 +205,7 @@ description: Operations executed import_async.kcl "angle": { "value": { "type": "Number", - "value": 1.4640403411278755, + "value": 1.464, "ty": { "type": "Known", "type": "Angle", @@ -217,7 +217,7 @@ description: Operations executed import_async.kcl "length": { "value": { "type": "Number", - "value": 19.733545036504076, + "value": 19.7335, "ty": { "type": "Default", "len": { @@ -245,7 +245,7 @@ description: Operations executed import_async.kcl "angle": { "value": { "type": "Number", - "value": 1.3560427808151838, + "value": 1.356, "ty": { "type": "Known", "type": "Angle", @@ -257,7 +257,7 @@ description: Operations executed import_async.kcl "length": { "value": { "type": "Number", - "value": 19.733545036504076, + "value": 19.7335, "ty": { "type": "Default", "len": { @@ -285,7 +285,7 @@ description: Operations executed import_async.kcl "angle": { "value": { "type": "Number", - "value": 1.7037737936135122, + "value": 1.7038, "ty": { "type": "Known", "type": "Angle", @@ -325,7 +325,7 @@ description: Operations executed import_async.kcl "angle": { "value": { "type": "Number", - "value": 1.5970178079464912, + "value": 1.597, "ty": { "type": "Known", "type": "Angle", @@ -365,7 +365,7 @@ description: Operations executed import_async.kcl "angle": { "value": { "type": "Number", - "value": 1.4890202476337995, + "value": 1.489, "ty": { "type": "Known", "type": "Angle", @@ -405,7 +405,7 @@ description: Operations executed import_async.kcl "angle": { "value": { "type": "Number", - "value": 1.8699956271367815, + "value": 1.87, "ty": { "type": "Known", "type": "Angle", @@ -417,7 +417,7 @@ description: Operations executed import_async.kcl "length": { "value": { "type": "Number", - "value": 19.733545036504076, + "value": 19.7335, "ty": { "type": "Default", "len": { @@ -445,7 +445,7 @@ description: Operations executed import_async.kcl "angle": { "value": { "type": "Number", - "value": 1.7632396414697604, + "value": 1.7632, "ty": { "type": "Known", "type": "Angle", @@ -457,7 +457,7 @@ description: Operations executed import_async.kcl "length": { "value": { "type": "Number", - "value": 19.733545036504076, + "value": 19.7335, "ty": { "type": "Default", "len": { @@ -485,7 +485,7 @@ description: Operations executed import_async.kcl "angle": { "value": { "type": "Number", - "value": 1.655242081157069, + "value": 1.6552, "ty": { "type": "Known", "type": "Angle", @@ -497,7 +497,7 @@ description: Operations executed import_async.kcl "length": { "value": { "type": "Number", - "value": 19.733545036504076, + "value": 19.7335, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/import_function_not_sketch/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/import_function_not_sketch/artifact_graph_flowchart.snap.md index 7c3d4f061..9c3278561 100644 --- a/rust/kcl-lib/tests/import_function_not_sketch/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/import_function_not_sketch/artifact_graph_flowchart.snap.md @@ -2,18 +2,29 @@ flowchart LR subgraph path2 [Path] 2["Path
[75, 101, 1]"] + %% Missing NodePath 3["Segment
[107, 125, 1]"] + %% Missing NodePath 4["Segment
[131, 150, 1]"] + %% Missing NodePath 5["Segment
[156, 175, 1]"] + %% Missing NodePath 6["Segment
[181, 200, 1]"] + %% Missing NodePath 7["Segment
[206, 231, 1]"] + %% Missing NodePath 8["Segment
[237, 258, 1]"] + %% Missing NodePath 9["Segment
[264, 283, 1]"] + %% Missing NodePath 10["Segment
[289, 296, 1]"] + %% Missing NodePath 11[Solid2d] end 1["Plane
[52, 69, 1]"] + %% Missing NodePath 12["Sweep Revolve
[302, 319, 1]"] + %% Missing NodePath 13[Wall] 14[Wall] 15[Wall] diff --git a/rust/kcl-lib/tests/import_side_effect/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/import_side_effect/artifact_graph_flowchart.snap.md index ea846b255..6657b98f5 100644 --- a/rust/kcl-lib/tests/import_side_effect/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/import_side_effect/artifact_graph_flowchart.snap.md @@ -2,10 +2,13 @@ flowchart LR subgraph path2 [Path] 2["Path
[100, 136, 1]"] + %% Missing NodePath 3["Segment
[100, 136, 1]"] + %% Missing NodePath 4[Solid2d] end 1["Plane
[77, 94, 1]"] + %% Missing NodePath 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/import_whole_simple/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/import_whole_simple/artifact_graph_flowchart.snap.md index 67c87d155..dd6ccfac3 100644 --- a/rust/kcl-lib/tests/import_whole_simple/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/import_whole_simple/artifact_graph_flowchart.snap.md @@ -2,11 +2,15 @@ flowchart LR subgraph path2 [Path] 2["Path
[82, 118, 1]"] + %% Missing NodePath 3["Segment
[82, 118, 1]"] + %% Missing NodePath 4[Solid2d] end 1["Plane
[59, 76, 1]"] + %% Missing NodePath 5["Sweep Extrusion
[124, 144, 1]"] + %% Missing NodePath 6[Wall] 7["Cap Start"] 8["Cap End"] diff --git a/rust/kcl-lib/tests/import_whole_transitive_import/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/import_whole_transitive_import/artifact_graph_flowchart.snap.md index c629b3584..7d74e8cc9 100644 --- a/rust/kcl-lib/tests/import_whole_transitive_import/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/import_whole_transitive_import/artifact_graph_flowchart.snap.md @@ -2,11 +2,15 @@ flowchart LR subgraph path2 [Path] 2["Path
[101, 137, 1]"] + %% Missing NodePath 3["Segment
[101, 137, 1]"] + %% Missing NodePath 4[Solid2d] end 1["Plane
[78, 95, 1]"] + %% Missing NodePath 5["Sweep Extrusion
[143, 163, 1]"] + %% Missing NodePath 6[Wall] 7["Cap Start"] 8["Cap End"] diff --git a/rust/kcl-lib/tests/involute_circular_units/artifact_commands.snap b/rust/kcl-lib/tests/involute_circular_units/artifact_commands.snap index 06c948931..8af4356f6 100644 --- a/rust/kcl-lib/tests/involute_circular_units/artifact_commands.snap +++ b/rust/kcl-lib/tests/involute_circular_units/artifact_commands.snap @@ -77,7 +77,7 @@ description: Artifact commands involute_circular_units.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 49.333862591260186, + "x": 49.3339, "y": 0.0, "z": 0.0 } @@ -147,7 +147,7 @@ description: Artifact commands involute_circular_units.kcl "radius": 57.5, "start": { "unit": "degrees", - "value": 3.400173269101186 + "value": 3.4002 }, "end": { "unit": "degrees", diff --git a/rust/kcl-lib/tests/involute_circular_units/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/involute_circular_units/artifact_graph_flowchart.snap.md index 710391a10..0a9a80d3c 100644 --- a/rust/kcl-lib/tests/involute_circular_units/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/involute_circular_units/artifact_graph_flowchart.snap.md @@ -2,22 +2,34 @@ flowchart LR subgraph path2 [Path] 2["Path
[335, 375, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 4["Segment
[381, 519, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 5["Segment
[525, 571, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 6["Segment
[577, 722, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 7["Segment
[728, 870, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 8["Segment
[876, 922, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9["Segment
[928, 1002, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 10["Segment
[1157, 1164, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 13[Solid2d] end subgraph path3 [Path] 3["Path
[1188, 1223, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 10 }, CallKwArg { index: 0 }] 11["Segment
[1188, 1223, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 10 }, CallKwArg { index: 0 }] 12[Solid2d] end 1["Plane
[312, 329, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 14["Sweep Extrusion
[1230, 1258, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 11 }] 15[Wall] 16[Wall] 17[Wall] diff --git a/rust/kcl-lib/tests/involute_circular_units/ops.snap b/rust/kcl-lib/tests/involute_circular_units/ops.snap index c63ec9175..34e6c7ccb 100644 --- a/rust/kcl-lib/tests/involute_circular_units/ops.snap +++ b/rust/kcl-lib/tests/involute_circular_units/ops.snap @@ -1,6 +1,5 @@ --- source: kcl-lib/src/simulation_tests.rs -assertion_line: 282 description: Operations executed involute_circular_units.kcl --- [ @@ -28,7 +27,7 @@ description: Operations executed involute_circular_units.kcl "angle": { "value": { "type": "Number", - "value": 17.142857142857142, + "value": 17.1429, "ty": { "type": "Default", "len": { @@ -44,7 +43,7 @@ description: Operations executed involute_circular_units.kcl "length": { "value": { "type": "Number", - "value": 4.933386259126019, + "value": 4.9334, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/80-20-rail/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/80-20-rail/artifact_commands.snap index f43dc406d..ab7499ba3 100644 --- a/rust/kcl-lib/tests/kcl_samples/80-20-rail/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/80-20-rail/artifact_commands.snap @@ -78,7 +78,7 @@ description: Artifact commands 80-20-rail.kcl "path": "[uuid]", "to": { "x": 0.0, - "y": 3.8100000000000005, + "y": 3.81, "z": 0.0 } } @@ -1427,8 +1427,8 @@ description: Artifact commands 80-20-rail.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 22.95525, - "y": 19.049999999999997, + "x": 22.9553, + "y": 19.05, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/80-20-rail/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/80-20-rail/artifact_graph_flowchart.snap.md index e52027363..d8216aefe 100644 --- a/rust/kcl-lib/tests/kcl_samples/80-20-rail/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/80-20-rail/artifact_graph_flowchart.snap.md @@ -2,80 +2,150 @@ flowchart LR subgraph path2 [Path] 2["Path
[367, 464, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 4["Segment
[472, 536, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 5["Segment
[544, 612, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 6["Segment
[620, 652, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 7["Segment
[660, 728, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 8["Segment
[736, 783, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9["Segment
[791, 839, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 10["Segment
[847, 896, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 11["Segment
[904, 1002, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 12["Segment
[1010, 1058, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 10 }] 13["Segment
[1066, 1155, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 11 }] 14["Segment
[1163, 1212, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 12 }] 15["Segment
[1220, 1269, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 13 }] 16["Segment
[1277, 1310, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 14 }] 17["Segment
[1318, 1386, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 15 }] 18["Segment
[1394, 1426, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 16 }] 19["Segment
[1434, 1502, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 17 }] 20["Segment
[1510, 1572, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 18 }] 21["Segment
[1613, 1682, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 19 }] 22["Segment
[1690, 1722, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 20 }] 23["Segment
[1730, 1799, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 21 }] 24["Segment
[1807, 1854, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 22 }] 25["Segment
[1862, 1912, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 23 }] 26["Segment
[1920, 1970, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 24 }] 27["Segment
[1988, 2098, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 25 }] 28["Segment
[2116, 2165, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 26 }] 29["Segment
[2179, 2274, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 27 }] 30["Segment
[2288, 2338, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 28 }] 31["Segment
[2352, 2401, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 29 }] 32["Segment
[2409, 2442, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 30 }] 33["Segment
[2450, 2519, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 31 }] 34["Segment
[2527, 2559, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 32 }] 35["Segment
[2567, 2636, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 33 }] 36["Segment
[2677, 2738, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 34 }] 37["Segment
[2746, 2815, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 35 }] 38["Segment
[2823, 2856, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 36 }] 39["Segment
[2864, 2933, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 37 }] 40["Segment
[2941, 2990, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 38 }] 41["Segment
[2998, 3048, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 39 }] 42["Segment
[3056, 3105, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 40 }] 43["Segment
[3113, 3222, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 41 }] 44["Segment
[3230, 3280, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 42 }] 45["Segment
[3288, 3384, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 43 }] 46["Segment
[3392, 3441, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 44 }] 47["Segment
[3449, 3498, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 45 }] 48["Segment
[3506, 3540, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 46 }] 49["Segment
[3548, 3617, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 47 }] 50["Segment
[3625, 3658, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 48 }] 51["Segment
[3666, 3735, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 49 }] 52["Segment
[3743, 3806, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 50 }] 53["Segment
[3847, 3916, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 51 }] 54["Segment
[3924, 3957, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 52 }] 55["Segment
[3965, 4034, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 53 }] 56["Segment
[4042, 4091, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 54 }] 57["Segment
[4099, 4148, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 55 }] 58["Segment
[4156, 4205, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 56 }] 59["Segment
[4213, 4313, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 57 }] 60["Segment
[4321, 4371, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 58 }] 61["Segment
[4379, 4468, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 59 }] 62["Segment
[4476, 4525, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 60 }] 63["Segment
[4533, 4583, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 61 }] 64["Segment
[4591, 4625, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 62 }] 65["Segment
[4633, 4702, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 63 }] 66["Segment
[4710, 4743, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 64 }] 67["Segment
[4751, 4820, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 65 }] 68["Segment
[4828, 4835, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 66 }] 71[Solid2d] end subgraph path3 [Path] 3["Path
[4899, 5077, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 67 }, CallKwArg { index: 0 }] 69["Segment
[4899, 5077, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 67 }, CallKwArg { index: 0 }] 70[Solid2d] end 1["Plane
[341, 359, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 72["Sweep Extrusion
[5086, 5114, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 68 }] 73[Wall] 74[Wall] 75[Wall] @@ -271,37 +341,69 @@ flowchart LR 265["SweepEdge Adjacent"] 266["SweepEdge Adjacent"] 267["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 268["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 269["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 270["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 271["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 272["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 273["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 274["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 275["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 276["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 277["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 278["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 279["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 280["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 281["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 282["EdgeCut Fillet
[5122, 5827, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 283["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 284["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 285["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 286["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 287["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 288["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 289["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 290["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 291["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 292["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 293["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 294["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 295["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 296["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 297["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 298["EdgeCut Fillet
[5835, 6539, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 1 --- 2 1 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/kcl_samples/axial-fan/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/axial-fan/artifact_commands.snap index d6dea6338..623569891 100644 --- a/rust/kcl-lib/tests/kcl_samples/axial-fan/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/axial-fan/artifact_commands.snap @@ -3557,8 +3557,8 @@ description: Artifact commands axial-fan.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 9.64181414529809, - "y": 11.49066664678467, + "x": 9.6418, + "y": 11.4907, "z": 0.0 } } @@ -3570,8 +3570,8 @@ description: Artifact commands axial-fan.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 12.99038105676658, - "y": 7.499999999999999, + "x": 12.9904, + "y": 7.5, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/ball-bearing/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/ball-bearing/artifact_commands.snap index dff589e6e..0cad85a86 100644 --- a/rust/kcl-lib/tests/kcl_samples/ball-bearing/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/ball-bearing/artifact_commands.snap @@ -227,7 +227,7 @@ description: Artifact commands ball-bearing.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 9.524999999999999, + "x": 9.525, "y": 0.0, "z": 0.0 } @@ -537,8 +537,8 @@ description: Artifact commands ball-bearing.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 13.652499999999998, - "y": 2.7496306570155924, + "x": 13.6525, + "y": 2.7496, "z": 0.0 } } @@ -777,7 +777,7 @@ description: Artifact commands ball-bearing.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 16.033749999999998, + "x": 16.0337, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/bench/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/bench/artifact_commands.snap index 1e7ec083f..4adc23856 100644 --- a/rust/kcl-lib/tests/kcl_samples/bench/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/bench/artifact_commands.snap @@ -3457,7 +3457,7 @@ description: Artifact commands bench.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -10.614359353944899, + "x": -10.6144, "y": 8.0, "z": 0.0 } @@ -3470,7 +3470,7 @@ description: Artifact commands bench.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 17.3856406460551, + "x": 17.3856, "y": 8.0, "z": 0.0 } @@ -3815,8 +3815,8 @@ description: Artifact commands bench.kcl [ { "translate": { - "x": 10.986275727656292, - "y": -0.5493137863828146, + "x": 10.9863, + "y": -0.5493, "z": 0.0 }, "scale": { @@ -3844,8 +3844,8 @@ description: Artifact commands bench.kcl [ { "translate": { - "x": 21.972551455312583, - "y": -1.0986275727656292, + "x": 21.9726, + "y": -1.0986, "z": 0.0 }, "scale": { @@ -4226,8 +4226,8 @@ description: Artifact commands bench.kcl [ { "translate": { - "x": -1.4930535746301998, - "y": -10.89820127467299, + "x": -1.4931, + "y": -10.8982, "z": 0.0 }, "scale": { diff --git a/rust/kcl-lib/tests/kcl_samples/bottle/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/bottle/artifact_graph_flowchart.snap.md index da592e71f..af2ba8b37 100644 --- a/rust/kcl-lib/tests/kcl_samples/bottle/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/bottle/artifact_graph_flowchart.snap.md @@ -2,22 +2,34 @@ flowchart LR subgraph path4 [Path] 4["Path
[355, 396, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 6["Segment
[402, 433, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 7["Segment
[439, 534, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 8["Segment
[540, 562, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 9["Segment
[592, 599, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 11[Solid2d] end subgraph path5 [Path] 5["Path
[756, 806, 0]"] + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 10["Segment
[756, 806, 0]"] + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 12[Solid2d] end 1["Plane
[332, 349, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["Plane
[756, 806, 0]"] + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["StartSketchOnFace
[713, 750, 0]"] + %% Missing NodePath 13["Sweep Extrusion
[605, 647, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 14["Sweep Extrusion
[812, 839, 0]"] + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 15[Wall] 16["Cap End"] 17["SweepEdge Opposite"] diff --git a/rust/kcl-lib/tests/kcl_samples/bracket/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/bracket/artifact_commands.snap index 8a8badd75..175e8d1ca 100644 --- a/rust/kcl-lib/tests/kcl_samples/bracket/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/bracket/artifact_commands.snap @@ -319,8 +319,8 @@ description: Artifact commands bracket.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -19.049999999999997, - "y": 19.049999999999997, + "x": -19.05, + "y": 19.05, "z": 0.0 } } @@ -350,7 +350,7 @@ description: Artifact commands bracket.kcl [ { "translate": { - "x": -72.77465281581115, + "x": -72.7747, "y": 0.0, "z": 0.0 }, @@ -391,7 +391,7 @@ description: Artifact commands bracket.kcl { "translate": { "x": 0.0, - "y": 88.89999999999999, + "y": 88.9, "z": 0.0 }, "scale": { @@ -431,7 +431,7 @@ description: Artifact commands bracket.kcl { "translate": { "x": 0.0, - "y": 88.89999999999999, + "y": 88.9, "z": 0.0 }, "scale": { diff --git a/rust/kcl-lib/tests/kcl_samples/bracket/ops.snap b/rust/kcl-lib/tests/kcl_samples/bracket/ops.snap index d7f7f2b2d..6cc7bcd2b 100644 --- a/rust/kcl-lib/tests/kcl_samples/bracket/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/bracket/ops.snap @@ -77,7 +77,7 @@ description: Operations executed bracket.kcl "length": { "value": { "type": "Number", - "value": -0.39485618835389114, + "value": -0.3949, "ty": { "type": "Default", "len": { @@ -156,7 +156,7 @@ description: Operations executed bracket.kcl "length": { "value": { "type": "Number", - "value": -0.4848561883538911, + "value": -0.4849, "ty": { "type": "Default", "len": { @@ -210,7 +210,7 @@ description: Operations executed bracket.kcl "radius": { "value": { "type": "Number", - "value": 0.6348561883538911, + "value": 0.6349, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/artifact_commands.snap index 9c37d27cb..c8296e790 100644 --- a/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/artifact_commands.snap @@ -275,7 +275,7 @@ description: Artifact commands car-wheel-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 76.19999999999999, + "x": 76.2, "y": 0.0, "z": 0.0 } @@ -501,7 +501,7 @@ description: Artifact commands car-wheel-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 76.19999999999999, + "x": 76.2, "y": 0.0, "z": 0.0 } @@ -1768,7 +1768,7 @@ description: Artifact commands car-wheel-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 76.19999999999999, + "x": 76.2, "y": 0.0, "z": 0.0 } @@ -1953,9 +1953,9 @@ description: Artifact commands car-wheel-assembly.kcl "z": 2.54 }, "x_axis": { - "x": 0.9998000599800071, + "x": 0.9998, "y": 0.0, - "z": 0.01999600119960014 + "z": 0.02 }, "y_axis": { "x": 0.0, @@ -1978,9 +1978,9 @@ description: Artifact commands car-wheel-assembly.kcl "z": -2.54 }, "x_axis": { - "x": 0.9998000599800071, + "x": 0.9998, "y": 0.0, - "z": -0.01999600119960014 + "z": -0.02 }, "y_axis": { "x": 0.0, @@ -2002,9 +2002,9 @@ description: Artifact commands car-wheel-assembly.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": -0.01999600119960014, + "x": -0.02, "y": 0.0, - "z": 0.9998000599800071 + "z": 0.9998 } } }, @@ -2018,9 +2018,9 @@ description: Artifact commands car-wheel-assembly.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.01999600119960014, + "x": 0.02, "y": -0.0, - "z": 0.9998000599800071 + "z": 0.9998 } } }, @@ -2032,7 +2032,7 @@ description: Artifact commands car-wheel-assembly.kcl "path": "[uuid]", "to": { "x": 82.55, - "y": -17.779999999999998, + "y": -17.78, "z": 0.0 } } @@ -2045,7 +2045,7 @@ description: Artifact commands car-wheel-assembly.kcl "path": "[uuid]", "to": { "x": 82.55, - "y": -17.779999999999998, + "y": -17.78, "z": 0.0 } } @@ -2298,9 +2298,9 @@ description: Artifact commands car-wheel-assembly.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": -0.01999600119960014, + "x": -0.02, "y": 0.0, - "z": 0.9998000599800071 + "z": 0.9998 } } }, @@ -2314,9 +2314,9 @@ description: Artifact commands car-wheel-assembly.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.01999600119960014, + "x": 0.02, "y": -0.0, - "z": 0.9998000599800071 + "z": 0.9998 } } }, @@ -2702,7 +2702,7 @@ description: Artifact commands car-wheel-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 241.29999999999998, + "x": 241.3, "y": -114.248, "z": 0.0 } @@ -3270,7 +3270,7 @@ description: Artifact commands car-wheel-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 152.39999999999998, + "x": 152.4, "y": 0.0, "z": 0.0 } @@ -3419,7 +3419,7 @@ description: Artifact commands car-wheel-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 76.19999999999999, + "x": 76.2, "y": 0.0, "z": 0.0 } @@ -4133,7 +4133,7 @@ description: Artifact commands car-wheel-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 152.39999999999998, + "x": 152.4, "y": 0.0, "z": 0.0 } @@ -4634,7 +4634,7 @@ description: Artifact commands car-wheel-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 146.04999999999998, + "x": 146.05, "y": 0.0, "z": 0.0 } @@ -5590,7 +5590,7 @@ description: Artifact commands car-wheel-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 55.117999999999995, + "x": 55.118, "y": 65.024, "z": 0.0 } @@ -6006,7 +6006,7 @@ description: Artifact commands car-wheel-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -55.117999999999995, + "x": -55.118, "y": 65.024, "z": 0.0 } @@ -7232,8 +7232,8 @@ description: Artifact commands car-wheel-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 241.29999999999998, - "y": 139.95399999999998, + "x": 241.3, + "y": 139.954, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/cold-plate/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/cold-plate/artifact_commands.snap index aef7a43ba..b7e78bae6 100644 --- a/rust/kcl-lib/tests/kcl_samples/cold-plate/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/cold-plate/artifact_commands.snap @@ -490,8 +490,8 @@ description: Artifact commands cold-plate.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -186.68999999999997, - "y": -76.19999999999999, + "x": -186.69, + "y": -76.2, "z": 0.0 } } @@ -641,7 +641,7 @@ description: Artifact commands cold-plate.kcl "command": { "type": "make_plane", "origin": { - "x": -186.68999999999997, + "x": -186.69, "y": 0.0, "z": 0.0 }, @@ -1209,7 +1209,7 @@ description: Artifact commands cold-plate.kcl { "translate": { "x": 0.0, - "y": -152.39999999999998, + "y": -152.4, "z": 0.0 }, "scale": { diff --git a/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/artifact_commands.snap index 436577527..194076584 100644 --- a/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/artifact_commands.snap @@ -622,8 +622,8 @@ description: Artifact commands counterdrilled-weldment.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -57.943749999999994, - "y": -38.099999999999994, + "x": -57.9438, + "y": -38.1, "z": 0.0 } } @@ -635,8 +635,8 @@ description: Artifact commands counterdrilled-weldment.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -57.943749999999994, - "y": 38.099999999999994, + "x": -57.9438, + "y": 38.1, "z": 0.0 } } @@ -648,8 +648,8 @@ description: Artifact commands counterdrilled-weldment.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 69.05624999999999, - "y": -38.099999999999994, + "x": 69.0562, + "y": -38.1, "z": 0.0 } } @@ -661,8 +661,8 @@ description: Artifact commands counterdrilled-weldment.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 69.05624999999999, - "y": 38.099999999999994, + "x": 69.0562, + "y": 38.1, "z": 0.0 } } @@ -1134,8 +1134,8 @@ description: Artifact commands counterdrilled-weldment.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -60.324999999999996, - "y": -38.099999999999994, + "x": -60.325, + "y": -38.1, "z": 0.0 } } @@ -1147,8 +1147,8 @@ description: Artifact commands counterdrilled-weldment.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -60.324999999999996, - "y": 38.099999999999994, + "x": -60.325, + "y": 38.1, "z": 0.0 } } @@ -1161,7 +1161,7 @@ description: Artifact commands counterdrilled-weldment.kcl "path": "[uuid]", "to": { "x": 66.675, - "y": -38.099999999999994, + "y": -38.1, "z": 0.0 } } @@ -1174,7 +1174,7 @@ description: Artifact commands counterdrilled-weldment.kcl "path": "[uuid]", "to": { "x": 66.675, - "y": 38.099999999999994, + "y": 38.1, "z": 0.0 } } @@ -2000,8 +2000,8 @@ description: Artifact commands counterdrilled-weldment.kcl "z": 0.0 }, "x_axis": { - "x": 0.8574929257125441, - "y": 0.5144957554275265, + "x": 0.8575, + "y": 0.5145, "z": 0.0 }, "y_axis": { @@ -2025,8 +2025,8 @@ description: Artifact commands counterdrilled-weldment.kcl "z": 0.0 }, "x_axis": { - "x": -0.8574929257125441, - "y": 0.5144957554275265, + "x": -0.8575, + "y": 0.5145, "z": 0.0 }, "y_axis": { @@ -2049,8 +2049,8 @@ description: Artifact commands counterdrilled-weldment.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.5144957554275265, - "y": -0.8574929257125441, + "x": 0.5145, + "y": -0.8575, "z": 0.0 } } @@ -2065,8 +2065,8 @@ description: Artifact commands counterdrilled-weldment.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.5144957554275265, - "y": 0.8574929257125441, + "x": 0.5145, + "y": 0.8575, "z": -0.0 } } @@ -2339,8 +2339,8 @@ description: Artifact commands counterdrilled-weldment.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.5144957554275265, - "y": -0.8574929257125441, + "x": 0.5145, + "y": -0.8575, "z": 0.0 } } @@ -2355,8 +2355,8 @@ description: Artifact commands counterdrilled-weldment.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.5144957554275265, - "y": 0.8574929257125441, + "x": 0.5145, + "y": 0.8575, "z": -0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/ops.snap b/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/ops.snap index d8ff7aff9..dce9a62b0 100644 --- a/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/ops.snap @@ -585,7 +585,7 @@ description: Operations executed counterdrilled-weldment.kcl "length": { "value": { "type": "Number", - "value": 0.13258252147247768, + "value": 0.1326, "ty": { "type": "Default", "len": { @@ -630,7 +630,7 @@ description: Operations executed counterdrilled-weldment.kcl "length": { "value": { "type": "Number", - "value": 0.13258252147247768, + "value": 0.1326, "ty": { "type": "Default", "len": { @@ -675,7 +675,7 @@ description: Operations executed counterdrilled-weldment.kcl "length": { "value": { "type": "Number", - "value": 0.13258252147247768, + "value": 0.1326, "ty": { "type": "Default", "len": { @@ -720,7 +720,7 @@ description: Operations executed counterdrilled-weldment.kcl "length": { "value": { "type": "Number", - "value": 0.13258252147247768, + "value": 0.1326, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/countersunk-plate/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/countersunk-plate/artifact_commands.snap index 10f64af5d..2da56d51a 100644 --- a/rust/kcl-lib/tests/kcl_samples/countersunk-plate/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/countersunk-plate/artifact_commands.snap @@ -77,8 +77,8 @@ description: Artifact commands countersunk-plate.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 15.413037500000007, - "y": 39.314119998717935, + "x": 15.413, + "y": 39.3141, "z": 0.0 } } @@ -125,7 +125,7 @@ description: Artifact commands countersunk-plate.kcl "radius": 19.049999999999997, "offset": { "unit": "degrees", - "value": -137.1848345922876 + "value": -137.1848 } } } @@ -158,7 +158,7 @@ description: Artifact commands countersunk-plate.kcl "radius": 42.2275, "offset": { "unit": "degrees", - "value": -42.81516540771243 + "value": -42.8152 } } } @@ -191,7 +191,7 @@ description: Artifact commands countersunk-plate.kcl "radius": 19.049999999999997, "offset": { "unit": "degrees", - "value": -137.1848345922876 + "value": -137.1848 } } } @@ -489,7 +489,7 @@ description: Artifact commands countersunk-plate.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -60.324999999999996, + "x": -60.325, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/countersunk-plate/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/countersunk-plate/artifact_graph_flowchart.snap.md index b8ffa566a..86965f92b 100644 --- a/rust/kcl-lib/tests/kcl_samples/countersunk-plate/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/countersunk-plate/artifact_graph_flowchart.snap.md @@ -2,38 +2,60 @@ flowchart LR subgraph path4 [Path] 4["Path
[812, 876, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 8["Segment
[882, 939, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 9["Segment
[945, 1004, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 10["Segment
[1010, 1067, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 11["Segment
[1073, 1126, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 12["Segment
[1132, 1190, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 13["Segment
[1196, 1255, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 14["Segment
[1261, 1317, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 15["Segment
[1323, 1388, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 16["Segment
[1394, 1401, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 10 }] 23[Solid2d] end subgraph path5 [Path] 5["Path
[1425, 1487, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 11 }, CallKwArg { index: 0 }] 17["Segment
[1425, 1487, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 11 }, CallKwArg { index: 0 }] 20[Solid2d] end subgraph path6 [Path] 6["Path
[1650, 1726, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 1 }] 18["Segment
[1650, 1726, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 1 }] 21[Solid2d] end subgraph path7 [Path] 7["Path
[1650, 1726, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 1 }] 19["Segment
[1650, 1726, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 1 }] 22[Solid2d] end 1["Plane
[700, 717, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[1606, 1642, 0]"] + %% Missing NodePath 3["StartSketchOnFace
[1606, 1642, 0]"] + %% Missing NodePath 24["Sweep Extrusion
[1494, 1529, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 12 }] 25["Sweep Extrusion
[1734, 1767, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 2 }] 26["Sweep Extrusion
[1734, 1767, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 2 }] 27[Wall] 28[Wall] 29[Wall] @@ -67,7 +89,9 @@ flowchart LR 57["SweepEdge Adjacent"] 58["SweepEdge Adjacent"] 59["EdgeCut Chamfer
[1830, 1877, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 3 }] 60["EdgeCut Chamfer
[1830, 1877, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 3 }] 1 --- 4 1 --- 5 38 x--> 2 diff --git a/rust/kcl-lib/tests/kcl_samples/countersunk-plate/ops.snap b/rust/kcl-lib/tests/kcl_samples/countersunk-plate/ops.snap index 4c57ab007..8560b39ce 100644 --- a/rust/kcl-lib/tests/kcl_samples/countersunk-plate/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/countersunk-plate/ops.snap @@ -27,7 +27,7 @@ description: Operations executed countersunk-plate.kcl "angle": { "value": { "type": "Number", - "value": 1.1971635237196154, + "value": 1.1972, "ty": { "type": "Known", "type": "Angle", diff --git a/rust/kcl-lib/tests/kcl_samples/cpu-cooler/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/cpu-cooler/artifact_commands.snap index 70f530a64..e8576b2d7 100644 --- a/rust/kcl-lib/tests/kcl_samples/cpu-cooler/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/cpu-cooler/artifact_commands.snap @@ -4483,8 +4483,8 @@ description: Artifact commands cpu-cooler.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 9.64181414529809, - "y": 11.49066664678467, + "x": 9.6418, + "y": 11.4907, "z": 0.0 } } @@ -4496,8 +4496,8 @@ description: Artifact commands cpu-cooler.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 12.99038105676658, - "y": 7.499999999999999, + "x": 12.9904, + "y": 7.5, "z": 0.0 } } @@ -5661,7 +5661,7 @@ description: Artifact commands cpu-cooler.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 44.943820224719104, + "x": 44.9438, "y": 158.0, "z": 0.0 } @@ -5935,7 +5935,7 @@ description: Artifact commands cpu-cooler.kcl "path": "[uuid]", "to": { "x": -1.0, - "y": 44.943820224719104, + "y": 44.9438, "z": 0.0 } } @@ -6038,7 +6038,7 @@ description: Artifact commands cpu-cooler.kcl "path": "[uuid]", "to": { "x": -1.5, - "y": 44.943820224719104, + "y": 44.9438, "z": 0.0 } } @@ -6598,7 +6598,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 3.6666666666666665 + "z": 3.6667 }, "scale": { "x": 1.0, @@ -6627,7 +6627,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 7.333333333333333 + "z": 7.3333 }, "scale": { "x": 1.0, @@ -6685,7 +6685,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 14.666666666666666 + "z": 14.6667 }, "scale": { "x": 1.0, @@ -6714,7 +6714,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 18.333333333333332 + "z": 18.3333 }, "scale": { "x": 1.0, @@ -6772,7 +6772,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 25.666666666666664 + "z": 25.6667 }, "scale": { "x": 1.0, @@ -6801,7 +6801,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 29.333333333333332 + "z": 29.3333 }, "scale": { "x": 1.0, @@ -6859,7 +6859,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 36.666666666666664 + "z": 36.6667 }, "scale": { "x": 1.0, @@ -6888,7 +6888,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 40.33333333333333 + "z": 40.3333 }, "scale": { "x": 1.0, @@ -6946,7 +6946,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 47.666666666666664 + "z": 47.6667 }, "scale": { "x": 1.0, @@ -6975,7 +6975,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 51.33333333333333 + "z": 51.3333 }, "scale": { "x": 1.0, @@ -7033,7 +7033,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 58.666666666666664 + "z": 58.6667 }, "scale": { "x": 1.0, @@ -7062,7 +7062,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 62.33333333333333 + "z": 62.3333 }, "scale": { "x": 1.0, @@ -7120,7 +7120,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 69.66666666666666 + "z": 69.6667 }, "scale": { "x": 1.0, @@ -7149,7 +7149,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 73.33333333333333 + "z": 73.3333 }, "scale": { "x": 1.0, @@ -7207,7 +7207,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 80.66666666666666 + "z": 80.6667 }, "scale": { "x": 1.0, @@ -7236,7 +7236,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 84.33333333333333 + "z": 84.3333 }, "scale": { "x": 1.0, @@ -7294,7 +7294,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 91.66666666666666 + "z": 91.6667 }, "scale": { "x": 1.0, @@ -7323,7 +7323,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 95.33333333333333 + "z": 95.3333 }, "scale": { "x": 1.0, @@ -7381,7 +7381,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 102.66666666666666 + "z": 102.6667 }, "scale": { "x": 1.0, @@ -7410,7 +7410,7 @@ description: Artifact commands cpu-cooler.kcl "translate": { "x": 0.0, "y": 0.0, - "z": 106.33333333333333 + "z": 106.3333 }, "scale": { "x": 1.0, @@ -9608,7 +9608,7 @@ description: Artifact commands cpu-cooler.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 152.65270364466613 + "z": 152.6527 }, "x_axis": { "x": 1.0, @@ -9662,7 +9662,7 @@ description: Artifact commands cpu-cooler.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -43.87966230538214, + "x": -43.8797, "y": -62.0, "z": 0.0 } @@ -9782,7 +9782,7 @@ description: Artifact commands cpu-cooler.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 47.34729635533386 + "z": 47.3473 }, "x_axis": { "x": 1.0, @@ -9836,7 +9836,7 @@ description: Artifact commands cpu-cooler.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -43.87966230538214, + "x": -43.8797, "y": -62.0, "z": 0.0 } @@ -9954,7 +9954,7 @@ description: Artifact commands cpu-cooler.kcl "command": { "type": "make_plane", "origin": { - "x": -43.87966230538214, + "x": -43.8797, "y": 0.0, "z": 0.0 }, @@ -10044,7 +10044,7 @@ description: Artifact commands cpu-cooler.kcl "path": "[uuid]", "to": { "x": -61.0, - "y": 152.65270364466613, + "y": 152.6527, "z": 0.0 } } @@ -10175,7 +10175,7 @@ description: Artifact commands cpu-cooler.kcl "path": "[uuid]", "to": { "x": -61.0, - "y": 47.34729635533386, + "y": 47.3473, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/artifact_commands.snap index 0c6f5e2ac..da561bf7a 100644 --- a/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/artifact_commands.snap @@ -62,7 +62,7 @@ description: Artifact commands cycloidal-gear.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 19.049999999999997 + "z": 19.05 }, "x_axis": { "x": 1.0, @@ -87,7 +87,7 @@ description: Artifact commands cycloidal-gear.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 38.099999999999994 + "z": 38.1 }, "x_axis": { "x": 1.0, @@ -201,8 +201,8 @@ description: Artifact commands cycloidal-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 11.810999999999998, - "y": 7.619999999999999, + "x": 11.811, + "y": 7.62, "z": 0.0 } } @@ -214,8 +214,8 @@ description: Artifact commands cycloidal-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 13.94579250348968, - "y": -1.7547058014411026, + "x": 13.9458, + "y": -1.7547, "z": 0.0 } } @@ -227,8 +227,8 @@ description: Artifact commands cycloidal-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 9.555193704377139, - "y": -10.308365257005178, + "x": 9.5552, + "y": -10.3084, "z": 0.0 } } @@ -852,7 +852,7 @@ description: Artifact commands cycloidal-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 3.7718999999999996, + "x": 3.7719, "y": 0.0, "z": 0.0 } @@ -865,7 +865,7 @@ description: Artifact commands cycloidal-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 3.7718999999999996, + "x": 3.7719, "y": 0.0, "z": 0.0 } @@ -878,7 +878,7 @@ description: Artifact commands cycloidal-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 3.7718999999999996, + "x": 3.7719, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/artifact_graph_flowchart.snap.md index 6b325a12e..df9211a03 100644 --- a/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/artifact_graph_flowchart.snap.md @@ -2,53 +2,84 @@ flowchart LR subgraph path7 [Path] 7["Path
[663, 853, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 13["Segment
[863, 947, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 16["Segment
[957, 1009, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 17["Segment
[1019, 1066, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 19["Segment
[1076, 1128, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 21["Segment
[1138, 1185, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 23["Segment
[1195, 1260, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 27["Segment
[1270, 1278, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 31[Solid2d] end subgraph path8 [Path] 8["Path
[663, 853, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 26["Segment
[1270, 1278, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 32[Solid2d] end subgraph path9 [Path] 9["Path
[663, 853, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 14["Segment
[863, 947, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 15["Segment
[957, 1009, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 18["Segment
[1019, 1066, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 20["Segment
[1076, 1128, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 22["Segment
[1138, 1185, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 24["Segment
[1195, 1260, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 25["Segment
[1270, 1278, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 36[Solid2d] end subgraph path10 [Path] 10["Path
[1306, 1356, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }, CallKwArg { index: 0 }] 29["Segment
[1306, 1356, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }, CallKwArg { index: 0 }] 33[Solid2d] end subgraph path11 [Path] 11["Path
[1306, 1356, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }, CallKwArg { index: 0 }] 30["Segment
[1306, 1356, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }, CallKwArg { index: 0 }] 34[Solid2d] end subgraph path12 [Path] 12["Path
[1306, 1356, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }, CallKwArg { index: 0 }] 28["Segment
[1306, 1356, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }, CallKwArg { index: 0 }] 35[Solid2d] end 1["Plane
[619, 652, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 2["Plane
[619, 652, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 3["Plane
[619, 652, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 4["StartSketchOnPlane
[605, 653, 0]"] + %% Missing NodePath 5["StartSketchOnPlane
[605, 653, 0]"] + %% Missing NodePath 6["StartSketchOnPlane
[605, 653, 0]"] + %% Missing NodePath 37["Sweep Loft
[1483, 1572, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] 38[Wall] 39[Wall] 40[Wall] diff --git a/rust/kcl-lib/tests/kcl_samples/dodecahedron/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/dodecahedron/artifact_commands.snap index 4887ebd29..ef3fa8156 100644 --- a/rust/kcl-lib/tests/kcl_samples/dodecahedron/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/dodecahedron/artifact_commands.snap @@ -554,8 +554,8 @@ description: Artifact commands dodecahedron.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -25405.079999999998, - "y": -25405.079999999998, + "x": -25405.08, + "y": -25405.08, "z": 0.0 } } @@ -580,8 +580,8 @@ description: Artifact commands dodecahedron.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -25410.159999999996, - "y": -25410.159999999996, + "x": -25410.16, + "y": -25410.16, "z": 0.0 } } @@ -593,8 +593,8 @@ description: Artifact commands dodecahedron.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -25412.699999999997, - "y": -25412.699999999997, + "x": -25412.7, + "y": -25412.7, "z": 0.0 } } @@ -606,8 +606,8 @@ description: Artifact commands dodecahedron.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -25415.239999999998, - "y": -25415.239999999998, + "x": -25415.24, + "y": -25415.24, "z": 0.0 } } @@ -632,8 +632,8 @@ description: Artifact commands dodecahedron.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -25420.319999999996, - "y": -25420.319999999996, + "x": -25420.32, + "y": -25420.32, "z": 0.0 } } @@ -645,8 +645,8 @@ description: Artifact commands dodecahedron.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -25422.859999999997, - "y": -25422.859999999997, + "x": -25422.86, + "y": -25422.86, "z": 0.0 } } @@ -658,8 +658,8 @@ description: Artifact commands dodecahedron.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -25402.793999999998, - "y": -25402.793999999998, + "x": -25402.794, + "y": -25402.794, "z": 0.0 } } @@ -2333,7 +2333,7 @@ description: Artifact commands dodecahedron.kcl "property": { "x": 0.0, "y": 0.0, - "z": -6609.079999999999 + "z": -6609.08 }, "set": false, "is_local": true @@ -2381,7 +2381,7 @@ description: Artifact commands dodecahedron.kcl "property": { "x": 0.0, "y": 0.0, - "z": -6614.159999999999 + "z": -6614.16 }, "set": false, "is_local": true @@ -2501,7 +2501,7 @@ description: Artifact commands dodecahedron.kcl "property": { "x": 0.0, "y": 0.0, - "z": -6626.859999999999 + "z": -6626.86 }, "set": false, "is_local": true diff --git a/rust/kcl-lib/tests/kcl_samples/dodecahedron/ops.snap b/rust/kcl-lib/tests/kcl_samples/dodecahedron/ops.snap index de725407b..cda0ac1ec 100644 --- a/rust/kcl-lib/tests/kcl_samples/dodecahedron/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/dodecahedron/ops.snap @@ -484,7 +484,7 @@ description: Operations executed dodecahedron.kcl "length": { "value": { "type": "Number", - "value": 2000.1100000000001, + "value": 2000.11, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/exhaust-manifold/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/exhaust-manifold/artifact_commands.snap index 639650d5d..8fb9c40fb 100644 --- a/rust/kcl-lib/tests/kcl_samples/exhaust-manifold/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/exhaust-manifold/artifact_commands.snap @@ -65,8 +65,8 @@ description: Artifact commands exhaust-manifold.kcl "z": 0.0 }, "x_axis": { - "x": -0.01745240643728351, - "y": 0.9998476951563913, + "x": -0.0175, + "y": 0.9998, "z": 0.0 }, "y_axis": { @@ -90,8 +90,8 @@ description: Artifact commands exhaust-manifold.kcl "z": 0.0 }, "x_axis": { - "x": -0.4115143586051088, - "y": 0.9114032766354453, + "x": -0.4115, + "y": 0.9114, "z": 0.0 }, "y_axis": { @@ -110,13 +110,13 @@ description: Artifact commands exhaust-manifold.kcl "command": { "type": "make_plane", "origin": { - "x": 152.39999999999998, + "x": 152.4, "y": 0.0, "z": 0.0 }, "x_axis": { - "x": -0.4257792915650726, - "y": 0.9048270524660196, + "x": -0.4258, + "y": 0.9048, "z": 0.0 }, "y_axis": { @@ -155,8 +155,8 @@ description: Artifact commands exhaust-manifold.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.9998476951563913, - "y": 0.01745240643728351, + "x": 0.9998, + "y": 0.0175, "z": -0.0 } } @@ -171,8 +171,8 @@ description: Artifact commands exhaust-manifold.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.9114032766354453, - "y": 0.4115143586051088, + "x": 0.9114, + "y": 0.4115, "z": -0.0 } } @@ -187,8 +187,8 @@ description: Artifact commands exhaust-manifold.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.9048270524660196, - "y": 0.4257792915650726, + "x": 0.9048, + "y": 0.4258, "z": -0.0 } } @@ -1361,7 +1361,7 @@ description: Artifact commands exhaust-manifold.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 69.40549999999999, + "x": 69.4055, "y": 0.0, "z": 0.0 } @@ -1374,7 +1374,7 @@ description: Artifact commands exhaust-manifold.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 120.20549999999999, + "x": 120.2055, "y": 0.0, "z": 0.0 } @@ -1387,7 +1387,7 @@ description: Artifact commands exhaust-manifold.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 171.00549999999998, + "x": 171.0055, "y": 0.0, "z": 0.0 } @@ -1681,7 +1681,7 @@ description: Artifact commands exhaust-manifold.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 109.21999999999998, + "x": 109.22, "y": -31.75, "z": 0.0 } @@ -2141,7 +2141,7 @@ description: Artifact commands exhaust-manifold.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 69.40549999999999, + "x": 69.4055, "y": 0.0, "z": 0.0 } @@ -2235,7 +2235,7 @@ description: Artifact commands exhaust-manifold.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 120.20549999999999, + "x": 120.2055, "y": 0.0, "z": 0.0 } @@ -2329,7 +2329,7 @@ description: Artifact commands exhaust-manifold.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 171.00549999999998, + "x": 171.0055, "y": 0.0, "z": 0.0 } @@ -2424,7 +2424,7 @@ description: Artifact commands exhaust-manifold.kcl "path": "[uuid]", "to": { "x": -21.59, - "y": -24.764999999999997, + "y": -24.765, "z": 0.0 } } @@ -2518,7 +2518,7 @@ description: Artifact commands exhaust-manifold.kcl "path": "[uuid]", "to": { "x": 27.94, - "y": 24.764999999999997, + "y": 24.765, "z": 0.0 } } @@ -2612,7 +2612,7 @@ description: Artifact commands exhaust-manifold.kcl "path": "[uuid]", "to": { "x": 130.81, - "y": 24.764999999999997, + "y": 24.765, "z": 0.0 } } @@ -2705,8 +2705,8 @@ description: Artifact commands exhaust-manifold.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 180.33999999999997, - "y": -24.764999999999997, + "x": 180.34, + "y": -24.765, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/flange/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/flange/artifact_commands.snap index 72df86e7a..cc5986740 100644 --- a/rust/kcl-lib/tests/kcl_samples/flange/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/flange/artifact_commands.snap @@ -110,7 +110,7 @@ description: Artifact commands flange.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 52.387499999999996, + "x": 52.3875, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/flange/ops.snap b/rust/kcl-lib/tests/kcl_samples/flange/ops.snap index 150cb964b..18c195db8 100644 --- a/rust/kcl-lib/tests/kcl_samples/flange/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/flange/ops.snap @@ -137,7 +137,7 @@ description: Operations executed flange.kcl "length": { "value": { "type": "Number", - "value": 0.1279999999999999, + "value": 0.128, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/focusrite-scarlett-mounting-bracket/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/focusrite-scarlett-mounting-bracket/artifact_commands.snap index d0f15a01d..e4203f554 100644 --- a/rust/kcl-lib/tests/kcl_samples/focusrite-scarlett-mounting-bracket/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/focusrite-scarlett-mounting-bracket/artifact_commands.snap @@ -612,7 +612,7 @@ description: Artifact commands focusrite-scarlett-mounting-bracket.kcl "path": "[uuid]", "to": { "x": 84.5, - "y": 27.333333333333332, + "y": 27.3333, "z": 0.0 } } @@ -766,7 +766,7 @@ description: Artifact commands focusrite-scarlett-mounting-bracket.kcl { "translate": { "x": 0.0, - "y": -54.666666666666664, + "y": -54.6667, "z": 0.0 }, "scale": { @@ -1005,7 +1005,7 @@ description: Artifact commands focusrite-scarlett-mounting-bracket.kcl "path": "[uuid]", "to": { "x": -79.5, - "y": 27.333333333333332, + "y": 27.3333, "z": 0.0 } } @@ -1159,7 +1159,7 @@ description: Artifact commands focusrite-scarlett-mounting-bracket.kcl { "translate": { "x": 0.0, - "y": -54.666666666666664, + "y": -54.6667, "z": 0.0 }, "scale": { diff --git a/rust/kcl-lib/tests/kcl_samples/focusrite-scarlett-mounting-bracket/ops.snap b/rust/kcl-lib/tests/kcl_samples/focusrite-scarlett-mounting-bracket/ops.snap index 30cc8a6d2..aad804c9b 100644 --- a/rust/kcl-lib/tests/kcl_samples/focusrite-scarlett-mounting-bracket/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/focusrite-scarlett-mounting-bracket/ops.snap @@ -688,7 +688,7 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "distance": { "value": { "type": "Number", - "value": 54.666666666666664, + "value": 54.6667, "ty": { "type": "Default", "len": { @@ -1078,7 +1078,7 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "distance": { "value": { "type": "Number", - "value": 54.666666666666664, + "value": 54.6667, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/food-service-spatula/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/food-service-spatula/artifact_commands.snap index d778a4e1a..69357654f 100644 --- a/rust/kcl-lib/tests/kcl_samples/food-service-spatula/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/food-service-spatula/artifact_commands.snap @@ -109,8 +109,8 @@ description: Artifact commands food-service-spatula.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -24.833425848836807, - "y": 22.99722453489577, + "x": -24.8334, + "y": 22.9972, "z": 0.0 } } @@ -122,8 +122,8 @@ description: Artifact commands food-service-spatula.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -25.16657415116319, - "y": -13.002775465104229, + "x": -25.1666, + "y": -13.0028, "z": 0.0 } } @@ -631,11 +631,11 @@ description: Artifact commands food-service-spatula.kcl "radius": 110.0, "start": { "unit": "degrees", - "value": 163.08761 + "value": 163.0876 }, "end": { "unit": "degrees", - "value": 196.91239 + "value": 196.9124 }, "relative": false } @@ -1138,14 +1138,14 @@ description: Artifact commands food-service-spatula.kcl "command": { "type": "make_plane", "origin": { - "x": 208.593833, + "x": 208.5938, "y": 0.0, - "z": 75.921946 + "z": 75.9219 }, "x_axis": { - "x": 0.342019894888923, + "x": 0.342, "y": -0.0, - "z": -0.9396927112094517 + "z": -0.9397 }, "y_axis": { "x": 0.0, @@ -1167,9 +1167,9 @@ description: Artifact commands food-service-spatula.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.9396927112094517, + "x": 0.9397, "y": -0.0, - "z": 0.342019894888923 + "z": 0.342 } } }, @@ -1180,7 +1180,7 @@ description: Artifact commands food-service-spatula.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -26.806746, + "x": -26.8067, "y": -10.0, "z": 0.0 } @@ -1395,9 +1395,9 @@ description: Artifact commands food-service-spatula.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.9396927112094517, + "x": 0.9397, "y": -0.0, - "z": 0.342019894888923 + "z": 0.342 } } }, diff --git a/rust/kcl-lib/tests/kcl_samples/french-press/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/french-press/artifact_commands.snap index 95b1fd8ae..80f557c28 100644 --- a/rust/kcl-lib/tests/kcl_samples/french-press/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/french-press/artifact_commands.snap @@ -235,8 +235,8 @@ description: Artifact commands french-press.kcl "z": 0.0 }, "x_axis": { - "x": 0.7071067811865475, - "y": 0.7071067811865475, + "x": 0.7071, + "y": 0.7071, "z": 0.0 }, "y_axis": { @@ -259,8 +259,8 @@ description: Artifact commands french-press.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.7071067811865475, - "y": -0.7071067811865475, + "x": 0.7071, + "y": -0.7071, "z": 0.0 } } @@ -639,8 +639,8 @@ description: Artifact commands french-press.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.7071067811865475, - "y": -0.7071067811865475, + "x": 0.7071, + "y": -0.7071, "z": 0.0 } } @@ -913,8 +913,8 @@ description: Artifact commands french-press.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 7.619999999999999, - "y": 4.3180000000000005, + "x": 7.62, + "y": 4.318, "z": 0.0 } } @@ -1237,8 +1237,8 @@ description: Artifact commands french-press.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 3.8099999999999996, - "y": 28.194000000000003, + "x": 3.81, + "y": 28.194, "z": 0.0 } } @@ -1861,7 +1861,7 @@ description: Artifact commands french-press.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 3.8099999999999996, + "x": 3.81, "y": 0.0, "z": 0.0 } @@ -3245,7 +3245,7 @@ description: Artifact commands french-press.kcl "type": "make_plane", "origin": { "x": 0.0, - "y": -8.254999999999999, + "y": -8.255, "z": 0.0 }, "x_axis": { @@ -3300,7 +3300,7 @@ description: Artifact commands french-press.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 58.419999999999995, + "x": 58.42, "y": 162.56, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/gear-rack/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/gear-rack/artifact_commands.snap index c736ef503..9ce5efac8 100644 --- a/rust/kcl-lib/tests/kcl_samples/gear-rack/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/gear-rack/artifact_commands.snap @@ -264,7 +264,7 @@ description: Artifact commands gear-rack.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -49.432328, + "x": -49.4323, "y": 10.875, "z": 0.0 } @@ -482,7 +482,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 1.570796, + "x": 1.5708, "y": 0.0, "z": 0.0 }, @@ -511,7 +511,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 3.141592, + "x": 3.1416, "y": 0.0, "z": 0.0 }, @@ -540,7 +540,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 4.712388000000001, + "x": 4.7124, "y": 0.0, "z": 0.0 }, @@ -569,7 +569,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 6.283184, + "x": 6.2832, "y": 0.0, "z": 0.0 }, @@ -598,7 +598,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 7.85398, + "x": 7.854, "y": 0.0, "z": 0.0 }, @@ -627,7 +627,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 9.424776000000001, + "x": 9.4248, "y": 0.0, "z": 0.0 }, @@ -656,7 +656,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 10.995572000000001, + "x": 10.9956, "y": 0.0, "z": 0.0 }, @@ -685,7 +685,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 12.566368, + "x": 12.5664, "y": 0.0, "z": 0.0 }, @@ -714,7 +714,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 14.137164, + "x": 14.1372, "y": 0.0, "z": 0.0 }, @@ -743,7 +743,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 15.70796, + "x": 15.708, "y": 0.0, "z": 0.0 }, @@ -772,7 +772,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 17.278756, + "x": 17.2788, "y": 0.0, "z": 0.0 }, @@ -801,7 +801,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 18.849552000000003, + "x": 18.8496, "y": 0.0, "z": 0.0 }, @@ -830,7 +830,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 20.420348, + "x": 20.4203, "y": 0.0, "z": 0.0 }, @@ -859,7 +859,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 21.991144000000002, + "x": 21.9911, "y": 0.0, "z": 0.0 }, @@ -888,7 +888,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 23.56194, + "x": 23.5619, "y": 0.0, "z": 0.0 }, @@ -917,7 +917,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 25.132736, + "x": 25.1327, "y": 0.0, "z": 0.0 }, @@ -946,7 +946,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 26.703532000000003, + "x": 26.7035, "y": 0.0, "z": 0.0 }, @@ -975,7 +975,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 28.274328, + "x": 28.2743, "y": 0.0, "z": 0.0 }, @@ -1004,7 +1004,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 29.845124000000002, + "x": 29.8451, "y": 0.0, "z": 0.0 }, @@ -1033,7 +1033,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 31.41592, + "x": 31.4159, "y": 0.0, "z": 0.0 }, @@ -1062,7 +1062,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 32.986716, + "x": 32.9867, "y": 0.0, "z": 0.0 }, @@ -1091,7 +1091,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 34.557512, + "x": 34.5575, "y": 0.0, "z": 0.0 }, @@ -1120,7 +1120,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 36.128308000000004, + "x": 36.1283, "y": 0.0, "z": 0.0 }, @@ -1149,7 +1149,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 37.699104000000005, + "x": 37.6991, "y": 0.0, "z": 0.0 }, @@ -1207,7 +1207,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 40.840696, + "x": 40.8407, "y": 0.0, "z": 0.0 }, @@ -1236,7 +1236,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 42.411492, + "x": 42.4115, "y": 0.0, "z": 0.0 }, @@ -1265,7 +1265,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 43.982288000000004, + "x": 43.9823, "y": 0.0, "z": 0.0 }, @@ -1294,7 +1294,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 45.553084000000005, + "x": 45.5531, "y": 0.0, "z": 0.0 }, @@ -1323,7 +1323,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 47.12388, + "x": 47.1239, "y": 0.0, "z": 0.0 }, @@ -1352,7 +1352,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 48.694676, + "x": 48.6947, "y": 0.0, "z": 0.0 }, @@ -1381,7 +1381,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 50.265472, + "x": 50.2655, "y": 0.0, "z": 0.0 }, @@ -1410,7 +1410,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 51.836268000000004, + "x": 51.8363, "y": 0.0, "z": 0.0 }, @@ -1439,7 +1439,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 53.407064000000005, + "x": 53.4071, "y": 0.0, "z": 0.0 }, @@ -1468,7 +1468,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 54.97786, + "x": 54.9779, "y": 0.0, "z": 0.0 }, @@ -1497,7 +1497,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 56.548656, + "x": 56.5487, "y": 0.0, "z": 0.0 }, @@ -1526,7 +1526,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 58.119452, + "x": 58.1195, "y": 0.0, "z": 0.0 }, @@ -1555,7 +1555,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 59.690248000000004, + "x": 59.6902, "y": 0.0, "z": 0.0 }, @@ -1584,7 +1584,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 61.261044000000005, + "x": 61.261, "y": 0.0, "z": 0.0 }, @@ -1613,7 +1613,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 62.83184, + "x": 62.8318, "y": 0.0, "z": 0.0 }, @@ -1642,7 +1642,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 64.402636, + "x": 64.4026, "y": 0.0, "z": 0.0 }, @@ -1671,7 +1671,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 65.973432, + "x": 65.9734, "y": 0.0, "z": 0.0 }, @@ -1700,7 +1700,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 67.544228, + "x": 67.5442, "y": 0.0, "z": 0.0 }, @@ -1729,7 +1729,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 69.115024, + "x": 69.115, "y": 0.0, "z": 0.0 }, @@ -1758,7 +1758,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 70.68582, + "x": 70.6858, "y": 0.0, "z": 0.0 }, @@ -1787,7 +1787,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 72.25661600000001, + "x": 72.2566, "y": 0.0, "z": 0.0 }, @@ -1816,7 +1816,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 73.82741200000001, + "x": 73.8274, "y": 0.0, "z": 0.0 }, @@ -1845,7 +1845,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 75.39820800000001, + "x": 75.3982, "y": 0.0, "z": 0.0 }, @@ -1874,7 +1874,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 76.969004, + "x": 76.969, "y": 0.0, "z": 0.0 }, @@ -1932,7 +1932,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 80.110596, + "x": 80.1106, "y": 0.0, "z": 0.0 }, @@ -1961,7 +1961,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 81.681392, + "x": 81.6814, "y": 0.0, "z": 0.0 }, @@ -1990,7 +1990,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 83.252188, + "x": 83.2522, "y": 0.0, "z": 0.0 }, @@ -2019,7 +2019,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 84.822984, + "x": 84.823, "y": 0.0, "z": 0.0 }, @@ -2048,7 +2048,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 86.39378, + "x": 86.3938, "y": 0.0, "z": 0.0 }, @@ -2077,7 +2077,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 87.96457600000001, + "x": 87.9646, "y": 0.0, "z": 0.0 }, @@ -2106,7 +2106,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 89.53537200000001, + "x": 89.5354, "y": 0.0, "z": 0.0 }, @@ -2135,7 +2135,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 91.10616800000001, + "x": 91.1062, "y": 0.0, "z": 0.0 }, @@ -2164,7 +2164,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 92.676964, + "x": 92.677, "y": 0.0, "z": 0.0 }, @@ -2193,7 +2193,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 94.24776, + "x": 94.2478, "y": 0.0, "z": 0.0 }, @@ -2222,7 +2222,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 95.818556, + "x": 95.8186, "y": 0.0, "z": 0.0 }, @@ -2251,7 +2251,7 @@ description: Artifact commands gear-rack.kcl [ { "translate": { - "x": 97.389352, + "x": 97.3894, "y": 0.0, "z": 0.0 }, @@ -2329,7 +2329,7 @@ description: Artifact commands gear-rack.kcl "path": "[uuid]", "to": { "x": -50.0, - "y": 11.849525, + "y": 11.8495, "z": 0.0 } } @@ -2516,7 +2516,7 @@ description: Artifact commands gear-rack.kcl "path": "[uuid]", "to": { "x": 50.0, - "y": 11.849525, + "y": 11.8495, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/gear-rack/ops.snap b/rust/kcl-lib/tests/kcl_samples/gear-rack/ops.snap index 6c97423f7..f7950a5b1 100644 --- a/rust/kcl-lib/tests/kcl_samples/gear-rack/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/gear-rack/ops.snap @@ -156,7 +156,7 @@ description: Operations executed gear-rack.kcl "distance": { "value": { "type": "Number", - "value": 1.570796, + "value": 1.5708, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate-magnets/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate-magnets/artifact_commands.snap index 24da99867..29ff28771 100644 --- a/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate-magnets/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate-magnets/artifact_commands.snap @@ -2004,7 +2004,7 @@ description: Artifact commands gridfinity-baseplate-magnets.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 2.8499999999999996, + "x": 2.85, "y": 13.0, "z": 0.0 } @@ -2017,7 +2017,7 @@ description: Artifact commands gridfinity-baseplate-magnets.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 2.8499999999999996, + "x": 2.85, "y": 13.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/hammer/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/hammer/artifact_commands.snap index 1b1bd7395..86944a24e 100644 --- a/rust/kcl-lib/tests/kcl_samples/hammer/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/hammer/artifact_commands.snap @@ -78,7 +78,7 @@ description: Artifact commands hammer.kcl "path": "[uuid]", "to": { "x": 8.382, - "y": 286.00399999999996, + "y": 286.004, "z": 0.0 } } @@ -1518,7 +1518,7 @@ description: Artifact commands hammer.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 292.09999999999997 + "z": 292.1 }, "x_axis": { "x": 1.0, diff --git a/rust/kcl-lib/tests/kcl_samples/helical-gear/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/helical-gear/artifact_commands.snap index a2915bf2f..d6739d8c2 100644 --- a/rust/kcl-lib/tests/kcl_samples/helical-gear/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/helical-gear/artifact_commands.snap @@ -77,7 +77,7 @@ description: Artifact commands helical-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 3.3541019662496847, + "x": 3.3541, "y": 1.0, "z": 0.0 } @@ -163,7 +163,7 @@ description: Artifact commands helical-gear.kcl "radius": 3.5, "start": { "unit": "degrees", - "value": 343.3984504009797 + "value": 343.3985 }, "end": { "unit": "degrees", @@ -192,7 +192,7 @@ description: Artifact commands helical-gear.kcl }, "end": { "unit": "degrees", - "value": 16.601549599020235 + "value": 16.6015 }, "relative": false } @@ -378,8 +378,8 @@ description: Artifact commands helical-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 0.0000000000000012083311382392428, - "y": 19.733545036504076, + "x": 0.0, + "y": 19.7335, "z": 0.0 } } @@ -391,8 +391,8 @@ description: Artifact commands helical-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 2.1026747593723187, - "y": 19.62120176146286, + "x": 2.1027, + "y": 19.6212, "z": 0.0 } } @@ -404,8 +404,8 @@ description: Artifact commands helical-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 4.20534951874464, - "y": 19.280244685504613, + "x": 4.2053, + "y": 19.2802, "z": 0.0 } } @@ -509,7 +509,7 @@ description: Artifact commands helical-gear.kcl "end_radius": 23.0, "angle": { "unit": "degrees", - "value": 83.88333258352058 + "value": 83.8833 }, "reverse": false } @@ -527,7 +527,7 @@ description: Artifact commands helical-gear.kcl "end_radius": 23.0, "angle": { "unit": "degrees", - "value": 77.6955281798938 + "value": 77.6955 }, "reverse": false } @@ -596,7 +596,7 @@ description: Artifact commands helical-gear.kcl "end_radius": 23.0, "angle": { "unit": "degrees", - "value": 616.4231928988978 + "value": 616.4232 }, "reverse": true } @@ -614,7 +614,7 @@ description: Artifact commands helical-gear.kcl "end_radius": 23.0, "angle": { "unit": "degrees", - "value": -97.46013968462269 + "value": -97.4601 }, "reverse": true } @@ -632,7 +632,7 @@ description: Artifact commands helical-gear.kcl "end_radius": 23.0, "angle": { "unit": "degrees", - "value": -91.27233528099592 + "value": -91.2723 }, "reverse": true } diff --git a/rust/kcl-lib/tests/kcl_samples/helical-gear/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/helical-gear/artifact_graph_flowchart.snap.md index 8a67a5b82..21ca06122 100644 --- a/rust/kcl-lib/tests/kcl_samples/helical-gear/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/helical-gear/artifact_graph_flowchart.snap.md @@ -2,45 +2,74 @@ flowchart LR subgraph path8 [Path] 8["Path
[889, 995, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 12["Segment
[1003, 1030, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 13["Segment
[1038, 1066, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 14["Segment
[1074, 1102, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 15["Segment
[1110, 1186, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 16["Segment
[1194, 1259, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 17["Segment
[1267, 1274, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 30[Solid2d] end subgraph path9 [Path] 9["Path
[1779, 1849, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 26["Segment
[2813, 2820, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 29[Solid2d] end subgraph path10 [Path] 10["Path
[1779, 1849, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 19["Segment
[1859, 2025, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 20["Segment
[2035, 2120, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 23["Segment
[2130, 2351, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 24["Segment
[2438, 2524, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 28["Segment
[2813, 2820, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 31[Solid2d] end subgraph path11 [Path] 11["Path
[1779, 1849, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 18["Segment
[1859, 2025, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 21["Segment
[2035, 2120, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 22["Segment
[2130, 2351, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 25["Segment
[2438, 2524, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 27["Segment
[2813, 2820, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 32[Solid2d] end 1["Plane
[864, 881, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["Plane
[1730, 1768, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 3["Plane
[1730, 1768, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 4["Plane
[1730, 1768, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 5["StartSketchOnPlane
[1716, 1769, 0]"] + %% Missing NodePath 6["StartSketchOnPlane
[1716, 1769, 0]"] + %% Missing NodePath 7["StartSketchOnPlane
[1716, 1769, 0]"] + %% Missing NodePath 33["Sweep Loft
[3337, 3404, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit] 34[Wall] 35[Wall] 36[Wall] diff --git a/rust/kcl-lib/tests/kcl_samples/helical-gear/ops.snap b/rust/kcl-lib/tests/kcl_samples/helical-gear/ops.snap index 09d76ae40..124338532 100644 --- a/rust/kcl-lib/tests/kcl_samples/helical-gear/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/helical-gear/ops.snap @@ -156,7 +156,7 @@ description: Operations executed helical-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.5707963267948966, + "value": 1.5708, "ty": { "type": "Known", "type": "Angle", @@ -168,7 +168,7 @@ description: Operations executed helical-gear.kcl "length": { "value": { "type": "Number", - "value": 19.733545036504076, + "value": 19.7335, "ty": { "type": "Default", "len": { @@ -196,7 +196,7 @@ description: Operations executed helical-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.4640403411278755, + "value": 1.464, "ty": { "type": "Known", "type": "Angle", @@ -208,7 +208,7 @@ description: Operations executed helical-gear.kcl "length": { "value": { "type": "Number", - "value": 19.733545036504076, + "value": 19.7335, "ty": { "type": "Default", "len": { @@ -236,7 +236,7 @@ description: Operations executed helical-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.3560427808151838, + "value": 1.356, "ty": { "type": "Known", "type": "Angle", @@ -248,7 +248,7 @@ description: Operations executed helical-gear.kcl "length": { "value": { "type": "Number", - "value": 19.733545036504076, + "value": 19.7335, "ty": { "type": "Default", "len": { @@ -276,7 +276,7 @@ description: Operations executed helical-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.7037737936135122, + "value": 1.7038, "ty": { "type": "Known", "type": "Angle", @@ -316,7 +316,7 @@ description: Operations executed helical-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.5970178079464912, + "value": 1.597, "ty": { "type": "Known", "type": "Angle", @@ -356,7 +356,7 @@ description: Operations executed helical-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.4890202476337995, + "value": 1.489, "ty": { "type": "Known", "type": "Angle", @@ -396,7 +396,7 @@ description: Operations executed helical-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.8699956271367815, + "value": 1.87, "ty": { "type": "Known", "type": "Angle", @@ -408,7 +408,7 @@ description: Operations executed helical-gear.kcl "length": { "value": { "type": "Number", - "value": 19.733545036504076, + "value": 19.7335, "ty": { "type": "Default", "len": { @@ -436,7 +436,7 @@ description: Operations executed helical-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.7632396414697604, + "value": 1.7632, "ty": { "type": "Known", "type": "Angle", @@ -448,7 +448,7 @@ description: Operations executed helical-gear.kcl "length": { "value": { "type": "Number", - "value": 19.733545036504076, + "value": 19.7335, "ty": { "type": "Default", "len": { @@ -476,7 +476,7 @@ description: Operations executed helical-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.655242081157069, + "value": 1.6552, "ty": { "type": "Known", "type": "Angle", @@ -488,7 +488,7 @@ description: Operations executed helical-gear.kcl "length": { "value": { "type": "Number", - "value": 19.733545036504076, + "value": 19.7335, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/artifact_commands.snap index 1ec68a8fc..fdc7f70a2 100644 --- a/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/artifact_commands.snap @@ -118,7 +118,7 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 3.4641016151377544, + "x": 3.4641, "y": 0.5, "z": 0.0 } @@ -131,7 +131,7 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 3.4641016151377544, + "x": 3.4641, "y": 0.5, "z": 0.0 } @@ -282,7 +282,7 @@ description: Artifact commands helical-planetary-gearset.kcl "radius": 3.5, "start": { "unit": "degrees", - "value": 351.7867892982618 + "value": 351.7868 }, "end": { "unit": "degrees", @@ -307,7 +307,7 @@ description: Artifact commands helical-planetary-gearset.kcl "radius": 3.5, "start": { "unit": "degrees", - "value": 351.7867892982618 + "value": 351.7868 }, "end": { "unit": "degrees", @@ -336,7 +336,7 @@ description: Artifact commands helical-planetary-gearset.kcl }, "end": { "unit": "degrees", - "value": 8.213210701738188 + "value": 8.2132 }, "relative": false } @@ -361,7 +361,7 @@ description: Artifact commands helical-planetary-gearset.kcl }, "end": { "unit": "degrees", - "value": 8.213210701738188 + "value": 8.2132 }, "relative": false } @@ -720,8 +720,8 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 0.000000000000000534721299934615, - "y": 8.732661536483969, + "x": 0.0, + "y": 8.7327, "z": 0.0 } } @@ -733,8 +733,8 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 0.969549273937636, - "y": 8.678672232328719, + "x": 0.9695, + "y": 8.6787, "z": 0.0 } } @@ -746,8 +746,8 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 1.9390985478752714, - "y": 8.514650570188689, + "x": 1.9391, + "y": 8.5147, "z": 0.0 } } @@ -759,8 +759,8 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 0.000000000000000534721299934615, - "y": 8.732661536483969, + "x": 0.0, + "y": 8.7327, "z": 0.0 } } @@ -772,8 +772,8 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -0.9695492739376368, - "y": 8.678672232328719, + "x": -0.9695, + "y": 8.6787, "z": 0.0 } } @@ -785,8 +785,8 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -1.9390985478752725, - "y": 8.514650570188689, + "x": -1.9391, + "y": 8.5147, "z": 0.0 } } @@ -959,7 +959,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 10.5, "angle": { "unit": "degrees", - "value": 83.62555782351659 + "value": 83.6256 }, "reverse": false } @@ -977,7 +977,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 10.5, "angle": { "unit": "degrees", - "value": 77.17045767129224 + "value": 77.1705 }, "reverse": false } @@ -1013,7 +1013,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 10.5, "angle": { "unit": "degrees", - "value": 96.37444217648343 + "value": 96.3744 }, "reverse": false } @@ -1031,7 +1031,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 10.5, "angle": { "unit": "degrees", - "value": 102.82954232870779 + "value": 102.8295 }, "reverse": false } @@ -1151,7 +1151,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 10.5, "angle": { "unit": "degrees", - "value": 611.9038409048754 + "value": 611.9038 }, "reverse": true } @@ -1169,7 +1169,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 10.5, "angle": { "unit": "degrees", - "value": -101.72171691864123 + "value": -101.7217 }, "reverse": true } @@ -1187,7 +1187,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 10.5, "angle": { "unit": "degrees", - "value": -95.26661676641686 + "value": -95.2666 }, "reverse": true } @@ -1205,7 +1205,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 10.5, "angle": { "unit": "degrees", - "value": 611.9038409048754 + "value": 611.9038 }, "reverse": true } @@ -1223,7 +1223,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 10.5, "angle": { "unit": "degrees", - "value": 605.529398728392 + "value": 605.5294 }, "reverse": true } @@ -1241,7 +1241,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 10.5, "angle": { "unit": "degrees", - "value": 599.0742985761676 + "value": 599.0743 }, "reverse": true } @@ -1887,8 +1887,8 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 0.0000000000000018715245497711523, - "y": 30.564315377693887, + "x": 0.0, + "y": 30.5643, "z": 0.0 } } @@ -1900,8 +1900,8 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -1.0797253277941856, - "y": 30.54523805315085, + "x": -1.0797, + "y": 30.5452, "z": 0.0 } } @@ -1913,8 +1913,8 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -2.159450655588373, - "y": 30.487934455669738, + "x": -2.1595, + "y": 30.4879, "z": 0.0 } } @@ -2018,7 +2018,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 33.0, "angle": { "unit": "degrees", - "value": 92.02447128028268 + "value": 92.0245 }, "reverse": false } @@ -2036,7 +2036,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 33.0, "angle": { "unit": "degrees", - "value": 94.05147558880067 + "value": 94.0515 }, "reverse": false } @@ -2105,7 +2105,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 33.0, "angle": { "unit": "degrees", - "value": 625.3044620244902 + "value": 625.3045 }, "reverse": true } @@ -2123,7 +2123,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 33.0, "angle": { "unit": "degrees", - "value": 623.2799907442076 + "value": 623.28 }, "reverse": true } @@ -2141,7 +2141,7 @@ description: Artifact commands helical-planetary-gearset.kcl "end_radius": 33.0, "angle": { "unit": "degrees", - "value": 621.2529864356896 + "value": 621.253 }, "reverse": true } @@ -2556,7 +2556,7 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 35.67567567567568, + "x": 35.6757, "y": 0.0, "z": 0.0 } @@ -2569,7 +2569,7 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 35.67567567567568, + "x": 35.6757, "y": 0.0, "z": 0.0 } @@ -2582,7 +2582,7 @@ description: Artifact commands helical-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 35.67567567567568, + "x": 35.6757, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/ops.snap b/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/ops.snap index 72d641105..b52ccdb49 100644 --- a/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/ops.snap @@ -298,7 +298,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.5707963267948966, + "value": 1.5708, "ty": { "type": "Known", "type": "Angle", @@ -310,7 +310,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 8.732661536483969, + "value": 8.7327, "ty": { "type": "Default", "len": { @@ -338,7 +338,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.4595413228372676, + "value": 1.4595, "ty": { "type": "Known", "type": "Angle", @@ -350,7 +350,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 8.732661536483969, + "value": 8.7327, "ty": { "type": "Default", "len": { @@ -378,7 +378,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.3468785716349654, + "value": 1.3469, "ty": { "type": "Known", "type": "Angle", @@ -390,7 +390,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 8.732661536483969, + "value": 8.7327, "ty": { "type": "Default", "len": { @@ -418,7 +418,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.5707963267948966, + "value": 1.5708, "ty": { "type": "Known", "type": "Angle", @@ -430,7 +430,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 8.732661536483969, + "value": 8.7327, "ty": { "type": "Default", "len": { @@ -458,7 +458,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.6820513307525258, + "value": 1.6821, "ty": { "type": "Known", "type": "Angle", @@ -470,7 +470,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 8.732661536483969, + "value": 8.7327, "ty": { "type": "Default", "len": { @@ -498,7 +498,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.794714081954828, + "value": 1.7947, "ty": { "type": "Known", "type": "Angle", @@ -510,7 +510,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 8.732661536483969, + "value": 8.7327, "ty": { "type": "Default", "len": { @@ -538,7 +538,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.8035068937274739, + "value": 1.8035, "ty": { "type": "Known", "type": "Angle", @@ -578,7 +578,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.6922518897698449, + "value": 1.6923, "ty": { "type": "Known", "type": "Angle", @@ -618,7 +618,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.5795891385675427, + "value": 1.5796, "ty": { "type": "Known", "type": "Angle", @@ -658,7 +658,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.8035068937274739, + "value": 1.8035, "ty": { "type": "Known", "type": "Angle", @@ -698,7 +698,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.914761897685103, + "value": 1.9148, "ty": { "type": "Known", "type": "Angle", @@ -738,7 +738,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 2.027424648887405, + "value": 2.0274, "ty": { "type": "Known", "type": "Angle", @@ -778,7 +778,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 2.0943951023931953, + "value": 2.0944, "ty": { "type": "Known", "type": "Angle", @@ -790,7 +790,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 8.732661536483969, + "value": 8.7327, "ty": { "type": "Default", "len": { @@ -818,7 +818,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.9831400984355665, + "value": 1.9831, "ty": { "type": "Known", "type": "Angle", @@ -830,7 +830,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 8.732661536483969, + "value": 8.7327, "ty": { "type": "Default", "len": { @@ -858,7 +858,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.870477347233264, + "value": 1.8705, "ty": { "type": "Known", "type": "Angle", @@ -870,7 +870,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 8.732661536483969, + "value": 8.7327, "ty": { "type": "Default", "len": { @@ -898,7 +898,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 2.0943951023931953, + "value": 2.0944, "ty": { "type": "Known", "type": "Angle", @@ -910,7 +910,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 8.732661536483969, + "value": 8.7327, "ty": { "type": "Default", "len": { @@ -938,7 +938,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 2.2056501063508245, + "value": 2.2057, "ty": { "type": "Known", "type": "Angle", @@ -950,7 +950,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 8.732661536483969, + "value": 8.7327, "ty": { "type": "Default", "len": { @@ -978,7 +978,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 2.318312857553127, + "value": 2.3183, "ty": { "type": "Known", "type": "Angle", @@ -990,7 +990,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 8.732661536483969, + "value": 8.7327, "ty": { "type": "Default", "len": { @@ -1529,7 +1529,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.5707963267948966, + "value": 1.5708, "ty": { "type": "Known", "type": "Angle", @@ -1541,7 +1541,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 30.564315377693887, + "value": 30.5643, "ty": { "type": "Default", "len": { @@ -1569,7 +1569,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.6061300162478944, + "value": 1.6061, "ty": { "type": "Known", "type": "Angle", @@ -1581,7 +1581,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 30.564315377693887, + "value": 30.5643, "ty": { "type": "Default", "len": { @@ -1609,7 +1609,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.6415079153836443, + "value": 1.6415, "ty": { "type": "Known", "type": "Angle", @@ -1621,7 +1621,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 30.564315377693887, + "value": 30.5643, "ty": { "type": "Default", "len": { @@ -1649,7 +1649,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.6539072435565312, + "value": 1.6539, "ty": { "type": "Known", "type": "Angle", @@ -1689,7 +1689,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.689240933009529, + "value": 1.6892, "ty": { "type": "Known", "type": "Angle", @@ -1729,7 +1729,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.724618832145279, + "value": 1.7246, "ty": { "type": "Known", "type": "Angle", @@ -1769,7 +1769,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.720395976965839, + "value": 1.7204, "ty": { "type": "Known", "type": "Angle", @@ -1781,7 +1781,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 30.564315377693887, + "value": 30.5643, "ty": { "type": "Default", "len": { @@ -1809,7 +1809,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.7557296664188369, + "value": 1.7557, "ty": { "type": "Known", "type": "Angle", @@ -1821,7 +1821,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 30.564315377693887, + "value": 30.5643, "ty": { "type": "Default", "len": { @@ -1849,7 +1849,7 @@ description: Operations executed helical-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.7911075655545867, + "value": 1.7911, "ty": { "type": "Known", "type": "Angle", @@ -1861,7 +1861,7 @@ description: Operations executed helical-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 30.564315377693887, + "value": 30.5643, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/helium-tank/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/helium-tank/artifact_commands.snap index 945a5990e..16b5d1430 100644 --- a/rust/kcl-lib/tests/kcl_samples/helium-tank/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/helium-tank/artifact_commands.snap @@ -549,7 +549,7 @@ description: Artifact commands helium-tank.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 16.710526315789473, + "x": 16.7105, "y": 0.0, "z": 0.0 } @@ -748,8 +748,8 @@ description: Artifact commands helium-tank.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 10.583333333333334, - "y": 769.6199999999999, + "x": 10.5833, + "y": 769.62, "z": 0.0 } } @@ -842,8 +842,8 @@ description: Artifact commands helium-tank.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 9.76923076923077, - "y": 769.6199999999999, + "x": 9.7692, + "y": 769.62, "z": 0.0 } } @@ -1576,7 +1576,7 @@ description: Artifact commands helium-tank.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 120.64999999999999, + "x": 120.65, "y": 1.5875, "z": 0.0 } @@ -1789,7 +1789,7 @@ description: Artifact commands helium-tank.kcl "type": "make_plane", "origin": { "x": 0.0, - "y": 120.31578947368422, + "y": 120.3158, "z": 0.0 }, "x_axis": { @@ -1877,7 +1877,7 @@ description: Artifact commands helium-tank.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 53.974999999999994, + "x": 53.975, "y": 510.54, "z": 0.0 } @@ -2144,7 +2144,7 @@ description: Artifact commands helium-tank.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 120.31578947368422, + "x": 120.3158, "y": 1.9685, "z": 0.0 } @@ -2247,7 +2247,7 @@ description: Artifact commands helium-tank.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 117.77578947368423, + "x": 117.7758, "y": 1.9685, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/helium-tank/ops.snap b/rust/kcl-lib/tests/kcl_samples/helium-tank/ops.snap index e02eecf6d..4c61313b1 100644 --- a/rust/kcl-lib/tests/kcl_samples/helium-tank/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/helium-tank/ops.snap @@ -150,7 +150,7 @@ description: Operations executed helium-tank.kcl "offset": { "value": { "type": "Number", - "value": 2.4583333333333335, + "value": 2.4583, "ty": { "type": "Known", "type": "Length", @@ -648,7 +648,7 @@ description: Operations executed helium-tank.kcl "offset": { "value": { "type": "Number", - "value": -4.736842105263158, + "value": -4.7368, "ty": { "type": "Default", "len": { @@ -1002,7 +1002,7 @@ description: Operations executed helium-tank.kcl "distance": { "value": { "type": "Number", - "value": 0.8250000000000001, + "value": 0.825, "ty": { "type": "Known", "type": "Length", diff --git a/rust/kcl-lib/tests/kcl_samples/herringbone-gear/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/herringbone-gear/artifact_commands.snap index 5262a443f..583560c5d 100644 --- a/rust/kcl-lib/tests/kcl_samples/herringbone-gear/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/herringbone-gear/artifact_commands.snap @@ -146,8 +146,8 @@ description: Artifact commands herringbone-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 0.0000000000000007426684721314096, - "y": 12.128696578449956, + "x": 0.0, + "y": 12.1287, "z": 0.0 } } @@ -159,8 +159,8 @@ description: Artifact commands herringbone-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 3.015462170559555, - "y": 11.747862298734521, + "x": 3.0155, + "y": 11.7479, "z": 0.0 } } @@ -241,7 +241,7 @@ description: Artifact commands herringbone-gear.kcl "end_radius": 13.5, "angle": { "unit": "degrees", - "value": 75.60400909518157 + "value": 75.604 }, "reverse": false } @@ -293,7 +293,7 @@ description: Artifact commands herringbone-gear.kcl "end_radius": 13.5, "angle": { "unit": "degrees", - "value": 622.1735910904937 + "value": 622.1736 }, "reverse": true } @@ -311,7 +311,7 @@ description: Artifact commands herringbone-gear.kcl "end_radius": 13.5, "angle": { "unit": "degrees", - "value": -83.43041800468791 + "value": -83.4304 }, "reverse": true } diff --git a/rust/kcl-lib/tests/kcl_samples/herringbone-gear/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/herringbone-gear/artifact_graph_flowchart.snap.md index 3e9280ccf..7b0544a40 100644 --- a/rust/kcl-lib/tests/kcl_samples/herringbone-gear/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/herringbone-gear/artifact_graph_flowchart.snap.md @@ -2,37 +2,58 @@ flowchart LR subgraph path5 [Path] 5["Path
[1136, 1206, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 9["Segment
[1216, 1382, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 11["Segment
[1392, 1477, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 14["Segment
[1487, 1708, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 15["Segment
[1795, 1881, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 17["Segment
[2170, 2177, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 22[Solid2d] end subgraph path6 [Path] 6["Path
[1136, 1206, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 10["Segment
[1216, 1382, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 12["Segment
[1392, 1477, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 13["Segment
[1487, 1708, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 16["Segment
[1795, 1881, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 18["Segment
[2170, 2177, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 23[Solid2d] end subgraph path7 [Path] 7["Path
[2256, 2291, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }, CallKwArg { index: 0 }] 20["Segment
[2256, 2291, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }, CallKwArg { index: 0 }] 21[Solid2d] end subgraph path8 [Path] 8["Path
[2256, 2291, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }, CallKwArg { index: 0 }] 19["Segment
[2256, 2291, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }, CallKwArg { index: 0 }] 24[Solid2d] end 1["Plane
[1087, 1125, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 2["Plane
[1087, 1125, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 3["StartSketchOnPlane
[1073, 1126, 0]"] + %% Missing NodePath 4["StartSketchOnPlane
[1073, 1126, 0]"] + %% Missing NodePath 25["Sweep Loft
[2816, 2917, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit] 26[Wall] 27[Wall] 28[Wall] diff --git a/rust/kcl-lib/tests/kcl_samples/herringbone-gear/ops.snap b/rust/kcl-lib/tests/kcl_samples/herringbone-gear/ops.snap index 94bcf3b22..e81ebe8a7 100644 --- a/rust/kcl-lib/tests/kcl_samples/herringbone-gear/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/herringbone-gear/ops.snap @@ -100,7 +100,7 @@ description: Operations executed herringbone-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.5707963267948966, + "value": 1.5708, "ty": { "type": "Known", "type": "Angle", @@ -112,7 +112,7 @@ description: Operations executed herringbone-gear.kcl "length": { "value": { "type": "Number", - "value": 12.128696578449956, + "value": 12.1287, "ty": { "type": "Default", "len": { @@ -140,7 +140,7 @@ description: Operations executed herringbone-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.3195388864186572, + "value": 1.3195, "ty": { "type": "Known", "type": "Angle", @@ -152,7 +152,7 @@ description: Operations executed herringbone-gear.kcl "length": { "value": { "type": "Number", - "value": 12.128696578449956, + "value": 12.1287, "ty": { "type": "Default", "len": { @@ -180,7 +180,7 @@ description: Operations executed herringbone-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.6824973989225336, + "value": 1.6825, "ty": { "type": "Known", "type": "Angle", @@ -220,7 +220,7 @@ description: Operations executed herringbone-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.4312399585462943, + "value": 1.4312, "ty": { "type": "Known", "type": "Angle", @@ -260,7 +260,7 @@ description: Operations executed herringbone-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.82212373908208, + "value": 1.8221, "ty": { "type": "Known", "type": "Angle", @@ -272,7 +272,7 @@ description: Operations executed herringbone-gear.kcl "length": { "value": { "type": "Number", - "value": 12.128696578449956, + "value": 12.1287, "ty": { "type": "Default", "len": { @@ -300,7 +300,7 @@ description: Operations executed herringbone-gear.kcl "angle": { "value": { "type": "Number", - "value": 1.5708662987058406, + "value": 1.5709, "ty": { "type": "Known", "type": "Angle", @@ -312,7 +312,7 @@ description: Operations executed herringbone-gear.kcl "length": { "value": { "type": "Number", - "value": 12.128696578449956, + "value": 12.1287, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/artifact_commands.snap index 77d9737ef..71813bf5d 100644 --- a/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/artifact_commands.snap @@ -256,8 +256,8 @@ description: Artifact commands herringbone-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 0.0000000000000008020819499019225, - "y": 13.098992304725952, + "x": 0.0, + "y": 13.099, "z": 0.0 } } @@ -269,8 +269,8 @@ description: Artifact commands herringbone-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 2.4458701745920246, - "y": 12.86861758264309, + "x": 2.4459, + "y": 12.8686, "z": 0.0 } } @@ -282,8 +282,8 @@ description: Artifact commands herringbone-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 0.0000000000000008020819499019225, - "y": 13.098992304725952, + "x": 0.0, + "y": 13.099, "z": 0.0 } } @@ -295,8 +295,8 @@ description: Artifact commands herringbone-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -2.4458701745920233, - "y": 12.86861758264309, + "x": -2.4459, + "y": 12.8686, "z": 0.0 } } @@ -423,7 +423,7 @@ description: Artifact commands herringbone-planetary-gearset.kcl "end_radius": 15.0, "angle": { "unit": "degrees", - "value": 79.23845407148335 + "value": 79.2385 }, "reverse": false } @@ -459,7 +459,7 @@ description: Artifact commands herringbone-planetary-gearset.kcl "end_radius": 15.0, "angle": { "unit": "degrees", - "value": 100.76154592851665 + "value": 100.7615 }, "reverse": false } @@ -545,7 +545,7 @@ description: Artifact commands herringbone-planetary-gearset.kcl "end_radius": 15.0, "angle": { "unit": "degrees", - "value": 618.764320149364 + "value": 618.7643 }, "reverse": true } @@ -563,7 +563,7 @@ description: Artifact commands herringbone-planetary-gearset.kcl "end_radius": 15.0, "angle": { "unit": "degrees", - "value": -90.47413392211939 + "value": -90.4741 }, "reverse": true } @@ -581,7 +581,7 @@ description: Artifact commands herringbone-planetary-gearset.kcl "end_radius": 15.0, "angle": { "unit": "degrees", - "value": 618.764320149364 + "value": 618.7643 }, "reverse": true } @@ -599,7 +599,7 @@ description: Artifact commands herringbone-planetary-gearset.kcl "end_radius": 15.0, "angle": { "unit": "degrees", - "value": 608.0027742208474 + "value": 608.0028 }, "reverse": true } @@ -1498,8 +1498,8 @@ description: Artifact commands herringbone-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 0.0000000000000025844862830173056, - "y": 42.207864093005846, + "x": 0.0, + "y": 42.2079, "z": 0.0 } } @@ -1511,8 +1511,8 @@ description: Artifact commands herringbone-planetary-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -2.6270457430803247, - "y": 42.12603021835093, + "x": -2.627, + "y": 42.126, "z": 0.0 } } @@ -1593,7 +1593,7 @@ description: Artifact commands herringbone-planetary-gearset.kcl "end_radius": 45.0, "angle": { "unit": "degrees", - "value": 93.5684342027113 + "value": 93.5684 }, "reverse": false } @@ -1645,7 +1645,7 @@ description: Artifact commands herringbone-planetary-gearset.kcl "end_radius": 45.0, "angle": { "unit": "degrees", - "value": 626.4283375475447 + "value": 626.4283 }, "reverse": true } @@ -1663,7 +1663,7 @@ description: Artifact commands herringbone-planetary-gearset.kcl "end_radius": 45.0, "angle": { "unit": "degrees", - "value": 622.8599033448335 + "value": 622.8599 }, "reverse": true } diff --git a/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/ops.snap b/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/ops.snap index 247939f9b..3edb7e3fd 100644 --- a/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/ops.snap @@ -186,7 +186,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.5707963267948966, + "value": 1.5708, "ty": { "type": "Known", "type": "Angle", @@ -198,7 +198,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 13.098992304725952, + "value": 13.099, "ty": { "type": "Default", "len": { @@ -226,7 +226,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.3829719177376907, + "value": 1.383, "ty": { "type": "Known", "type": "Angle", @@ -238,7 +238,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 13.098992304725952, + "value": 13.099, "ty": { "type": "Default", "len": { @@ -266,7 +266,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.5707963267948966, + "value": 1.5708, "ty": { "type": "Known", "type": "Angle", @@ -278,7 +278,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 13.098992304725952, + "value": 13.099, "ty": { "type": "Default", "len": { @@ -306,7 +306,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.7586207358521024, + "value": 1.7586, "ty": { "type": "Known", "type": "Angle", @@ -318,7 +318,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 13.098992304725952, + "value": 13.099, "ty": { "type": "Default", "len": { @@ -346,7 +346,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.725936704749948, + "value": 1.7259, "ty": { "type": "Known", "type": "Angle", @@ -386,7 +386,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.5381122956927422, + "value": 1.5381, "ty": { "type": "Known", "type": "Angle", @@ -426,7 +426,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.725936704749948, + "value": 1.7259, "ty": { "type": "Known", "type": "Angle", @@ -466,7 +466,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.913761113807154, + "value": 1.9138, "ty": { "type": "Known", "type": "Angle", @@ -506,7 +506,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.9198621771937625, + "value": 1.9199, "ty": { "type": "Known", "type": "Angle", @@ -518,7 +518,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 13.098992304725952, + "value": 13.099, "ty": { "type": "Default", "len": { @@ -546,7 +546,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.7320377681365566, + "value": 1.732, "ty": { "type": "Known", "type": "Angle", @@ -558,7 +558,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 13.098992304725952, + "value": 13.099, "ty": { "type": "Default", "len": { @@ -586,7 +586,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.9198621771937625, + "value": 1.9199, "ty": { "type": "Known", "type": "Angle", @@ -598,7 +598,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 13.098992304725952, + "value": 13.099, "ty": { "type": "Default", "len": { @@ -626,7 +626,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 2.1076865862509684, + "value": 2.1077, "ty": { "type": "Known", "type": "Angle", @@ -638,7 +638,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 13.098992304725952, + "value": 13.099, "ty": { "type": "Default", "len": { @@ -1092,7 +1092,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.5707963267948966, + "value": 1.5708, "ty": { "type": "Known", "type": "Angle", @@ -1104,7 +1104,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 42.207864093005846, + "value": 42.2079, "ty": { "type": "Default", "len": { @@ -1132,7 +1132,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.6330772527729875, + "value": 1.6331, "ty": { "type": "Known", "type": "Angle", @@ -1144,7 +1144,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 42.207864093005846, + "value": 42.2079, "ty": { "type": "Default", "len": { @@ -1172,7 +1172,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.6369984708360608, + "value": 1.637, "ty": { "type": "Known", "type": "Angle", @@ -1212,7 +1212,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.6992793968141517, + "value": 1.6993, "ty": { "type": "Known", "type": "Angle", @@ -1252,7 +1252,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.6791271079531653, + "value": 1.6791, "ty": { "type": "Known", "type": "Angle", @@ -1264,7 +1264,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 42.207864093005846, + "value": 42.2079, "ty": { "type": "Default", "len": { @@ -1292,7 +1292,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "angle": { "value": { "type": "Number", - "value": 1.7414080339312563, + "value": 1.7414, "ty": { "type": "Known", "type": "Angle", @@ -1304,7 +1304,7 @@ description: Operations executed herringbone-planetary-gearset.kcl "length": { "value": { "type": "Number", - "value": 42.207864093005846, + "value": 42.2079, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/hex-nut/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/hex-nut/artifact_commands.snap index df29ccd92..a37875d2d 100644 --- a/rust/kcl-lib/tests/kcl_samples/hex-nut/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/hex-nut/artifact_commands.snap @@ -264,7 +264,7 @@ description: Artifact commands hex-nut.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 3.96875, + "x": 3.9688, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/hex-nut/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/hex-nut/artifact_graph_flowchart.snap.md index ecd66c1a8..f95bbb3eb 100644 --- a/rust/kcl-lib/tests/kcl_samples/hex-nut/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/hex-nut/artifact_graph_flowchart.snap.md @@ -2,21 +2,32 @@ flowchart LR subgraph path2 [Path] 2["Path
[590, 640, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 4["Segment
[648, 690, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 5["Segment
[698, 740, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 6["Segment
[748, 790, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 7["Segment
[798, 839, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 8["Segment
[847, 893, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9["Segment
[901, 908, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 11[Solid2d] end subgraph path3 [Path] 3["Path
[934, 994, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }, CallKwArg { index: 0 }] 10["Segment
[934, 994, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }, CallKwArg { index: 0 }] 12[Solid2d] end 1["Plane
[564, 582, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 13["Sweep Extrusion
[1003, 1024, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 14[Wall] 15[Wall] 16[Wall] diff --git a/rust/kcl-lib/tests/kcl_samples/i-beam/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/i-beam/artifact_graph_flowchart.snap.md index 2f649ae10..e7733f281 100644 --- a/rust/kcl-lib/tests/kcl_samples/i-beam/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/i-beam/artifact_graph_flowchart.snap.md @@ -2,14 +2,22 @@ flowchart LR subgraph path2 [Path] 2["Path
[475, 513, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[519, 550, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[556, 588, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[594, 644, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[650, 696, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7["Segment
[702, 724, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] end 1["Plane
[451, 469, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[778, 806, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/kcl_samples/keyboard/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/keyboard/artifact_commands.snap index aef9dc4cb..a0c314516 100644 --- a/rust/kcl-lib/tests/kcl_samples/keyboard/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/keyboard/artifact_commands.snap @@ -390,8 +390,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 29.209999999999997, - "y": 19.049999999999997, + "x": 29.21, + "y": 19.05, "z": 0.0 } } @@ -462,8 +462,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 121.92000000000002, - "y": 19.049999999999997, + "x": 121.92, + "y": 19.05, "z": 0.0 } } @@ -534,7 +534,7 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 28.701999999999995, + "x": 28.702, "y": 326.39, "z": 0.0 } @@ -606,7 +606,7 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 121.92000000000002, + "x": 121.92, "y": 326.39, "z": 0.0 } @@ -858,7 +858,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -867,8 +867,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -883,7 +883,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -892,8 +892,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -908,7 +908,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -917,8 +917,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -933,7 +933,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -942,8 +942,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -958,7 +958,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -967,8 +967,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -983,7 +983,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -992,8 +992,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1008,7 +1008,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1017,8 +1017,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1033,7 +1033,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1042,8 +1042,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1058,7 +1058,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1067,8 +1067,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1083,7 +1083,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1092,8 +1092,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1108,7 +1108,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1117,8 +1117,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1133,7 +1133,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1142,8 +1142,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1158,7 +1158,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1167,8 +1167,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1183,7 +1183,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1192,8 +1192,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1208,7 +1208,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1217,8 +1217,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1233,7 +1233,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1242,8 +1242,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1258,7 +1258,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1267,8 +1267,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1283,7 +1283,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1292,8 +1292,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1308,7 +1308,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1317,8 +1317,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1333,7 +1333,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1342,8 +1342,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1358,7 +1358,7 @@ description: Artifact commands keyboard.kcl "origin": { "x": 0.0, "y": 0.0, - "z": 17.779999999999998 + "z": 17.78 }, "x_axis": { "x": 1.0, @@ -1367,8 +1367,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -1386,8 +1386,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1402,8 +1402,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1418,8 +1418,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1434,8 +1434,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1450,8 +1450,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1466,8 +1466,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1482,8 +1482,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1498,8 +1498,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1514,8 +1514,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1530,8 +1530,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1546,8 +1546,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1562,8 +1562,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1578,8 +1578,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1594,8 +1594,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1610,8 +1610,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1626,8 +1626,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1642,8 +1642,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1658,8 +1658,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1674,8 +1674,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1690,8 +1690,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1706,8 +1706,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -1718,8 +1718,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 7.619999999999999, - "y": 7.620000000000001, + "x": 7.62, + "y": 7.62, "z": 0.0 } } @@ -1731,8 +1731,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 38.099999999999994, - "y": 7.620000000000001, + "x": 38.1, + "y": 7.62, "z": 0.0 } } @@ -1744,8 +1744,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 106.67999999999999, - "y": 7.620000000000001, + "x": 106.68, + "y": 7.62, "z": 0.0 } } @@ -1757,8 +1757,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 241.29999999999998, - "y": 7.620000000000001, + "x": 241.3, + "y": 7.62, "z": 0.0 } } @@ -1770,8 +1770,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 264.15999999999997, - "y": 7.620000000000001, + "x": 264.16, + "y": 7.62, "z": 0.0 } } @@ -1784,7 +1784,7 @@ description: Artifact commands keyboard.kcl "path": "[uuid]", "to": { "x": 287.02, - "y": 7.620000000000001, + "y": 7.62, "z": 0.0 } } @@ -1797,7 +1797,7 @@ description: Artifact commands keyboard.kcl "path": "[uuid]", "to": { "x": 317.5, - "y": 7.620000000000001, + "y": 7.62, "z": 0.0 } } @@ -1809,8 +1809,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 7.620000000000001, - "y": 30.480000000000004, + "x": 7.62, + "y": 30.48, "z": 0.0 } } @@ -1822,8 +1822,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 53.339999999999996, - "y": 30.480000000000004, + "x": 53.34, + "y": 30.48, "z": 0.0 } } @@ -1836,7 +1836,7 @@ description: Artifact commands keyboard.kcl "path": "[uuid]", "to": { "x": 281.94, - "y": 30.480000000000004, + "y": 30.48, "z": 0.0 } } @@ -1848,8 +1848,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 7.620000000000001, - "y": 53.339999999999996, + "x": 7.62, + "y": 53.34, "z": 0.0 } } @@ -1862,7 +1862,7 @@ description: Artifact commands keyboard.kcl "path": "[uuid]", "to": { "x": 40.64, - "y": 53.339999999999996, + "y": 53.34, "z": 0.0 } } @@ -1874,8 +1874,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 292.09999999999997, - "y": 53.339999999999996, + "x": 292.1, + "y": 53.34, "z": 0.0 } } @@ -1887,7 +1887,7 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 7.620000000000001, + "x": 7.62, "y": 76.2, "z": 0.0 } @@ -1900,7 +1900,7 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 33.019999999999996, + "x": 33.02, "y": 76.2, "z": 0.0 } @@ -1913,7 +1913,7 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 307.34000000000003, + "x": 307.34, "y": 76.2, "z": 0.0 } @@ -1926,8 +1926,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 7.620000000000001, - "y": 99.06000000000002, + "x": 7.62, + "y": 99.06, "z": 0.0 } } @@ -1939,8 +1939,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 304.79999999999995, - "y": 99.06000000000002, + "x": 304.8, + "y": 99.06, "z": 0.0 } } @@ -1952,8 +1952,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 7.620000000000001, - "y": 121.92000000000002, + "x": 7.62, + "y": 121.92, "z": 0.0 } } @@ -1965,8 +1965,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 38.099999999999994, - "y": 121.92000000000002, + "x": 38.1, + "y": 121.92, "z": 0.0 } } @@ -1979,7 +1979,7 @@ description: Artifact commands keyboard.kcl "path": "[uuid]", "to": { "x": 312.42, - "y": 121.92000000000002, + "y": 121.92, "z": 0.0 } } @@ -5607,8 +5607,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5623,8 +5623,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5639,8 +5639,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5655,8 +5655,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5671,8 +5671,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5687,8 +5687,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5703,8 +5703,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5719,8 +5719,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5735,8 +5735,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5751,8 +5751,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5767,8 +5767,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5783,8 +5783,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5799,8 +5799,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5815,8 +5815,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5831,8 +5831,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5847,8 +5847,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5863,8 +5863,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5879,8 +5879,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5895,8 +5895,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5911,8 +5911,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -5927,8 +5927,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -7537,7 +7537,7 @@ description: Artifact commands keyboard.kcl [ { "translate": { - "x": 160.01999999999998, + "x": 160.02, "y": 0.0, "z": 0.0 }, @@ -7829,7 +7829,7 @@ description: Artifact commands keyboard.kcl [ { "translate": { - "x": 160.01999999999998, + "x": 160.02, "y": 0.0, "z": 0.0 }, @@ -8150,7 +8150,7 @@ description: Artifact commands keyboard.kcl [ { "translate": { - "x": 160.01999999999998, + "x": 160.02, "y": 0.0, "z": 0.0 }, @@ -8266,7 +8266,7 @@ description: Artifact commands keyboard.kcl [ { "translate": { - "x": 251.45999999999998, + "x": 251.46, "y": 0.0, "z": 0.0 }, @@ -8490,7 +8490,7 @@ description: Artifact commands keyboard.kcl [ { "translate": { - "x": 160.01999999999998, + "x": 160.02, "y": 0.0, "z": 0.0 }, @@ -8606,7 +8606,7 @@ description: Artifact commands keyboard.kcl [ { "translate": { - "x": 251.45999999999998, + "x": 251.46, "y": 0.0, "z": 0.0 }, @@ -8869,7 +8869,7 @@ description: Artifact commands keyboard.kcl [ { "translate": { - "x": 160.01999999999998, + "x": 160.02, "y": 0.0, "z": 0.0 }, @@ -8985,7 +8985,7 @@ description: Artifact commands keyboard.kcl [ { "translate": { - "x": 251.45999999999998, + "x": 251.46, "y": 0.0, "z": 0.0 }, @@ -9041,8 +9041,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -9060,8 +9060,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -9072,8 +9072,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 58.419999999999995, - "y": 34.544000000000004, + "x": 58.42, + "y": 34.544, "z": 0.0 } } @@ -9375,8 +9375,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -9458,8 +9458,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -9483,8 +9483,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -9502,8 +9502,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -9518,8 +9518,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -9530,8 +9530,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 229.24008000000003, - "y": 87.58936, + "x": 229.2401, + "y": 87.5894, "z": 0.0 } } @@ -9543,8 +9543,8 @@ description: Artifact commands keyboard.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 252.10008000000005, - "y": 87.58936, + "x": 252.1001, + "y": 87.5894, "z": 0.0 } } @@ -9756,8 +9756,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -9772,8 +9772,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -9916,8 +9916,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -9941,8 +9941,8 @@ description: Artifact commands keyboard.kcl }, "y_axis": { "x": 0.0, - "y": 0.9926556406329575, - "z": 0.12097429115135457 + "y": 0.9927, + "z": 0.121 }, "size": 60.0, "clobber": false, @@ -9960,8 +9960,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -9976,8 +9976,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -9989,7 +9989,7 @@ description: Artifact commands keyboard.kcl "path": "[uuid]", "to": { "x": 222.8596, - "y": 79.03464000000001, + "y": 79.0346, "z": 0.0 } } @@ -10002,7 +10002,7 @@ description: Artifact commands keyboard.kcl "path": "[uuid]", "to": { "x": 245.7196, - "y": 79.03464000000001, + "y": 79.0346, "z": 0.0 } } @@ -10214,8 +10214,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, @@ -10230,8 +10230,8 @@ description: Artifact commands keyboard.kcl "adjust_camera": false, "planar_normal": { "x": 0.0, - "y": -0.12097429115135457, - "z": 0.9926556406329575 + "y": -0.121, + "z": 0.9927 } } }, diff --git a/rust/kcl-lib/tests/kcl_samples/keyboard/ops.snap b/rust/kcl-lib/tests/kcl_samples/keyboard/ops.snap index ea5897c4d..646609932 100644 --- a/rust/kcl-lib/tests/kcl_samples/keyboard/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/keyboard/ops.snap @@ -4794,7 +4794,7 @@ description: Operations executed keyboard.kcl "distance": { "value": { "type": "Number", - "value": 1.2000000000000002, + "value": 1.2, "ty": { "type": "Default", "len": { @@ -5269,7 +5269,7 @@ description: Operations executed keyboard.kcl "distance": { "value": { "type": "Number", - "value": 1.2000000000000002, + "value": 1.2, "ty": { "type": "Default", "len": { @@ -5649,7 +5649,7 @@ description: Operations executed keyboard.kcl "distance": { "value": { "type": "Number", - "value": 2.3000000000000003, + "value": 2.3, "ty": { "type": "Default", "len": { @@ -5744,7 +5744,7 @@ description: Operations executed keyboard.kcl "distance": { "value": { "type": "Number", - "value": 1.3000000000000003, + "value": 1.3, "ty": { "type": "Default", "len": { @@ -6409,7 +6409,7 @@ description: Operations executed keyboard.kcl "distance": { "value": { "type": "Number", - "value": 1.4000000000000001, + "value": 1.4, "ty": { "type": "Default", "len": { @@ -6504,7 +6504,7 @@ description: Operations executed keyboard.kcl "distance": { "value": { "type": "Number", - "value": 1.2000000000000002, + "value": 1.2, "ty": { "type": "Default", "len": { @@ -7781,7 +7781,7 @@ description: Operations executed keyboard.kcl "keyWidth": { "value": { "type": "Number", - "value": 1.2000000000000002, + "value": 1.2, "ty": { "type": "Default", "len": { @@ -7983,7 +7983,7 @@ description: Operations executed keyboard.kcl "keyWidth": { "value": { "type": "Number", - "value": 1.7999999999999998, + "value": 1.8, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/lego/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/lego/artifact_commands.snap index 470e935a5..c30da00bb 100644 --- a/rust/kcl-lib/tests/kcl_samples/lego/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/lego/artifact_commands.snap @@ -236,7 +236,7 @@ description: Artifact commands lego.kcl "path": "[uuid]", "to": { "x": -162.56, - "y": -264.15999999999997, + "y": -264.16, "z": 0.0 } } @@ -1008,7 +1008,7 @@ description: Artifact commands lego.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 60.959999999999994, + "x": 60.96, "y": -101.6, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/lego/ops.snap b/rust/kcl-lib/tests/kcl_samples/lego/ops.snap index 952ddb7f5..6fda1d44e 100644 --- a/rust/kcl-lib/tests/kcl_samples/lego/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/lego/ops.snap @@ -76,7 +76,7 @@ description: Operations executed lego.kcl "length": { "value": { "type": "Number", - "value": -1.7000000000000002, + "value": -1.7, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/mounting-plate/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/mounting-plate/artifact_commands.snap index b7359515f..5bbc8a344 100644 --- a/rust/kcl-lib/tests/kcl_samples/mounting-plate/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/mounting-plate/artifact_commands.snap @@ -77,7 +77,7 @@ description: Artifact commands mounting-plate.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -76.19999999999999, + "x": -76.2, "y": -127.0, "z": 0.0 } @@ -231,7 +231,7 @@ description: Artifact commands mounting-plate.kcl "path": "[uuid]", "to": { "x": -50.8, - "y": 107.94999999999999, + "y": 107.95, "z": 0.0 } } @@ -325,7 +325,7 @@ description: Artifact commands mounting-plate.kcl "path": "[uuid]", "to": { "x": 63.5, - "y": 107.94999999999999, + "y": 107.95, "z": 0.0 } } @@ -419,7 +419,7 @@ description: Artifact commands mounting-plate.kcl "path": "[uuid]", "to": { "x": -50.8, - "y": -107.94999999999999, + "y": -107.95, "z": 0.0 } } @@ -513,7 +513,7 @@ description: Artifact commands mounting-plate.kcl "path": "[uuid]", "to": { "x": 63.5, - "y": -107.94999999999999, + "y": -107.95, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/mounting-plate/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/mounting-plate/artifact_graph_flowchart.snap.md index f61dfb37d..d386fdaa9 100644 --- a/rust/kcl-lib/tests/kcl_samples/mounting-plate/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/mounting-plate/artifact_graph_flowchart.snap.md @@ -2,39 +2,56 @@ flowchart LR subgraph path2 [Path] 2["Path
[584, 639, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 8["Segment
[647, 715, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 9["Segment
[723, 789, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 10["Segment
[797, 865, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 11["Segment
[873, 892, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 20[Solid2d] end subgraph path3 [Path] 3["Path
[1150, 1295, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }, CallKwArg { index: 0 }] 12["Segment
[1150, 1295, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }, CallKwArg { index: 0 }] 19[Solid2d] end subgraph path4 [Path] 4["Path
[1320, 1464, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }, CallKwArg { index: 0 }] 13["Segment
[1320, 1464, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }, CallKwArg { index: 0 }] 22[Solid2d] end subgraph path5 [Path] 5["Path
[1489, 1635, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }, CallKwArg { index: 0 }] 14["Segment
[1489, 1635, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }, CallKwArg { index: 0 }] 21[Solid2d] end subgraph path6 [Path] 6["Path
[1660, 1805, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }, CallKwArg { index: 0 }] 15["Segment
[1660, 1805, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }, CallKwArg { index: 0 }] 17[Solid2d] end subgraph path7 [Path] 7["Path
[1830, 1882, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }, CallKwArg { index: 0 }] 16["Segment
[1830, 1882, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }, CallKwArg { index: 0 }] 18[Solid2d] end 1["Plane
[559, 576, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 23["Sweep Extrusion
[1889, 1921, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 24[Wall] 25[Wall] 26[Wall] @@ -50,9 +67,13 @@ flowchart LR 36["SweepEdge Adjacent"] 37["SweepEdge Adjacent"] 38["EdgeCut Fillet
[1927, 2192, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 39["EdgeCut Fillet
[1927, 2192, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 40["EdgeCut Fillet
[1927, 2192, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 41["EdgeCut Fillet
[1927, 2192, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 1 --- 2 1 --- 3 1 --- 4 diff --git a/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/artifact_commands.snap index 56bd93d67..f61ff0cea 100644 --- a/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/artifact_commands.snap @@ -993,7 +993,7 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -53.339999999999996, + "x": -53.34, "y": -101.6, "z": 0.0 } @@ -1407,7 +1407,7 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 99.05999999999999, + "x": 99.06, "y": 0.0, "z": 0.0 } @@ -1551,8 +1551,8 @@ description: Artifact commands multi-axis-robot.kcl "z": 0.0 }, "x_axis": { - "x": 0.9848077530122081, - "y": 0.17364817766693044, + "x": 0.9848, + "y": 0.1736, "z": 0.0 }, "y_axis": { @@ -1575,8 +1575,8 @@ description: Artifact commands multi-axis-robot.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.17364817766693044, - "y": -0.9848077530122081, + "x": 0.1736, + "y": -0.9848, "z": 0.0 } } @@ -1588,7 +1588,7 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 88.89999999999999, + "x": 88.9, "y": 127.0, "z": 0.0 } @@ -1711,8 +1711,8 @@ description: Artifact commands multi-axis-robot.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.17364817766693044, - "y": -0.9848077530122081, + "x": 0.1736, + "y": -0.9848, "z": 0.0 } } @@ -1968,7 +1968,7 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 49.52999999999999, + "x": 49.53, "y": 171.45, "z": 0.0 } @@ -2000,7 +2000,7 @@ description: Artifact commands multi-axis-robot.kcl "z": 0.0 }, "center": { - "x": 44.44999999999999, + "x": 44.45, "y": 203.2, "z": 0.0 }, @@ -2416,8 +2416,8 @@ description: Artifact commands multi-axis-robot.kcl "z": 0.0 }, "x_axis": { - "x": 0.9848077530122081, - "y": 0.17364817766693044, + "x": 0.9848, + "y": 0.1736, "z": 0.0 }, "y_axis": { @@ -2448,8 +2448,8 @@ description: Artifact commands multi-axis-robot.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.17364817766693044, - "y": -0.9848077530122081, + "x": 0.1736, + "y": -0.9848, "z": 0.0 } } @@ -2486,7 +2486,7 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 52.06999999999999, + "x": 52.07, "y": 203.2, "z": 0.0 } @@ -2525,8 +2525,8 @@ description: Artifact commands multi-axis-robot.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.17364817766693044, - "y": -0.9848077530122081, + "x": 0.1736, + "y": -0.9848, "z": 0.0 } } @@ -2586,8 +2586,8 @@ description: Artifact commands multi-axis-robot.kcl "z": 0.0 }, "x_axis": { - "x": 0.9848077530122081, - "y": 0.17364817766693044, + "x": 0.9848, + "y": 0.1736, "z": 0.0 }, "y_axis": { @@ -2610,8 +2610,8 @@ description: Artifact commands multi-axis-robot.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.17364817766693044, - "y": -0.9848077530122081, + "x": 0.1736, + "y": -0.9848, "z": 0.0 } } @@ -2623,8 +2623,8 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -3.286385135924148, - "y": 185.825376719056, + "x": -3.2864, + "y": 185.8254, "z": 0.0 } } @@ -2754,8 +2754,8 @@ description: Artifact commands multi-axis-robot.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.17364817766693044, - "y": -0.9848077530122081, + "x": 0.1736, + "y": -0.9848, "z": 0.0 } } @@ -2856,7 +2856,7 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 3.8099999999999974, + "x": 3.81, "y": 203.2, "z": 0.0 } @@ -3011,8 +3011,8 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 273.1166608546315, - "y": 943.1139696068243, + "x": 273.1167, + "y": 943.114, "z": 0.0 } } @@ -3198,7 +3198,7 @@ description: Artifact commands multi-axis-robot.kcl "z": 0.0 }, "center": { - "x": -44.449999999999996, + "x": -44.45, "y": 203.2, "z": 0.0 }, @@ -3707,8 +3707,8 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 221.24934921415954, - "y": 907.3116807548812, + "x": 221.2493, + "y": 907.3117, "z": 0.0 } } @@ -3739,8 +3739,8 @@ description: Artifact commands multi-axis-robot.kcl "z": 0.0 }, "center": { - "x": 224.8566608546315, - "y": 943.1139696068243, + "x": 224.8567, + "y": 943.114, "z": 0.0 }, "num_repetitions": 3, @@ -4024,8 +4024,8 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -217.2366608546315, - "y": 943.1139696068243, + "x": -217.2367, + "y": 943.114, "z": 0.0 } } @@ -4128,8 +4128,8 @@ description: Artifact commands multi-axis-robot.kcl "z": 0.0 }, "x_axis": { - "x": 0.9848077530122081, - "y": 0.17364817766693044, + "x": 0.9848, + "y": 0.1736, "z": 0.0 }, "y_axis": { @@ -4152,8 +4152,8 @@ description: Artifact commands multi-axis-robot.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.17364817766693044, - "y": -0.9848077530122081, + "x": 0.1736, + "y": -0.9848, "z": 0.0 } } @@ -4165,8 +4165,8 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -216.58666639324395, - "y": 990.0154388440308, + "x": -216.5867, + "y": 990.0154, "z": 0.0 } } @@ -4296,8 +4296,8 @@ description: Artifact commands multi-axis-robot.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.17364817766693044, - "y": -0.9848077530122081, + "x": 0.1736, + "y": -0.9848, "z": 0.0 } } @@ -4398,8 +4398,8 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -177.86666085463153, - "y": 943.1139696068243, + "x": -177.8667, + "y": 943.114, "z": 0.0 } } @@ -4553,8 +4553,8 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -211.08934921415957, - "y": 907.3116807548812, + "x": -211.0893, + "y": 907.3117, "z": 0.0 } } @@ -4585,8 +4585,8 @@ description: Artifact commands multi-axis-robot.kcl "z": 0.0 }, "center": { - "x": -224.8566608546315, - "y": 943.1139696068243, + "x": -224.8567, + "y": 943.114, "z": 0.0 }, "num_repetitions": 7, @@ -5094,8 +5094,8 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -227.80067767557009, - "y": 854.9006953520237, + "x": -227.8007, + "y": 854.9007, "z": 0.0 } } @@ -5222,8 +5222,8 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 322.81373737706264, - "y": 854.9006953520237, + "x": 322.8137, + "y": 854.9007, "z": 0.0 } } @@ -5445,8 +5445,8 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 275.4256776755701, - "y": 854.9006953520237, + "x": 275.4257, + "y": 854.9007, "z": 0.0 } } @@ -5675,8 +5675,8 @@ description: Artifact commands multi-axis-robot.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 275.4256776755701, - "y": 854.9006953520237, + "x": 275.4257, + "y": 854.9007, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/pillow-block-bearing/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/pillow-block-bearing/artifact_commands.snap index 3a4b8b1f6..df29af388 100644 --- a/rust/kcl-lib/tests/kcl_samples/pillow-block-bearing/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/pillow-block-bearing/artifact_commands.snap @@ -91,7 +91,7 @@ description: Artifact commands pillow-block-bearing.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 24.764999999999997, + "x": 24.765, "y": 0.0254, "z": 0.0 } @@ -287,8 +287,8 @@ description: Artifact commands pillow-block-bearing.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 26.154062500000002, - "y": 2.7496306570155924, + "x": 26.1541, + "y": 2.7496, "z": 0.0 } } @@ -536,7 +536,7 @@ description: Artifact commands pillow-block-bearing.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 28.23765625, + "x": 28.2377, "y": 6.35, "z": 0.0 } @@ -604,7 +604,7 @@ description: Artifact commands pillow-block-bearing.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 31.559499999999996, + "x": 31.5595, "y": 12.7, "z": 0.0 } @@ -825,7 +825,7 @@ description: Artifact commands pillow-block-bearing.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 22.224999999999998, + "x": 22.225, "y": 0.635, "z": 0.0 } @@ -1246,7 +1246,7 @@ description: Artifact commands pillow-block-bearing.kcl "path": "[uuid]", "to": { "x": -77.7875, - "y": -52.387499999999996, + "y": -52.3875, "z": 0.0 } } @@ -1807,8 +1807,8 @@ description: Artifact commands pillow-block-bearing.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -53.974999999999994, - "y": -38.099999999999994, + "x": -53.975, + "y": -38.1, "z": 0.0 } } @@ -1820,8 +1820,8 @@ description: Artifact commands pillow-block-bearing.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -53.974999999999994, - "y": 38.099999999999994, + "x": -53.975, + "y": 38.1, "z": 0.0 } } @@ -1833,8 +1833,8 @@ description: Artifact commands pillow-block-bearing.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 73.02499999999999, - "y": -38.099999999999994, + "x": 73.025, + "y": -38.1, "z": 0.0 } } @@ -1846,8 +1846,8 @@ description: Artifact commands pillow-block-bearing.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 73.02499999999999, - "y": 38.099999999999994, + "x": 73.025, + "y": 38.1, "z": 0.0 } } @@ -2320,7 +2320,7 @@ description: Artifact commands pillow-block-bearing.kcl "path": "[uuid]", "to": { "x": -58.7375, - "y": -38.099999999999994, + "y": -38.1, "z": 0.0 } } @@ -2333,7 +2333,7 @@ description: Artifact commands pillow-block-bearing.kcl "path": "[uuid]", "to": { "x": -58.7375, - "y": 38.099999999999994, + "y": 38.1, "z": 0.0 } } @@ -2346,7 +2346,7 @@ description: Artifact commands pillow-block-bearing.kcl "path": "[uuid]", "to": { "x": 68.2625, - "y": -38.099999999999994, + "y": -38.1, "z": 0.0 } } @@ -2359,7 +2359,7 @@ description: Artifact commands pillow-block-bearing.kcl "path": "[uuid]", "to": { "x": 68.2625, - "y": 38.099999999999994, + "y": 38.1, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/artifact_commands.snap index 26e08c1e0..39934269f 100644 --- a/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/artifact_commands.snap @@ -66,7 +66,7 @@ description: Artifact commands pipe-flange-assembly.kcl "property": { "x": 0.0, "y": 0.0, - "z": 3.8353999999999995 + "z": 3.8354 }, "set": false, "is_local": true @@ -112,9 +112,9 @@ description: Artifact commands pipe-flange-assembly.kcl { "translate": { "property": { - "x": 60.324999999999996, + "x": 60.325, "y": 0.0, - "z": 17.525999999999996 + "z": 17.526 }, "set": false, "is_local": true @@ -160,7 +160,7 @@ description: Artifact commands pipe-flange-assembly.kcl "translate": { "x": -0.0, "y": -0.0, - "z": -39.700199999999995 + "z": -39.7002 }, "scale": { "x": 1.0, @@ -200,7 +200,7 @@ description: Artifact commands pipe-flange-assembly.kcl "translate": { "x": -0.0, "y": -0.0, - "z": -39.700199999999995 + "z": -39.7002 }, "scale": { "x": 1.0, @@ -240,7 +240,7 @@ description: Artifact commands pipe-flange-assembly.kcl "translate": { "x": -0.0, "y": -0.0, - "z": -39.700199999999995 + "z": -39.7002 }, "scale": { "x": 1.0, @@ -280,7 +280,7 @@ description: Artifact commands pipe-flange-assembly.kcl "translate": { "x": -0.0, "y": -0.0, - "z": -39.700199999999995 + "z": -39.7002 }, "scale": { "x": 1.0, @@ -317,7 +317,7 @@ description: Artifact commands pipe-flange-assembly.kcl { "translate": { "property": { - "x": 60.324999999999996, + "x": 60.325, "y": 0.0, "z": 18.3388 }, @@ -386,9 +386,9 @@ description: Artifact commands pipe-flange-assembly.kcl { "translate": { "property": { - "x": 60.324999999999996, + "x": 60.325, "y": 0.0, - "z": -36.064825 + "z": -36.0648 }, "set": false, "is_local": true @@ -457,7 +457,7 @@ description: Artifact commands pipe-flange-assembly.kcl "property": { "x": 0.0, "y": 0.0, - "z": 11.175999999999998 + "z": 11.176 }, "set": false, "is_local": false @@ -505,7 +505,7 @@ description: Artifact commands pipe-flange-assembly.kcl "property": { "x": 0.0, "y": 0.0, - "z": -15.011399999999998 + "z": -15.0114 }, "set": false, "is_local": false @@ -598,7 +598,7 @@ description: Artifact commands pipe-flange-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 52.387499999999996, + "x": 52.3875, "y": 0.0, "z": 0.0 } @@ -730,7 +730,7 @@ description: Artifact commands pipe-flange-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 30.162499999999998, + "x": 30.1625, "y": 0.0, "z": 0.0 } @@ -978,8 +978,8 @@ description: Artifact commands pipe-flange-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 9.524999999999999, - "y": 60.324999999999996, + "x": 9.525, + "y": 60.325, "z": 0.0 } } @@ -991,8 +991,8 @@ description: Artifact commands pipe-flange-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 9.524999999999999, - "y": 60.324999999999996, + "x": 9.525, + "y": 60.325, "z": 0.0 } } @@ -1222,7 +1222,7 @@ description: Artifact commands pipe-flange-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 76.19999999999999, + "x": 76.2, "y": 0.0, "z": 0.0 } @@ -1235,7 +1235,7 @@ description: Artifact commands pipe-flange-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 76.19999999999999, + "x": 76.2, "y": 0.0, "z": 0.0 } @@ -2142,7 +2142,7 @@ description: Artifact commands pipe-flange-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 30.987999999999996, + "x": 30.988, "y": 0.0, "z": 0.0 } @@ -2155,7 +2155,7 @@ description: Artifact commands pipe-flange-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 30.987999999999996, + "x": 30.988, "y": 0.0, "z": 0.0 } @@ -2416,7 +2416,7 @@ description: Artifact commands pipe-flange-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 15.087599999999998, + "x": 15.0876, "y": 0.0, "z": 0.0 } @@ -2866,7 +2866,7 @@ description: Artifact commands pipe-flange-assembly.kcl "path": "[uuid]", "to": { "x": 6.35, - "y": 3.666174209354123, + "y": 3.6662, "z": 0.0 } } @@ -3227,8 +3227,8 @@ description: Artifact commands pipe-flange-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 11.90625, - "y": 6.874076642538981, + "x": 11.9063, + "y": 6.8741, "z": 0.0 } } @@ -3700,7 +3700,7 @@ description: Artifact commands pipe-flange-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 30.162499999999998, + "x": 30.1625, "y": 0.0, "z": 0.0 } @@ -3713,7 +3713,7 @@ description: Artifact commands pipe-flange-assembly.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 30.162499999999998, + "x": 30.1625, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/ops.snap b/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/ops.snap index b3cab5780..a5ca34f82 100644 --- a/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/ops.snap @@ -1472,7 +1472,7 @@ description: Operations executed pipe-flange-assembly.kcl "length": { "value": { "type": "Number", - "value": -0.46875, + "value": -0.4688, "ty": { "type": "Default", "len": { @@ -1572,7 +1572,7 @@ description: Operations executed pipe-flange-assembly.kcl "length": { "value": { "type": "Number", - "value": 0.546875, + "value": 0.5469, "ty": { "type": "Default", "len": { @@ -1627,7 +1627,7 @@ description: Operations executed pipe-flange-assembly.kcl "length": { "value": { "type": "Number", - "value": -0.546875, + "value": -0.5469, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/pipe-with-bend/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/pipe-with-bend/artifact_graph_flowchart.snap.md index 9e3055976..c017f7261 100644 --- a/rust/kcl-lib/tests/kcl_samples/pipe-with-bend/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/pipe-with-bend/artifact_graph_flowchart.snap.md @@ -2,16 +2,22 @@ flowchart LR subgraph path2 [Path] 2["Path
[444, 515, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit] 4["Segment
[444, 515, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit] 6[Solid2d] end subgraph path3 [Path] 3["Path
[575, 646, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit] 5["Segment
[575, 646, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit] 7[Solid2d] end 1["Plane
[367, 384, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit] 8["Sweep Revolve
[803, 852, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit] 9[Wall] 10["Cap Start"] 11["Cap End"] diff --git a/rust/kcl-lib/tests/kcl_samples/pipe/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/pipe/artifact_commands.snap index 31b4ff904..c3720a6db 100644 --- a/rust/kcl-lib/tests/kcl_samples/pipe/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/pipe/artifact_commands.snap @@ -110,7 +110,7 @@ description: Artifact commands pipe.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 30.162499999999998, + "x": 30.1625, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/pipe/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/pipe/artifact_graph_flowchart.snap.md index 8e6f68eae..1cd210ec1 100644 --- a/rust/kcl-lib/tests/kcl_samples/pipe/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/pipe/artifact_graph_flowchart.snap.md @@ -2,18 +2,26 @@ flowchart LR subgraph path3 [Path] 3["Path
[259, 317, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 5["Segment
[259, 317, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 8[Solid2d] end subgraph path4 [Path] 4["Path
[453, 508, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 6["Segment
[453, 508, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 7[Solid2d] end 1["Plane
[236, 253, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[412, 447, 0]"] + %% Missing NodePath 9["Sweep Extrusion
[323, 354, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 10["Sweep Extrusion
[514, 546, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 11[Wall] 12[Wall] 13["Cap Start"] diff --git a/rust/kcl-lib/tests/kcl_samples/poopy-shoe/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/poopy-shoe/artifact_commands.snap index 68ce4760b..57c10c709 100644 --- a/rust/kcl-lib/tests/kcl_samples/poopy-shoe/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/poopy-shoe/artifact_commands.snap @@ -77,7 +77,7 @@ description: Artifact commands poopy-shoe.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 38.099999999999994, + "x": 38.1, "y": 0.0, "z": 0.0 } @@ -325,7 +325,7 @@ description: Artifact commands poopy-shoe.kcl "target": "[uuid]", "origin": { "x": 0.0, - "y": 130.17754, + "y": 130.1775, "z": 0.0 }, "axis": { @@ -408,7 +408,7 @@ description: Artifact commands poopy-shoe.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 38.099999999999994, + "x": 38.1, "y": 0.0, "z": 0.0 } @@ -707,7 +707,7 @@ description: Artifact commands poopy-shoe.kcl "type": "make_plane", "origin": { "x": 0.0, - "y": -36.512499999999996, + "y": -36.5125, "z": 0.0 }, "x_axis": { @@ -1418,7 +1418,7 @@ description: Artifact commands poopy-shoe.kcl "path": "[uuid]", "to": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/artifact_commands.snap index fb434ee57..f8aa487af 100644 --- a/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/artifact_commands.snap @@ -415,9 +415,9 @@ description: Artifact commands prosthetic-hip.kcl "z": 110.0 }, "x_axis": { - "x": 0.9063077870366499, + "x": 0.9063, "y": 0.0, - "z": 0.42261826174069944 + "z": 0.4226 }, "y_axis": { "x": 0.0, @@ -439,9 +439,9 @@ description: Artifact commands prosthetic-hip.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": -0.42261826174069944, + "x": -0.4226, "y": 0.0, - "z": 0.9063077870366499 + "z": 0.9063 } } }, @@ -600,9 +600,9 @@ description: Artifact commands prosthetic-hip.kcl "z": 130.0 }, "x_axis": { - "x": 0.8038568606172174, + "x": 0.8039, "y": 0.0, - "z": 0.5948227867513414 + "z": 0.5948 }, "y_axis": { "x": 0.0, @@ -624,9 +624,9 @@ description: Artifact commands prosthetic-hip.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": -0.5948227867513414, + "x": -0.5948, "y": 0.0, - "z": 0.8038568606172174 + "z": 0.8039 } } }, @@ -785,9 +785,9 @@ description: Artifact commands prosthetic-hip.kcl "z": 140.0 }, "x_axis": { - "x": 0.8038568606172174, + "x": 0.8039, "y": 0.0, - "z": 0.5948227867513414 + "z": 0.5948 }, "y_axis": { "x": 0.0, @@ -809,9 +809,9 @@ description: Artifact commands prosthetic-hip.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": -0.5948227867513414, + "x": -0.5948, "y": 0.0, - "z": 0.8038568606172174 + "z": 0.8039 } } }, @@ -970,9 +970,9 @@ description: Artifact commands prosthetic-hip.kcl "z": 145.0 }, "x_axis": { - "x": 0.8038568606172174, + "x": 0.8039, "y": 0.0, - "z": 0.5948227867513414 + "z": 0.5948 }, "y_axis": { "x": 0.0, @@ -994,9 +994,9 @@ description: Artifact commands prosthetic-hip.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": -0.5948227867513414, + "x": -0.5948, "y": 0.0, - "z": 0.8038568606172174 + "z": 0.8039 } } }, @@ -1178,9 +1178,9 @@ description: Artifact commands prosthetic-hip.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": -0.5948227867513414, + "x": -0.5948, "y": 0.0, - "z": 0.8038568606172174 + "z": 0.8039 } } }, diff --git a/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/artifact_commands.snap index e413f5fd0..5c2bddb47 100644 --- a/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/artifact_commands.snap @@ -78,7 +78,7 @@ description: Artifact commands router-template-cross-bar.kcl "path": "[uuid]", "to": { "x": 0.0, - "y": 31.88125, + "y": 31.8813, "z": 0.0 } } @@ -540,7 +540,7 @@ description: Artifact commands router-template-cross-bar.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 32.63125, + "x": 32.6313, "y": 0.0, "z": 0.0 } @@ -711,7 +711,7 @@ description: Artifact commands router-template-cross-bar.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -32.63125, + "x": -32.6313, "y": 0.0, "z": 0.0 } @@ -882,7 +882,7 @@ description: Artifact commands router-template-cross-bar.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -32.63125, + "x": -32.6313, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/router-template-slate/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/router-template-slate/artifact_commands.snap index afbc4a92d..ffaa9adaf 100644 --- a/rust/kcl-lib/tests/kcl_samples/router-template-slate/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/router-template-slate/artifact_commands.snap @@ -78,7 +78,7 @@ description: Artifact commands router-template-slate.kcl "path": "[uuid]", "to": { "x": 0.0, - "y": 28.118750000000002, + "y": 28.1188, "z": 0.0 } } @@ -405,7 +405,7 @@ description: Artifact commands router-template-slate.kcl "path": "[uuid]", "to": { "x": -20.75, - "y": -12.49375, + "y": -12.4938, "z": 0.0 } } @@ -576,7 +576,7 @@ description: Artifact commands router-template-slate.kcl "path": "[uuid]", "to": { "x": 20.75, - "y": -12.49375, + "y": -12.4938, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/sheet-metal-bracket/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/sheet-metal-bracket/artifact_commands.snap index 8fafdb2b4..cee1db590 100644 --- a/rust/kcl-lib/tests/kcl_samples/sheet-metal-bracket/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/sheet-metal-bracket/artifact_commands.snap @@ -77,7 +77,7 @@ description: Artifact commands sheet-metal-bracket.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -107.94999999999999, + "x": -107.95, "y": 0.0, "z": 0.0 } @@ -672,7 +672,7 @@ description: Artifact commands sheet-metal-bracket.kcl "path": "[uuid]", "to": { "x": -85.725, - "y": 19.049999999999997, + "y": 19.05, "z": 0.0 } } @@ -895,8 +895,8 @@ description: Artifact commands sheet-metal-bracket.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 92.07499999999999, - "y": 19.049999999999997, + "x": 92.075, + "y": 19.05, "z": 0.0 } } @@ -1119,7 +1119,7 @@ description: Artifact commands sheet-metal-bracket.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -23.018749999999997, + "x": -23.0187, "y": 31.75, "z": 0.0 } @@ -1191,7 +1191,7 @@ description: Artifact commands sheet-metal-bracket.kcl { "translate": { "x": 0.0, - "y": 76.19999999999999, + "y": 76.2, "z": 0.0 }, "scale": { @@ -1231,7 +1231,7 @@ description: Artifact commands sheet-metal-bracket.kcl { "translate": { "x": 0.0, - "y": 76.19999999999999, + "y": 76.2, "z": 0.0 }, "scale": { @@ -1535,7 +1535,7 @@ description: Artifact commands sheet-metal-bracket.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 19.049999999999997, + "x": 19.05, "y": 69.85, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/artifact_commands.snap index 785ea365e..bb362a5f2 100644 --- a/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/artifact_commands.snap @@ -253,8 +253,8 @@ description: Artifact commands socket-head-cap-screw.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 1.984375, - "y": 1.1456794404231634, + "x": 1.9844, + "y": 1.1457, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/ops.snap b/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/ops.snap index 73d2acdf6..4a59e8ce4 100644 --- a/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/ops.snap @@ -125,7 +125,7 @@ description: Operations executed socket-head-cap-screw.kcl "length": { "value": { "type": "Number", - "value": -0.14250000000000002, + "value": -0.1425, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/spur-gear/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/spur-gear/artifact_commands.snap index 26f682cd8..d6d59d972 100644 --- a/rust/kcl-lib/tests/kcl_samples/spur-gear/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/spur-gear/artifact_commands.snap @@ -77,7 +77,7 @@ description: Artifact commands spur-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 2.29128784747792, + "x": 2.2913, "y": 1.0, "z": 0.0 } @@ -163,7 +163,7 @@ description: Artifact commands spur-gear.kcl "radius": 2.5, "start": { "unit": "degrees", - "value": 336.42182152179817 + "value": 336.4218 }, "end": { "unit": "degrees", @@ -192,7 +192,7 @@ description: Artifact commands spur-gear.kcl }, "end": { "unit": "degrees", - "value": 23.578178478201835 + "value": 23.5782 }, "relative": false } @@ -254,7 +254,7 @@ description: Artifact commands spur-gear.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 15.282157688846944, + "x": 15.2822, "y": 0.0, "z": 0.0 } @@ -321,7 +321,7 @@ description: Artifact commands spur-gear.kcl "end_radius": 17.25, "angle": { "unit": "degrees", - "value": -10.934457859443263 + "value": -10.9345 }, "reverse": true } diff --git a/rust/kcl-lib/tests/kcl_samples/spur-gear/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/spur-gear/artifact_graph_flowchart.snap.md index 73fd1cb97..f37e11d3f 100644 --- a/rust/kcl-lib/tests/kcl_samples/spur-gear/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/spur-gear/artifact_graph_flowchart.snap.md @@ -2,26 +2,42 @@ flowchart LR subgraph path3 [Path] 3["Path
[1065, 1171, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 5["Segment
[1179, 1206, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 6["Segment
[1214, 1242, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 7["Segment
[1250, 1278, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 8["Segment
[1286, 1362, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 9["Segment
[1370, 1435, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 10["Segment
[1443, 1450, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 16[Solid2d] end subgraph path4 [Path] 4["Path
[1601, 1663, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 11["Segment
[1671, 1819, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 12["Segment
[1827, 1900, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 13["Segment
[1908, 2112, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 14["Segment
[2194, 2268, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 15["Segment
[2538, 2545, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 17[Solid2d] end 1["Plane
[1040, 1057, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["Plane
[1576, 1593, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 18["Sweep Extrusion
[2697, 2725, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 19[Wall] 20[Wall] 21[Wall] diff --git a/rust/kcl-lib/tests/kcl_samples/spur-gear/ops.snap b/rust/kcl-lib/tests/kcl_samples/spur-gear/ops.snap index e4d6c748d..34f0f6a55 100644 --- a/rust/kcl-lib/tests/kcl_samples/spur-gear/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/spur-gear/ops.snap @@ -56,7 +56,7 @@ description: Operations executed spur-gear.kcl "length": { "value": { "type": "Number", - "value": 15.282157688846944, + "value": 15.2822, "ty": { "type": "Default", "len": { @@ -84,7 +84,7 @@ description: Operations executed spur-gear.kcl "angle": { "value": { "type": "Number", - "value": 7.619047619047619, + "value": 7.619, "ty": { "type": "Default", "len": { @@ -128,7 +128,7 @@ description: Operations executed spur-gear.kcl "angle": { "value": { "type": "Number", - "value": 17.142857142857142, + "value": 17.1429, "ty": { "type": "Default", "len": { @@ -144,7 +144,7 @@ description: Operations executed spur-gear.kcl "length": { "value": { "type": "Number", - "value": 15.282157688846944, + "value": 15.2822, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/spur-reduction-gearset/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/spur-reduction-gearset/artifact_commands.snap index 08b942a35..f99ad670c 100644 --- a/rust/kcl-lib/tests/kcl_samples/spur-reduction-gearset/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/spur-reduction-gearset/artifact_commands.snap @@ -118,7 +118,7 @@ description: Artifact commands spur-reduction-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 12.371270510018954, + "x": 12.3713, "y": 0.0, "z": 0.0 } @@ -131,7 +131,7 @@ description: Artifact commands spur-reduction-gearset.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 37.113811530056864, + "x": 37.1138, "y": 0.0, "z": 0.0 } @@ -247,7 +247,7 @@ description: Artifact commands spur-reduction-gearset.kcl "end_radius": 14.25, "angle": { "unit": "degrees", - "value": -13.586960511554224 + "value": -13.587 }, "reverse": true } @@ -265,7 +265,7 @@ description: Artifact commands spur-reduction-gearset.kcl "end_radius": 39.75, "angle": { "unit": "degrees", - "value": -4.520837503047772 + "value": -4.5208 }, "reverse": true } diff --git a/rust/kcl-lib/tests/kcl_samples/spur-reduction-gearset/ops.snap b/rust/kcl-lib/tests/kcl_samples/spur-reduction-gearset/ops.snap index 4f647a71f..e8509ecf4 100644 --- a/rust/kcl-lib/tests/kcl_samples/spur-reduction-gearset/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/spur-reduction-gearset/ops.snap @@ -56,7 +56,7 @@ description: Operations executed spur-reduction-gearset.kcl "length": { "value": { "type": "Number", - "value": 12.371270510018954, + "value": 12.3713, "ty": { "type": "Default", "len": { @@ -100,7 +100,7 @@ description: Operations executed spur-reduction-gearset.kcl "length": { "value": { "type": "Number", - "value": 37.113811530056864, + "value": 37.1138, "ty": { "type": "Default", "len": { @@ -128,7 +128,7 @@ description: Operations executed spur-reduction-gearset.kcl "angle": { "value": { "type": "Number", - "value": 9.411764705882353, + "value": 9.4118, "ty": { "type": "Default", "len": { @@ -172,7 +172,7 @@ description: Operations executed spur-reduction-gearset.kcl "angle": { "value": { "type": "Number", - "value": 3.1372549019607843, + "value": 3.1373, "ty": { "type": "Default", "len": { @@ -216,7 +216,7 @@ description: Operations executed spur-reduction-gearset.kcl "angle": { "value": { "type": "Number", - "value": 21.176470588235293, + "value": 21.1765, "ty": { "type": "Default", "len": { @@ -232,7 +232,7 @@ description: Operations executed spur-reduction-gearset.kcl "length": { "value": { "type": "Number", - "value": 12.371270510018954, + "value": 12.3713, "ty": { "type": "Default", "len": { @@ -260,7 +260,7 @@ description: Operations executed spur-reduction-gearset.kcl "angle": { "value": { "type": "Number", - "value": 7.0588235294117645, + "value": 7.0588, "ty": { "type": "Default", "len": { @@ -276,7 +276,7 @@ description: Operations executed spur-reduction-gearset.kcl "length": { "value": { "type": "Number", - "value": 37.113811530056864, + "value": 37.1138, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/artifact_commands.snap index a0b889649..7138ba790 100644 --- a/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/artifact_commands.snap @@ -381,8 +381,8 @@ description: Artifact commands surgical-drill-guide.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 15.789473684210527, - "y": 53.151270189221925, + "x": 15.7895, + "y": 53.1513, "z": 0.0 } } @@ -556,7 +556,7 @@ description: Artifact commands surgical-drill-guide.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 15.789473684210527, + "x": 15.7895, "y": 150.0, "z": 0.0 } @@ -678,7 +678,7 @@ description: Artifact commands surgical-drill-guide.kcl "type": "make_plane", "origin": { "x": 0.0, - "y": -28.495190528383297, + "y": -28.4952, "z": 0.0 }, "x_axis": { @@ -766,8 +766,8 @@ description: Artifact commands surgical-drill-guide.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 15.789473684210527, - "y": 53.151270189221925, + "x": 15.7895, + "y": 53.1513, "z": 0.0 } } @@ -908,7 +908,7 @@ description: Artifact commands surgical-drill-guide.kcl "path": "[uuid]", "to": { "x": 2.0, - "y": 53.151270189221925, + "y": 53.1513, "z": 0.0 } } @@ -1065,7 +1065,7 @@ description: Artifact commands surgical-drill-guide.kcl "path": "[uuid]", "to": { "x": 1.0, - "y": 53.151270189221925, + "y": 53.1513, "z": 0.0 } } @@ -1147,7 +1147,7 @@ description: Artifact commands surgical-drill-guide.kcl "type": "make_plane", "origin": { "x": 0.0, - "y": -47.4951905283833, + "y": -47.4952, "z": 0.0 }, "x_axis": { @@ -1235,8 +1235,8 @@ description: Artifact commands surgical-drill-guide.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 16.216216216216214, - "y": 53.151270189221925, + "x": 16.2162, + "y": 53.1513, "z": 0.0 } } @@ -1339,7 +1339,7 @@ description: Artifact commands surgical-drill-guide.kcl "path": "[uuid]", "to": { "x": 2.0, - "y": 53.151270189221925, + "y": 53.1513, "z": 0.0 } } @@ -1597,7 +1597,7 @@ description: Artifact commands surgical-drill-guide.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 15.789473684210527, + "x": 15.7895, "y": 150.0, "z": 0.0 } @@ -2066,7 +2066,7 @@ description: Artifact commands surgical-drill-guide.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 16.216216216216214, + "x": 16.2162, "y": 150.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/ops.snap b/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/ops.snap index c40a26364..18d90f50b 100644 --- a/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/ops.snap @@ -272,7 +272,7 @@ description: Operations executed surgical-drill-guide.kcl "offset": { "value": { "type": "Number", - "value": 28.495190528383297, + "value": 28.4952, "ty": { "type": "Known", "type": "Length", @@ -401,7 +401,7 @@ description: Operations executed surgical-drill-guide.kcl "length": { "value": { "type": "Number", - "value": 0.6666666666666666, + "value": 0.6667, "ty": { "type": "Default", "len": { @@ -511,7 +511,7 @@ description: Operations executed surgical-drill-guide.kcl "offset": { "value": { "type": "Number", - "value": 47.4951905283833, + "value": 47.4952, "ty": { "type": "Known", "type": "Length", @@ -795,7 +795,7 @@ description: Operations executed surgical-drill-guide.kcl "length": { "value": { "type": "Number", - "value": 1.0666666666666667, + "value": 1.0667, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/artifact_commands.snap index 2bbc3df98..7a18c5fcc 100644 --- a/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/artifact_commands.snap @@ -1271,7 +1271,7 @@ description: Artifact commands tooling-nest-block.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -5.950000000000003, + "x": -5.95, "y": 25.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/ops.snap b/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/ops.snap index 1f4b386b5..22c5b300e 100644 --- a/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/ops.snap @@ -1260,7 +1260,7 @@ description: Operations executed tooling-nest-block.kcl "radius": { "value": { "type": "Number", - "value": 5.9399999999999995, + "value": 5.94, "ty": { "type": "Default", "len": { @@ -1304,7 +1304,7 @@ description: Operations executed tooling-nest-block.kcl "radius": { "value": { "type": "Number", - "value": 5.9399999999999995, + "value": 5.94, "ty": { "type": "Default", "len": { @@ -1348,7 +1348,7 @@ description: Operations executed tooling-nest-block.kcl "radius": { "value": { "type": "Number", - "value": 0.37124999999999997, + "value": 0.3712, "ty": { "type": "Known", "type": "Length", @@ -1680,7 +1680,7 @@ description: Operations executed tooling-nest-block.kcl "radius": { "value": { "type": "Number", - "value": 2.9699999999999998, + "value": 2.97, "ty": { "type": "Default", "len": { @@ -1900,7 +1900,7 @@ description: Operations executed tooling-nest-block.kcl "radius": { "value": { "type": "Number", - "value": 0.7424999999999999, + "value": 0.7425, "ty": { "type": "Known", "type": "Length", diff --git a/rust/kcl-lib/tests/kcl_samples/walkie-talkie/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/walkie-talkie/artifact_commands.snap index bb7e8fc2f..4c3c1d95f 100644 --- a/rust/kcl-lib/tests/kcl_samples/walkie-talkie/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/walkie-talkie/artifact_commands.snap @@ -39,7 +39,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "property": { - "x": -16.509999999999998, + "x": -16.51, "y": -5.08, "z": 50.8 }, @@ -161,7 +161,7 @@ description: Artifact commands walkie-talkie.kcl "property": { "x": -22.733, "y": -25.4, - "z": 18.541999999999998 + "z": 18.542 }, "set": false, "is_local": true @@ -257,7 +257,7 @@ description: Artifact commands walkie-talkie.kcl "property": { "x": 22.733, "y": -25.4, - "z": 6.350000000000001 + "z": 6.35 }, "set": false, "is_local": false @@ -584,7 +584,7 @@ description: Artifact commands walkie-talkie.kcl "path": "[uuid]", "to": { "x": -28.575, - "y": 41.42246798486635, + "y": 41.4225, "z": 0.0 } } @@ -805,7 +805,7 @@ description: Artifact commands walkie-talkie.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -22.224999999999998, + "x": -22.225, "y": 31.75, "z": 0.0 } @@ -1176,7 +1176,7 @@ description: Artifact commands walkie-talkie.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -22.224999999999998, + "x": -22.225, "y": 31.75, "z": 0.0 } @@ -1468,7 +1468,7 @@ description: Artifact commands walkie-talkie.kcl [ { "translate": { - "x": 9.524999999999999, + "x": 9.525, "y": 0.0, "z": 0.0 }, @@ -1555,7 +1555,7 @@ description: Artifact commands walkie-talkie.kcl [ { "translate": { - "x": 19.049999999999997, + "x": 19.05, "y": 0.0, "z": 0.0 }, @@ -1584,7 +1584,7 @@ description: Artifact commands walkie-talkie.kcl [ { "translate": { - "x": 22.224999999999998, + "x": 22.225, "y": 0.0, "z": 0.0 }, @@ -1729,7 +1729,7 @@ description: Artifact commands walkie-talkie.kcl [ { "translate": { - "x": 38.099999999999994, + "x": 38.1, "y": 0.0, "z": 0.0 }, @@ -1828,7 +1828,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -9.524999999999999, + "y": -9.525, "z": 0.0 }, "scale": { @@ -1915,7 +1915,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -19.049999999999997, + "y": -19.05, "z": 0.0 }, "scale": { @@ -1944,7 +1944,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 }, "scale": { @@ -2129,7 +2129,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -9.524999999999999, + "y": -9.525, "z": 0.0 }, "scale": { @@ -2216,7 +2216,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -19.049999999999997, + "y": -19.05, "z": 0.0 }, "scale": { @@ -2245,7 +2245,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 }, "scale": { @@ -2430,7 +2430,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -9.524999999999999, + "y": -9.525, "z": 0.0 }, "scale": { @@ -2517,7 +2517,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -19.049999999999997, + "y": -19.05, "z": 0.0 }, "scale": { @@ -2546,7 +2546,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 }, "scale": { @@ -2731,7 +2731,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -9.524999999999999, + "y": -9.525, "z": 0.0 }, "scale": { @@ -2818,7 +2818,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -19.049999999999997, + "y": -19.05, "z": 0.0 }, "scale": { @@ -2847,7 +2847,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 }, "scale": { @@ -3032,7 +3032,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -9.524999999999999, + "y": -9.525, "z": 0.0 }, "scale": { @@ -3119,7 +3119,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -19.049999999999997, + "y": -19.05, "z": 0.0 }, "scale": { @@ -3148,7 +3148,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 }, "scale": { @@ -3333,7 +3333,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -9.524999999999999, + "y": -9.525, "z": 0.0 }, "scale": { @@ -3420,7 +3420,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -19.049999999999997, + "y": -19.05, "z": 0.0 }, "scale": { @@ -3449,7 +3449,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 }, "scale": { @@ -3634,7 +3634,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -9.524999999999999, + "y": -9.525, "z": 0.0 }, "scale": { @@ -3721,7 +3721,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -19.049999999999997, + "y": -19.05, "z": 0.0 }, "scale": { @@ -3750,7 +3750,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 }, "scale": { @@ -3935,7 +3935,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -9.524999999999999, + "y": -9.525, "z": 0.0 }, "scale": { @@ -4022,7 +4022,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -19.049999999999997, + "y": -19.05, "z": 0.0 }, "scale": { @@ -4051,7 +4051,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 }, "scale": { @@ -4236,7 +4236,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -9.524999999999999, + "y": -9.525, "z": 0.0 }, "scale": { @@ -4323,7 +4323,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -19.049999999999997, + "y": -19.05, "z": 0.0 }, "scale": { @@ -4352,7 +4352,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 }, "scale": { @@ -4537,7 +4537,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -9.524999999999999, + "y": -9.525, "z": 0.0 }, "scale": { @@ -4624,7 +4624,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -19.049999999999997, + "y": -19.05, "z": 0.0 }, "scale": { @@ -4653,7 +4653,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 }, "scale": { @@ -4838,7 +4838,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -9.524999999999999, + "y": -9.525, "z": 0.0 }, "scale": { @@ -4925,7 +4925,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -19.049999999999997, + "y": -19.05, "z": 0.0 }, "scale": { @@ -4954,7 +4954,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 }, "scale": { @@ -5139,7 +5139,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -9.524999999999999, + "y": -9.525, "z": 0.0 }, "scale": { @@ -5226,7 +5226,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -19.049999999999997, + "y": -19.05, "z": 0.0 }, "scale": { @@ -5255,7 +5255,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 }, "scale": { @@ -5440,7 +5440,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -9.524999999999999, + "y": -9.525, "z": 0.0 }, "scale": { @@ -5527,7 +5527,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -19.049999999999997, + "y": -19.05, "z": 0.0 }, "scale": { @@ -5556,7 +5556,7 @@ description: Artifact commands walkie-talkie.kcl { "translate": { "x": 0.0, - "y": -22.224999999999998, + "y": -22.225, "z": 0.0 }, "scale": { @@ -5719,8 +5719,8 @@ description: Artifact commands walkie-talkie.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -28.320999999999998, - "y": 41.33266542365566, + "x": -28.321, + "y": 41.3327, "z": 0.0 } } @@ -8773,8 +8773,8 @@ description: Artifact commands walkie-talkie.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -7.619999999999999, - "y": -45.592999999999996, + "x": -7.62, + "y": -45.593, "z": 0.0 } } @@ -9095,8 +9095,8 @@ description: Artifact commands walkie-talkie.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 2.0980400000000006, - "y": -41.67632, + "x": 2.098, + "y": -41.6763, "z": 0.0 } } @@ -9108,8 +9108,8 @@ description: Artifact commands walkie-talkie.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 8.448039999999999, - "y": -41.67632, + "x": 8.448, + "y": -41.6763, "z": 0.0 } } @@ -9331,8 +9331,8 @@ description: Artifact commands walkie-talkie.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -1.0921999999999998, - "y": -45.95368, + "x": -1.0922, + "y": -45.9537, "z": 0.0 } } @@ -9345,7 +9345,7 @@ description: Artifact commands walkie-talkie.kcl "path": "[uuid]", "to": { "x": 5.2578, - "y": -45.95368, + "y": -45.9537, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/kcl_samples/washer/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/washer/artifact_graph_flowchart.snap.md index a2d8c47b2..acbc75b9d 100644 --- a/rust/kcl-lib/tests/kcl_samples/washer/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/washer/artifact_graph_flowchart.snap.md @@ -2,16 +2,22 @@ flowchart LR subgraph path2 [Path] 2["Path
[740, 791, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 4["Segment
[740, 791, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 6[Solid2d] end subgraph path3 [Path] 3["Path
[815, 866, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }, CallKwArg { index: 0 }] 5["Segment
[815, 866, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }, CallKwArg { index: 0 }] 7[Solid2d] end 1["Plane
[717, 734, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[878, 922, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit] 9[Wall] 10["Cap Start"] 11["Cap End"] diff --git a/rust/kcl-lib/tests/kcl_samples/wing-spar/artifact_commands.snap b/rust/kcl-lib/tests/kcl_samples/wing-spar/artifact_commands.snap index 733b76aee..87c5b0bd8 100644 --- a/rust/kcl-lib/tests/kcl_samples/wing-spar/artifact_commands.snap +++ b/rust/kcl-lib/tests/kcl_samples/wing-spar/artifact_commands.snap @@ -980,7 +980,7 @@ description: Artifact commands wing-spar.kcl "path": "[uuid]", "to": { "x": 33.0, - "y": -15.299999999999999, + "y": -15.3, "z": 0.0 } } @@ -2231,7 +2231,7 @@ description: Artifact commands wing-spar.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -5.3999999999999995, + "x": -5.4, "y": -24.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/kittycad_svg/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kittycad_svg/artifact_graph_flowchart.snap.md index 6cef60fa1..3f26f2548 100644 --- a/rust/kcl-lib/tests/kittycad_svg/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kittycad_svg/artifact_graph_flowchart.snap.md @@ -2,292 +2,577 @@ flowchart LR subgraph path2 [Path] 2["Path
[29, 54, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[60, 94, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[116, 149, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[179, 212, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[244, 278, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7["Segment
[308, 339, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 8["Segment
[371, 401, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 9["Segment
[431, 464, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 10["Segment
[496, 529, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 11["Segment
[559, 592, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 10 }] 12["Segment
[624, 657, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 11 }] 13["Segment
[687, 720, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 12 }] 14["Segment
[752, 784, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 13 }] 15["Segment
[814, 846, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 14 }] 16["Segment
[878, 911, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 15 }] 17["Segment
[941, 975, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 16 }] 18["Segment
[1007, 1040, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 17 }] 19["Segment
[1070, 1103, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 18 }] 20["Segment
[1135, 1169, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 19 }] 21["Segment
[1201, 1235, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 20 }] 22["Segment
[1267, 1301, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 21 }] 23["Segment
[1333, 1367, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 22 }] 24["Segment
[1399, 1433, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 23 }] 25["Segment
[1463, 1494, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 24 }] 26["Segment
[1526, 1558, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 25 }] 27["Segment
[1590, 1625, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 26 }] 28["Segment
[1657, 1691, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 27 }] 29["Segment
[1723, 1757, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 28 }] 30["Segment
[1789, 1824, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 29 }] 31["Segment
[1856, 1891, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 30 }] 32["Segment
[1923, 1958, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 31 }] 33["Segment
[1990, 2024, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 32 }] 34["Segment
[2056, 2090, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 33 }] 35["Segment
[2122, 2157, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 34 }] 36["Segment
[2189, 2224, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 35 }] 37["Segment
[2254, 2288, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 36 }] 38["Segment
[2320, 2354, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 37 }] 39["Segment
[2384, 2417, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 38 }] 40["Segment
[2449, 2482, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 39 }] 41["Segment
[2514, 2548, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 40 }] 42["Segment
[2580, 2614, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 41 }] 43["Segment
[2646, 2679, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 42 }] 44["Segment
[2711, 2744, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 43 }] 45["Segment
[2776, 2810, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 44 }] 46["Segment
[2842, 2876, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 45 }] 47["Segment
[2908, 2946, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 46 }] 48["Segment
[2968, 3006, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 47 }] 49["Segment
[3038, 3072, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 48 }] 50["Segment
[3104, 3137, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 49 }] 51["Segment
[3169, 3203, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 50 }] 52["Segment
[3235, 3270, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 51 }] 53["Segment
[3302, 3337, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 52 }] 54["Segment
[3369, 3404, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 53 }] 55["Segment
[3452, 3486, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 54 }] 56["Segment
[3508, 3542, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 55 }] 57["Segment
[3574, 3609, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 56 }] 58["Segment
[3641, 3676, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 57 }] 59["Segment
[3708, 3742, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 58 }] 60["Segment
[3764, 3798, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 59 }] 61["Segment
[3830, 3864, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 60 }] 62["Segment
[3896, 3930, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 61 }] 63["Segment
[3962, 3996, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 62 }] 64["Segment
[4018, 4052, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 63 }] 65["Segment
[4084, 4118, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 64 }] 66["Segment
[4150, 4184, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 65 }] 67["Segment
[4216, 4251, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 66 }] 68["Segment
[4273, 4308, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 67 }] 69["Segment
[4340, 4388, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 68 }] 70["Segment
[4420, 4468, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 69 }] 71["Segment
[4500, 4534, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 70 }] 72["Segment
[4556, 4590, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 71 }] 73["Segment
[4622, 4657, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 72 }] 74["Segment
[4689, 4724, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 73 }] 75["Segment
[4756, 4791, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 74 }] 76["Segment
[4813, 4848, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 75 }] 77["Segment
[4880, 4915, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 76 }] 78["Segment
[4947, 4982, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 77 }] 79["Segment
[5014, 5049, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 78 }] 80["Segment
[5071, 5106, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 79 }] 81["Segment
[5138, 5173, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 80 }] 82["Segment
[5205, 5240, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 81 }] 83["Segment
[5272, 5306, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 82 }] 84["Segment
[5328, 5362, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 83 }] 85["Segment
[5392, 5426, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 84 }] 86["Segment
[5458, 5491, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 85 }] 87["Segment
[5521, 5553, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 86 }] 88["Segment
[5585, 5618, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 87 }] 89["Segment
[5648, 5681, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 88 }] 90["Segment
[5713, 5746, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 89 }] 91["Segment
[5776, 5809, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 90 }] 92["Segment
[5841, 5874, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 91 }] 93["Segment
[5904, 5941, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 92 }] 94["Segment
[5973, 6009, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 93 }] 95["Segment
[6039, 6072, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 94 }] 96["Segment
[6104, 6138, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 95 }] 97["Segment
[6168, 6202, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 96 }] 98["Segment
[6234, 6268, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 97 }] 99["Segment
[6298, 6332, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 98 }] 100["Segment
[6354, 6391, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 99 }] 101["Segment
[6423, 6461, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 100 }] 102["Segment
[6491, 6526, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 101 }] 103["Segment
[6558, 6592, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 102 }] 104["Segment
[6614, 6650, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 103 }] 105["Segment
[6680, 6717, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 104 }] 106["Segment
[6749, 6784, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 105 }] 107["Segment
[6814, 6849, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 106 }] 108["Segment
[6881, 6915, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 107 }] 109["Segment
[6947, 6981, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 108 }] 110["Segment
[7013, 7048, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 109 }] 111["Segment
[7080, 7114, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 110 }] 112["Segment
[7146, 7179, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 111 }] 113["Segment
[7209, 7242, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 112 }] 114["Segment
[7274, 7321, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 113 }] 115["Segment
[7353, 7388, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 114 }] 116["Segment
[7410, 7445, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 115 }] 117["Segment
[7477, 7512, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 116 }] 118["Segment
[7544, 7579, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 117 }] 119["Segment
[7611, 7646, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 118 }] 120["Segment
[7678, 7712, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 119 }] 121["Segment
[7734, 7769, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 120 }] 122["Segment
[7801, 7836, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 121 }] 123["Segment
[7868, 7903, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 122 }] 124["Segment
[7940, 7988, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 123 }] 125["Segment
[8020, 8068, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 124 }] 126["Segment
[8100, 8135, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 125 }] 127["Segment
[8167, 8202, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 126 }] 128["Segment
[8234, 8282, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 127 }] 129["Segment
[8314, 8362, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 128 }] 130["Segment
[8394, 8428, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 129 }] 131["Segment
[8458, 8491, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 130 }] 132["Segment
[8523, 8557, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 131 }] 133["Segment
[8587, 8621, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 132 }] 134["Segment
[8653, 8700, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 133 }] 135["Segment
[8732, 8779, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 134 }] 136["Segment
[8811, 8845, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 135 }] 137["Segment
[8877, 8912, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 136 }] 138["Segment
[8944, 8979, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 137 }] 139["Segment
[9009, 9043, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 138 }] 140["Segment
[9075, 9108, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 139 }] 141["Segment
[9130, 9164, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 140 }] 142["Segment
[9194, 9228, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 141 }] 143["Segment
[9260, 9293, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 142 }] 144["Segment
[9323, 9355, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 143 }] 145["Segment
[9387, 9420, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 144 }] 146["Segment
[9452, 9486, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 145 }] 147["Segment
[9518, 9552, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 146 }] 148["Segment
[9584, 9632, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 147 }] 149["Segment
[9664, 9712, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 148 }] 150["Segment
[9744, 9777, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 149 }] 151["Segment
[9809, 9841, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 150 }] 152["Segment
[9873, 9906, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 151 }] 153["Segment
[9928, 9961, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 152 }] 154["Segment
[9991, 10023, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 153 }] 155["Segment
[10055, 10087, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 154 }] 156["Segment
[10117, 10150, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 155 }] 157["Segment
[10182, 10215, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 156 }] 158["Segment
[10245, 10278, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 157 }] 159["Segment
[10310, 10349, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 158 }] 160["Segment
[10379, 10418, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 159 }] 161["Segment
[10450, 10483, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 160 }] 162["Segment
[10513, 10546, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 161 }] 163["Segment
[10578, 10611, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 162 }] 164["Segment
[10641, 10673, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 163 }] 165["Segment
[10705, 10737, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 164 }] 166["Segment
[10769, 10802, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 165 }] 167["Segment
[10834, 10867, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 166 }] 168["Segment
[10899, 10933, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 167 }] 169["Segment
[10955, 10989, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 168 }] 170["Segment
[11019, 11053, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 169 }] 171["Segment
[11085, 11119, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 170 }] 172["Segment
[11149, 11182, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 171 }] 173["Segment
[11214, 11247, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 172 }] 174["Segment
[11277, 11311, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 173 }] 175["Segment
[11343, 11377, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 174 }] 176["Segment
[11407, 11441, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 175 }] 177["Segment
[11473, 11513, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 176 }] 178["Segment
[11543, 11583, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 177 }] 179["Segment
[11615, 11649, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 178 }] 180["Segment
[11679, 11726, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 179 }] 181["Segment
[11758, 11805, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 180 }] 182["Segment
[11837, 11870, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 181 }] 183["Segment
[11902, 11935, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 182 }] 184["Segment
[11967, 12001, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 183 }] 185["Segment
[12023, 12054, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 184 }] 186["Segment
[12084, 12128, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 185 }] 187["Segment
[12160, 12207, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 186 }] 188["Segment
[12239, 12272, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 187 }] 189["Segment
[12304, 12337, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 188 }] 190["Segment
[12369, 12403, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 189 }] 191["Segment
[12435, 12469, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 190 }] 192["Segment
[12499, 12532, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 191 }] 193["Segment
[12564, 12597, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 192 }] 194["Segment
[12627, 12661, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 193 }] 195["Segment
[12693, 12727, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 194 }] 196["Segment
[12757, 12791, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 195 }] 197["Segment
[12823, 12863, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 196 }] 198["Segment
[12893, 12933, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 197 }] 199["Segment
[12965, 12999, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 198 }] 200["Segment
[13029, 13063, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 199 }] 201["Segment
[13095, 13129, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 200 }] 202["Segment
[13159, 13192, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 201 }] 203["Segment
[13224, 13257, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 202 }] 204["Segment
[13287, 13321, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 203 }] 205["Segment
[13353, 13387, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 204 }] 206["Segment
[13417, 13450, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 205 }] 207["Segment
[13482, 13515, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 206 }] 208["Segment
[13545, 13578, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 207 }] 209["Segment
[13600, 13630, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 208 }] 210["Segment
[13660, 13690, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 209 }] 211["Segment
[13722, 13755, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 210 }] 212["Segment
[13785, 13817, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 211 }] 213["Segment
[13849, 13881, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 212 }] 214["Segment
[13911, 13944, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 213 }] 215["Segment
[13976, 14009, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 214 }] 216["Segment
[14039, 14071, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 215 }] 217["Segment
[14103, 14135, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 216 }] 218["Segment
[14165, 14198, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 217 }] 219["Segment
[14230, 14263, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 218 }] 220["Segment
[14293, 14326, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 219 }] 221["Segment
[14358, 14397, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 220 }] 222["Segment
[14427, 14466, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 221 }] 223["Segment
[14498, 14531, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 222 }] 224["Segment
[14561, 14594, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 223 }] 225["Segment
[14626, 14659, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 224 }] 226["Segment
[14689, 14721, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 225 }] 227["Segment
[14753, 14785, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 226 }] 228["Segment
[14815, 14848, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 227 }] 229["Segment
[14880, 14913, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 228 }] 230["Segment
[14943, 14975, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 229 }] 231["Segment
[15007, 15039, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 230 }] 232["Segment
[15069, 15103, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 231 }] 233["Segment
[15125, 15159, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 232 }] 234["Segment
[15189, 15223, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 233 }] 235["Segment
[15255, 15288, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 234 }] 236["Segment
[15318, 15351, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 235 }] 237["Segment
[15383, 15417, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 236 }] 238["Segment
[15449, 15496, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 237 }] 239["Segment
[15528, 15575, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 238 }] 240["Segment
[15607, 15640, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 239 }] 241["Segment
[15662, 15694, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 240 }] 242["Segment
[15724, 15756, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 241 }] 243["Segment
[15788, 15821, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 242 }] 244["Segment
[15851, 15884, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 243 }] 245["Segment
[15916, 15949, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 244 }] 246["Segment
[15979, 16012, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 245 }] 247["Segment
[16044, 16077, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 246 }] 248["Segment
[16107, 16141, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 247 }] 249["Segment
[16163, 16197, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 248 }] 250["Segment
[16227, 16260, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 249 }] 251["Segment
[16292, 16324, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 250 }] 252["Segment
[16354, 16387, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 251 }] 253["Segment
[16419, 16453, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 252 }] 254["Segment
[16485, 16519, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 253 }] 255["Segment
[16551, 16585, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 254 }] 256["Segment
[16617, 16650, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 255 }] 257["Segment
[16672, 16705, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 256 }] 258["Segment
[16735, 16768, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 257 }] 259["Segment
[16800, 16833, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 258 }] 260["Segment
[16863, 16896, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 259 }] 261["Segment
[16928, 16960, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 260 }] 262["Segment
[16990, 17021, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 261 }] 263["Segment
[17053, 17085, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 262 }] 264["Segment
[17117, 17148, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 263 }] 265["Segment
[17170, 17202, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 264 }] 266["Segment
[17234, 17267, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 265 }] 267["Segment
[17299, 17333, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 266 }] 268["Segment
[17365, 17399, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 267 }] 269["Segment
[17429, 17462, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 268 }] 270["Segment
[17494, 17527, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 269 }] 271["Segment
[17557, 17589, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 270 }] 272["Segment
[17621, 17654, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 271 }] 273["Segment
[17676, 17708, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 272 }] 274["Segment
[17740, 17773, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 273 }] 275["Segment
[17803, 17837, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 274 }] 276["Segment
[17869, 17903, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 275 }] 277["Segment
[17933, 17967, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 276 }] 278["Segment
[17999, 18033, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 277 }] 279["Segment
[18063, 18097, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 278 }] 280["Segment
[18129, 18164, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 279 }] 281["Segment
[18186, 18221, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 280 }] 282["Segment
[18253, 18288, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 281 }] 283["Segment
[18320, 18355, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 282 }] 284["Segment
[18387, 18395, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 283 }] 285[Solid2d] end 1["Plane
[6, 23, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 286["Sweep Extrusion
[18401, 18420, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 284 }] 287[Wall] 288[Wall] 289[Wall] diff --git a/rust/kcl-lib/tests/linear_pattern3d_a_pattern/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/linear_pattern3d_a_pattern/artifact_graph_flowchart.snap.md index 09bb3382a..727175c07 100644 --- a/rust/kcl-lib/tests/linear_pattern3d_a_pattern/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/linear_pattern3d_a_pattern/artifact_graph_flowchart.snap.md @@ -2,14 +2,21 @@ flowchart LR subgraph path2 [Path] 2["Path
[39, 64, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[70, 88, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[94, 112, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[118, 137, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[143, 151, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7[Solid2d] end 1["Plane
[16, 33, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[157, 176, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9[Wall] 10[Wall] 11[Wall] diff --git a/rust/kcl-lib/tests/loop_tag/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/loop_tag/artifact_graph_flowchart.snap.md index f3dd88100..6b783acb0 100644 --- a/rust/kcl-lib/tests/loop_tag/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/loop_tag/artifact_graph_flowchart.snap.md @@ -2,60 +2,113 @@ flowchart LR subgraph path2 [Path] 2["Path
[733, 769, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 4["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 5["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 6["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 7["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 8["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 9["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 10["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 11["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 12["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 13["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 14["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 15["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 16["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 17["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 18["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 19["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 20["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 21["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 22["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 23["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 24["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 25["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 26["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 27["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 28["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 29["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 30["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 31["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 32["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 33["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 34["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 35["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 36["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 37["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 38["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 39["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 40["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 41["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 42["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 43["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 44["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 45["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 46["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 47["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 48["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 49["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 50["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 51["Segment
[923, 986, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 1 }, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg] 52["Segment
[1050, 1068, 0]"] + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit] 53[Solid2d] end 1["Plane
[710, 727, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 54["Sweep Extrusion
[1122, 1160, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit] 55[Wall] 56[Wall] 57[Wall] diff --git a/rust/kcl-lib/tests/module_return_using_var/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/module_return_using_var/artifact_graph_flowchart.snap.md index d6a62995a..8fed1c4fa 100644 --- a/rust/kcl-lib/tests/module_return_using_var/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/module_return_using_var/artifact_graph_flowchart.snap.md @@ -2,15 +2,23 @@ flowchart LR subgraph path2 [Path] 2["Path
[80, 105, 1]"] + %% Missing NodePath 3["Segment
[111, 128, 1]"] + %% Missing NodePath 4["Segment
[134, 151, 1]"] + %% Missing NodePath 5["Segment
[157, 175, 1]"] + %% Missing NodePath 6["Segment
[181, 199, 1]"] + %% Missing NodePath 7["Segment
[205, 213, 1]"] + %% Missing NodePath 8[Solid2d] end 1["Plane
[57, 74, 1]"] + %% Missing NodePath 9["Sweep Extrusion
[219, 238, 1]"] + %% Missing NodePath 10[Wall] 11[Wall] 12[Wall] diff --git a/rust/kcl-lib/tests/multi_transform/artifact_commands.snap b/rust/kcl-lib/tests/multi_transform/artifact_commands.snap index 3b176d14b..a11357a1b 100644 --- a/rust/kcl-lib/tests/multi_transform/artifact_commands.snap +++ b/rust/kcl-lib/tests/multi_transform/artifact_commands.snap @@ -196,7 +196,7 @@ description: Artifact commands multi_transform.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 14.14213562373095, + "x": 14.1421, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/multi_transform/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/multi_transform/artifact_graph_flowchart.snap.md index c88f54eaa..76e8f98d7 100644 --- a/rust/kcl-lib/tests/multi_transform/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/multi_transform/artifact_graph_flowchart.snap.md @@ -2,18 +2,27 @@ flowchart LR subgraph path2 [Path] 2["Path
[133, 158, 0]"] + %% [ProgramBodyItem { index: 1 }, ExpressionStatementExpr, PipeBodyItem { index: 1 }] end subgraph path3 [Path] 3["Path
[164, 270, 0]"] + %% [ProgramBodyItem { index: 1 }, ExpressionStatementExpr, PipeBodyItem { index: 2 }] 4["Segment
[164, 270, 0]"] + %% [ProgramBodyItem { index: 1 }, ExpressionStatementExpr, PipeBodyItem { index: 2 }] 5["Segment
[164, 270, 0]"] + %% [ProgramBodyItem { index: 1 }, ExpressionStatementExpr, PipeBodyItem { index: 2 }] 6["Segment
[164, 270, 0]"] + %% [ProgramBodyItem { index: 1 }, ExpressionStatementExpr, PipeBodyItem { index: 2 }] 7["Segment
[164, 270, 0]"] + %% [ProgramBodyItem { index: 1 }, ExpressionStatementExpr, PipeBodyItem { index: 2 }] 8["Segment
[164, 270, 0]"] + %% [ProgramBodyItem { index: 1 }, ExpressionStatementExpr, PipeBodyItem { index: 2 }] 9[Solid2d] end 1["Plane
[110, 127, 0]"] + %% [ProgramBodyItem { index: 1 }, ExpressionStatementExpr, PipeBodyItem { index: 0 }] 10["Sweep Extrusion
[276, 295, 0]"] + %% [ProgramBodyItem { index: 1 }, ExpressionStatementExpr, PipeBodyItem { index: 3 }] 11[Wall] 12[Wall] 13[Wall] diff --git a/rust/kcl-lib/tests/neg_xz_plane/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/neg_xz_plane/artifact_graph_flowchart.snap.md index f9080d44f..5bf32b487 100644 --- a/rust/kcl-lib/tests/neg_xz_plane/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/neg_xz_plane/artifact_graph_flowchart.snap.md @@ -2,13 +2,19 @@ flowchart LR subgraph path2 [Path] 2["Path
[34, 59, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[65, 95, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[101, 129, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[135, 143, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6[Solid2d] end 1["Plane
[10, 28, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["Sweep Extrusion
[149, 172, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 8[Wall] 9[Wall] 10[Wall] diff --git a/rust/kcl-lib/tests/out_of_band_sketches/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/out_of_band_sketches/artifact_graph_flowchart.snap.md index 27b150231..5f4f893a8 100644 --- a/rust/kcl-lib/tests/out_of_band_sketches/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/out_of_band_sketches/artifact_graph_flowchart.snap.md @@ -2,24 +2,38 @@ flowchart LR subgraph path3 [Path] 3["Path
[43, 88, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["Segment
[165, 188, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 6["Segment
[209, 237, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 9["Segment
[545, 569, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 10["Segment
[590, 597, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 14[Solid2d] end subgraph path4 [Path] 4["Path
[297, 341, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["Segment
[418, 441, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 8["Segment
[462, 491, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 11["Segment
[645, 673, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 12["Segment
[694, 701, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 13[Solid2d] end 1["Plane
[12, 29, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit] 2["Plane
[266, 283, 0]"] + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit] 15["Sweep Extrusion
[712, 777, 0]"] + %% [ProgramBodyItem { index: 6 }, ExpressionStatementExpr] 16["Sweep Extrusion
[712, 777, 0]"] + %% [ProgramBodyItem { index: 6 }, ExpressionStatementExpr] 17[Wall] 18[Wall] 19[Wall] diff --git a/rust/kcl-lib/tests/panic_repro_cube/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/panic_repro_cube/artifact_graph_flowchart.snap.md index a733b3c5f..6057ba5f3 100644 --- a/rust/kcl-lib/tests/panic_repro_cube/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/panic_repro_cube/artifact_graph_flowchart.snap.md @@ -2,15 +2,23 @@ flowchart LR subgraph path2 [Path] 2["Path
[565, 614, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[620, 644, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[650, 688, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[694, 719, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[725, 764, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7["Segment
[770, 777, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 8[Solid2d] end 1["Plane
[542, 559, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 9["Sweep Extrusion
[806, 924, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit] 10[Wall] 11[Wall] 12[Wall] diff --git a/rust/kcl-lib/tests/parametric/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/parametric/artifact_graph_flowchart.snap.md index a9aabbefd..4cf766cfe 100644 --- a/rust/kcl-lib/tests/parametric/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/parametric/artifact_graph_flowchart.snap.md @@ -2,16 +2,25 @@ flowchart LR subgraph path2 [Path] 2["Path
[251, 276, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[282, 303, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[309, 330, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[336, 363, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[369, 403, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7["Segment
[409, 443, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 8["Segment
[449, 457, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 9[Solid2d] end 1["Plane
[228, 245, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 10["Sweep Extrusion
[463, 486, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 11[Wall] 12[Wall] 13[Wall] diff --git a/rust/kcl-lib/tests/parametric_with_tan_arc/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/parametric_with_tan_arc/artifact_graph_flowchart.snap.md index fc73cf0ca..e00ca997e 100644 --- a/rust/kcl-lib/tests/parametric_with_tan_arc/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/parametric_with_tan_arc/artifact_graph_flowchart.snap.md @@ -2,18 +2,29 @@ flowchart LR subgraph path2 [Path] 2["Path
[262, 287, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[293, 320, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[326, 369, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[375, 404, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[410, 437, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7["Segment
[443, 471, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 8["Segment
[477, 533, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 9["Segment
[539, 567, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 10["Segment
[573, 581, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 11[Solid2d] end 1["Plane
[239, 256, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 12["Sweep Extrusion
[587, 610, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 10 }] 13[Wall] 14[Wall] 15[Wall] diff --git a/rust/kcl-lib/tests/pattern_circular_in_module/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/pattern_circular_in_module/artifact_graph_flowchart.snap.md index 70f93f96e..b63089828 100644 --- a/rust/kcl-lib/tests/pattern_circular_in_module/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/pattern_circular_in_module/artifact_graph_flowchart.snap.md @@ -2,30 +2,50 @@ flowchart LR subgraph path3 [Path] 3["Path
[63, 90, 1]"] + %% Missing NodePath 5["Segment
[98, 116, 1]"] + %% Missing NodePath 7["Segment
[124, 143, 1]"] + %% Missing NodePath 9["Segment
[151, 170, 1]"] + %% Missing NodePath 12["Segment
[178, 185, 1]"] + %% Missing NodePath 13[Solid2d] end subgraph path4 [Path] 4["Path
[63, 90, 1]"] + %% Missing NodePath 6["Segment
[98, 116, 1]"] + %% Missing NodePath 8["Segment
[124, 143, 1]"] + %% Missing NodePath 10["Segment
[151, 170, 1]"] + %% Missing NodePath 11["Segment
[178, 185, 1]"] + %% Missing NodePath 14[Solid2d] end 1["Plane
[38, 55, 1]"] + %% Missing NodePath 2["Plane
[38, 55, 1]"] + %% Missing NodePath 15["Sweep Extrusion
[342, 376, 1]"] + %% Missing NodePath 16["Sweep Extrusion
[342, 376, 1]"] + %% Missing NodePath 17["Sweep Extrusion
[342, 376, 1]"] + %% Missing NodePath 18["Sweep Extrusion
[342, 376, 1]"] + %% Missing NodePath 19["Sweep Extrusion
[342, 376, 1]"] + %% Missing NodePath 20["Sweep Extrusion
[342, 376, 1]"] + %% Missing NodePath 21["Sweep Extrusion
[342, 376, 1]"] + %% Missing NodePath 22["Sweep Extrusion
[342, 376, 1]"] + %% Missing NodePath 23[Wall] 24[Wall] 25[Wall] diff --git a/rust/kcl-lib/tests/pattern_into_union/artifact_commands.snap b/rust/kcl-lib/tests/pattern_into_union/artifact_commands.snap index 3cce5c06a..385f2fd0c 100644 --- a/rust/kcl-lib/tests/pattern_into_union/artifact_commands.snap +++ b/rust/kcl-lib/tests/pattern_into_union/artifact_commands.snap @@ -510,7 +510,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 0.1593700787401575, + "y": 0.1594, "z": 0.0 }, "scale": { @@ -539,7 +539,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 0.318740157480315, + "y": 0.3187, "z": 0.0 }, "scale": { @@ -568,7 +568,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 0.47811023622047244, + "y": 0.4781, "z": 0.0 }, "scale": { @@ -597,7 +597,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 0.63748031496063, + "y": 0.6375, "z": 0.0 }, "scale": { @@ -626,7 +626,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 0.7968503937007875, + "y": 0.7969, "z": 0.0 }, "scale": { @@ -655,7 +655,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 0.9562204724409449, + "y": 0.9562, "z": 0.0 }, "scale": { @@ -684,7 +684,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 1.1155905511811024, + "y": 1.1156, "z": 0.0 }, "scale": { @@ -713,7 +713,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 1.27496062992126, + "y": 1.275, "z": 0.0 }, "scale": { @@ -742,7 +742,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 1.4343307086614174, + "y": 1.4343, "z": 0.0 }, "scale": { @@ -771,7 +771,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 1.593700787401575, + "y": 1.5937, "z": 0.0 }, "scale": { @@ -800,7 +800,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 1.7530708661417325, + "y": 1.7531, "z": 0.0 }, "scale": { @@ -829,7 +829,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 1.9124409448818898, + "y": 1.9124, "z": 0.0 }, "scale": { @@ -858,7 +858,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 2.0718110236220473, + "y": 2.0718, "z": 0.0 }, "scale": { @@ -887,7 +887,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 2.231181102362205, + "y": 2.2312, "z": 0.0 }, "scale": { @@ -916,7 +916,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 2.3905511811023623, + "y": 2.3906, "z": 0.0 }, "scale": { @@ -945,7 +945,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 2.54992125984252, + "y": 2.5499, "z": 0.0 }, "scale": { @@ -974,7 +974,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 2.7092913385826773, + "y": 2.7093, "z": 0.0 }, "scale": { @@ -1003,7 +1003,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 2.868661417322835, + "y": 2.8687, "z": 0.0 }, "scale": { @@ -1032,7 +1032,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 3.0280314960629924, + "y": 3.028, "z": 0.0 }, "scale": { @@ -1061,7 +1061,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 3.18740157480315, + "y": 3.1874, "z": 0.0 }, "scale": { @@ -1315,7 +1315,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 0.1593700787401575, + "y": 0.1594, "z": 0.0 }, "scale": { @@ -1344,7 +1344,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 0.318740157480315, + "y": 0.3187, "z": 0.0 }, "scale": { @@ -1373,7 +1373,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 0.47811023622047244, + "y": 0.4781, "z": 0.0 }, "scale": { @@ -1402,7 +1402,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 0.63748031496063, + "y": 0.6375, "z": 0.0 }, "scale": { @@ -1431,7 +1431,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 0.7968503937007875, + "y": 0.7969, "z": 0.0 }, "scale": { @@ -1460,7 +1460,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 0.9562204724409449, + "y": 0.9562, "z": 0.0 }, "scale": { @@ -1489,7 +1489,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 1.1155905511811024, + "y": 1.1156, "z": 0.0 }, "scale": { @@ -1518,7 +1518,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 1.27496062992126, + "y": 1.275, "z": 0.0 }, "scale": { @@ -1547,7 +1547,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 1.4343307086614174, + "y": 1.4343, "z": 0.0 }, "scale": { @@ -1576,7 +1576,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 1.593700787401575, + "y": 1.5937, "z": 0.0 }, "scale": { @@ -1605,7 +1605,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 1.7530708661417325, + "y": 1.7531, "z": 0.0 }, "scale": { @@ -1634,7 +1634,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 1.9124409448818898, + "y": 1.9124, "z": 0.0 }, "scale": { @@ -1663,7 +1663,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 2.0718110236220473, + "y": 2.0718, "z": 0.0 }, "scale": { @@ -1692,7 +1692,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 2.231181102362205, + "y": 2.2312, "z": 0.0 }, "scale": { @@ -1721,7 +1721,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 2.3905511811023623, + "y": 2.3906, "z": 0.0 }, "scale": { @@ -1750,7 +1750,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 2.54992125984252, + "y": 2.5499, "z": 0.0 }, "scale": { @@ -1779,7 +1779,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 2.7092913385826773, + "y": 2.7093, "z": 0.0 }, "scale": { @@ -1808,7 +1808,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 2.868661417322835, + "y": 2.8687, "z": 0.0 }, "scale": { @@ -1837,7 +1837,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 3.0280314960629924, + "y": 3.028, "z": 0.0 }, "scale": { @@ -1866,7 +1866,7 @@ description: Artifact commands pattern_into_union.kcl { "translate": { "x": 0.0, - "y": 3.18740157480315, + "y": 3.1874, "z": 0.0 }, "scale": { diff --git a/rust/kcl-lib/tests/pattern_into_union/ops.snap b/rust/kcl-lib/tests/pattern_into_union/ops.snap index bca0cf4c6..ea6ee60cc 100644 --- a/rust/kcl-lib/tests/pattern_into_union/ops.snap +++ b/rust/kcl-lib/tests/pattern_into_union/ops.snap @@ -21,7 +21,7 @@ description: Operations executed pattern_into_union.kcl "length": { "value": { "type": "Number", - "value": -3.28740157480315, + "value": -3.2874, "ty": { "type": "Default", "len": { @@ -189,7 +189,7 @@ description: Operations executed pattern_into_union.kcl "distance": { "value": { "type": "Number", - "value": 0.1593700787401575, + "value": 0.1594, "ty": { "type": "Default", "len": { @@ -373,7 +373,7 @@ description: Operations executed pattern_into_union.kcl "distance": { "value": { "type": "Number", - "value": 0.1593700787401575, + "value": 0.1594, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/pattern_linear_in_module/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/pattern_linear_in_module/artifact_graph_flowchart.snap.md index 53ec683af..8f162676c 100644 --- a/rust/kcl-lib/tests/pattern_linear_in_module/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/pattern_linear_in_module/artifact_graph_flowchart.snap.md @@ -2,30 +2,50 @@ flowchart LR subgraph path3 [Path] 3["Path
[54, 89, 1]"] + %% Missing NodePath 5["Segment
[54, 89, 1]"] + %% Missing NodePath 7[Solid2d] end subgraph path4 [Path] 4["Path
[54, 89, 1]"] + %% Missing NodePath 6["Segment
[54, 89, 1]"] + %% Missing NodePath 8[Solid2d] end 1["Plane
[29, 46, 1]"] + %% Missing NodePath 2["Plane
[29, 46, 1]"] + %% Missing NodePath 9["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 10["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 11["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 12["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 13["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 14["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 15["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 16["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 17["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 18["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 19["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 20["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 21["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 22["Sweep Extrusion
[200, 219, 1]"] + %% Missing NodePath 23[Wall] 24[Wall] 25["Cap Start"] diff --git a/rust/kcl-lib/tests/poop_chute/artifact_commands.snap b/rust/kcl-lib/tests/poop_chute/artifact_commands.snap index f635cf172..e51168c82 100644 --- a/rust/kcl-lib/tests/poop_chute/artifact_commands.snap +++ b/rust/kcl-lib/tests/poop_chute/artifact_commands.snap @@ -325,7 +325,7 @@ description: Artifact commands poop_chute.kcl "target": "[uuid]", "origin": { "x": 0.0, - "y": 5.5000001, + "y": 5.5, "z": 0.0 }, "axis": { diff --git a/rust/kcl-lib/tests/poop_chute/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/poop_chute/artifact_graph_flowchart.snap.md index 19eccb8ba..ab54f609d 100644 --- a/rust/kcl-lib/tests/poop_chute/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/poop_chute/artifact_graph_flowchart.snap.md @@ -2,42 +2,74 @@ flowchart LR subgraph path3 [Path] 3["Path
[206, 250, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 5["Segment
[256, 290, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 6["Segment
[296, 365, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 7["Segment
[371, 398, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 8["Segment
[404, 435, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 9["Segment
[441, 476, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 10["Segment
[482, 562, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 11["Segment
[568, 599, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 12["Segment
[605, 664, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 13["Segment
[670, 697, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 10 }] 14["Segment
[703, 725, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 11 }] 15["Segment
[731, 766, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 12 }] 16["Segment
[772, 818, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 13 }] 17["Segment
[824, 832, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 14 }] 32[Solid2d] end subgraph path4 [Path] 4["Path
[1000, 1044, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 18["Segment
[1050, 1084, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 19["Segment
[1090, 1159, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 20["Segment
[1165, 1192, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 21["Segment
[1198, 1229, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 22["Segment
[1235, 1270, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 23["Segment
[1276, 1356, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 24["Segment
[1362, 1393, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 25["Segment
[1399, 1458, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 26["Segment
[1464, 1491, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 10 }] 27["Segment
[1497, 1519, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 11 }] 28["Segment
[1525, 1560, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 12 }] 29["Segment
[1566, 1612, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 13 }] 30["Segment
[1618, 1626, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 14 }] 31[Solid2d] end 1["Plane
[182, 200, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["Plane
[976, 994, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 33["Sweep Revolve
[843, 962, 0]"] + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit] 34["Sweep Extrusion
[1632, 1670, 0]"] + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 15 }] 35[Wall] 36[Wall] 37[Wall] diff --git a/rust/kcl-lib/tests/revolve_about_edge/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/revolve_about_edge/artifact_graph_flowchart.snap.md index 980ae6266..b59684301 100644 --- a/rust/kcl-lib/tests/revolve_about_edge/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/revolve_about_edge/artifact_graph_flowchart.snap.md @@ -2,16 +2,23 @@ flowchart LR subgraph path3 [Path] 3["Path
[35, 63, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 5["Segment
[69, 117, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] end subgraph path4 [Path] 4["Path
[153, 191, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 6["Segment
[153, 191, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 7[Solid2d] end 1["Plane
[12, 29, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["Plane
[130, 147, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep RevolveAboutEdge
[197, 245, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 9[Wall] 10["Cap Start"] 11["Cap End"] diff --git a/rust/kcl-lib/tests/riddle_small/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/riddle_small/artifact_graph_flowchart.snap.md index 82d90f498..f1ca5e5fc 100644 --- a/rust/kcl-lib/tests/riddle_small/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/riddle_small/artifact_graph_flowchart.snap.md @@ -2,14 +2,21 @@ flowchart LR subgraph path2 [Path] 2["Path
[165, 192, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[198, 216, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[222, 241, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[247, 266, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6["Segment
[272, 280, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7[Solid2d] end 1["Plane
[142, 159, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Sweep Extrusion
[286, 305, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 9[Wall] 10[Wall] 11[Wall] diff --git a/rust/kcl-lib/tests/rotate_after_fillet/artifact_commands.snap b/rust/kcl-lib/tests/rotate_after_fillet/artifact_commands.snap index dfa138e5d..7623f9e50 100644 --- a/rust/kcl-lib/tests/rotate_after_fillet/artifact_commands.snap +++ b/rust/kcl-lib/tests/rotate_after_fillet/artifact_commands.snap @@ -254,7 +254,7 @@ description: Artifact commands rotate_after_fillet.kcl "path": "[uuid]", "to": { "x": 0.25, - "y": 0.14433756729740643, + "y": 0.1443, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/rotate_after_fillet/ops.snap b/rust/kcl-lib/tests/rotate_after_fillet/ops.snap index 8494cfe13..f891928a2 100644 --- a/rust/kcl-lib/tests/rotate_after_fillet/ops.snap +++ b/rust/kcl-lib/tests/rotate_after_fillet/ops.snap @@ -125,7 +125,7 @@ description: Operations executed rotate_after_fillet.kcl "length": { "value": { "type": "Number", - "value": -0.46875, + "value": -0.4688, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/scale_after_fillet/artifact_commands.snap b/rust/kcl-lib/tests/scale_after_fillet/artifact_commands.snap index bd2ccf9a2..6a34fb5c8 100644 --- a/rust/kcl-lib/tests/scale_after_fillet/artifact_commands.snap +++ b/rust/kcl-lib/tests/scale_after_fillet/artifact_commands.snap @@ -254,7 +254,7 @@ description: Artifact commands scale_after_fillet.kcl "path": "[uuid]", "to": { "x": 0.25, - "y": 0.14433756729740643, + "y": 0.1443, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/scale_after_fillet/ops.snap b/rust/kcl-lib/tests/scale_after_fillet/ops.snap index 4737d522e..d87b4a701 100644 --- a/rust/kcl-lib/tests/scale_after_fillet/ops.snap +++ b/rust/kcl-lib/tests/scale_after_fillet/ops.snap @@ -125,7 +125,7 @@ description: Operations executed scale_after_fillet.kcl "length": { "value": { "type": "Number", - "value": -0.46875, + "value": -0.4688, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/artifact_graph_flowchart.snap.md index 223193bc0..0ee7f81b4 100644 --- a/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/artifact_graph_flowchart.snap.md @@ -2,27 +2,44 @@ flowchart LR subgraph path3 [Path] 3["Path
[1014, 1039, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 5["Segment
[1045, 1090, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 6["Segment
[1096, 1139, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 7["Segment
[1145, 1172, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 8["Segment
[1178, 1236, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 9["Segment
[1242, 1282, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 10["Segment
[1288, 1296, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 17[Solid2d] end subgraph path4 [Path] 4["Path
[1535, 1566, 0]"] + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 11["Segment
[1572, 1597, 0]"] + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 12["Segment
[1603, 1628, 0]"] + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 13["Segment
[1634, 1659, 0]"] + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 14["Segment
[1665, 1721, 0]"] + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 15["Segment
[1727, 1735, 0]"] + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 16[Solid2d] end 1["Plane
[991, 1008, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[1493, 1529, 0]"] + %% Missing NodePath 18["Sweep Extrusion
[1302, 1325, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 19["Sweep Extrusion
[1741, 1761, 0]"] + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 20[Wall] 21[Wall] 22[Wall] @@ -57,7 +74,9 @@ flowchart LR 51["SweepEdge Adjacent"] 52["SweepEdge Adjacent"] 53["EdgeCut Fillet
[1331, 1396, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 54["EdgeCut Fillet
[1402, 1479, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 10 }] 1 --- 3 29 x--> 2 3 --- 5 diff --git a/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/ops.snap b/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/ops.snap index 6b659054e..6b8a57512 100644 --- a/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/ops.snap +++ b/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/ops.snap @@ -108,7 +108,7 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "radius": { "value": { "type": "Number", - "value": 0.5707134902949093, + "value": 0.5707, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/ssi_pattern/artifact_commands.snap b/rust/kcl-lib/tests/ssi_pattern/artifact_commands.snap index a082b1e94..d974d7372 100644 --- a/rust/kcl-lib/tests/ssi_pattern/artifact_commands.snap +++ b/rust/kcl-lib/tests/ssi_pattern/artifact_commands.snap @@ -302,7 +302,7 @@ description: Artifact commands ssi_pattern.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -0.6800000000000002, + "x": -0.68, "y": 47.7, "z": 0.0 } diff --git a/rust/kcl-lib/tests/subtract_regression01/artifact_commands.snap b/rust/kcl-lib/tests/subtract_regression01/artifact_commands.snap index 0baeaaa45..2c34a7e28 100644 --- a/rust/kcl-lib/tests/subtract_regression01/artifact_commands.snap +++ b/rust/kcl-lib/tests/subtract_regression01/artifact_commands.snap @@ -78,7 +78,7 @@ description: Artifact commands subtract_regression01.kcl "path": "[uuid]", "to": { "x": -23.1902, - "y": -14.909799999999999, + "y": -14.9098, "z": 0.0 } } @@ -133,7 +133,7 @@ description: Artifact commands subtract_regression01.kcl }, "end": { "unit": "degrees", - "value": 227.157002 + "value": 227.157 }, "relative": false } @@ -171,7 +171,7 @@ description: Artifact commands subtract_regression01.kcl "radius": 12.7, "start": { "unit": "degrees", - "value": 227.157002 + "value": 227.157 }, "end": { "unit": "degrees", @@ -380,7 +380,7 @@ description: Artifact commands subtract_regression01.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -15.379699999999998, + "x": -15.3797, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/subtract_regression02/artifact_commands.snap b/rust/kcl-lib/tests/subtract_regression02/artifact_commands.snap index 6a75a672b..614da53b0 100644 --- a/rust/kcl-lib/tests/subtract_regression02/artifact_commands.snap +++ b/rust/kcl-lib/tests/subtract_regression02/artifact_commands.snap @@ -77,8 +77,8 @@ description: Artifact commands subtract_regression02.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -19.049999999999997, - "y": 19.049999999999997, + "x": -19.05, + "y": 19.05, "z": 0.0 } } @@ -391,7 +391,7 @@ description: Artifact commands subtract_regression02.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 4.1655999999999995, + "x": 4.1656, "y": 0.0, "z": 0.0 } @@ -568,7 +568,7 @@ description: Artifact commands subtract_regression02.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 4.1655999999999995, + "x": 4.1656, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/subtract_regression02/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/subtract_regression02/artifact_graph_flowchart.snap.md index 27f13aafb..a5711a608 100644 --- a/rust/kcl-lib/tests/subtract_regression02/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/subtract_regression02/artifact_graph_flowchart.snap.md @@ -2,34 +2,55 @@ flowchart LR subgraph path4 [Path] 4["Path
[88, 131, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["Segment
[137, 157, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 8["Segment
[163, 182, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 9["Segment
[188, 265, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 10["Segment
[271, 293, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 11["Segment
[299, 380, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 12["Segment
[386, 407, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 13["Segment
[413, 490, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 14["Segment
[496, 503, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 19[Solid2d] end subgraph path5 [Path] 5["Path
[646, 704, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit] 15["Segment
[646, 704, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit] 17[Solid2d] end subgraph path6 [Path] 6["Path
[901, 959, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit] 16["Segment
[901, 959, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit] 18[Solid2d] end 1["Plane
[47, 64, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit] 2["Plane
[605, 622, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit] 3["Plane
[859, 877, 0]"] + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit] 20["Sweep Extrusion
[518, 591, 0]"] + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit] 21["Sweep Extrusion
[722, 791, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit] 22["Sweep Extrusion
[977, 1046, 0]"] + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit] 23["CompositeSolid Subtract
[802, 845, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit] 24["CompositeSolid Subtract
[1057, 1096, 0]"] + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit] 25[Wall] 26[Wall] 27[Wall] diff --git a/rust/kcl-lib/tests/subtract_regression03/artifact_commands.snap b/rust/kcl-lib/tests/subtract_regression03/artifact_commands.snap index 88113b81e..0cf8d5ea9 100644 --- a/rust/kcl-lib/tests/subtract_regression03/artifact_commands.snap +++ b/rust/kcl-lib/tests/subtract_regression03/artifact_commands.snap @@ -77,8 +77,8 @@ description: Artifact commands subtract_regression03.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -12.7940816, - "y": -6.7290696, + "x": -12.7941, + "y": -6.7291, "z": 0.0 } } @@ -129,7 +129,7 @@ description: Artifact commands subtract_regression03.kcl "radius": 4.17195, "start": { "unit": "degrees", - "value": 228.031232 + "value": 228.0312 }, "end": { "unit": "degrees", @@ -217,7 +217,7 @@ description: Artifact commands subtract_regression03.kcl }, "end": { "unit": "degrees", - "value": -37.055012 + "value": -37.055 }, "relative": false } @@ -270,13 +270,13 @@ description: Artifact commands subtract_regression03.kcl "command": { "type": "make_plane", "origin": { - "x": -12.7940816, - "y": -6.7290696, + "x": -12.7941, + "y": -6.7291, "z": 0.0 }, "x_axis": { - "x": 0.7435091262737867, - "y": 0.6687257877094245, + "x": 0.7435, + "y": 0.6687, "z": 0.0 }, "y_axis": { @@ -307,8 +307,8 @@ description: Artifact commands subtract_regression03.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": 0.6687257877094245, - "y": -0.7435091262737867, + "x": 0.6687, + "y": -0.7435, "z": 0.0 } } @@ -426,13 +426,13 @@ description: Artifact commands subtract_regression03.kcl "command": { "type": "make_plane", "origin": { - "x": -12.7940816, + "x": -12.7941, "y": -7.112, "z": 0.0 }, "x_axis": { - "x": -0.7435091262737867, - "y": 0.6687257877094245, + "x": -0.7435, + "y": 0.6687, "z": 0.0 }, "y_axis": { @@ -455,8 +455,8 @@ description: Artifact commands subtract_regression03.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": -0.6687257877094245, - "y": -0.7435091262737867, + "x": -0.6687, + "y": -0.7435, "z": -0.0 } } @@ -469,7 +469,7 @@ description: Artifact commands subtract_regression03.kcl "path": "[uuid]", "to": { "x": 0.0, - "y": -1.5239999999999998, + "y": -1.524, "z": 0.0 } } @@ -566,8 +566,8 @@ description: Artifact commands subtract_regression03.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": -0.6687257877094245, - "y": -0.7435091262737867, + "x": -0.6687, + "y": -0.7435, "z": -0.0 } } @@ -641,8 +641,8 @@ description: Artifact commands subtract_regression03.kcl "z": 0.0 }, "x_axis": { - "x": -0.6025804201392091, - "y": -0.7980581665924197, + "x": -0.6026, + "y": -0.7981, "z": 0.0 }, "y_axis": { @@ -665,8 +665,8 @@ description: Artifact commands subtract_regression03.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": -0.7980581665924197, - "y": 0.6025804201392091, + "x": -0.7981, + "y": 0.6026, "z": 0.0 } } @@ -679,7 +679,7 @@ description: Artifact commands subtract_regression03.kcl "path": "[uuid]", "to": { "x": 0.0, - "y": -1.5239999999999998, + "y": -1.524, "z": 0.0 } } @@ -776,8 +776,8 @@ description: Artifact commands subtract_regression03.kcl "animated": false, "adjust_camera": false, "planar_normal": { - "x": -0.7980581665924197, - "y": 0.6025804201392091, + "x": -0.7981, + "y": 0.6026, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/subtract_regression04/artifact_commands.snap b/rust/kcl-lib/tests/subtract_regression04/artifact_commands.snap index b91f69703..1b7d2583b 100644 --- a/rust/kcl-lib/tests/subtract_regression04/artifact_commands.snap +++ b/rust/kcl-lib/tests/subtract_regression04/artifact_commands.snap @@ -77,8 +77,8 @@ description: Artifact commands subtract_regression04.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 11.90625, - "y": 38.099999999999994, + "x": 11.9063, + "y": 38.1, "z": 0.0 } } @@ -339,7 +339,7 @@ description: Artifact commands subtract_regression04.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 3.8099999999999996, + "x": 3.81, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/subtract_regression05/artifact_commands.snap b/rust/kcl-lib/tests/subtract_regression05/artifact_commands.snap index 3e0e453e6..bd2b9d3d9 100644 --- a/rust/kcl-lib/tests/subtract_regression05/artifact_commands.snap +++ b/rust/kcl-lib/tests/subtract_regression05/artifact_commands.snap @@ -237,7 +237,7 @@ description: Artifact commands subtract_regression05.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 30.162499999999998, + "x": 30.1625, "y": 0.0, "z": 0.0 } @@ -446,7 +446,7 @@ description: Artifact commands subtract_regression05.kcl "path": "[uuid]", "to": { "x": 23.7998, - "y": -28.587699999999998, + "y": -28.5877, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/subtract_regression05/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/subtract_regression05/artifact_graph_flowchart.snap.md index 6a85ab32e..63bde25cb 100644 --- a/rust/kcl-lib/tests/subtract_regression05/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/subtract_regression05/artifact_graph_flowchart.snap.md @@ -2,35 +2,55 @@ flowchart LR subgraph path4 [Path] 4["Path
[88, 124, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["Segment
[130, 151, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 9["Segment
[157, 238, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 10["Segment
[244, 265, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] end subgraph path5 [Path] 5["Path
[320, 379, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 11["Segment
[320, 379, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 19[Solid2d] end subgraph path6 [Path] 6["Path
[403, 443, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }, CallKwArg { index: 0 }] 12["Segment
[403, 443, 0]"] + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }, CallKwArg { index: 0 }] 18[Solid2d] end subgraph path7 [Path] 7["Path
[579, 625, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 13["Segment
[631, 653, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 14["Segment
[659, 681, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 15["Segment
[687, 708, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 16["Segment
[714, 735, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 17["Segment
[741, 748, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 20[Solid2d] end 1["Plane
[47, 64, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit] 2["Plane
[279, 296, 0]"] + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit] 3["Plane
[538, 555, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit] 21["Sweep Sweep
[464, 524, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit] 22["Sweep Revolve
[773, 824, 0]"] + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit] 23["CompositeSolid Subtract
[842, 897, 0]"] + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit] 24[Wall] 25[Wall] 26[Wall] diff --git a/rust/kcl-lib/tests/subtract_regression06/artifact_commands.snap b/rust/kcl-lib/tests/subtract_regression06/artifact_commands.snap index 16c8d90ef..6bda420e9 100644 --- a/rust/kcl-lib/tests/subtract_regression06/artifact_commands.snap +++ b/rust/kcl-lib/tests/subtract_regression06/artifact_commands.snap @@ -77,7 +77,7 @@ description: Artifact commands subtract_regression06.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": -12.223749999999999, + "x": -12.2237, "y": 79.375, "z": 0.0 } @@ -133,7 +133,7 @@ description: Artifact commands subtract_regression06.kcl }, "end": { "unit": "degrees", - "value": 11.87373 + "value": 11.8737 }, "relative": false } @@ -171,11 +171,11 @@ description: Artifact commands subtract_regression06.kcl "radius": 33.3375, "start": { "unit": "degrees", - "value": 11.87373 + "value": 11.8737 }, "end": { "unit": "degrees", - "value": -192.443844 + "value": -192.4438 }, "relative": false } @@ -213,7 +213,7 @@ description: Artifact commands subtract_regression06.kcl "radius": 6.35, "start": { "unit": "degrees", - "value": 167.556156 + "value": 167.5562 }, "end": { "unit": "degrees", @@ -293,7 +293,7 @@ description: Artifact commands subtract_regression06.kcl }, "end": { "unit": "degrees", - "value": 167.556156 + "value": 167.5562 }, "relative": false } @@ -331,11 +331,11 @@ description: Artifact commands subtract_regression06.kcl "radius": 30.162499999999998, "start": { "unit": "degrees", - "value": -192.443844 + "value": -192.4438 }, "end": { "unit": "degrees", - "value": 11.87373 + "value": 11.8737 }, "relative": false } @@ -373,7 +373,7 @@ description: Artifact commands subtract_regression06.kcl "radius": 3.175, "start": { "unit": "degrees", - "value": 11.87373 + "value": 11.8737 }, "end": { "unit": "degrees", @@ -568,7 +568,7 @@ description: Artifact commands subtract_regression06.kcl "type": "move_path_pen", "path": "[uuid]", "to": { - "x": 5.5562499999999995, + "x": 5.5562, "y": 0.0, "z": 0.0 } diff --git a/rust/kcl-lib/tests/subtract_regression06/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/subtract_regression06/artifact_graph_flowchart.snap.md index 0173af760..5a1b009b3 100644 --- a/rust/kcl-lib/tests/subtract_regression06/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/subtract_regression06/artifact_graph_flowchart.snap.md @@ -2,35 +2,60 @@ flowchart LR subgraph path3 [Path] 3["Path
[88, 135, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["Segment
[141, 163, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 6["Segment
[169, 253, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 7["Segment
[259, 292, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 8["Segment
[298, 393, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 9["Segment
[399, 430, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 10["Segment
[436, 522, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 11["Segment
[528, 550, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 12["Segment
[556, 578, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 13["Segment
[584, 607, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 14["Segment
[613, 700, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 10 }] 15["Segment
[706, 739, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 11 }] 16["Segment
[745, 840, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 12 }] 17["Segment
[846, 879, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 13 }] 18["Segment
[885, 970, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 14 }] 19["Segment
[976, 999, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 15 }] 20["Segment
[1005, 1026, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 16 }] 21["Segment
[1032, 1039, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 17 }] 23[Solid2d] end subgraph path4 [Path] 4["Path
[1286, 1346, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit] 22["Segment
[1286, 1346, 0]"] + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit] 24[Solid2d] end 1["Plane
[47, 64, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit] 2["Plane
[1239, 1262, 0]"] + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit] 25["Sweep Extrusion
[1054, 1123, 0]"] + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit] 26["Sweep Extrusion
[1364, 1406, 0]"] + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit] 27["CompositeSolid Subtract
[1417, 1460, 0]"] + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit] 28[Wall] 29[Wall] 30[Wall] diff --git a/rust/kcl-lib/tests/tan_arc_x_line/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/tan_arc_x_line/artifact_graph_flowchart.snap.md index 8d52a12c3..5f26d5923 100644 --- a/rust/kcl-lib/tests/tan_arc_x_line/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/tan_arc_x_line/artifact_graph_flowchart.snap.md @@ -2,13 +2,20 @@ flowchart LR subgraph path2 [Path] 2["Path
[87, 122, 0]"] + %% [ProgramBodyItem { index: 5 }, ExpressionStatementExpr, PipeBodyItem { index: 1 }] 3["Segment
[128, 176, 0]"] + %% [ProgramBodyItem { index: 5 }, ExpressionStatementExpr, PipeBodyItem { index: 2 }] 4["Segment
[182, 241, 0]"] + %% [ProgramBodyItem { index: 5 }, ExpressionStatementExpr, PipeBodyItem { index: 3 }] 5["Segment
[247, 312, 0]"] + %% [ProgramBodyItem { index: 5 }, ExpressionStatementExpr, PipeBodyItem { index: 4 }] 6["Segment
[318, 384, 0]"] + %% [ProgramBodyItem { index: 5 }, ExpressionStatementExpr, PipeBodyItem { index: 5 }] 7["Segment
[390, 412, 0]"] + %% [ProgramBodyItem { index: 5 }, ExpressionStatementExpr, PipeBodyItem { index: 6 }] end 1["Plane
[64, 81, 0]"] + %% [ProgramBodyItem { index: 5 }, ExpressionStatementExpr, PipeBodyItem { index: 0 }] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/tangent_to_3_point_arc/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/tangent_to_3_point_arc/artifact_graph_flowchart.snap.md index 1cd09efaa..aec7a4d4f 100644 --- a/rust/kcl-lib/tests/tangent_to_3_point_arc/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/tangent_to_3_point_arc/artifact_graph_flowchart.snap.md @@ -2,11 +2,16 @@ flowchart LR subgraph path2 [Path] 2["Path
[43, 85, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 3["Segment
[91, 115, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 4["Segment
[121, 235, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 5["Segment
[241, 318, 0]"] + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] end 1["Plane
[12, 29, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/tangential_arc/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/tangential_arc/artifact_graph_flowchart.snap.md index 992e0cbe5..f7d996705 100644 --- a/rust/kcl-lib/tests/tangential_arc/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/tangential_arc/artifact_graph_flowchart.snap.md @@ -2,12 +2,18 @@ flowchart LR subgraph path2 [Path] 2["Path
[35, 60, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[66, 85, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[91, 128, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[134, 154, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] end 1["Plane
[12, 29, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 6["Sweep Extrusion
[160, 180, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 7[Wall] 8[Wall] 9[Wall] diff --git a/rust/kcl-lib/tests/translate_after_fillet/artifact_commands.snap b/rust/kcl-lib/tests/translate_after_fillet/artifact_commands.snap index b301be3c6..100fef8f5 100644 --- a/rust/kcl-lib/tests/translate_after_fillet/artifact_commands.snap +++ b/rust/kcl-lib/tests/translate_after_fillet/artifact_commands.snap @@ -254,7 +254,7 @@ description: Artifact commands translate_after_fillet.kcl "path": "[uuid]", "to": { "x": 0.25, - "y": 0.14433756729740643, + "y": 0.1443, "z": 0.0 } } diff --git a/rust/kcl-lib/tests/translate_after_fillet/ops.snap b/rust/kcl-lib/tests/translate_after_fillet/ops.snap index 3532872e6..5a1314cf7 100644 --- a/rust/kcl-lib/tests/translate_after_fillet/ops.snap +++ b/rust/kcl-lib/tests/translate_after_fillet/ops.snap @@ -125,7 +125,7 @@ description: Operations executed translate_after_fillet.kcl "length": { "value": { "type": "Number", - "value": -0.46875, + "value": -0.4688, "ty": { "type": "Default", "len": { diff --git a/rust/kcl-lib/tests/xz_plane/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/xz_plane/artifact_graph_flowchart.snap.md index 81f89cc43..24b5ecf3a 100644 --- a/rust/kcl-lib/tests/xz_plane/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/xz_plane/artifact_graph_flowchart.snap.md @@ -2,13 +2,19 @@ flowchart LR subgraph path2 [Path] 2["Path
[33, 58, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["Segment
[64, 94, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 4["Segment
[100, 128, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 5["Segment
[134, 142, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] 6[Solid2d] end 1["Plane
[10, 27, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["Sweep Extrusion
[148, 171, 0]"] + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 8[Wall] 9[Wall] 10[Wall]