Some code clean-up.

This commit is contained in:
Jürg Lehni 2014-05-13 13:54:31 +02:00
parent a4f922cf26
commit aac98f2b25
2 changed files with 1 additions and 4 deletions

View file

@ -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.

View file

@ -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)