feat(edges): add data and classname props, unify node/edge handling closes #357

This commit is contained in:
moklick
2020-07-27 12:40:39 +02:00
parent cbc41f244e
commit b3391860da
7 changed files with 127 additions and 90 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ export const project = (position: XYPosition): XYPosition => {
export const parseElement = (element: Node | Edge): Node | Edge => {
if (!element.id) {
throw new Error('All elements (nodes and edges) need to have an id.');
throw new Error('All nodes and edges need to have an id.');
}
if (isEdge(element)) {