Skip to content

Commit 5be72de

Browse files
committed
🐄
1 parent d0203c8 commit 5be72de

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/lib/polygon.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88

99

1010
'use strict';
11+
1112
var dot = require('./matrix').dot;
1213

14+
var polygon = module.exports = {};
15+
1316
/**
1417
* Turn an array of [x, y] pairs into a polygon object
1518
* that can test if points are inside it
@@ -26,8 +29,6 @@ var dot = require('./matrix').dot;
2629
* don't double-count the edge where they meet.
2730
* returns boolean: is pt inside the polygon (including on its edges)
2831
*/
29-
var polygon = module.exports = {};
30-
3132
polygon.tester = function tester(ptsIn) {
3233
var pts = ptsIn.slice(),
3334
xmin = pts[0][0],

src/plots/cartesian/select.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88

99

1010
'use strict';
11+
1112
var polygon = require('../../lib/polygon');
13+
1214
var axes = require('./axes');
15+
1316
var filteredPolygon = polygon.filter;
1417
var polygonTester = polygon.tester;
1518
var BENDPX = 1.5; // max pixels off straight before a line counts as bent

0 commit comments

Comments
 (0)