An interactive network graph visualization component for Vue 3
const configs = defineConfigs({
view: {
autoPanAndZoomOnLoad: "fit-content",
fitContentMargin: 0, // default: "8%"
}
};
fitToContents()
method
const graph = ref<VNetworkGraphInstance>();
// ...
graph.value?.fitToContents({ margin: 0 });