No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
src
.babelrc
.gitignore
.npmignore
LICENSE.txt
README.md
package.json
webpack.config.babel.js

README.md

HIGHLY EXPERIMENTAL This plugin provides very basic visualization features for gremlin-console-js

npm GitHub license

Preview

Screen Shot

Install

npm install gc-cytoscape-plugin

Getting started

Using ES2015/2016
import GremlinConsole from 'gremlin-console';
import GCCytoscapePlugin from 'gc-cytoscape-plugin';

//create a console + input combo by passing css selectors to GremlinConsole
//Load http://localhost:80/my/path
const gc = GremlinConsole('#console-window', '#console-input', {
  visualizerOptions: {container: "#visualization-window"}
});
gc.register(GCCytoscapePlugin()); //register the plugin
In browser
<head>
  <!-- ... -->
  <link rel="stylesheet" type="text/css" href="umd/css/default.css">
  <script src="path-to-umd/gremlin-console.min.js"></script>
  <script src="path-to-umd/gc-cytoscape-plugin.min.js"></script>
</head>
//create a console + input combo by passing css selectors to GremlinConsole
//Load http://localhost:80/my/path
var gc = GremlinConsole.create('#console-window', '#console-input', {
  visualizerOptions: {container: "#visualization-window"}
});
gc.register(GCCytoscapePlugin.init()); //register the plugin

Keep in mind

This is a very basic plugin. It only supports the container option and will choke on larger datasets.