mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-01 02:24:42 +00:00
Update polyline.js
This commit is contained in:
parent
2e6fb2c411
commit
c1bd4ea4a3
1 changed files with 6 additions and 4 deletions
|
|
@ -11,8 +11,8 @@
|
|||
'type': 'polyline',
|
||||
'originX': 'left',
|
||||
'originY': 'top',
|
||||
'left': 0,
|
||||
'top': 0,
|
||||
'left': 10,
|
||||
'top': 12,
|
||||
'width': 10,
|
||||
'height': 10,
|
||||
'fill': 'rgb(0,0,0)',
|
||||
|
|
@ -46,7 +46,7 @@
|
|||
ok(polyline instanceof fabric.Object);
|
||||
|
||||
equal(polyline.type, 'polyline');
|
||||
deepEqual(polyline.get('points'), [ { x: -5, y: -5 }, { x: 5, y: 5 } ]);
|
||||
deepEqual(polyline.get('points'), [ { x: 10, y: 12 }, { x: 20, y: 22 } ]);
|
||||
});
|
||||
|
||||
test('complexity', function() {
|
||||
|
|
@ -110,7 +110,9 @@
|
|||
'strokeLineJoin': 'bevil',
|
||||
'strokeMiterLimit': 5,
|
||||
'opacity': 0.34,
|
||||
'points': expectedPoints
|
||||
'points': expectedPoints,
|
||||
'left': 10,
|
||||
'top': 10
|
||||
}));
|
||||
|
||||
deepEqual(polylineWithAttrs.get('transformMatrix'), [ 2, 0, 0, 2, -10, -20 ]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue