This commit is contained in:
Adam Chalmers
2025-04-27 07:25:20 -05:00
parent 58a13b8cfc
commit c1a249d125
3 changed files with 10 additions and 18 deletions

View File

@ -224,13 +224,12 @@ const Overlay = ({
} }
const callExpression = _node1.node const callExpression = _node1.node
const constraints = const constraints = getConstraintInfoKw(
getConstraintInfoKw( callExpression,
callExpression, codeManager.code,
codeManager.code, overlay.pathToNode,
overlay.pathToNode, overlay.filterValue
overlay.filterValue )
)
const offset = 20 // px const offset = 20 // px
// We could put a boolean in settings that // We could put a boolean in settings that

View File

@ -670,12 +670,6 @@ export const hasValidEdgeTreatmentSelection = ({
return true return true
} }
type EdgeTypes =
| 'baseEdge'
| 'getNextAdjacentEdge'
| 'getPreviousAdjacentEdge'
| 'getOppositeEdge'
// Delete Edge Treatment // Delete Edge Treatment
export async function deleteEdgeTreatment( export async function deleteEdgeTreatment(
ast: Node<Program>, ast: Node<Program>,

View File

@ -16,7 +16,6 @@
import type { import type {
ArtifactGraph, ArtifactGraph,
CallExpression,
CallExpressionKw, CallExpressionKw,
Expr, Expr,
PathToNode, PathToNode,
@ -312,10 +311,10 @@ function modifyAstWithTagsForEdgeSelection(
) )
if (err(pathToSegmentNode)) return pathToSegmentNode if (err(pathToSegmentNode)) return pathToSegmentNode
const segmentNode = getNodeFromPath<CallExpression | CallExpressionKw>( const segmentNode = getNodeFromPath<CallExpressionKw>(
astClone, astClone,
pathToSegmentNode, pathToSegmentNode,
['CallExpression', 'CallExpressionKw'] ['CallExpressionKw']
) )
if (err(segmentNode)) return segmentNode if (err(segmentNode)) return segmentNode
@ -534,10 +533,10 @@ function modifyAstWithTagForSketchSegment(
// Clone AST // Clone AST
const astClone = structuredClone(ast) const astClone = structuredClone(ast)
const segmentNode = getNodeFromPath<CallExpression | CallExpressionKw>( const segmentNode = getNodeFromPath<CallExpressionKw>(
astClone, astClone,
pathToSegmentNode, pathToSegmentNode,
['CallExpression', 'CallExpressionKw'] ['CallExpressionKw']
) )
if (err(segmentNode)) return segmentNode if (err(segmentNode)) return segmentNode