StaticlistenedOptionalkey: stringAdd a class to the contents container
Append a script tag to the document head
url
loaded
Append a stylesheet link to the document head
url
Append stylesheet css
Optionalkey: stringIf the key is the same, the CSS will be replaced instead of inserted
Append stylesheet rules to a generate stylesheet Array: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule Object: https://github.com/desirable-objects/json-to-css
Optionalkey: stringIf the key is the same, the CSS will be replaced instead of inserted
Get an EpubCFI from a Dom node
OptionalignoreClass: stringcfi
Get an EpubCFI from a Dom Range
OptionalignoreClass: stringcfi
Apply columns to the contents for pagination
Optionaldir: stringGet or Set height of the contents
Optionalh: string | numberheight
Get or Set width of the contents
Optionalw: string | numberwidth
Set Css styles on the contents element (typically Body)
Optionalvalue: stringOptionalpriority: booleanset as "important"
Set the direction of the text
Optionaldir: string"rtl" | "ltr"
Fit contents into a fixed width and height
Optionalsection: SectionGet or Set height
Optionalh: string | numberheight
Get the location offset of a EpubCFI or an #id
OptionalignoreClass: stringfor the cfi
Optionaldev: booleanSet overflow css style of the contents
Optionaloverflow: stringSet overflowX css style of the documentElement
Optionaloverflow: stringSet overflowY css style of the documentElement
Optionaloverflow: stringGet a Dom Range from EpubCFI
OptionalignoreClass: stringrange
Remove a class from the contents container
class name to remove
Get the documentElement
documentElement
Scale contents from center
OptionaloffsetX: numberOptionaloffsetY: numberGet documentElement scrollHeight
height
Get documentElement scrollWidth
width
Size the contents to a given width and height
Optionalwidth: numberOptionalheight: numberGet the height of the text using Range
height
Get the width of the text using Range
width
Get or Set the viewport element
Optionaloptions: Partial<Record<keyof ViewportSettings, string | number>>Get or Set width
Optionalw: string | numberwidth
Set the writingMode of the text
Optionalmode: string"horizontal-tb" | "vertical-rl" | "vertical-lr"
Get DOM events that are listened for and passed along