Skip to content
D
Documentation

Diagram Kit — types

reference
1 min readUpdated

Types

Import these from @grafloria/element.

Types

ErCardinality

Also has every member of String, listed on its own entry.

ts
type ErCardinality =
  | 'one-to-many'
  | 'one-to-one'
  | 'many-to-many'
  | 'one-to-zero-or-many'
  | 'one-to-one-or-many';

ErSide

Also has every member of String, listed on its own entry.

ts
type ErSide = 'left' | 'right' | 'top' | 'bottom';

MatchTier

Also has every member of String, listed on its own entry.

ts
type MatchTier = 'top' | 'good' | 'ok' | 'none';

UmlRelationKind

Also has every member of String, listed on its own entry.

ts
type UmlRelationKind =
  | 'inheritance'
  | 'realization'
  | 'association'
  | 'directed-association'
  | 'aggregation'
  | 'composition'
  | 'dependency';

UmlSide

Also has every member of String, listed on its own entry.

ts
type UmlSide = 'left' | 'right' | 'top' | 'bottom';

Was this page helpful?

Diagram Kit — types — Grafloria