Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1 KB

README.mediawiki

File metadata and controls

43 lines (34 loc) · 1 KB

Table of Contents

Book.js

HTML5-based book emulator

Specification


UI


  1. Look like a book
  2. Easy to use
  3. Have transition effect when turning page

Functionality


In the order of importance
  1. API
  2. System-independent font rendering
  3. Read ePub file
  4. Theme

API

These are the functions which can be triggers through JavaScript API

  1. Turn page
  2. Go to arbitrary page
  3. Get data (in HTML) from a page
  4. Set (HTML) data into a page
  5. Dynamically add and remove page

Font rendering

For unified font rendering on Windows, Mac and Linux, Book.js need to have its own JavaScript font-rendering system.

ePub

ePub is a popular format for reading book on mobile devices. Many websites can use Book.js as a mean to preview an ePub file before providing it to the customer.

Theme

Provide a mechanism to dynamically change the UI for website integration.

Features


  1. Use multiple canvas as layers
  2. Directly draw on the canvas to create animation