mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-27 14:33:59 +00:00
Update rect.js
This commit is contained in:
parent
b24f211dfa
commit
2118ff5042
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue