Update rect.js

This commit is contained in:
Andrea Bogazzi 2015-08-11 03:12:38 +02:00
parent b24f211dfa
commit 2118ff5042

View file

@ -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
});