Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

svgWrapText

  • svgWrapText(item: SVGTextElement, width: number, lineHeight?: number): void
  • svgWrapText takes an SVGTextElement and number as its arguments. It wraps the SVGTextElement into the number of SVG pixels by adding multiple <tspan> elements if required and aligning them correctly.

    The return value is void.

    Parameters

    • item: SVGTextElement

      the text item to wrap.

    • width: number

      the wrapping width in SVG pixels.

    • Default value lineHeight: number = 1.1

    Returns void

Legend

  • Object literal
  • Function
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Interface

Generated using TypeDoc