Add edge and segment selection in point-and-click Helix flow

Fixes #5393
This commit is contained in:
Pierre Jacquier
2025-03-20 18:38:13 -04:00
501 changed files with 132399 additions and 65605 deletions

View File

@ -334,6 +334,8 @@ export function mutateObjExpProp(
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
})
}
}
@ -995,6 +997,8 @@ export function createLiteral(value: LiteralValue | number): Node<Literal> {
value,
raw,
outerAttrs: [],
preComments: [],
commentStart: 0,
}
}
@ -1005,6 +1009,8 @@ export function createTagDeclarator(value: string): Node<TagDeclarator> {
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
value,
}
@ -1017,6 +1023,8 @@ export function createIdentifier(name: string): Node<Identifier> {
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
name,
}
@ -1029,6 +1037,8 @@ export function createPipeSubstitution(): Node<PipeSubstitution> {
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
}
}
@ -1042,12 +1052,16 @@ export function createCallExpressionStdLib(
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
callee: {
type: 'Identifier',
start: 0,
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
name,
},
@ -1066,6 +1080,8 @@ export function createCallExpressionStdLibKw(
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
nonCodeMeta: nonCodeMetaEmpty(),
callee: {
type: 'Identifier',
@ -1073,6 +1089,8 @@ export function createCallExpressionStdLibKw(
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
name,
},
@ -1091,12 +1109,16 @@ export function createCallExpression(
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
callee: {
type: 'Identifier',
start: 0,
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
name,
},
@ -1113,6 +1135,8 @@ export function createArrayExpression(
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
nonCodeMeta: nonCodeMetaEmpty(),
elements,
@ -1128,6 +1152,8 @@ export function createPipeExpression(
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
body,
nonCodeMeta: nonCodeMetaEmpty(),
@ -1146,6 +1172,8 @@ export function createVariableDeclaration(
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
declaration: {
type: 'VariableDeclarator',
@ -1153,6 +1181,8 @@ export function createVariableDeclaration(
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
id: createIdentifier(varName),
init,
@ -1171,6 +1201,8 @@ export function createObjectExpression(properties: {
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
nonCodeMeta: nonCodeMetaEmpty(),
properties: Object.entries(properties).map(([key, value]) => ({
@ -1179,6 +1211,8 @@ export function createObjectExpression(properties: {
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
key: createIdentifier(key),
value,
@ -1196,6 +1230,8 @@ export function createUnaryExpression(
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
operator,
argument,
@ -1213,6 +1249,8 @@ export function createBinaryExpression([left, operator, right]: [
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
operator,
left,