chore(nc-gui): marker color

This commit is contained in:
braks
2022-10-18 09:13:42 +02:00
parent 10aa15c4a3
commit e28a7b4e74
2 changed files with 16 additions and 4 deletions

View File

@@ -296,8 +296,9 @@ export function useErdElements(tables: MaybeRef<TableType[]>, props: MaybeRef<ER
const node = elements.value.find((nodes) => nodes.id === el.source)
if (node) {
const color = node.data!.color
el.data.color = color
;(el.markerEnd as EdgeMarker).color = skeleton ? `#${tinycolor(color).toHex()}` : undefined
;(el.markerEnd as EdgeMarker).color = `#${tinycolor(color).toHex()}`
}
}
})