Skip to content

Commit 123c3d2

Browse files
committed
Minor updates to the readme
1 parent 8babbcc commit 123c3d2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ var cytoscape = require('cytoscape');
3232
var panzoom = require('cytoscape-panzoom');
3333

3434
panzoom( cytoscape ); // register extension
35+
36+
// you can pass a custom version of jquery outside of the path
37+
// panzoom( cytoscape, $ ); // you shouldn't do this in a modern project...
3538
```
3639

3740
AMD:
@@ -43,6 +46,7 @@ require(['cytoscape', 'jquery', 'cytoscape-panzoom'], function( cytoscape, $, pa
4346

4447
Plain HTML/JS has the extension registered for you automatically, because no `require()` is needed.
4548

49+
You should either include `cytoscape.js-panzoom.css` (see `style` in `package.json`) or a similar custom stylesheet in your project.
4650

4751
## API
4852

0 commit comments

Comments
 (0)