Fabricjs - missing color matrix definition (we only had matrix when charlie chaplin played Neo)

This commit is contained in:
Bradley Hill
2019-02-07 08:49:41 -06:00
parent 0b417416fe
commit ccb7c5dc16

View File

@@ -3774,7 +3774,18 @@ interface IAllFilters {
*/
fromObject(object: any): IBrightnessFilter
};
Convolute: {
ColorMatrix: {
new(options?: {
/** Filter matrix */
matrix?: number[]
}): IColorMatrix;
/**
* Returns filter instance from an object representation
* @param object Object to create an instance from
*/
fromObject(object: any): IColorMatrix
};
Convolute: {
new(options?: {
opaque?: boolean,
/** Filter matrix */
@@ -3962,6 +3973,13 @@ interface IBrightnessFilter extends IBaseFilter {
*/
applyTo(canvasEl: HTMLCanvasElement): void;
}
interface IColorMatrix extends IBaseFilter {
/**
* Applies filter to canvas element
* @param canvasEl Canvas element to apply filter to
*/
applyTo(canvasEl: HTMLCanvasElement): void;
}
interface IConvoluteFilter extends IBaseFilter {
/**
* Applies filter to canvas element