Closed markus-ebner closed 2 years ago
Unfortunately, this is not possible with only the features provided by v-network-graph. However, it may be possible to achieve this by doing the following:
LayoutHandler
(code) using d3-force with multiple configuration.
ForceLayout
(code) class can be used as a reference in the implementation.LayoutHandler
to the view.layoutHandler
config.The view.layoutHandler
config is specified as follows:
const configs = reactive({
view: {
layoutHandler: YourOwnLayoutHandler()
},
// ...
})
<v-network-graph
:nodes="nodes"
:edges="edges"
:configs="configs"
/>
Okay, I may need this feature in the future. Thanks for the information about the self written LayoutHandlers, I wasn't aware of this. At least I can develop it myself, if it isn't available at the time. ;)
Is it possible to have a different force configuration for different nodes/edges?