Project Overview
Responsible:
The KLay JS project provides our Java-based layout algorithms to the JavaScript community. We leverage the Java to JavaScript compiler of the Google Web Toolkit (GWT) to convert our Java code into a JavaScript library. This allows you to use the full power of our layout algorithms in pure JavaScript.
The JavaScript library only contains the Klay Layered algorithm.
Downloads
Releases
Near future
API
$klay.layout({ graph, options, success, error });
- graph - the graph to be layouted in our JSON Format
- options - a JSON object containing layout options that should be used for every hierarchy level of the graph. The same effect can be achieved by specifying the properties for every compound node, however, using the options object offers a more convenient way. Further information on available layout options can be found here.
- success(layouted) - a function to be called upon success, the layouted graph is passed as argument
- error(obj) - a function to be called if an error occurs, an object is passed as argument which contains a text field with further information about the error
Example
Development
Overview
Content Tools