TextComponent

class TextComponent()

Interface for text components that are part of an edge.

interface

Extends:
TextComponent.attributePath?

type: string

The path to the attribute containing the text.

TextComponent.clickEventKey?

type: string

The key used if the user clicked on the text.

TextComponent.draggable?

type: boolean

Wether the text component can be dragged by the user (defaults to true).

TextComponent.height?

type: number

The height used for wrapping multiline text.

TextComponent.offsetX?

type: number

Offset from the reference point in x direction.

TextComponent.offsetY?

type: number

Offset from the reference point in y direction.

TextComponent.padding?

type: number

The padding is used to avoid collisions.

TextComponent.template?

type: string

The template to use for this text component. (Default: 'default-textcomponent' )

TextComponent.value?

type: string

The actual text content.

TextComponent.width

type: number

The width used for wrapping the text.