mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
rect -> rectangle
This commit is contained in:
parent
b0255d9fc2
commit
d7a4dd2780
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ var Shape = Item.extend(/** @lends Shape# */{
|
|||
size = this._size,
|
||||
width = size.width,
|
||||
height = size.height;
|
||||
if (untransformed && type === 'rect' && rx === 0 && ry === 0) {
|
||||
if (untransformed && type === 'rectangle' && rx === 0 && ry === 0) {
|
||||
// Rectangles with no rounding
|
||||
ctx.rect(-width / 2, -height / 2, width, height);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue