30 lines
1.2 KiB
Plaintext
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;
|
|
}
|