added acoords

This commit is contained in:
forest yox
2018-05-17 13:52:26 -04:00
parent 131650c616
commit 9f18f414ec
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -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<Object>, IObjectOptions, IObjectAnimation<Object> { }
export class Object {
+1
View File
@@ -1,3 +1,4 @@
function sample1() {
const canvas = new fabric.Canvas('c', {
hoverCursor: 'pointer',