Options
All
  • Public
  • Public/Protected
  • All
Menu

For more information on the Text element's properties, please see:

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text

Hierarchy

Implements

Index

Constructors

constructor

  • new Text(text: string): Text

Properties

fill

fill: Color = Color.BLACK

stroke

stroke: Stroke = Stroke.NONE

Accessors

fillOpacity

fillOpacity:

The opacity of the just the fill Color.

font

font:

lengthAdjust

lengthAdjust:

opacity

opacity:

The opacity of the entire Shape.

strokeOpacity

strokeOpacity:

The opacity of just the Stroke.

text

text:

textAnchor

textAnchor:

textLength

textLength:

transform

transform:

x

x:

y

y:

Methods

addObserver

  • addObserver(observer: Observer<SVGElement>): void

clearObservers

  • clearObservers(): void

notify

  • notify(): void

onclick

  • onclick(event: MouseEvent): void

ondblclick

  • ondblclick(event: MouseEvent): void

onmousedown

  • onmousedown(event: MouseEvent): void

onmousemove

  • onmousemove(event: MouseEvent): void

onmouseout

  • onmouseout(event: MouseEvent): void

onmouseover

  • onmouseover(event: MouseEvent): void

onmouseup

  • onmouseup(event: MouseEvent): void

removeObserver

  • removeObserver(observer: Observer<SVGElement>): void

toString

  • toString(): string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc