Skip to content

Commit

Permalink
Revert "First attempt at fixing box path for shrink values larger tha…
Browse files Browse the repository at this point in the history
…n corner radii"

This reverts commit 0d702c0.
  • Loading branch information
Jason Johnston committed Feb 19, 2011
1 parent 0d702c0 commit 43ebe57
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions sources/RendererBase.js
Expand Up @@ -231,7 +231,6 @@ PIE.RendererBase = {
h = bounds.h * mult,
radInfo = this.styleInfos.borderRadiusInfo,
floor = Math.floor, ceil = Math.ceil,
min = Math.min, max = Math.max,
shrinkT = shrink ? shrink.t * mult : 0,
shrinkR = shrink ? shrink.r * mult : 0,
shrinkB = shrink ? shrink.b * mult : 0,
Expand All @@ -250,7 +249,6 @@ PIE.RendererBase = {
blX = r.x['bl'] * mult;
blY = r.y['bl'] * mult;

/*
str = 'm' + floor( shrinkL ) + ',' + floor( tlY ) +
'qy' + floor( tlX ) + ',' + floor( shrinkT ) +
'l' + ceil( w - trX ) + ',' + floor( shrinkT ) +
Expand All @@ -259,15 +257,6 @@ PIE.RendererBase = {
'qy' + ceil( w - brX ) + ',' + ceil( h - shrinkB ) +
'l' + floor( blX ) + ',' + ceil( h - shrinkB ) +
'qx' + floor( shrinkL ) + ',' + ceil( h - blY ) + ' x e';
*/
str = 'm' + floor( shrinkL ) + ',' + floor( max( tlY, shrinkT ) ) +
( shrinkT < tlY ? 'qy' + floor( tlX ) + ',' + floor( shrinkT ) : '' ) +
'l' + ceil( w - max( trX, shrinkR ) ) + ',' + floor( shrinkT ) +
( shrinkR < trX ? 'qx' + ceil( w - shrinkR ) + ',' + floor( trY ) : '' ) +
'l' + ceil( w - shrinkR ) + ',' + ceil( h - max( brY, shrinkB ) ) +
( shrinkB < brY ? 'qy' + ceil( w - brX ) + ',' + ceil( h - shrinkB ) : '' ) +
'l' + floor( max( blX, shrinkL ) ) + ',' + ceil( h - shrinkB ) +
( shrinkL < blX ? 'qx' + floor( shrinkL ) + ',' + ceil( h - blY ) : '' ) + 'xe';
} else {
// simplified path for non-rounded box
str = 'm' + floor( shrinkL ) + ',' + floor( shrinkT ) +
Expand Down

0 comments on commit 43ebe57

Please sign in to comment.