From 4e643ebc65931ed36b9089181e220a1e078485e8 Mon Sep 17 00:00:00 2001 From: Francesc linares Date: Mon, 27 Apr 2020 13:46:55 +0200 Subject: [PATCH] "tooltip" argument, generalized --- lazyvisual.js | 2 +- visual.js | 2 +- visual.max.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lazyvisual.js b/lazyvisual.js index 5a9e69a..c810609 100644 --- a/lazyvisual.js +++ b/lazyvisual.js @@ -60,4 +60,4 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -var VisualJS={version:"1.2.5",show:!0,old:!1,fixed:null,width:500,bwidth:500,height:500,normal:500,scripts:[],map:{},container:{},pub:{},func:{},callback:null,getSize:function(e){var a=VisualJS.setup,t=a.html.heading,i="."+VisualJS.setup.footerclass,l="undefined"!=typeof jQuery?jQuery:"undefined"!=typeof d3?d3.select:document.querySelectorAll.bind(document),n=window,r=document,s=r.documentElement,o=r.getElementsByTagName("body")[0],u=r.getElementById(e),d=function(e,a){return"function"==typeof getComputedStyle?getComputedStyle(e)[a]:e.currentStyle[a]},p=function(e){var a=l(e);return a[0]instanceof Element?a[0]:a[0]&&a[0][0]?a[0][0]:void 0},c=function(e){if(e){var a=e.offsetHeight;d(e);return a+=Math.round(parseFloat(d(e,"marginTop"))+parseFloat(d(e,"marginBottom")))}return 0},y=c(p(t)),f=c(p(i)),g=n.innerHeight||s.clientHeight||o.clientHeight,x=Math.round(parseFloat(d(u,"marginTop"))+parseFloat(d(u,"marginBottom")));return void 0!==g&&void 0!==y&&void 0!==f&&(null===VisualJS.fixed?(VisualJS.bwidth=n.innerWidth||s.clientWidth||o.clientWidth,VisualJS.width=VisualJS.bwidth-a.padding.w,VisualJS.height=Math.floor(g-y-f-x-10)):(VisualJS.bwidth=s.clientWidth||o.clientWidth,VisualJS.width=VisualJS.fixed[0]-a.padding.w,VisualJS.height=Math.floor(VisualJS.fixed[1]-y-f-x-10))),VisualJS.visualsize=VisualJS.width"+e+"

")}):"string"==typeof e&&""!==e&&(t+="

"+e+"

")),t},iframe:function(e,a){var t,i,l,n,r,s,o=VisualJS.setup,u="string"==typeof e.clas?e.clas:o.clas,d='\n\x3c!--[if lt IE 7]> \x3c!--\x3e \x3c!--';"string"==typeof a&&(-1===a.indexOf("{")?d+='':d+='"),d+='