mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Some code clean-up.
This commit is contained in:
parent
a4f922cf26
commit
aac98f2b25
2 changed files with 1 additions and 4 deletions
|
@ -3645,7 +3645,6 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
|||
&& this._canComposite(),
|
||||
pixelRatio = param.pixelRatio,
|
||||
mainCtx, itemOffset, prevOffset;
|
||||
|
||||
if (!direct) {
|
||||
// Apply the parent's global matrix to the calculation of correct
|
||||
// bounds.
|
||||
|
|
|
@ -206,7 +206,7 @@ var Shape = Item.extend(/** @lends Shape# */{
|
|||
cx = rx * kappa,
|
||||
cy = ry * kappa,
|
||||
// Build the coordinates list, so it can optionally be
|
||||
// transformed by a matrix.
|
||||
// transformed by the strokeMatrix.
|
||||
c = [
|
||||
-x, -y + ry,
|
||||
-x, -y + cy,
|
||||
|
@ -227,8 +227,6 @@ var Shape = Item.extend(/** @lends Shape# */{
|
|||
];
|
||||
if (strokeMatrix)
|
||||
strokeMatrix.transform(c, c, 32);
|
||||
if (!param.dontStart)
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(c[0], c[1]);
|
||||
ctx.bezierCurveTo(c[2], c[3], c[4], c[5], c[6], c[7]);
|
||||
if (x !== rx)
|
||||
|
|
Loading…
Reference in a new issue