artifact map clean up (PART 2.1) (#3130)

* variable renaming

* fix fillet
This commit is contained in:
Kurt Hutten
2024-07-26 14:19:14 +10:00
committed by GitHub
parent e708b6ee6b
commit 0d4b7adf99
4 changed files with 23 additions and 38 deletions

View File

@ -115,10 +115,7 @@ export async function getEventForSelectWithPoint(
selectionType: 'singleCodeCursor',
selection: {
range: sourceRange,
type:
_artifact?.additionalData.info === 'end'
? 'end-cap'
: 'start-cap',
type: _artifact?.cap === 'end' ? 'end-cap' : 'start-cap',
},
},
}
@ -525,7 +522,7 @@ function codeToIdSelections(
if (
type === 'start-cap' &&
entry.artifact.type === 'extrudeCap' &&
entry?.artifact?.additionalData?.info === 'start'
entry?.artifact?.cap === 'start'
) {
bestCandidate = entry
return
@ -533,7 +530,7 @@ function codeToIdSelections(
if (
type === 'end-cap' &&
entry.artifact.type === 'extrudeCap' &&
entry?.artifact?.additionalData?.info === 'end'
entry?.artifact?.cap === 'end'
) {
bestCandidate = entry
return