artifact map clean up (PART 2.1) (#3130)
* variable renaming * fix fillet
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user