aboutsummaryrefslogtreecommitdiff
path: root/extension/src/colortheif.d.ts
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2024-12-02 23:07:26 -0500
committersowgro <tpoke.ferrari@gmail.com>2024-12-02 23:07:26 -0500
commitafa44751b7f9d39c4842d5a91a9e3ce28d74bfce (patch)
treeade86905e9ec175d752c21580d29c4dd9f0cb29e /extension/src/colortheif.d.ts
parentcba2f30c89fe7355a10960b5b7d2059fe1843400 (diff)
downloadbookmarks-home-afa44751b7f9d39c4842d5a91a9e3ce28d74bfce.tar.gz
bookmarks-home-afa44751b7f9d39c4842d5a91a9e3ce28d74bfce.tar.bz2
bookmarks-home-afa44751b7f9d39c4842d5a91a9e3ce28d74bfce.zip
a lot of improvements
Diffstat (limited to 'extension/src/colortheif.d.ts')
-rw-r--r--extension/src/colortheif.d.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/extension/src/colortheif.d.ts b/extension/src/colortheif.d.ts
new file mode 100644
index 0000000..8e98fdf
--- /dev/null
+++ b/extension/src/colortheif.d.ts
@@ -0,0 +1,15 @@
+declare module "colorthief" {
+ export type RGBColor = [number, number, number]
+ export default class ColorThief {
+ getColor: (
+ img: HTMLImageElement | null,
+ quality: number = 10,
+ ) => RGBColor | null
+
+ getPalette: (
+ img: HTMLImageElement | null,
+ colorCount: number = 10,
+ quality: number = 10,
+ ) => RGBColor[] | null
+ }
+} \ No newline at end of file