Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HTMLRender

Class responsible for rendering the HTML book

Hierarchy

Index

Constructors

constructor

  • Parameters

    • app: PageFlip

      PageFlip object

    • setting: FlipSetting

      Configuration object

    • element: HTMLElement

      Parent HTML Element

    • items: NodeListOf<HTMLElement> | HTMLElement[]

      List of pages as HTML Element

    Returns HTMLRender

Methods

clearShadow

  • clearShadow(): void

convertRectToGlobal

  • Casting the coordinates of the corners of the rectangle in the coordinates relative to the window

    Parameters

    • rect: RectPoints

      Coordinates of the corners of the rectangle relative to the work page

    • Optional direction: FlipDirection

      Current flipping direction

    Returns RectPoints

    Coordinates of the corners of the rectangle relative to the window

convertToBook

  • Coordinate conversion function. Window coordinates -> to book coordinates

    Parameters

    • pos: Point

      Global coordinates relative to the window

    Returns Point

    Coordinates relative to the book

convertToGlobal

  • Coordinate conversion function. Coordinates relative to the work page -> Window coordinates

    Parameters

    • pos: Point

      Coordinates relative to the work page

    • Optional direction: FlipDirection

      Current flipping direction

    Returns Point

    Global coordinates relative to the window

convertToPage

  • Coordinate conversion function. Window coordinates -> to current coordinates of the working page

    Parameters

    • pos: Point

      Global coordinates relative to the window

    • Optional direction: FlipDirection

      Current flipping direction

    Returns Point

    Coordinates relative to the work page

finishAnimation

  • finishAnimation(): void

getBlockHeight

  • getBlockHeight(): number

getBlockWidth

  • getBlockWidth(): number

getDirection

getOrientation

getRect

getSettings

isSafari

  • isSafari(): boolean

setBottomPage

  • setBottomPage(page: Page): void

setDirection

setFlippingPage

  • setFlippingPage(page: Page): void

setLeftPage

  • setLeftPage(page: Page): void

setPageRect

setRightPage

  • setRightPage(page: Page): void

setShadowData

start

  • start(): void

startAnimation

update

  • update(): void

Generated using TypeDoc