Skip to content

Commit

Permalink
🌀
Browse files Browse the repository at this point in the history
  • Loading branch information
hcodes committed Jun 21, 2022
1 parent 410180b commit 79b5a8a
Show file tree
Hide file tree
Showing 12 changed files with 1,013 additions and 966 deletions.
4 changes: 2 additions & 2 deletions dist/helpers/dom.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/// <reference types="offscreencanvas" />
import type { FastAverageColorOptions } from '../index';
export declare function isSvg(filename: string): boolean;
export declare function getOriginalSize(resource: HTMLCanvasElement | HTMLImageElement | HTMLVideoElement): {
export declare function getOriginalSize(resource: HTMLImageElement | HTMLVideoElement | HTMLCanvasElement | OffscreenCanvas | ImageBitmap): {
width: number;
height: number;
};
export declare function getSrc(resource: HTMLCanvasElement | HTMLImageElement | HTMLVideoElement): string;
export declare function getSrc(resource: HTMLCanvasElement | OffscreenCanvas | HTMLImageElement | HTMLVideoElement | ImageBitmap): string;
export declare function prepareSizeAndPosition(originalSize: {
width: number;
height: number;
Expand Down
6 changes: 6 additions & 0 deletions dist/index.browser.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { FastAverageColor } from './main';
declare global {
interface Window {
FastAverageColor: typeof FastAverageColor;
}
}

0 comments on commit 79b5a8a

Please sign in to comment.