From 2118ff5042ac63dd7d36f33f26a1b1229f3a3617 Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Tue, 11 Aug 2015 03:12:38 +0200 Subject: [PATCH] Update rect.js --- test/unit/rect.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/rect.js b/test/unit/rect.js index 78c65e07..3771b530 100644 --- a/test/unit/rect.js +++ b/test/unit/rect.js @@ -28,6 +28,8 @@ 'fillRule': 'nonzero', 'globalCompositeOperation': 'source-over', 'transformMatrix': null, + 'skewX': 0, + 'skewY': 0, 'rx': 0, 'ry': 0, }; @@ -102,6 +104,7 @@ elRectWithAttrs.setAttribute('stroke-linecap', 'round'); elRectWithAttrs.setAttribute('stroke-linejoin', 'bevil'); elRectWithAttrs.setAttribute('stroke-miterlimit', 5); + elRectWithAttrs.setAttribute('skewX', 30); //elRectWithAttrs.setAttribute('transform', 'translate(-10,-20) scale(2) rotate(45) translate(5,10)'); var rectWithAttrs = fabric.Rect.fromElement(elRectWithAttrs); @@ -120,6 +123,7 @@ strokeLineCap: 'round', strokeLineJoin: 'bevil', strokeMiterLimit: 5, + skewX: 30, rx: 11, ry: 12 });