Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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.

    • FieldDescription
      typeThe type of the error, e.g. an invalid graph format.
      textFurther description of the problem that occurred.
      Additional Information Invalid Graph Format
      valueThe JSON object that caused the problem
      contextThe context of the value, e.g. if the value is an edge, the context is the containing node.

Dedicated KlayJS Options

We offer some options that have influence of the behavior of the JavaScript interface. These options are listed below.

...