Class BasicAnimator

Index

Methods

Methods

public static CommonResize(element: HTMLElement, newHeight: number, newWidth: number, finishFunc: (data: any) => void, data: any, animationId: ID)

Parameters

  • element: HTMLElement
  • newHeight: number
  • newWidth: number
  • finishFunc: (data: any) => void
  • data: any
  • animationId: ID

public static FadeIn(element: HTMLElement, finishFunc?: (data: any) => void, data?: any)

Parameters

  • element: HTMLElement
  • finishFunc?: (data: any) => void optional
  • data?: any optional

public static FadeOut(element: HTMLElement, finishFunc?: (data: any) => void, data?: any)

Parameters

  • element: HTMLElement
  • finishFunc?: (data: any) => void optional
  • data?: any optional

public static GetLeftOffset(element: HTMLElement): number

Parameters

  • element: HTMLElement

Returns

number

public static GetRightOffset(element: HTMLElement): number

Parameters

  • element: HTMLElement

Returns

number

public static GetTopOffset(element: HTMLElement): number

Parameters

  • element: HTMLElement

Returns

number

public static GetWindowScrollPosition(): { x: number; y: number; }

Returns

{ x: number; y: number; }

public static IsPositioned(element: HTMLElement): boolean

Parameters

  • element: HTMLElement

Returns

boolean

public static Move(element: HTMLElement, posX: number, posY: number, finishFunc?: (data: any) => void, data?: any)

Parameters

  • element: HTMLElement
  • posX: number
  • posY: number
  • finishFunc?: (data: any) => void optional
  • data?: any optional

public static PositionAbsolute(element: HTMLElement)

Parameters

  • element: HTMLElement

public static PositionAbsoluteExact(element: HTMLElement, topValue: number, leftValue: number, heightValue: number, widthValue: number)

Parameters

  • element: HTMLElement
  • topValue: number
  • leftValue: number
  • heightValue: number
  • widthValue: number

public static PositionElement(element: HTMLElement, topValue: number, leftValue: number, heightValue: number, widthValue: number)

Parameters

  • element: HTMLElement
  • topValue: number
  • leftValue: number
  • heightValue: number
  • widthValue: number

public static PositionRelative(element: HTMLElement)

Parameters

  • element: HTMLElement

public static PositionRelativeExact(element: HTMLElement, topValue: number, leftValue: number, heightValue: number, widthValue: number)

Parameters

  • element: HTMLElement
  • topValue: number
  • leftValue: number
  • heightValue: number
  • widthValue: number

public static QuickResize(element: HTMLElement, newHeight: number, newWidth: number, finishFunc?: (data: any) => void, data?: any)

Parameters

  • element: HTMLElement
  • newHeight: number
  • newWidth: number
  • finishFunc?: (data: any) => void optional
  • data?: any optional

public static Resize(element: HTMLElement, newHeight: number, newWidth: number, finishFunc?: (data: any) => void, data?: any)

Parameters

  • element: HTMLElement
  • newHeight: number
  • newWidth: number
  • finishFunc?: (data: any) => void optional
  • data?: any optional

public static ResizeContainerAndFillContent(element: HTMLElement, newHeight: number, newWidth: number, finishFunc: () => void, fAddToEnd: boolean)

Parameters

  • element: HTMLElement
  • newHeight: number
  • newWidth: number
  • finishFunc: () => void
  • fAddToEnd: boolean

public static StrikeThrough(element: HTMLElement, strikeThroughWidth: number, finishFunc?: (data: any) => void, data?: any)

Parameters

  • element: HTMLElement
  • strikeThroughWidth: number
  • finishFunc?: (data: any) => void optional
  • data?: any optional