mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Change tests to ignore Illustrator's faulty bounds calculation of symbols.
This commit is contained in:
parent
6735218ab5
commit
164c08a972
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ test('placedSymbol bounds', function() {
|
|||
path.strokeCap = 'round';
|
||||
path.strokeJoin = 'round';
|
||||
compareRectangles(path.strokeBounds,
|
||||
new Rectangle(-0.5, -0.5, 101, 101),
|
||||
{ x: -0.5, y: -0.5, width: 101, height: 101 },
|
||||
'Path initial bounds.');
|
||||
var symbol = new Symbol(path);
|
||||
var placedSymbol = new PlacedSymbol(symbol);
|
||||
|
@ -20,7 +20,7 @@ test('placedSymbol bounds', function() {
|
|||
|
||||
placedSymbol.scale(0.5);
|
||||
compareRectangles(placedSymbol.bounds,
|
||||
{ x: -25.5, y: -25.5, width: 51, height: 51 },
|
||||
{ x: -25.25, y: -25.25, width: 50.5, height: 50.5 },
|
||||
'Bounds after scale.');
|
||||
|
||||
placedSymbol.rotate(40);
|
||||
|
|
Loading…
Reference in a new issue