mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Add another test for stroke bounds
This commit is contained in:
parent
0298f540a9
commit
db895b9eab
1 changed files with 16 additions and 0 deletions
|
@ -798,3 +798,19 @@ test('#1561 item._globalMatrix on item after empty symbol', function(){
|
|||
view.update();
|
||||
equals(item._globalMatrix, new Matrix());
|
||||
});
|
||||
|
||||
test('path.strokeBounds applies stroke padding properly (#1824)', function() {
|
||||
var ellipse = new Path.Ellipse({
|
||||
point: [100, 100],
|
||||
size: [50, 80],
|
||||
strokeWidth: 32,
|
||||
strokeColor: 'red'
|
||||
});
|
||||
|
||||
ellipse.rotate(50);
|
||||
equals(
|
||||
ellipse.strokeBounds,
|
||||
new Rectangle(74.39306, 91.93799, 101.21388, 96.12403),
|
||||
'ellipse.strokeBounds'
|
||||
);
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue