Classdesc

A simple text element: position, fontSize, fontFamily, color, textAlign, lineHeight and rotation.

Requires

FontOptions

Requires

FontSize

Requires

FontStyle

Requires

FontWeight

Requires

Vertex

Requires

SVGSerializale

Requires

UID

Requires

UIDGenerator

Implements

Constructors

Properties

anchor: Vertex

Member

Memberof

PBText

Instance

className: string = "PBText"

Required to generate proper CSS classes and other class related IDs.

color: string

Member

Memberof

PBText

Instance

fontFamily: string

Member

Memberof

PBText

Instance

fontSize: number

Member

Memberof

PBText

Instance

fontStyle: FontStyle

Member

Memberof

PBText

Instance

fontWeight: FontWeight

Member

Memberof

PBText

Instance

isDestroyed: boolean

Member

isDestroyed

Memberof

PBText

Instance

lineHeight: number

Member

Memberof

PBText

Instance

rotation: number

Member

Memberof

PBText

Instance

text: string

Member

Memberof

PBText

Instance

textAlign: CanvasTextAlign

Member

Memberof

PBText

Instance

uid: string

The UID of this drawable object.

Member

Memberof

PBText

Instance

Methods

  • This function should invalidate any installed listeners and invalidate this object. After calling this function the object might not hold valid data any more and should not be used.

    Returns void