An object that describes a class on the UML diagram.
Methods
toString
()
String
Returns the string representation of the primitive.
Returns:
String:
A string representation of the primitive.
Properties
attributes
Array
List of class attributes.
collapsed
Boolean
Indicates that the class is in a collapsed state.
height
Number
The height of this element.
id
String
The unique identifier of the primitive.
methods
Array
List of methods of the class.
position
Object
An object with the coordinates X
and Y
of this element, for example { x: 100, y: 100 }
.
primitive
Object
The object that describes the primitive.
size
Object
An object with the properties height
and width
of this element, for example { height: 100, width: 100 }
.
width
Number
The width of this element.
x
Number
The X
coordinate of this element.
y
Number
The Y
coordinate of this element.