force-graph 1.47.3 → 1.47.4
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.
package/dist/force-graph.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version 1.47.
|
|
1
|
+
// Version 1.47.4 force-graph - https://github.com/vasturiano/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) :
|
|
@@ -7006,7 +7006,7 @@
|
|
|
7006
7006
|
}
|
|
7007
7007
|
}
|
|
7008
7008
|
|
|
7009
|
-
var css_248z = ".float-tooltip-kap {\n position: absolute;\n padding:
|
|
7009
|
+
var css_248z = ".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";
|
|
7010
7010
|
styleInject(css_248z);
|
|
7011
7011
|
|
|
7012
7012
|
var index$2 = index$4({
|
|
@@ -7029,7 +7029,7 @@
|
|
|
7029
7029
|
return state.tooltipEl.style(k, v);
|
|
7030
7030
|
});
|
|
7031
7031
|
state.tooltipEl // start off-screen
|
|
7032
|
-
.style('left', '-
|
|
7032
|
+
.style('left', '-10000px').style('display', 'none');
|
|
7033
7033
|
state.mouseInside = false;
|
|
7034
7034
|
el.on('mousemove.tooltip', function (ev) {
|
|
7035
7035
|
state.mouseInside = true;
|
|
@@ -7041,7 +7041,7 @@
|
|
|
7041
7041
|
// adjust horizontal position to not exceed canvas boundaries
|
|
7042
7042
|
.style('transform', "translate(-".concat(mousePos[0] / canvasWidth * 100, "%, ").concat(
|
|
7043
7043
|
// flip to above if near bottom
|
|
7044
|
-
canvasHeight - mousePos[1] < 100 ? 'calc(-100% - 6px)' : '21px', ")"));
|
|
7044
|
+
canvasHeight > 130 && canvasHeight - mousePos[1] < 100 ? 'calc(-100% - 6px)' : '21px', ")"));
|
|
7045
7045
|
});
|
|
7046
7046
|
el.on('mouseover.tooltip', function () {
|
|
7047
7047
|
state.mouseInside = true;
|