diff --git a/types/fabric/fabric-impl.d.ts b/types/fabric/fabric-impl.d.ts index e35b0ebe0d..580b132e60 100644 --- a/types/fabric/fabric-impl.d.ts +++ b/types/fabric/fabric-impl.d.ts @@ -2249,6 +2249,11 @@ interface IObjectOptions { * Not used by fabric, just for convenience */ data?: any; + + /** + * Describes the object's corner position in canvas object absolute properties. + */ + aCoords?: {bl: Point, br: Point, tl: Point, tr: Point}; } export interface Object extends IObservable, IObjectOptions, IObjectAnimation { } export class Object { diff --git a/types/fabric/test/index.ts b/types/fabric/test/index.ts index 1060525a00..e6b72b4281 100644 --- a/types/fabric/test/index.ts +++ b/types/fabric/test/index.ts @@ -1,3 +1,4 @@ + function sample1() { const canvas = new fabric.Canvas('c', { hoverCursor: 'pointer',