mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-15 17:29:52 -04: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(),
|
&& this._canComposite(),
|
||||||
pixelRatio = param.pixelRatio,
|
pixelRatio = param.pixelRatio,
|
||||||
mainCtx, itemOffset, prevOffset;
|
mainCtx, itemOffset, prevOffset;
|
||||||
|
|
||||||
if (!direct) {
|
if (!direct) {
|
||||||
// Apply the parent's global matrix to the calculation of correct
|
// Apply the parent's global matrix to the calculation of correct
|
||||||
// bounds.
|
// bounds.
|
||||||
|
|
|
@ -206,7 +206,7 @@ var Shape = Item.extend(/** @lends Shape# */{
|
||||||
cx = rx * kappa,
|
cx = rx * kappa,
|
||||||
cy = ry * kappa,
|
cy = ry * kappa,
|
||||||
// Build the coordinates list, so it can optionally be
|
// Build the coordinates list, so it can optionally be
|
||||||
// transformed by a matrix.
|
// transformed by the strokeMatrix.
|
||||||
c = [
|
c = [
|
||||||
-x, -y + ry,
|
-x, -y + ry,
|
||||||
-x, -y + cy,
|
-x, -y + cy,
|
||||||
|
@ -227,8 +227,6 @@ var Shape = Item.extend(/** @lends Shape# */{
|
||||||
];
|
];
|
||||||
if (strokeMatrix)
|
if (strokeMatrix)
|
||||||
strokeMatrix.transform(c, c, 32);
|
strokeMatrix.transform(c, c, 32);
|
||||||
if (!param.dontStart)
|
|
||||||
ctx.beginPath();
|
|
||||||
ctx.moveTo(c[0], c[1]);
|
ctx.moveTo(c[0], c[1]);
|
||||||
ctx.bezierCurveTo(c[2], c[3], c[4], c[5], c[6], c[7]);
|
ctx.bezierCurveTo(c[2], c[3], c[4], c[5], c[6], c[7]);
|
||||||
if (x !== rx)
|
if (x !== rx)
|
||||||
|
|
Loading…
Reference in a new issue