Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "First attempt at fixing box path for shrink values larger tha…

…n corner radii"

This reverts commit 0d702c0.
  • Loading branch information...
commit 43ebe577079c5c4729954c5161464b769f2df6b1 1 parent 0d702c0
Jason Johnston authored
Showing with 0 additions and 11 deletions.
  1. +0 −11 sources/RendererBase.js
View
11 sources/RendererBase.js
@@ -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,
@@ -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 ) +
@@ -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 ) +
Please sign in to comment.
Something went wrong with that request. Please try again.