tests: add default type to generated nodes
This commit is contained in:
@@ -16,6 +16,7 @@ export function getElements(xElements = 10, yElements = 10) {
|
||||
if (node.selected) style.border = '1px solid red'
|
||||
return style
|
||||
},
|
||||
type: 'default',
|
||||
position: { x: x * 100, y: y * 50 },
|
||||
data: {
|
||||
randomData: Math.floor(Math.random() * 1e3),
|
||||
@@ -30,6 +31,9 @@ export function getElements(xElements = 10, yElements = 10) {
|
||||
data: {
|
||||
randomData: Math.floor(Math.random() * 1e3),
|
||||
},
|
||||
style: (edge) => {
|
||||
if (edge.selected) return { stroke: '#10b981', strokeWidth: 3 }
|
||||
},
|
||||
animated: Math.random() > 0.5,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user