Merging dev into main #49
@@ -80,23 +80,9 @@ function addNode(nodeType: string, position: XYPosition) {
|
|||||||
id: `phase-${phaseNumber}`,
|
id: `phase-${phaseNumber}`,
|
||||||
type: nodeType,
|
type: nodeType,
|
||||||
position,
|
position,
|
||||||
data: {label: `"new"`, number: phaseNumber},
|
data: {label: 'new', number: phaseNumber},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
case "start":
|
|
||||||
return {
|
|
||||||
id: getId(),
|
|
||||||
type: nodeType,
|
|
||||||
position,
|
|
||||||
data: {label: `new start node`},
|
|
||||||
};
|
|
||||||
case "end":
|
|
||||||
return {
|
|
||||||
id: getId(),
|
|
||||||
type: nodeType,
|
|
||||||
position,
|
|
||||||
data: {label: `new end node`},
|
|
||||||
};
|
|
||||||
case "norm":
|
case "norm":
|
||||||
{
|
{
|
||||||
const normNumber = nds.filter((node) => node.type === 'norm').length;
|
const normNumber = nds.filter((node) => node.type === 'norm').length;
|
||||||
|
|||||||
Reference in New Issue
Block a user