diff --git a/types/fabric/fabric-impl.d.ts b/types/fabric/fabric-impl.d.ts index ff037f74b6..2396d24121 100644 --- a/types/fabric/fabric-impl.d.ts +++ b/types/fabric/fabric-impl.d.ts @@ -1070,6 +1070,19 @@ interface IStaticCanvasOptions { */ svgViewportTransformation?: boolean; } + +export interface FreeDrawingBrush { + /** + * Can be any regular color value. + */ + color: string; + + /** + * Brush width measured in pixels. + */ + width: number; +} + export interface StaticCanvas extends IObservable, IStaticCanvasOptions, ICollection, ICanvasAnimation { } export class StaticCanvas { /** @@ -1082,6 +1095,8 @@ export class StaticCanvas { _activeObject?: Object | Group; + freeDrawingBrush: FreeDrawingBrush; + /** * Calculates canvas element offset relative to the document * This method is also attached as "resize" event handler of window