Search results

ConnectorAnnotationDirective

Connectors Directive

<e-connectors>
<e-connector>
<e-connector-annotations>
<e-connector-annotation>
</e-connector-annotation>
</e-connector-annotations>
</e-connector>
</e-connectors>

Properties

addInfo

any

Allows the user to save custom information/data about an annotation

Defaults to undefined

alignment

any

Sets the segment alignment of annotation

  • Center - Aligns the annotation at the center of a connector segment
  • Before - Aligns the annotation before a connector segment
  • After - Aligns the annotation after a connector segment

Defaults to Center

constraints

any

Enables or disables the default behaviors of the label.

  • ReadOnly - Enables/Disables the ReadOnly Constraints
  • InheritReadOnly - Enables/Disables the InheritReadOnly Constraints

Defaults to ‘InheritReadOnly’

content

any

Sets the textual description of the node/connector

Defaults to

displacement

any

Sets the displacement of an annotation from its actual position

Defaults to undefined

height

any

Sets the height of the text

Defaults to undefined

horizontalAlignment

any

Sets the horizontal alignment of the text with respect to the parent node/connector

  • Stretch - Stretches the diagram element throughout its immediate parent
  • Left - Aligns the diagram element at the left of its immediate parent
  • Right - Aligns the diagram element at the right of its immediate parent
  • Center - Aligns the diagram element at the center of its immediate parent
  • Auto - Aligns the diagram element based on the characteristics of its immediate parent

Defaults to ‘Center’

Sets the hyperlink of the label

Defaults to undefined

id

any

Defines the unique id of the annotation

Defaults to

margin

any

Sets the space to be left between an annotation and its parent node/connector

Defaults to new Margin(0,0,0,0)

offset

any

Sets the segment offset of annotation

Defaults to 0.5

rotateAngle

any

Sets the rotate angle of the text

Defaults to 0

segmentAngle

any

Enable/Disable the angle based on the connector segment

Defaults to false

style

any

Defines the appearance of the text

Defaults to new TextStyle()

type

any

Sets the type of the annotation

  • Shape - Sets the annotation type as Shape
  • Path - Sets the annotation type as Path

Defaults to ‘Shape’

verticalAlignment

any

Sets the vertical alignment of the text with respect to the parent node/connector

  • Stretch - Stretches the diagram element throughout its immediate parent
  • Top - Aligns the diagram element at the top of its immediate parent
  • Bottom - Aligns the diagram element at the bottom of its immediate parent
  • Center - Aligns the diagram element at the center of its immediate parent
  • Auto - Aligns the diagram element based on the characteristics of its immediate parent

Defaults to ‘Center’

visibility

any

Defines the visibility of the label

Defaults to true

width

any

Sets the width of the text

Defaults to undefined