Skip to content

Commit

Permalink
FILLET > cornerradius
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Nov 17, 2022
1 parent 81fa893 commit 369f817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/traces/treemap/plot_one.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ module.exports = function plotOne(gd, cd, element, transitionOpts, drawDescendan
var dy = _y1 - _y0;
if(!dx || !dy) return '';

var FILLET = trace.marker.cornerradius;
var r = dx > 2 * FILLET && dy > 2 * FILLET ? FILLET : Math.min(dx, dy) / 2;
var cornerradius = trace.marker.cornerradius;
var r = dx > 2 * cornerradius && dy > 2 * cornerradius ? cornerradius : Math.min(dx, dy) / 2;

var arc = function(rx, ry) { return r ? 'a' + pos(r, r) + ' 0 0 1 ' + pos(rx, ry) : ''; };

Expand Down

0 comments on commit 369f817

Please sign in to comment.