cytoscape / cytoscape.js-navigator

Bird's eye view pan and zoom control for Cytoscape.js.
MIT License
67 stars 42 forks source link

The navigator did not display in Vue #45

Closed denglouhen closed 4 years ago

denglouhen commented 4 years ago

image The height of the div is 0.

I just import it:

import cytoscape from "cytoscape";
var navigator = require('cytoscape-navigator');
navigator( cytoscape );

In the init function:

....
 _this.cy = cytoscape(option);
_this.cy.navigator();
....

Is there anything wrong?

denglouhen commented 4 years ago

Import the css file in App.vue then the problem is solved.