Merge remote-tracking branch 'origin' into kurt-bring-back-multi-profile

This commit is contained in:
Kurt Hutten Irev-Dev
2024-12-20 21:43:41 +11:00
118 changed files with 7280 additions and 6677 deletions

View File

@ -845,33 +845,6 @@ export function isLinesParallelAndConstrained(
}
}
export function doesPipeHaveCallExp({
ast,
selection,
calleeName,
}: {
calleeName: string
ast: Program
selection: Selection
}): boolean {
const pipeExpressionMeta = getNodeFromPath<PipeExpression>(
ast,
selection?.codeRef?.pathToNode,
'PipeExpression'
)
if (err(pipeExpressionMeta)) {
console.error(pipeExpressionMeta)
return false
}
const pipeExpression = pipeExpressionMeta.node
if (pipeExpression.type !== 'PipeExpression') return false
return pipeExpression.body.some(
(expression) =>
expression.type === 'CallExpression' &&
expression.callee.name === calleeName
)
}
export function hasExtrudeSketch({
ast,
selection,