Class TextBlockEditor

Represents a text block editor element.

Hierarchy

  • TextBlockEditor

Constructors

Properties

onTextChanged?: TextChangedHandler

Text changed event handler.

Accessors

  • get fontFamily(): string
  • Returns text block's font family.

    Returns string

  • set fontFamily(value): void
  • Sets the text block's font family.

    Parameters

    • value: string

    Returns void

  • get fontSize(): string
  • Returns text block's font size.

    Returns string

  • set fontSize(value): void
  • Sets text block's font size.

    Parameters

    • value: string

    Returns void

  • get height(): number
  • Returns editor height in pixels.

    Returns number

  • set height(value): void
  • Sets editor height in pixels.

    Parameters

    • value: number

    Returns void

  • get left(): number
  • Returns the horizontal (X) location of the editor's left corner (in pixels).

    Returns number

  • set left(value): void
  • Sets the horizontal (X) location of the editor's left corner (in pixels).

    Parameters

    • value: number

    Returns void

  • get text(): string
  • Returns the text block text.

    Returns string

  • set text(value): void
  • Sets the text block text.

    Parameters

    • value: string

    Returns void

  • get textColor(): string
  • Returns text block's font color.

    Returns string

  • set textColor(value): void
  • Returns text block's font color.

    Parameters

    • value: string

    Returns void

  • get top(): number
  • Returns the vertical (Y) location of the editor's top left corner (in pixels).

    Returns number

  • set top(value): void
  • Sets the vertical (Y) location of the editor's top left corner (in pixels).

    Parameters

    • value: number

    Returns void

  • get width(): number
  • Returns editor width in pixels.

    Returns number

  • set width(value): void
  • Sets editor width in pixels.

    Parameters

    • value: number

    Returns void

Methods

  • Unfocuses the editor.

    Returns void

  • Focuses text editing in the editor.

    Returns void

  • Returns editor's UI,

    Returns HTMLDivElement

    UI in a div element.

Generated using TypeDoc