Class: Factory

Defined in: web-src/coffee/model/factories.coffee

Overview

Abstract class.

Factory class for defining common behaviour of all JointJS plugins primitives.

Instance Method Summary

Constructor Details

# (void) constructor()

Instance Method Details

# (?) create_class(name)

Create a class representation.

Parameters:

  • name ( String ) the class name.

Returns:

  • ( ? ) — A JointJS class model.

# (?) create_association(class_a_id, class_b_id, name = null)

Create an association between two classes.

Parameters:

  • class_a_id ( String ) the JointJS id of the first class.
  • class_b_id ( String ) the JointJS id of the second class.
  • name ( String ) the association name or tag.

Returns:

  • ( ? ) — A JointJS link model.

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: