mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Fabricjs - missing color matrix definition (we only had matrix when charlie chaplin played Neo)
This commit is contained in:
20
types/fabric/fabric-impl.d.ts
vendored
20
types/fabric/fabric-impl.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user