globe.gl 2.36.2 → 2.36.3
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/globe.gl.js +5 -5
- package/dist/globe.gl.js.map +1 -1
- package/dist/globe.gl.min.js +2 -2
- package/package.json +1 -1
package/dist/globe.gl.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version 2.36.
|
|
1
|
+
// Version 2.36.3 globe.gl - https://github.com/vasturiano/globe.gl
|
|
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) :
|
|
@@ -133679,7 +133679,7 @@ var<${access}> ${name} : ${structName};`;
|
|
|
133679
133679
|
}
|
|
133680
133680
|
}
|
|
133681
133681
|
|
|
133682
|
-
var css_248z$1 = ".float-tooltip-kap {\n position: absolute;\n padding:
|
|
133682
|
+
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";
|
|
133683
133683
|
styleInject$1(css_248z$1);
|
|
133684
133684
|
|
|
133685
133685
|
var index = index$3({
|
|
@@ -133702,7 +133702,7 @@ var<${access}> ${name} : ${structName};`;
|
|
|
133702
133702
|
return state.tooltipEl.style(k, v);
|
|
133703
133703
|
});
|
|
133704
133704
|
state.tooltipEl // start off-screen
|
|
133705
|
-
.style('left', '-
|
|
133705
|
+
.style('left', '-10000px').style('display', 'none');
|
|
133706
133706
|
state.mouseInside = false;
|
|
133707
133707
|
el.on('mousemove.tooltip', function (ev) {
|
|
133708
133708
|
state.mouseInside = true;
|
|
@@ -133714,7 +133714,7 @@ var<${access}> ${name} : ${structName};`;
|
|
|
133714
133714
|
// adjust horizontal position to not exceed canvas boundaries
|
|
133715
133715
|
.style('transform', "translate(-".concat(mousePos[0] / canvasWidth * 100, "%, ").concat(
|
|
133716
133716
|
// flip to above if near bottom
|
|
133717
|
-
canvasHeight - mousePos[1] < 100 ? 'calc(-100% - 6px)' : '21px', ")"));
|
|
133717
|
+
canvasHeight > 130 && canvasHeight - mousePos[1] < 100 ? 'calc(-100% - 6px)' : '21px', ")"));
|
|
133718
133718
|
});
|
|
133719
133719
|
el.on('mouseover.tooltip', function () {
|
|
133720
133720
|
state.mouseInside = true;
|
|
@@ -133756,7 +133756,7 @@ var<${access}> ${name} : ${structName};`;
|
|
|
133756
133756
|
}
|
|
133757
133757
|
}
|
|
133758
133758
|
|
|
133759
|
-
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
|
|
133759
|
+
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}";
|
|
133760
133760
|
styleInject(css_248z);
|
|
133761
133761
|
|
|
133762
133762
|
function _arrayLikeToArray(r, a) {
|