From 9f18f414ecb2666e0e810da8e6f6220c3d09aedc Mon Sep 17 00:00:00 2001 From: forest yox Date: Thu, 17 May 2018 13:52:26 -0400 Subject: [PATCH 1/2] added acoords --- types/fabric/fabric-impl.d.ts | 5 +++++ types/fabric/test/index.ts | 1 + 2 files changed, 6 insertions(+) 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', From 80ad40ad7817831d5daaa54edac229a666278990 Mon Sep 17 00:00:00 2001 From: forest yox Date: Thu, 17 May 2018 14:34:29 -0400 Subject: [PATCH 2/2] fixed inadvertant whitespace --- types/fabric/test/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/fabric/test/index.ts b/types/fabric/test/index.ts index e6b72b4281..1060525a00 100644 --- a/types/fabric/test/index.ts +++ b/types/fabric/test/index.ts @@ -1,4 +1,3 @@ - function sample1() { const canvas = new fabric.Canvas('c', { hoverCursor: 'pointer',