Class Relationship

Represents a relationship between two DataObjects.

This class defines the connection between two objects in a data model, which can be of any type that identifies the relationship. This relationship is stored within the related and relating attributes of the DataObject.

For detailed usage, refer to @xeokit/sdk/data.

Properties

relatedObject: DataObject

The DataObject that is the target of this Relationship.

This Relationship will be stored in the DataObject.relating attribute of the related DataObject.

relatingObject: DataObject

The DataObject that is the source of this Relationship.

This Relationship will be stored in the DataObject.related attribute of the relating DataObject.

type: number

The type of this Relationship.

This value uniquely identifies the relationship type within your DataModel.