med-notes/.pnpm-store/v10/files/03/62bb60bda208ded1f5f1363679cc72aff038f9093a1a420820b74a3196c75236c28530a950f082a291b0d01ec7f9179e17f2f9623a9ca5cb71b58999cd9936
2025-05-09 05:30:08 +02:00

30 lines
1.2 KiB
Plaintext

export class BaseFilterFactory {
addFilter(maps: any): string;
addHCMFilter(fgColor: any, bgColor: any): string;
addAlphaFilter(map: any): string;
addLuminosityFilter(map: any): string;
addHighlightHCMFilter(filterName: any, fgColor: any, bgColor: any, newFgColor: any, newBgColor: any): string;
destroy(keepHCM?: boolean): void;
}
/**
* FilterFactory aims to create some SVG filters we can use when drawing an
* image (or whatever) on a canvas.
* Filters aren't applied with ctx.putImageData because it just overwrites the
* underlying pixels.
* With these filters, it's possible for example to apply some transfer maps on
* an image without the need to apply them on the pixel arrays: the renderer
* does the magic for us.
*/
export class DOMFilterFactory extends BaseFilterFactory {
constructor({ docId, ownerDocument }: {
docId: any;
ownerDocument?: Document | undefined;
});
addFilter(maps: any): any;
addHCMFilter(fgColor: any, bgColor: any): any;
addAlphaFilter(map: any): any;
addLuminosityFilter(map: any): any;
addHighlightHCMFilter(filterName: any, fgColor: any, bgColor: any, newFgColor: any, newBgColor: any): any;
#private;
}