diff --git a/plugins/max-links.user.js b/plugins/max-links.user.js index 86a86447..416d7852 100644 --- a/plugins/max-links.user.js +++ b/plugins/max-links.user.js @@ -20,7 +20,8 @@ function wrapper() { window.plugin.maxLinks = function() {}; // const values - window.plugin.maxLinks.MAX_DRAWN_LINKS = 400; + var MAX_DRAWN_LINKS = 400; + var MAX_DRAWN_LINKS_INCREASED_LIMIT = 1000; var STROKE_STYLE = { color: '#FF0000', opacity: 1, @@ -63,8 +64,9 @@ function wrapper() { var triangles = window.delaunay.triangulate(locations); var drawnLinks = 0; renderLimitReached = false; + var renderlimit = window.USE_INCREASED_RENDER_LIMIT ? MAX_DRAWN_LINKS_INCREASED_LIMIT : MAX_DRAWN_LINKS; $.each(triangles, function(idx, triangle) { - if (drawnLinks <= window.plugin.maxLinks.MAX_DRAWN_LINKS) { + if (drawnLinks <= renderlimit) { triangle.draw(window.plugin.maxLinks.layer, minX, minY) drawnLinks += 3; } else { diff --git a/plugins/render-limit-increase.user.js b/plugins/render-limit-increase.user.js index 56e66b9a..dddd9c19 100644 --- a/plugins/render-limit-increase.user.js +++ b/plugins/render-limit-increase.user.js @@ -39,7 +39,7 @@ window.plugin.renderLimitIncrease.setHigherLimits = function() { window.MAX_DRAWN_PORTALS = 3000; window.MAX_DRAWN_LINKS = 1000; window.MAX_DRAWN_FIELDS = 500; - + window.USE_INCREASED_RENDER_LIMIT = true; // Used for other plugins }; var setup = window.plugin.renderLimitIncrease.setHigherLimits;