Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #165 #167

Merged
merged 2 commits into from
Apr 19, 2024
Merged
Changes from all commits
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
12 changes: 6 additions & 6 deletions src/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import SweepEvent from "./sweep-event"
import SweepLine from "./sweep-line"

// Limits on iterative processes to prevent infinite loops - usually caused by floating-point math round-off errors.
const env =
typeof process !== "undefined" && typeof process.env !== "undefined"
? process.env
: {}
const POLYGON_CLIPPING_MAX_QUEUE_SIZE =
(typeof process !== "undefined" &&
process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE) ||
1000000
env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1000000
const POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS =
(typeof process !== "undefined" &&
process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS) ||
1000000
env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1000000

export class Operation {
run(type, geom, moreGeoms) {
Expand Down
Loading