summaryrefslogtreecommitdiff
path: root/lib/epub.js/types/themes.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/epub.js/types/themes.d.ts')
-rw-r--r--lib/epub.js/types/themes.d.ts40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/epub.js/types/themes.d.ts b/lib/epub.js/types/themes.d.ts
new file mode 100644
index 0000000..465a127
--- /dev/null
+++ b/lib/epub.js/types/themes.d.ts
@@ -0,0 +1,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;
+}