Closed herosPan closed 5 years ago
See #17, there is a great explanation on the beginning. Basically you will have to mark afterCreated
as async
:
async after() {
const cy = await this.$cytoscape.instance;
cy.layout({
name: 'breadthfirst',
circle: false,
roots: '#existingnode',
spacingFactor: 1,
padding: 50,
fit: true,
}).run();
}
When using cy-element, if the elements data has no position, how do you need to automatically lay out