* Add Rust side artifacts for startSketchOn face or plane * move ast digging --------- Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch>
573 lines
9.0 KiB
Plaintext
573 lines
9.0 KiB
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`testing createArtifactGraph > code with an extrusion, fillet and sketch of face: > snapshot of the artifactGraph 1`] = `
|
|
Map {
|
|
"UUID-0" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
12,
|
|
31,
|
|
true,
|
|
],
|
|
},
|
|
"id": "UUID",
|
|
"pathIds": [
|
|
"UUID",
|
|
],
|
|
"type": "plane",
|
|
},
|
|
"UUID-1" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
37,
|
|
64,
|
|
true,
|
|
],
|
|
},
|
|
"id": "UUID",
|
|
"planeId": "UUID",
|
|
"segIds": [
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
],
|
|
"solid2dId": "UUID",
|
|
"sweepId": "UUID",
|
|
"type": "path",
|
|
},
|
|
"UUID-2" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
70,
|
|
86,
|
|
true,
|
|
],
|
|
},
|
|
"edgeIds": [
|
|
"UUID",
|
|
"UUID",
|
|
],
|
|
"id": "UUID",
|
|
"pathId": "UUID",
|
|
"surfaceId": "UUID",
|
|
"type": "segment",
|
|
},
|
|
"UUID-3" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
92,
|
|
119,
|
|
true,
|
|
],
|
|
},
|
|
"edgeCutId": "UUID",
|
|
"edgeIds": [
|
|
"UUID",
|
|
"UUID",
|
|
],
|
|
"id": "UUID",
|
|
"pathId": "UUID",
|
|
"surfaceId": "UUID",
|
|
"type": "segment",
|
|
},
|
|
"UUID-4" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
125,
|
|
150,
|
|
true,
|
|
],
|
|
},
|
|
"edgeIds": [
|
|
"UUID",
|
|
"UUID",
|
|
],
|
|
"id": "UUID",
|
|
"pathId": "UUID",
|
|
"surfaceId": "UUID",
|
|
"type": "segment",
|
|
},
|
|
"UUID-5" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
156,
|
|
203,
|
|
true,
|
|
],
|
|
},
|
|
"edgeIds": [
|
|
"UUID",
|
|
"UUID",
|
|
],
|
|
"id": "UUID",
|
|
"pathId": "UUID",
|
|
"surfaceId": "UUID",
|
|
"type": "segment",
|
|
},
|
|
"UUID-6" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
209,
|
|
217,
|
|
true,
|
|
],
|
|
},
|
|
"edgeIds": [],
|
|
"id": "UUID",
|
|
"pathId": "UUID",
|
|
"type": "segment",
|
|
},
|
|
"UUID-7" => {
|
|
"id": "UUID",
|
|
"pathId": "UUID",
|
|
"type": "solid2D",
|
|
},
|
|
"UUID-8" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
231,
|
|
254,
|
|
true,
|
|
],
|
|
},
|
|
"edgeIds": [
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
],
|
|
"id": "UUID",
|
|
"pathId": "UUID",
|
|
"subType": "extrusion",
|
|
"surfaceIds": [
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
],
|
|
"type": "sweep",
|
|
},
|
|
"UUID-9" => {
|
|
"edgeCutEdgeIds": [],
|
|
"id": "UUID",
|
|
"pathIds": [],
|
|
"segId": "UUID",
|
|
"sweepId": "UUID",
|
|
"type": "wall",
|
|
},
|
|
"UUID-10" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
312,
|
|
344,
|
|
true,
|
|
],
|
|
},
|
|
"edgeCutEdgeIds": [],
|
|
"id": "UUID",
|
|
"pathIds": [
|
|
"UUID",
|
|
],
|
|
"segId": "UUID",
|
|
"sweepId": "UUID",
|
|
"type": "wall",
|
|
},
|
|
"UUID-11" => {
|
|
"edgeCutEdgeIds": [],
|
|
"id": "UUID",
|
|
"pathIds": [],
|
|
"segId": "UUID",
|
|
"sweepId": "UUID",
|
|
"type": "wall",
|
|
},
|
|
"UUID-12" => {
|
|
"edgeCutEdgeIds": [],
|
|
"id": "UUID",
|
|
"pathIds": [],
|
|
"segId": "UUID",
|
|
"sweepId": "UUID",
|
|
"type": "wall",
|
|
},
|
|
"UUID-13" => {
|
|
"edgeCutEdgeIds": [],
|
|
"id": "UUID",
|
|
"pathIds": [],
|
|
"subType": "start",
|
|
"sweepId": "UUID",
|
|
"type": "cap",
|
|
},
|
|
"UUID-14" => {
|
|
"edgeCutEdgeIds": [],
|
|
"id": "UUID",
|
|
"pathIds": [],
|
|
"subType": "end",
|
|
"sweepId": "UUID",
|
|
"type": "cap",
|
|
},
|
|
"UUID-15" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "opposite",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
"UUID-16" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "adjacent",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
"UUID-17" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "opposite",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
"UUID-18" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "adjacent",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
"UUID-19" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "opposite",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
"UUID-20" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "adjacent",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
"UUID-21" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "opposite",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
"UUID-22" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "adjacent",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
"UUID-23" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
260,
|
|
299,
|
|
true,
|
|
],
|
|
},
|
|
"consumedEdgeId": "UUID",
|
|
"edgeIds": [],
|
|
"id": "UUID",
|
|
"subType": "fillet",
|
|
"type": "edgeCut",
|
|
},
|
|
"UUID-24" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
350,
|
|
377,
|
|
true,
|
|
],
|
|
},
|
|
"id": "UUID",
|
|
"planeId": "UUID",
|
|
"segIds": [
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
],
|
|
"solid2dId": "UUID",
|
|
"sweepId": "UUID",
|
|
"type": "path",
|
|
},
|
|
"UUID-25" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
383,
|
|
398,
|
|
true,
|
|
],
|
|
},
|
|
"edgeIds": [
|
|
"UUID",
|
|
"UUID",
|
|
],
|
|
"id": "UUID",
|
|
"pathId": "UUID",
|
|
"surfaceId": "UUID",
|
|
"type": "segment",
|
|
},
|
|
"UUID-26" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
404,
|
|
420,
|
|
true,
|
|
],
|
|
},
|
|
"edgeIds": [
|
|
"UUID",
|
|
"UUID",
|
|
],
|
|
"id": "UUID",
|
|
"pathId": "UUID",
|
|
"surfaceId": "UUID",
|
|
"type": "segment",
|
|
},
|
|
"UUID-27" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
426,
|
|
473,
|
|
true,
|
|
],
|
|
},
|
|
"edgeIds": [
|
|
"UUID",
|
|
"UUID",
|
|
],
|
|
"id": "UUID",
|
|
"pathId": "UUID",
|
|
"surfaceId": "UUID",
|
|
"type": "segment",
|
|
},
|
|
"UUID-28" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
479,
|
|
487,
|
|
true,
|
|
],
|
|
},
|
|
"edgeIds": [],
|
|
"id": "UUID",
|
|
"pathId": "UUID",
|
|
"type": "segment",
|
|
},
|
|
"UUID-29" => {
|
|
"id": "UUID",
|
|
"pathId": "UUID",
|
|
"type": "solid2D",
|
|
},
|
|
"UUID-30" => {
|
|
"codeRef": {
|
|
"pathToNode": [
|
|
[
|
|
"body",
|
|
"",
|
|
],
|
|
],
|
|
"range": [
|
|
501,
|
|
522,
|
|
true,
|
|
],
|
|
},
|
|
"edgeIds": [
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
],
|
|
"id": "UUID",
|
|
"pathId": "UUID",
|
|
"subType": "extrusion",
|
|
"surfaceIds": [
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
"UUID",
|
|
],
|
|
"type": "sweep",
|
|
},
|
|
"UUID-31" => {
|
|
"edgeCutEdgeIds": [],
|
|
"id": "UUID",
|
|
"pathIds": [],
|
|
"segId": "UUID",
|
|
"sweepId": "UUID",
|
|
"type": "wall",
|
|
},
|
|
"UUID-32" => {
|
|
"edgeCutEdgeIds": [],
|
|
"id": "UUID",
|
|
"pathIds": [],
|
|
"segId": "UUID",
|
|
"sweepId": "UUID",
|
|
"type": "wall",
|
|
},
|
|
"UUID-33" => {
|
|
"edgeCutEdgeIds": [],
|
|
"id": "UUID",
|
|
"pathIds": [],
|
|
"segId": "UUID",
|
|
"sweepId": "UUID",
|
|
"type": "wall",
|
|
},
|
|
"UUID-34" => {
|
|
"edgeCutEdgeIds": [],
|
|
"id": "UUID",
|
|
"pathIds": [],
|
|
"subType": "end",
|
|
"sweepId": "UUID",
|
|
"type": "cap",
|
|
},
|
|
"UUID-35" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "opposite",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
"UUID-36" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "adjacent",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
"UUID-37" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "opposite",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
"UUID-38" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "adjacent",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
"UUID-39" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "opposite",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
"UUID-40" => {
|
|
"id": "UUID",
|
|
"segId": "UUID",
|
|
"subType": "adjacent",
|
|
"sweepId": "UUID",
|
|
"type": "sweepEdge",
|
|
},
|
|
}
|
|
`;
|