Changes for page JavaScript (KLayJS)
Last modified by Richard Kreissig on 2023/09/14 10:14
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,7 +1,7 @@ 1 1 {{panel title="Project Overview" borderStyle="dashed"}} 2 2 Responsible: 3 3 4 -* {{mention reference="XWiki.uru" style="FULL_NAME" anchor="XWiki-uru- fiRHE"/}}4 +* {{mention reference="XWiki.uru" style="FULL_NAME" anchor="XWiki-uru-nPAuD"/}} 5 5 {{/panel}} 6 6 7 7 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) >>url:http://www.gwtproject.org/||shape="rect"]]to convert our Java code into a JavaScript library. This allows you to use the full power of our layout algorithms in pure JavaScript. ... ... @@ -31,6 +31,12 @@ 31 31 * **success(//layouted//)** - a function to be called upon success, the layouted graph is passed as argument. 32 32 * **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. 33 33 34 +=== Dedicated KlayJS Options === 35 + 36 +We offer some options that have influence of the behavior of the JavaScript interface. These options are listed below. 37 + 38 +* **intCoordinates** - when set to {{code language="none"}}true{{/code}} all calculated layout coordinates (by default doubles) are cast to an integer value. 39 + 34 34 = Example = 35 35 36 36 Below is small example that executes layout on a small graph. Upon success the returned JSON is printed to the console and added to the body of the document.
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 - 86517841 +9469981 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/ 8651784/JavaScript (KLayJS)1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/9469981/JavaScript (KLayJS)