Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/path/bounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ var boundsStream = {
};

function boundsPoint(x, y) {
x = +x; // Coerce x to a number
y = +y; // Coerce y to a number
Comment thread
Fil marked this conversation as resolved.
Outdated
if (x < x0) x0 = x;
if (x > x1) x1 = x;
if (y < y0) y0 = y;
Expand Down