Skip to content
Permalink
Browse files

cutLineBeyondViewport: no viewport - no clipping

fixes #205
  • Loading branch information...
vpithart authored and LarsMichelsen committed Jul 11, 2019
1 parent 8e958fe commit 1108aae633564c59cdb786dd015a082b73c81bfa
Showing with 3 additions and 0 deletions.
  1. +3 −0 share/frontend/nagvis-js/js/ElementLine.js
@@ -972,6 +972,9 @@ var ElementLine = Element.extend({
*/

cutLineBeyondViewport: function(xA, yA, xB, yB) {
if (!g_map)
return([xA, yA, xB, yB]); // no viewport - no clipping

let viewport_size = g_map.getSize();
const xMax = viewport_size.x; // 1920
const yMax = viewport_size.y; // 1080

0 comments on commit 1108aae

Please sign in to comment.
You can’t perform that action at this time.