summaryrefslogtreecommitdiff
path: root/lib/epub.js/types/themes.d.ts
blob: 465a1271ce5fb3c88fbbcccd5760075f1a3d6297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import Rendition from "./rendition";
import Contents from "./contents";

export default class Themes {
  constructor(rendition: Rendition);

  register( themeObject: object ): void;

  register( theme: string, url: string ): void;

  register( theme: string, themeObject: object ): void;

  default( theme: object | string ): void;

  registerThemes( themes: object ): void;

  registerCss( name: string, css: string ): void;

  registerUrl( name: string, input: string ): void;

  registerRules( name: string, rules: object ): void;

  select( name: string ): void;

  update( name: string ): void;

  inject( content: Contents ): void;

  add( name: string, contents: Contents ): void;

  override(name: string, value: string, priority?: boolean): void;

  overrides(contents: Contents): void;

  fontSize(size: string): void;

  font(f: string): void;

  destroy(): void;
}