Skip to main content

ConnectorStrokeCap

type ConnectorStrokeCap = "NONE" | "ARROW_EQUILATERAL" | "ARROW_LINES" | "TRIANGLE_FILLED" | "DIAMOND_FILLED" | "CIRCLE_FILLED" | "ERD_ZERO_OR_ONE" | "ERD_EXACTLY_ONE" | "ERD_ZERO_OR_MORE" | "ERD_ONE_OR_MORE" | "ERD_ONE" | "ERD_MANY";

The possible values are:

  • "NONE": nothing is added to the end of the connector
  • "ARROW_EQUILATERAL": an arrow made up of an equilateral triangle is added to the end of the connector
  • "ARROW_LINES": an arrow made up of two lines is added to the end of the connector
  • "TRIANGLE_FILLED": a filled triangle is added to the end of the connector
  • "DIAMOND_FILLED": a filled diamond is added to the end of the connector
  • "CIRCLE_FILLED": a filled circle is added to the end of the connector

Additionally, ERD cap types add entity-relationship diagram (ERD) cardinality markers to the end of the connector:

  • "ERD_ZERO_OR_ONE": a zero-or-one cardinality marker (hollow circle and perpendicular line)
  • "ERD_EXACTLY_ONE": an exactly-one cardinality marker (two perpendicular lines)
  • "ERD_ZERO_OR_MORE": a zero-or-more cardinality marker (hollow circle and crow's foot)
  • "ERD_ONE_OR_MORE": a one-or-more cardinality marker (perpendicular line and crow's foot)
  • "ERD_ONE": a one cardinality marker (perpendicular line)
  • "ERD_MANY": a many cardinality marker (crow's foot)