fix circ dep

This commit is contained in:
Kurt Hutten Irev-Dev
2025-02-07 12:59:19 +11:00
parent a7f4b0f037
commit 319029235c
9 changed files with 45 additions and 32 deletions

View File

@ -7,6 +7,7 @@ import {
CallExpression,
VariableDeclarator,
CallExpressionKw,
ArtifactGraph,
} from 'lang/wasm'
import { Selections } from 'lib/selections'
import { Node } from 'wasm-lib/kcl/bindings/Node'
@ -25,6 +26,8 @@ import {
getEdgeTagCall,
} from 'lang/modifyAst/addEdgeTreatment'
import { Artifact, getPathsFromArtifact } from 'lang/std/artifactGraph'
import { kclManager } from 'lib/singletons'
export function revolveSketch(
ast: Node<Program>,
pathToSketchNode: PathToNode,
@ -32,6 +35,7 @@ export function revolveSketch(
axisOrEdge: string,
axis: string,
edge: Selections,
artifactGraph: ArtifactGraph,
artifact?: Artifact
):
| {
@ -43,6 +47,8 @@ export function revolveSketch(
const orderedSketchNodePaths = getPathsFromArtifact({
artifact: artifact,
sketchPathToNode: pathToSketchNode,
artifactGraph,
ast: kclManager.ast,
})
if (err(orderedSketchNodePaths)) return orderedSketchNodePaths
const clonedAst = structuredClone(ast)