diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2024-12-02 23:07:26 -0500 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2024-12-02 23:07:26 -0500 |
commit | afa44751b7f9d39c4842d5a91a9e3ce28d74bfce (patch) | |
tree | ade86905e9ec175d752c21580d29c4dd9f0cb29e /extension/src/colortheif.d.ts | |
parent | cba2f30c89fe7355a10960b5b7d2059fe1843400 (diff) | |
download | bookmarks-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.ts | 15 |
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 |