Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
shape: 'image',
color: this.buildGroupColor(theme.switch),
size: 25,
image: switchImg
}
}
}
// Create and fill datasets
const nodes = this.nodes = new DataSet()
const edges = this.edges = new DataSet()
// It's necessary to load the items now, otherwise the network would be labeld as ready before the items are visible.
this.replaceItems()
// Create the network
const net = new Network(this.$refs.vis, { nodes, edges }, options)
this.net = net
// Some labels contain placeholders for info from connected nodes.
// Therefore this can't be done before the topology is built.
this.updateLabels()
this.cleanUpCallbacks.push(this.$store.subscribe(({ type, payload }, { data }) => {
;(this.storeActions[type] || (() => {}))(payload, data)
}))
this.$emit('ready', { container, net, nodes, edges })
},
beforeDestroy () {