Skip to content

Commit

Permalink
Fix isolines require-frame detection
Browse files Browse the repository at this point in the history
  • Loading branch information
RaumZeit committed Aug 28, 2018
1 parent 16d6af5 commit 32877e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/polygons.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ function traceLinePaths(data, cellGrid, settings) {
};

/* first, detect whether we need any outer frame */
if (requireLineFrame(data, settings.minV, settings.maxV)) {
if (requireLineFrame(data, settings.threshold)) {
if (settings.linearRing)
polygons.push([ [0, 0], [0, rows], [cols, rows], [cols, 0], [0, 0] ]);
else
Expand Down

0 comments on commit 32877e5

Please sign in to comment.