Unattached edges
In a diagram, by default, edges may have a source and/or target vertex, or their source/target may be located in whitespace. We refer to this as an unattached edge.
Configuration
Unattached edges are switched on by default. To turn them off, set allowUnattached:false in your render options:
import { createDiagram } from "@visuallyjs/browser-ui"
import "@visuallyjs/browser-ui/css/visuallyjs.css";
const data = ...
const options = {
edges: {
allowUnattached: false
}
}
const diagram = createDiagram(document.getElementById("diagram"), options, data)