Skip to content

Commit

Permalink
Added roundedSegments edge case.
Browse files Browse the repository at this point in the history
  • Loading branch information
stebanos committed Apr 11, 2019
1 parent ae02165 commit 2d14c36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libraries/vg/commands/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,7 @@ function constructPath(points, closed) {
}

vg.roundedSegments = function (shape, d) {
if (!d || d.length === 0) { return shape; }
const points = vg.toPoints(shape);
const newPoints = [];
for (let i = 0; i < points.length; i +=1) {
Expand Down

0 comments on commit 2d14c36

Please sign in to comment.