Interface Animation

Index

Methods

Methods

public after(cb: () => void): Animation

Parameters

  • cb: () => void

Returns

Animation

public attr(name: string, value: any, namespace?: string): Animation

Parameters

  • name: string
  • value: any
  • namespace?: string optional

Returns

Animation

public attr(obj: Object): Animation

Parameters

  • obj: Object

Returns

Animation

public attr(name: string): any

Parameters

  • name: string

Returns

any

public center(x: number, y: number, anchor?: boolean): Animation

Parameters

  • x: number
  • y: number
  • anchor?: boolean optional

Returns

Animation

public cx(x: number, anchor?: boolean): Animation

Parameters

  • x: number
  • anchor?: boolean optional

Returns

Animation

public cy(y: number, anchor?: boolean): Animation

Parameters

  • y: number
  • anchor?: boolean optional

Returns

Animation

public during(cb: (pos: number) => void): Animation

Parameters

  • cb: (pos: number) => void

Returns

Animation

public move(x: number, y: number, anchor?: boolean): Animation

Parameters

  • x: number
  • y: number
  • anchor?: boolean optional

Returns

Animation

public size(w: number, h: number, anchor?: boolean): Animation

Parameters

  • w: number
  • h: number
  • anchor?: boolean optional

Returns

Animation

public stop(): Animation

Returns

Animation

public to(value: number): Animation

Parameters

  • value: number

Returns

Animation

public viewbox(x: number, y: number, w: number, h: number): Animation

Parameters

  • x: number
  • y: number
  • w: number
  • h: number

Returns

Animation

public x(x: number, anchor?: boolean): Animation

Parameters

  • x: number
  • anchor?: boolean optional

Returns

Animation

public y(y: number, anchor?: boolean): Animation

Parameters

  • y: number
  • anchor?: boolean optional

Returns

Animation