Class: TextSize

ge.TextSize(el)

Text size calculator class.

Constructor

new TextSize(el)

Text size calculator constructor.
Parameters:
Name Type Description
el SVGElement SVG element.
Source:

Methods

containerSize(text) → {ge.ContainerSize}

Compute text container size.
Parameters:
Name Type Description
text string
Source:
Returns:
Type
ge.ContainerSize

size(text) → {ge.Point}

Compute text width and height.
Parameters:
Name Type Description
text string
Source:
Returns:
Type
ge.Point

width(text) → {number}

Compute text width.
Parameters:
Name Type Description
text string
Source:
Returns:
Type
number