3d-force-graph 1.74.6 → 1.74.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- // Version 1.74.6 3d-force-graph - https://github.com/vasturiano/3d-force-graph
1
+ // Version 1.74.7 3d-force-graph - https://github.com/vasturiano/3d-force-graph
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -106522,7 +106522,7 @@ var<${access}> ${name} : ${structName};`;
106522
106522
  }
106523
106523
  }
106524
106524
 
106525
- var css_248z$1 = ".float-tooltip-kap {\n position: absolute;\n padding: 2px 4px;\n border-radius: 3px;\n font: 12px sans-serif;\n color: #eee;\n background: rgba(0,0,0,0.6);\n pointer-events: none;\n}\n";
106525
+ var css_248z$1 = ".float-tooltip-kap {\n position: absolute;\n width: max-content; /* prevent shrinking near right edge */\n padding: 3px 5px;\n border-radius: 3px;\n font: 12px sans-serif;\n color: #eee;\n background: rgba(0,0,0,0.6);\n pointer-events: none;\n}\n";
106526
106526
  styleInject$1(css_248z$1);
106527
106527
 
106528
106528
  var index = index$2({
@@ -106545,7 +106545,7 @@ var<${access}> ${name} : ${structName};`;
106545
106545
  return state.tooltipEl.style(k, v);
106546
106546
  });
106547
106547
  state.tooltipEl // start off-screen
106548
- .style('left', '-100000px').style('display', 'none');
106548
+ .style('left', '-10000px').style('display', 'none');
106549
106549
  state.mouseInside = false;
106550
106550
  el.on('mousemove.tooltip', function (ev) {
106551
106551
  state.mouseInside = true;
@@ -106557,7 +106557,7 @@ var<${access}> ${name} : ${structName};`;
106557
106557
  // adjust horizontal position to not exceed canvas boundaries
106558
106558
  .style('transform', "translate(-".concat(mousePos[0] / canvasWidth * 100, "%, ").concat(
106559
106559
  // flip to above if near bottom
106560
- canvasHeight - mousePos[1] < 100 ? 'calc(-100% - 6px)' : '21px', ")"));
106560
+ canvasHeight > 130 && canvasHeight - mousePos[1] < 100 ? 'calc(-100% - 6px)' : '21px', ")"));
106561
106561
  });
106562
106562
  el.on('mouseover.tooltip', function () {
106563
106563
  state.mouseInside = true;
@@ -106599,7 +106599,7 @@ var<${access}> ${name} : ${structName};`;
106599
106599
  }
106600
106600
  }
106601
106601
 
106602
- var css_248z = ".scene-nav-info {\n bottom: 5px;\n width: 100%;\n text-align: center;\n color: slategrey;\n opacity: 0.7;\n font-size: 10px;\n}\n\n.scene-tooltip {\n top: 0;\n color: lavender;\n font-size: 15px;\n background: rgba(0,0,0,0.5);\n padding: 2px 5px;\n border-radius: 3px;\n}\n\n.scene-nav-info, .scene-tooltip {\n position: absolute;\n font-family: sans-serif;\n pointer-events: none;\n user-select: none;\n}\n\n.scene-container canvas:focus {\n outline: none;\n}";
106602
+ var css_248z = ".scene-nav-info {\n position: absolute;\n bottom: 5px;\n width: 100%;\n text-align: center;\n color: slategrey;\n opacity: 0.7;\n font-size: 10px;\n font-family: sans-serif;\n pointer-events: none;\n user-select: none;\n}\n\n.scene-container canvas:focus {\n outline: none;\n}";
106603
106603
  styleInject(css_248z);
106604
106604
 
106605
106605
  function _arrayLikeToArray(r, a) {