Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Text

Hierarchy

Index

Constructors

constructor

Properties

attrs

parent

parent: IContainer

shape

shape: Text

Methods

draw

  • draw(): void
  • Returns void

getAttr

  • getAttr(attr: string): any
  • Parameters

    • attr: string

    Returns any

hide

  • hide(): void
  • Returns void

move

  • move(offsetX: number, offsetY: number): void
  • Parameters

    • offsetX: number
    • offsetY: number

    Returns void

rotate

  • rotate(offsetAngle: number): void
  • Parameters

    • offsetAngle: number

    Returns void

scale

  • scale(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

setAttrs

  • setAttrs(config: any): void
  • Parameters

    • config: any

    Returns void

setPivot

  • setPivot(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

setPostion

  • setPostion(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

setRotation

  • setRotation(angle: number): void
  • Parameters

    • angle: number

    Returns void

setText

  • setText(text: any): void
  • Parameters

    • text: any

    Returns void

show

  • show(): void
  • Returns void

tween

  • tween(duration: number, to: any, easing?: function): Tween
  • Parameters

    • duration: number
    • to: any
    • Optional easing: function
        • (t: number, b: number, c: number, d: number): number
        • Parameters

          • t: number
          • b: number
          • c: number
          • d: number

          Returns number

    Returns Tween

updatePosition

  • updatePosition(): void
  • Returns void

Generated using TypeDoc