Hierarchy

  • DiagramBuilder

Constructors

Properties

diagram: Diagram
rendererState: RendererStatesEnum

Accessors

Methods

  • Add an annotation property between two entities. If the source and/or target entities are already present in graph, they won't be added again. If there already exists an annotation property between them with the same IRI, the edge won't be added.

    Returns

    Parameters

    • annotationPropertyEdge: GrapholEntity

      the object property entity

    • sourceEntity: GrapholEntity

      the source entity

    • targetEntity: GrapholEntity

      the target entity

    • nodesType: TypesEnum[]

      the type of source and target

    • Optional annotationPropertyElement: GrapholEdge

      [optional] to use your own GrapholEdge for the object property occurrence. if you don't pass this, a new GrapholEdge will be created from scratch

    Returns undefined | GrapholElement

  • Add an object property between two entities. If the source and/or target entities are already present in graph, they won't be added again. If there already exists an object property between them with the same IRI, the edge won't be added.

    Returns

    Parameters

    • objectPropertyEntity: GrapholEntity

      the object property entity

    • sourceEntity: GrapholEntity

      the source entity

    • targetEntity: GrapholEntity

      the target entity

    • nodesType: TypesEnum[]

      the type of source and target

    • Optional objectPropertyElement: GrapholEdge

      [optional] to use your own GrapholEdge for the object property occurrence. if you don't pass this, a new GrapholEdge will be created from scratch

    Returns undefined | GrapholElement

  • Returns {
        x: number;
        y: number;
    }

    • x: number
    • y: number