From dce8d5bba1fcfd2875ac8bddcbc316db38c5774e Mon Sep 17 00:00:00 2001 From: Bryan Krol Date: Wed, 13 Mar 2019 20:33:01 -0400 Subject: [PATCH] Updated type for vptCoords so they are correct and also added a few more type defs --- types/fabric/fabric-impl.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/fabric/fabric-impl.d.ts b/types/fabric/fabric-impl.d.ts index 2b384347aa..4e7fec0258 100644 --- a/types/fabric/fabric-impl.d.ts +++ b/types/fabric/fabric-impl.d.ts @@ -1038,7 +1038,7 @@ interface IStaticCanvasOptions { * The coordinates get updated with @method calcViewportBoundaries. * @memberOf fabric.StaticCanvas.prototype */ - vptCoords?: {tl: number, tr: number, bl: number, br: number} + vptCoords?: {tl: {x: number, y: number}, tr: {x: number, y: number}, bl: {x: number, y: number}, br: {x: number, y: number}} /** * Based on vptCoords and object.aCoords, skip rendering of objects that * are not included in current viewport.