mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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.strokeCap = 'round';
|
||||||
path.strokeJoin = 'round';
|
path.strokeJoin = 'round';
|
||||||
compareRectangles(path.strokeBounds,
|
compareRectangles(path.strokeBounds,
|
||||||
new Rectangle(-0.5, -0.5, 101, 101),
|
{ x: -0.5, y: -0.5, width: 101, height: 101 },
|
||||||
'Path initial bounds.');
|
'Path initial bounds.');
|
||||||
var symbol = new Symbol(path);
|
var symbol = new Symbol(path);
|
||||||
var placedSymbol = new PlacedSymbol(symbol);
|
var placedSymbol = new PlacedSymbol(symbol);
|
||||||
|
@ -20,7 +20,7 @@ test('placedSymbol bounds', function() {
|
||||||
|
|
||||||
placedSymbol.scale(0.5);
|
placedSymbol.scale(0.5);
|
||||||
compareRectangles(placedSymbol.bounds,
|
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.');
|
'Bounds after scale.');
|
||||||
|
|
||||||
placedSymbol.rotate(40);
|
placedSymbol.rotate(40);
|
||||||
|
|
Loading…
Reference in a new issue