Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hpcc-js/api

Package Overview
Dependencies
Maintainers
1
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hpcc-js/api - npm Package Compare versions

Comparing version 0.0.35 to 0.0.36

8

dist/api.js

@@ -1502,5 +1502,7 @@ (function (global, factory) {

var classed = this.tooltip.attr("class");
classed = classed.split(" notick").join("") + (this.tooltipTick() ? "" : " notick") + (this.tooltipStyle() === "none" ? " hidden" : "");
this.tooltip
.attr("class", classed);
if (classed) {
classed = classed.split(" notick").join("") + (this.tooltipTick() ? "" : " notick") + (this.tooltipStyle() === "none" ? " hidden" : "");
this.tooltip
.attr("class", classed);
}
};

@@ -1507,0 +1509,0 @@ ITooltip.prototype.tooltipExit = function () {

@@ -1,2 +0,2 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],n):n(t["@hpcc-js/api"]={},t["@hpcc-js/common"])}(this,function(t,n){"use strict";function e(){}function r(){}function o(){}function i(){}function l(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===lt&&n.documentElement.namespaceURI===lt?n.createElement(t):n.createElementNS(e,t)}}function u(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function a(t,n,e){return t=s(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function s(t,n,e){return function(r){var o=dt;dt=r;try{t.call(this,this.__data__,n,e)}finally{dt=o}}}function c(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function f(t){return function(){var n=this.__on;if(n){for(var e,r=0,o=-1,i=n.length;r<i;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++o]=e:this.removeEventListener(e.type,e.listener,e.capture);++o?n.length=o:delete this.__on}}}function p(t,n,e){var r=yt.hasOwnProperty(t.type)?a:s;return function(o,i,l){var u,a=this.__on,s=r(n,i,l);if(a)for(var c=0,f=a.length;c<f;++c)if((u=a[c]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=s,u.capture=e),void(u.value=n);this.addEventListener(t.type,s,e),u={type:t.type,name:t.name,value:n,listener:s,capture:e},a?a.push(u):this.__on=[u]}}function h(){}function y(){return[]}function d(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function v(t,n,e,r,o,i){for(var l,u=0,a=n.length,s=i.length;u<s;++u)(l=n[u])?(l.__data__=i[u],r[u]=l):e[u]=new d(t,i[u]);for(;u<a;++u)(l=n[u])&&(o[u]=l)}function m(t,n,e,r,o,i,l){var u,a,s,c={},f=n.length,p=i.length,h=new Array(f);for(u=0;u<f;++u)(a=n[u])&&(h[u]=s=wt+l.call(a,a.__data__,u,n),s in c?o[u]=a:c[s]=a);for(u=0;u<p;++u)(a=c[s=wt+l.call(t,i[u],u,i)])?(r[u]=a,a.__data__=i[u],c[s]=null):e[u]=new d(t,i[u]);for(u=0;u<f;++u)(a=n[u])&&c[h[u]]===a&&(o[u]=a)}function g(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function _(t){return function(){this.removeAttribute(t)}}function w(t){return function(){this.removeAttributeNS(t.space,t.local)}}function x(t,n){return function(){this.setAttribute(t,n)}}function b(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function S(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function E(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function k(t){return function(){this.style.removeProperty(t)}}function C(t,n,e){return function(){this.style.setProperty(t,n,e)}}function A(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function N(t,n){return t.style.getPropertyValue(n)||xt(t).getComputedStyle(t,null).getPropertyValue(n)}function T(t){return function(){delete this[t]}}function V(t,n){return function(){this[t]=n}}function O(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function L(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new D(t)}function D(t){this._node=t,this._names=L(t.getAttribute("class")||"")}function M(t,n){for(var e=F(t),r=-1,o=n.length;++r<o;)e.add(n[r])}function P(t,n){for(var e=F(t),r=-1,o=n.length;++r<o;)e.remove(n[r])}function I(t){return function(){M(this,t)}}function $(t){return function(){P(this,t)}}function z(t,n){return function(){(n.apply(this,arguments)?M:P)(this,t)}}function B(){this.textContent=""}function H(t){return function(){this.textContent=t}}function j(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function U(){this.innerHTML=""}function W(t){return function(){this.innerHTML=t}}function q(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function J(){this.nextSibling&&this.parentNode.appendChild(this)}function R(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function G(){return null}function X(){var t=this.parentNode;t&&t.removeChild(this)}function K(t,n,e){var r=xt(t),o=r.CustomEvent;"function"==typeof o?o=new o(n,e):(o=r.document.createEvent("Event"),e?(o.initEvent(n,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(n,!1,!1)),t.dispatchEvent(o)}function Q(t,n){return function(){return K(this,t,n)}}function Y(t,n){return function(){return K(this,t,n.apply(this,arguments))}}function Z(t,n){this._groups=t,this._parents=n}function tt(){return new Z([[document.documentElement]],bt)}function nt(){}function et(t,n){var e=new nt;if(t instanceof nt)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,o=-1,i=t.length;if(null==n)for(;++o<i;)e.set(o,t[o]);else for(;++o<i;)e.set(n(r=t[o],o,t),r)}else if(t)for(var l in t)e.set(l,t[l]);return e}function rt(){}function ot(){function t(t){(f=e(t))&&(p=f.createSVGPoint(),s().appendChild(c))}function n(){var t=St(document.createElement("div"));return t.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),t.node()}function e(t){var n=t.node();return n?"svg"===n.tagName.toLowerCase()?n:n.ownerSVGElement:null}function r(){return null==c&&(c=n(),s().appendChild(c)),St(c)}function o(){for(var t=h||event.target;null==t.getScreenCTM&&null==t.parentNode;)t=t.parentNode;var n={},e=t.getScreenCTM(),r=t.getBBox(),o=r.width,i=r.height,l=r.x,u=r.y;return p.x=l,p.y=u,n.nw=p.matrixTransform(e),p.x+=o,n.ne=p.matrixTransform(e),p.y+=i,n.se=p.matrixTransform(e),p.x-=o,n.sw=p.matrixTransform(e),p.y-=i/2,n.w=p.matrixTransform(e),p.x+=o,n.e=p.matrixTransform(e),p.x-=o/2,p.y-=i/2,n.n=p.matrixTransform(e),p.y+=i,n.s=p.matrixTransform(e),n}function i(t){return"function"==typeof t?t:function(){return t}}var l=function(){return"n"},u=function(){return[0,0]},a=function(){return" "},s=i(document.body),c=n(),f=null,p=null,h=null;t.show=function(){var n=Array.prototype.slice.call(arguments);n[n.length-1]instanceof SVGElement&&(h=n.pop());var e,o=a.apply(this,n),i=u.apply(this,n),c=l.apply(this,n),f=r(),p=d.length,v=document.documentElement.scrollTop||s().scrollTop,m=document.documentElement.scrollLeft||s().scrollLeft;for(f.html(o).style("opacity",1).style("pointer-events","all");p--;)f.classed(d[p],!1);return e=y.get(c).apply(this),f.classed(c,!0).style("top",e.top+i[0]+v+"px").style("left",e.left+i[1]+m+"px"),t},t.hide=function(){return r().style("opacity",0).style("pointer-events","none"),t},t.attr=function(n,e){if(arguments.length<2&&"string"==typeof n)return r().attr(n);var o=Array.prototype.slice.call(arguments);return tt.prototype.attr.apply(r(),o),t},t.style=function(n,e){if(arguments.length<2&&"string"==typeof n)return r().style(n);var o=Array.prototype.slice.call(arguments);return tt.prototype.style.apply(r(),o),t},t.direction=function(n){return arguments.length?(l=null==n?n:i(n),t):l},t.offset=function(n){return arguments.length?(u=null==n?n:i(n),t):u},t.html=function(n){return arguments.length?(a=null==n?n:i(n),t):a},t.rootElement=function(n){return arguments.length?(s=null==n?n:i(n),t):s},t.destroy=function(){return c&&(r().remove(),c=null),t};var y=et({n:function(){var t=o();return{top:t.n.y-c.offsetHeight,left:t.n.x-c.offsetWidth/2}},s:function(){var t=o();return{top:t.s.y,left:t.s.x-c.offsetWidth/2}},e:function(){var t=o();return{top:t.e.y-c.offsetHeight/2,left:t.e.x}},w:function(){var t=o();return{top:t.w.y-c.offsetHeight/2,left:t.w.x-c.offsetWidth}},nw:function(){var t=o();return{top:t.nw.y-c.offsetHeight,left:t.nw.x-c.offsetWidth}},ne:function(){var t=o();return{top:t.ne.y-c.offsetHeight,left:t.ne.x}},sw:function(){var t=o();return{top:t.sw.y,left:t.sw.x-c.offsetWidth}},se:function(){var t=o();return{top:t.se.y,left:t.se.x}}}),d=y.keys();return t}e.prototype._palette=n.Palette.rainbow("default"),e.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},e.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)},r.prototype._palette=n.Palette.ordinal("default"),r.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},r.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)},o.prototype.vertex_click=function(t,n,e,r){r&&r.vertex&&console.log("Vertex click: "+r.vertex.id())},o.prototype.vertex_dblclick=function(t,n,e,r){r&&r.vertex&&console.log("Vertex double click: "+r.vertex.id())},o.prototype.edge_click=function(t,n,e,r){r&&r.edge&&console.log("Edge click: "+r.edge.id())},o.prototype.edge_dblclick=function(t,n,e,r){r&&r.edge&&console.log("Edge double click: "+r.edge.id())};var it=function(t){function e(){return t.call(this)||this}return n.__extends(e,t),e.prototype.isValid=function(){return!(this.validate()&&!new RegExp(this.validate()).test(this.value()))},e.prototype.hasValue=function(){if("function"==typeof this.type){switch(this.type()){case"radio":case"checkbox":if(this.value()&&"false"!==this.value())return!0;break;default:if(this.value())return!0}return!1}return""!==this.value()},e.prototype.blur=function(t){},e.prototype.click=function(t){},e.prototype.dblclick=function(t){},e.prototype.change=function(t){},e.prototype.resetValue=function(t){t.value(t._inputElement[0].node().value)},e.prototype.disable=function(t){this._inputElement.forEach(function(n,e){n.attr("disabled",t?"disabled":null)})},e}(n.Widget);it.prototype.publish("name","","string","HTML name for the input"),it.prototype.publish("label","","string","Descriptive label"),it.prototype.publish("value","","string","Input Current Value"),it.prototype.publish("validate",null,"string","Input Validation"),i.prototype._palette=n.Palette.ordinal("default"),i.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},i.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)};var lt="http://www.w3.org/1999/xhtml",ut={svg:"http://www.w3.org/2000/svg",xhtml:lt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},at=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),ut.hasOwnProperty(n)?{space:ut[n],local:t}:t},st=function(t){var n=at(t);return(n.local?u:l)(n)},ct=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var ft=document.documentElement;if(!ft.matches){var pt=ft.webkitMatchesSelector||ft.msMatchesSelector||ft.mozMatchesSelector||ft.oMatchesSelector;ct=function(t){return function(){return pt.call(this,t)}}}}var ht=ct,yt={},dt=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(yt={mouseenter:"mouseover",mouseleave:"mouseout"}));var vt=function(t){return null==t?h:function(){return this.querySelector(t)}},mt=function(t){return null==t?y:function(){return this.querySelectorAll(t)}},gt=function(t){return new Array(t.length)};d.prototype={constructor:d,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var _t=function(t){return function(){return t}},wt="$",xt=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};D.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var bt=[null];Z.prototype=tt.prototype={constructor:Z,select:function(t){"function"!=typeof t&&(t=vt(t));for(var n=this._groups,e=n.length,r=new Array(e),o=0;o<e;++o)for(var i,l,u=n[o],a=u.length,s=r[o]=new Array(a),c=0;c<a;++c)(i=u[c])&&(l=t.call(i,i.__data__,c,u))&&("__data__"in i&&(l.__data__=i.__data__),s[c]=l);return new Z(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=mt(t));for(var n=this._groups,e=n.length,r=[],o=[],i=0;i<e;++i)for(var l,u=n[i],a=u.length,s=0;s<a;++s)(l=u[s])&&(r.push(t.call(l,l.__data__,s,u)),o.push(l));return new Z(r,o)},filter:function(t){"function"!=typeof t&&(t=ht(t));for(var n=this._groups,e=n.length,r=new Array(e),o=0;o<e;++o)for(var i,l=n[o],u=l.length,a=r[o]=[],s=0;s<u;++s)(i=l[s])&&t.call(i,i.__data__,s,l)&&a.push(i);return new Z(r,this._parents)},data:function(t,n){if(!t)return h=new Array(this.size()),s=-1,this.each(function(t){h[++s]=t}),h;var e=n?m:v,r=this._parents,o=this._groups;"function"!=typeof t&&(t=_t(t));for(var i=o.length,l=new Array(i),u=new Array(i),a=new Array(i),s=0;s<i;++s){var c=r[s],f=o[s],p=f.length,h=t.call(c,c&&c.__data__,s,r),y=h.length,d=u[s]=new Array(y),g=l[s]=new Array(y);e(c,f,d,g,a[s]=new Array(p),h,n);for(var _,w,x=0,b=0;x<y;++x)if(_=d[x]){for(x>=b&&(b=x+1);!(w=g[b])&&++b<y;);_._next=w||null}}return l=new Z(l,r),l._enter=u,l._exit=a,l},enter:function(){return new Z(this._enter||this._groups.map(gt),this._parents)},exit:function(){return new Z(this._exit||this._groups.map(gt),this._parents)},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,o=e.length,i=Math.min(r,o),l=new Array(r),u=0;u<i;++u)for(var a,s=n[u],c=e[u],f=s.length,p=l[u]=new Array(f),h=0;h<f;++h)(a=s[h]||c[h])&&(p[h]=a);for(;u<r;++u)l[u]=n[u];return new Z(l,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,o=t[n],i=o.length-1,l=o[i];--i>=0;)(r=o[i])&&(l&&l!==r.nextSibling&&l.parentNode.insertBefore(r,l),l=r);return this},sort:function(t){t||(t=g);for(var n=this._groups,e=n.length,r=new Array(e),o=0;o<e;++o){for(var i,l=n[o],u=l.length,a=r[o]=new Array(u),s=0;s<u;++s)(i=l[s])&&(a[s]=i);a.sort(function(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e})}return new Z(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],o=0,i=r.length;o<i;++o){var l=r[o];if(l)return l}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var o,i=n[e],l=0,u=i.length;l<u;++l)(o=i[l])&&t.call(o,o.__data__,l,i);return this},attr:function(t,n){var e=at(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?w:_:"function"==typeof n?e.local?E:S:e.local?b:x)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?k:"function"==typeof n?A:C)(t,n,null==e?"":e)):N(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?T:"function"==typeof n?O:V)(t,n)):this.node()[t]},classed:function(t,n){var e=L(t+"");if(arguments.length<2){for(var r=F(this.node()),o=-1,i=e.length;++o<i;)if(!r.contains(e[o]))return!1;return!0}return this.each(("function"==typeof n?z:n?I:$)(e,n))},text:function(t){return arguments.length?this.each(null==t?B:("function"==typeof t?j:H)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?U:("function"==typeof t?q:W)(t)):this.node().innerHTML},raise:function(){return this.each(J)},lower:function(){return this.each(R)},append:function(t){var n="function"==typeof t?t:st(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e="function"==typeof t?t:st(t),r=null==n?G:"function"==typeof n?n:vt(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(X)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,o,i=c(t+""),l=i.length;{if(!(arguments.length<2)){for(u=n?p:f,null==e&&(e=!1),r=0;r<l;++r)this.each(u(i[r],n,e));return this}var u=this.node().__on;if(u)for(var a,s=0,h=u.length;s<h;++s)for(r=0,a=u[s];r<l;++r)if((o=i[r]).type===a.type&&o.name===a.name)return a.value}},dispatch:function(t,n){return this.each(("function"==typeof n?Y:Q)(t,n))}};var St=function(t){return"string"==typeof t?new Z([[document.querySelector(t)]],[document.documentElement]):new Z([[t]],bt)};nt.prototype=et.prototype={constructor:nt,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var Et=et.prototype;rt.prototype=function(t,n){var e=new rt;if(t instanceof rt)t.each(function(t){e.add(t)});else if(t){var r=-1,o=t.length;if(null==n)for(;++r<o;)e.add(t[r]);else for(;++r<o;)e.add(n(t[r],r,t))}return e}.prototype={constructor:rt,has:Et.has,add:function(t){return t+="",this["$"+t]=t,this},remove:Et.remove,clear:Et.clear,values:Et.keys,size:Et.size,empty:Et.empty,each:Et.each};var kt=Object.freeze({tip:ot});!function(t,n){if("undefined"==typeof document)return n;t=t||"";var e=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}('.d3-tip {\r\n line-height: 1;\r\n font-weight: bold;\r\n padding: 12px;\r\n background: rgba(0, 0, 0, 0.66);\r\n color: #fff;\r\n border-radius: 2px;\r\n pointer-events: none !important;\r\n z-index:10;\r\n}\r\n\r\n.d3-tip.hidden {\r\n visibility:hidden;\r\n}\r\n\r\n/* Creates a small triangle extender for the tooltip */\r\n.d3-tip:after {\r\n box-sizing: border-box;\r\n display: inline;\r\n font-size: 10px;\r\n width: 100%;\r\n line-height: 1;\r\n color: rgba(0, 0, 0, 0.66);\r\n position: absolute;\r\n pointer-events: none !important;\r\n}\r\n\r\n/* Northward tooltips */\r\n.d3-tip.n:after {\r\n content: "\\25BC";\r\n margin: -1px 0 0 0;\r\n top: 100%;\r\n left: 0;\r\n text-align: center;\r\n}\r\n\r\n/* Eastward tooltips */\r\n.d3-tip.e:after {\r\n content: "\\25C0";\r\n margin: -4px 0 0 0;\r\n top: 50%;\r\n left: -8px;\r\n}\r\n\r\n/* Southward tooltips */\r\n.d3-tip.s:after {\r\n content: "\\25B2";\r\n margin: 0 0 1px 0;\r\n top: -8px;\r\n left: 0;\r\n text-align: center;\r\n}\r\n\r\n/* Westward tooltips */\r\n.d3-tip.w:after {\r\n content: "\\25B6";\r\n margin: -4px 0 0 -1px;\r\n top: 50%;\r\n left: 100%;\r\n}\r\n\r\n.d3-tip.notick:after {\r\n content: "" !important;\r\n}\r\n\r\n.common_Widget .over {\r\n stroke: rgba(0, 0, 0, 0.66);\r\n opacity: 0.66;\r\n}\r\n',void 0);var Ct=ot||void 0||kt,At=function(t){function e(){var e=t.call(this)||this;if(e._valueFormatter=n.format(e.tooltipValueFormat()),e.layerEnter){var r=e.layerEnter;e.layerEnter=function(t,n,e){this.tooltipEnter(n),r.apply(this,arguments)};var o=e.layerUpdate;e.layerUpdate=function(t){o.apply(this,arguments),this.tooltipUpdate()};var i=e.layerExit;e.layerExit=function(t){i.apply(this,arguments),this.tooltipExit()}}else{var l=e.enter;e.enter=function(t,n){this.tooltipEnter(n),l.apply(this,arguments)};var u=e.update;e.update=function(t,n){u.apply(this,arguments),this.tooltipUpdate()};var a=e.exit;e.exit=function(t,n){a.apply(this,arguments),this.tooltipExit()}}return e}return n.__extends(e,t),e.prototype.tooltipEnter=function(t){var n=this;this.tooltip=Ct().attr("class","d3-tip").offset(function(){switch(n.tooltip.direction()()){case"e":return[0,n.tooltipOffset()];default:return[-n.tooltipOffset(),0]}}),t.call(this.tooltip)},e.prototype.tooltipUpdate=function(){var t=this.tooltip.attr("class");t=t.split(" notick").join("")+(this.tooltipTick()?"":" notick")+("none"===this.tooltipStyle()?" hidden":""),this.tooltip.attr("class",t)},e.prototype.tooltipExit=function(){this.tooltip&&this.tooltip.destroy()},e.prototype._tooltipHTML=function(t){return t},e.prototype.tooltipHTML=function(t){return this.tooltip.html(t)},e.prototype.tooltipFormat=function(t){switch(t=t||{},t.label=t.label||"",t.series=t.series||"",t.value instanceof Date?t.value=t.value||"":t.value=this._valueFormatter(t.value)||"",this.tooltipStyle()){case"none":break;default:return t.series?"<span style='color:"+this.tooltipSeriesColor()+"'>"+t.series+"</span> / <span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>":"<span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>"}},e}(n.Widget);At.prototype.publish("tooltipStyle","default","set","Style",["default","none"],{}),At.prototype.publish("tooltipValueFormat",",.2f","string","Value Format",null,{}),At.prototype.publish("tooltipSeriesColor","#EAFFFF","html-color","Series Color",null,{}),At.prototype.publish("tooltipLabelColor","#CCFFFF","html-color","Label Color",null,{}),At.prototype.publish("tooltipValueColor","white","html-color","Value Color",null,{}),At.prototype.publish("tooltipTick",!0,"boolean","Show tooltip tick",null,{}),At.prototype.publish("tooltipOffset",8,"number","Offset from the cursor",null,{});var Nt=At.prototype.tooltipValueFormat;At.prototype.tooltipValueFormat=function(t){var e=Nt.apply(this,arguments);return arguments.length&&(this._valueFormatter=n.format(t)),e};var Tt=function(){function t(){}return t.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},t.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)},t}();Tt.prototype._palette=n.Palette.ordinal("default"),t.I1DChart=e,t.I2DChart=r,t.IGraph=o,t.IInput=it,t.INDChart=i,t.ITooltip=At,t.ITree=Tt,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],n):n(t["@hpcc-js/api"]={},t["@hpcc-js/common"])}(this,function(t,n){"use strict";function e(){}function r(){}function o(){}function i(){}function l(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===lt&&n.documentElement.namespaceURI===lt?n.createElement(t):n.createElementNS(e,t)}}function u(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function a(t,n,e){return t=s(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function s(t,n,e){return function(r){var o=dt;dt=r;try{t.call(this,this.__data__,n,e)}finally{dt=o}}}function c(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function f(t){return function(){var n=this.__on;if(n){for(var e,r=0,o=-1,i=n.length;r<i;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++o]=e:this.removeEventListener(e.type,e.listener,e.capture);++o?n.length=o:delete this.__on}}}function p(t,n,e){var r=yt.hasOwnProperty(t.type)?a:s;return function(o,i,l){var u,a=this.__on,s=r(n,i,l);if(a)for(var c=0,f=a.length;c<f;++c)if((u=a[c]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=s,u.capture=e),void(u.value=n);this.addEventListener(t.type,s,e),u={type:t.type,name:t.name,value:n,listener:s,capture:e},a?a.push(u):this.__on=[u]}}function h(){}function y(){return[]}function d(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function v(t,n,e,r,o,i){for(var l,u=0,a=n.length,s=i.length;u<s;++u)(l=n[u])?(l.__data__=i[u],r[u]=l):e[u]=new d(t,i[u]);for(;u<a;++u)(l=n[u])&&(o[u]=l)}function m(t,n,e,r,o,i,l){var u,a,s,c={},f=n.length,p=i.length,h=new Array(f);for(u=0;u<f;++u)(a=n[u])&&(h[u]=s=wt+l.call(a,a.__data__,u,n),s in c?o[u]=a:c[s]=a);for(u=0;u<p;++u)(a=c[s=wt+l.call(t,i[u],u,i)])?(r[u]=a,a.__data__=i[u],c[s]=null):e[u]=new d(t,i[u]);for(u=0;u<f;++u)(a=n[u])&&c[h[u]]===a&&(o[u]=a)}function g(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function _(t){return function(){this.removeAttribute(t)}}function w(t){return function(){this.removeAttributeNS(t.space,t.local)}}function x(t,n){return function(){this.setAttribute(t,n)}}function b(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function S(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function E(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function k(t){return function(){this.style.removeProperty(t)}}function C(t,n,e){return function(){this.style.setProperty(t,n,e)}}function A(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function N(t,n){return t.style.getPropertyValue(n)||xt(t).getComputedStyle(t,null).getPropertyValue(n)}function T(t){return function(){delete this[t]}}function V(t,n){return function(){this[t]=n}}function O(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function L(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new D(t)}function D(t){this._node=t,this._names=L(t.getAttribute("class")||"")}function M(t,n){for(var e=F(t),r=-1,o=n.length;++r<o;)e.add(n[r])}function P(t,n){for(var e=F(t),r=-1,o=n.length;++r<o;)e.remove(n[r])}function I(t){return function(){M(this,t)}}function $(t){return function(){P(this,t)}}function z(t,n){return function(){(n.apply(this,arguments)?M:P)(this,t)}}function B(){this.textContent=""}function H(t){return function(){this.textContent=t}}function j(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function U(){this.innerHTML=""}function W(t){return function(){this.innerHTML=t}}function q(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function J(){this.nextSibling&&this.parentNode.appendChild(this)}function R(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function G(){return null}function X(){var t=this.parentNode;t&&t.removeChild(this)}function K(t,n,e){var r=xt(t),o=r.CustomEvent;"function"==typeof o?o=new o(n,e):(o=r.document.createEvent("Event"),e?(o.initEvent(n,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(n,!1,!1)),t.dispatchEvent(o)}function Q(t,n){return function(){return K(this,t,n)}}function Y(t,n){return function(){return K(this,t,n.apply(this,arguments))}}function Z(t,n){this._groups=t,this._parents=n}function tt(){return new Z([[document.documentElement]],bt)}function nt(){}function et(t,n){var e=new nt;if(t instanceof nt)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,o=-1,i=t.length;if(null==n)for(;++o<i;)e.set(o,t[o]);else for(;++o<i;)e.set(n(r=t[o],o,t),r)}else if(t)for(var l in t)e.set(l,t[l]);return e}function rt(){}function ot(){function t(t){(f=e(t))&&(p=f.createSVGPoint(),s().appendChild(c))}function n(){var t=St(document.createElement("div"));return t.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),t.node()}function e(t){var n=t.node();return n?"svg"===n.tagName.toLowerCase()?n:n.ownerSVGElement:null}function r(){return null==c&&(c=n(),s().appendChild(c)),St(c)}function o(){for(var t=h||event.target;null==t.getScreenCTM&&null==t.parentNode;)t=t.parentNode;var n={},e=t.getScreenCTM(),r=t.getBBox(),o=r.width,i=r.height,l=r.x,u=r.y;return p.x=l,p.y=u,n.nw=p.matrixTransform(e),p.x+=o,n.ne=p.matrixTransform(e),p.y+=i,n.se=p.matrixTransform(e),p.x-=o,n.sw=p.matrixTransform(e),p.y-=i/2,n.w=p.matrixTransform(e),p.x+=o,n.e=p.matrixTransform(e),p.x-=o/2,p.y-=i/2,n.n=p.matrixTransform(e),p.y+=i,n.s=p.matrixTransform(e),n}function i(t){return"function"==typeof t?t:function(){return t}}var l=function(){return"n"},u=function(){return[0,0]},a=function(){return" "},s=i(document.body),c=n(),f=null,p=null,h=null;t.show=function(){var n=Array.prototype.slice.call(arguments);n[n.length-1]instanceof SVGElement&&(h=n.pop());var e,o=a.apply(this,n),i=u.apply(this,n),c=l.apply(this,n),f=r(),p=d.length,v=document.documentElement.scrollTop||s().scrollTop,m=document.documentElement.scrollLeft||s().scrollLeft;for(f.html(o).style("opacity",1).style("pointer-events","all");p--;)f.classed(d[p],!1);return e=y.get(c).apply(this),f.classed(c,!0).style("top",e.top+i[0]+v+"px").style("left",e.left+i[1]+m+"px"),t},t.hide=function(){return r().style("opacity",0).style("pointer-events","none"),t},t.attr=function(n,e){if(arguments.length<2&&"string"==typeof n)return r().attr(n);var o=Array.prototype.slice.call(arguments);return tt.prototype.attr.apply(r(),o),t},t.style=function(n,e){if(arguments.length<2&&"string"==typeof n)return r().style(n);var o=Array.prototype.slice.call(arguments);return tt.prototype.style.apply(r(),o),t},t.direction=function(n){return arguments.length?(l=null==n?n:i(n),t):l},t.offset=function(n){return arguments.length?(u=null==n?n:i(n),t):u},t.html=function(n){return arguments.length?(a=null==n?n:i(n),t):a},t.rootElement=function(n){return arguments.length?(s=null==n?n:i(n),t):s},t.destroy=function(){return c&&(r().remove(),c=null),t};var y=et({n:function(){var t=o();return{top:t.n.y-c.offsetHeight,left:t.n.x-c.offsetWidth/2}},s:function(){var t=o();return{top:t.s.y,left:t.s.x-c.offsetWidth/2}},e:function(){var t=o();return{top:t.e.y-c.offsetHeight/2,left:t.e.x}},w:function(){var t=o();return{top:t.w.y-c.offsetHeight/2,left:t.w.x-c.offsetWidth}},nw:function(){var t=o();return{top:t.nw.y-c.offsetHeight,left:t.nw.x-c.offsetWidth}},ne:function(){var t=o();return{top:t.ne.y-c.offsetHeight,left:t.ne.x}},sw:function(){var t=o();return{top:t.sw.y,left:t.sw.x-c.offsetWidth}},se:function(){var t=o();return{top:t.se.y,left:t.se.x}}}),d=y.keys();return t}e.prototype._palette=n.Palette.rainbow("default"),e.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},e.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)},r.prototype._palette=n.Palette.ordinal("default"),r.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},r.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)},o.prototype.vertex_click=function(t,n,e,r){r&&r.vertex&&console.log("Vertex click: "+r.vertex.id())},o.prototype.vertex_dblclick=function(t,n,e,r){r&&r.vertex&&console.log("Vertex double click: "+r.vertex.id())},o.prototype.edge_click=function(t,n,e,r){r&&r.edge&&console.log("Edge click: "+r.edge.id())},o.prototype.edge_dblclick=function(t,n,e,r){r&&r.edge&&console.log("Edge double click: "+r.edge.id())};var it=function(t){function e(){return t.call(this)||this}return n.__extends(e,t),e.prototype.isValid=function(){return!(this.validate()&&!new RegExp(this.validate()).test(this.value()))},e.prototype.hasValue=function(){if("function"==typeof this.type){switch(this.type()){case"radio":case"checkbox":if(this.value()&&"false"!==this.value())return!0;break;default:if(this.value())return!0}return!1}return""!==this.value()},e.prototype.blur=function(t){},e.prototype.click=function(t){},e.prototype.dblclick=function(t){},e.prototype.change=function(t){},e.prototype.resetValue=function(t){t.value(t._inputElement[0].node().value)},e.prototype.disable=function(t){this._inputElement.forEach(function(n,e){n.attr("disabled",t?"disabled":null)})},e}(n.Widget);it.prototype.publish("name","","string","HTML name for the input"),it.prototype.publish("label","","string","Descriptive label"),it.prototype.publish("value","","string","Input Current Value"),it.prototype.publish("validate",null,"string","Input Validation"),i.prototype._palette=n.Palette.ordinal("default"),i.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},i.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)};var lt="http://www.w3.org/1999/xhtml",ut={svg:"http://www.w3.org/2000/svg",xhtml:lt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},at=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),ut.hasOwnProperty(n)?{space:ut[n],local:t}:t},st=function(t){var n=at(t);return(n.local?u:l)(n)},ct=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var ft=document.documentElement;if(!ft.matches){var pt=ft.webkitMatchesSelector||ft.msMatchesSelector||ft.mozMatchesSelector||ft.oMatchesSelector;ct=function(t){return function(){return pt.call(this,t)}}}}var ht=ct,yt={},dt=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(yt={mouseenter:"mouseover",mouseleave:"mouseout"}));var vt=function(t){return null==t?h:function(){return this.querySelector(t)}},mt=function(t){return null==t?y:function(){return this.querySelectorAll(t)}},gt=function(t){return new Array(t.length)};d.prototype={constructor:d,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var _t=function(t){return function(){return t}},wt="$",xt=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};D.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var bt=[null];Z.prototype=tt.prototype={constructor:Z,select:function(t){"function"!=typeof t&&(t=vt(t));for(var n=this._groups,e=n.length,r=new Array(e),o=0;o<e;++o)for(var i,l,u=n[o],a=u.length,s=r[o]=new Array(a),c=0;c<a;++c)(i=u[c])&&(l=t.call(i,i.__data__,c,u))&&("__data__"in i&&(l.__data__=i.__data__),s[c]=l);return new Z(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=mt(t));for(var n=this._groups,e=n.length,r=[],o=[],i=0;i<e;++i)for(var l,u=n[i],a=u.length,s=0;s<a;++s)(l=u[s])&&(r.push(t.call(l,l.__data__,s,u)),o.push(l));return new Z(r,o)},filter:function(t){"function"!=typeof t&&(t=ht(t));for(var n=this._groups,e=n.length,r=new Array(e),o=0;o<e;++o)for(var i,l=n[o],u=l.length,a=r[o]=[],s=0;s<u;++s)(i=l[s])&&t.call(i,i.__data__,s,l)&&a.push(i);return new Z(r,this._parents)},data:function(t,n){if(!t)return h=new Array(this.size()),s=-1,this.each(function(t){h[++s]=t}),h;var e=n?m:v,r=this._parents,o=this._groups;"function"!=typeof t&&(t=_t(t));for(var i=o.length,l=new Array(i),u=new Array(i),a=new Array(i),s=0;s<i;++s){var c=r[s],f=o[s],p=f.length,h=t.call(c,c&&c.__data__,s,r),y=h.length,d=u[s]=new Array(y),g=l[s]=new Array(y);e(c,f,d,g,a[s]=new Array(p),h,n);for(var _,w,x=0,b=0;x<y;++x)if(_=d[x]){for(x>=b&&(b=x+1);!(w=g[b])&&++b<y;);_._next=w||null}}return l=new Z(l,r),l._enter=u,l._exit=a,l},enter:function(){return new Z(this._enter||this._groups.map(gt),this._parents)},exit:function(){return new Z(this._exit||this._groups.map(gt),this._parents)},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,o=e.length,i=Math.min(r,o),l=new Array(r),u=0;u<i;++u)for(var a,s=n[u],c=e[u],f=s.length,p=l[u]=new Array(f),h=0;h<f;++h)(a=s[h]||c[h])&&(p[h]=a);for(;u<r;++u)l[u]=n[u];return new Z(l,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,o=t[n],i=o.length-1,l=o[i];--i>=0;)(r=o[i])&&(l&&l!==r.nextSibling&&l.parentNode.insertBefore(r,l),l=r);return this},sort:function(t){t||(t=g);for(var n=this._groups,e=n.length,r=new Array(e),o=0;o<e;++o){for(var i,l=n[o],u=l.length,a=r[o]=new Array(u),s=0;s<u;++s)(i=l[s])&&(a[s]=i);a.sort(function(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e})}return new Z(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],o=0,i=r.length;o<i;++o){var l=r[o];if(l)return l}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var o,i=n[e],l=0,u=i.length;l<u;++l)(o=i[l])&&t.call(o,o.__data__,l,i);return this},attr:function(t,n){var e=at(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?w:_:"function"==typeof n?e.local?E:S:e.local?b:x)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?k:"function"==typeof n?A:C)(t,n,null==e?"":e)):N(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?T:"function"==typeof n?O:V)(t,n)):this.node()[t]},classed:function(t,n){var e=L(t+"");if(arguments.length<2){for(var r=F(this.node()),o=-1,i=e.length;++o<i;)if(!r.contains(e[o]))return!1;return!0}return this.each(("function"==typeof n?z:n?I:$)(e,n))},text:function(t){return arguments.length?this.each(null==t?B:("function"==typeof t?j:H)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?U:("function"==typeof t?q:W)(t)):this.node().innerHTML},raise:function(){return this.each(J)},lower:function(){return this.each(R)},append:function(t){var n="function"==typeof t?t:st(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e="function"==typeof t?t:st(t),r=null==n?G:"function"==typeof n?n:vt(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(X)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,o,i=c(t+""),l=i.length;{if(!(arguments.length<2)){for(u=n?p:f,null==e&&(e=!1),r=0;r<l;++r)this.each(u(i[r],n,e));return this}var u=this.node().__on;if(u)for(var a,s=0,h=u.length;s<h;++s)for(r=0,a=u[s];r<l;++r)if((o=i[r]).type===a.type&&o.name===a.name)return a.value}},dispatch:function(t,n){return this.each(("function"==typeof n?Y:Q)(t,n))}};var St=function(t){return"string"==typeof t?new Z([[document.querySelector(t)]],[document.documentElement]):new Z([[t]],bt)};nt.prototype=et.prototype={constructor:nt,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var Et=et.prototype;rt.prototype=function(t,n){var e=new rt;if(t instanceof rt)t.each(function(t){e.add(t)});else if(t){var r=-1,o=t.length;if(null==n)for(;++r<o;)e.add(t[r]);else for(;++r<o;)e.add(n(t[r],r,t))}return e}.prototype={constructor:rt,has:Et.has,add:function(t){return t+="",this["$"+t]=t,this},remove:Et.remove,clear:Et.clear,values:Et.keys,size:Et.size,empty:Et.empty,each:Et.each};var kt=Object.freeze({tip:ot});!function(t,n){if("undefined"==typeof document)return n;t=t||"";var e=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}('.d3-tip {\r\n line-height: 1;\r\n font-weight: bold;\r\n padding: 12px;\r\n background: rgba(0, 0, 0, 0.66);\r\n color: #fff;\r\n border-radius: 2px;\r\n pointer-events: none !important;\r\n z-index:10;\r\n}\r\n\r\n.d3-tip.hidden {\r\n visibility:hidden;\r\n}\r\n\r\n/* Creates a small triangle extender for the tooltip */\r\n.d3-tip:after {\r\n box-sizing: border-box;\r\n display: inline;\r\n font-size: 10px;\r\n width: 100%;\r\n line-height: 1;\r\n color: rgba(0, 0, 0, 0.66);\r\n position: absolute;\r\n pointer-events: none !important;\r\n}\r\n\r\n/* Northward tooltips */\r\n.d3-tip.n:after {\r\n content: "\\25BC";\r\n margin: -1px 0 0 0;\r\n top: 100%;\r\n left: 0;\r\n text-align: center;\r\n}\r\n\r\n/* Eastward tooltips */\r\n.d3-tip.e:after {\r\n content: "\\25C0";\r\n margin: -4px 0 0 0;\r\n top: 50%;\r\n left: -8px;\r\n}\r\n\r\n/* Southward tooltips */\r\n.d3-tip.s:after {\r\n content: "\\25B2";\r\n margin: 0 0 1px 0;\r\n top: -8px;\r\n left: 0;\r\n text-align: center;\r\n}\r\n\r\n/* Westward tooltips */\r\n.d3-tip.w:after {\r\n content: "\\25B6";\r\n margin: -4px 0 0 -1px;\r\n top: 50%;\r\n left: 100%;\r\n}\r\n\r\n.d3-tip.notick:after {\r\n content: "" !important;\r\n}\r\n\r\n.common_Widget .over {\r\n stroke: rgba(0, 0, 0, 0.66);\r\n opacity: 0.66;\r\n}\r\n',void 0);var Ct=ot||void 0||kt,At=function(t){function e(){var e=t.call(this)||this;if(e._valueFormatter=n.format(e.tooltipValueFormat()),e.layerEnter){var r=e.layerEnter;e.layerEnter=function(t,n,e){this.tooltipEnter(n),r.apply(this,arguments)};var o=e.layerUpdate;e.layerUpdate=function(t){o.apply(this,arguments),this.tooltipUpdate()};var i=e.layerExit;e.layerExit=function(t){i.apply(this,arguments),this.tooltipExit()}}else{var l=e.enter;e.enter=function(t,n){this.tooltipEnter(n),l.apply(this,arguments)};var u=e.update;e.update=function(t,n){u.apply(this,arguments),this.tooltipUpdate()};var a=e.exit;e.exit=function(t,n){a.apply(this,arguments),this.tooltipExit()}}return e}return n.__extends(e,t),e.prototype.tooltipEnter=function(t){var n=this;this.tooltip=Ct().attr("class","d3-tip").offset(function(){switch(n.tooltip.direction()()){case"e":return[0,n.tooltipOffset()];default:return[-n.tooltipOffset(),0]}}),t.call(this.tooltip)},e.prototype.tooltipUpdate=function(){var t=this.tooltip.attr("class");t&&(t=t.split(" notick").join("")+(this.tooltipTick()?"":" notick")+("none"===this.tooltipStyle()?" hidden":""),this.tooltip.attr("class",t))},e.prototype.tooltipExit=function(){this.tooltip&&this.tooltip.destroy()},e.prototype._tooltipHTML=function(t){return t},e.prototype.tooltipHTML=function(t){return this.tooltip.html(t)},e.prototype.tooltipFormat=function(t){switch(t=t||{},t.label=t.label||"",t.series=t.series||"",t.value instanceof Date?t.value=t.value||"":t.value=this._valueFormatter(t.value)||"",this.tooltipStyle()){case"none":break;default:return t.series?"<span style='color:"+this.tooltipSeriesColor()+"'>"+t.series+"</span> / <span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>":"<span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>"}},e}(n.Widget);At.prototype.publish("tooltipStyle","default","set","Style",["default","none"],{}),At.prototype.publish("tooltipValueFormat",",.2f","string","Value Format",null,{}),At.prototype.publish("tooltipSeriesColor","#EAFFFF","html-color","Series Color",null,{}),At.prototype.publish("tooltipLabelColor","#CCFFFF","html-color","Label Color",null,{}),At.prototype.publish("tooltipValueColor","white","html-color","Value Color",null,{}),At.prototype.publish("tooltipTick",!0,"boolean","Show tooltip tick",null,{}),At.prototype.publish("tooltipOffset",8,"number","Offset from the cursor",null,{});var Nt=At.prototype.tooltipValueFormat;At.prototype.tooltipValueFormat=function(t){var e=Nt.apply(this,arguments);return arguments.length&&(this._valueFormatter=n.format(t)),e};var Tt=function(){function t(){}return t.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},t.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)},t}();Tt.prototype._palette=n.Palette.ordinal("default"),t.I1DChart=e,t.I2DChart=r,t.IGraph=o,t.IInput=it,t.INDChart=i,t.ITooltip=At,t.ITree=Tt,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=api.min.js.map
import { Widget } from "@hpcc-js/common";
export declare class IInput extends Widget {
export declare abstract class IInput extends Widget {
_inputElement: any;
constructor();
abstract target(): any;
abstract target(_: any): this;
isValid(): boolean;

@@ -6,0 +8,0 @@ hasValue(): boolean;

import { Widget } from "@hpcc-js/common";
import "../src/ITooltip.css";
export declare class ITooltip extends Widget {
export declare abstract class ITooltip extends Widget {
protected _valueFormatter: any;

@@ -10,2 +10,4 @@ layerEnter: any;

constructor();
abstract target(): any;
abstract target(_: any): this;
tooltipEnter(element: any): void;

@@ -12,0 +14,0 @@ tooltipUpdate(): void;

@@ -64,5 +64,7 @@ import * as tslib_1 from "tslib";

var classed = this.tooltip.attr("class");
classed = classed.split(" notick").join("") + (this.tooltipTick() ? "" : " notick") + (this.tooltipStyle() === "none" ? " hidden" : "");
this.tooltip
.attr("class", classed);
if (classed) {
classed = classed.split(" notick").join("") + (this.tooltipTick() ? "" : " notick") + (this.tooltipStyle() === "none" ? " hidden" : "");
this.tooltip
.attr("class", classed);
}
};

@@ -69,0 +71,0 @@ ITooltip.prototype.tooltipExit = function () {

import { Widget } from "@hpcc-js/common";
export declare class IInput extends Widget {
export declare abstract class IInput extends Widget {
_inputElement: any;
constructor();
abstract target(): any;
abstract target(_: any): this;
isValid(): boolean;

@@ -6,0 +8,0 @@ hasValue(): boolean;

import { Widget } from "@hpcc-js/common";
import "../src/ITooltip.css";
export declare class ITooltip extends Widget {
export declare abstract class ITooltip extends Widget {
protected _valueFormatter: any;

@@ -10,2 +10,4 @@ layerEnter: any;

constructor();
abstract target(): any;
abstract target(_: any): this;
tooltipEnter(element: any): void;

@@ -12,0 +14,0 @@ tooltipUpdate(): void;

@@ -75,5 +75,7 @@ (function (factory) {

var classed = this.tooltip.attr("class");
classed = classed.split(" notick").join("") + (this.tooltipTick() ? "" : " notick") + (this.tooltipStyle() === "none" ? " hidden" : "");
this.tooltip
.attr("class", classed);
if (classed) {
classed = classed.split(" notick").join("") + (this.tooltipTick() ? "" : " notick") + (this.tooltipStyle() === "none" ? " hidden" : "");
this.tooltip
.attr("class", classed);
}
};

@@ -80,0 +82,0 @@ ITooltip.prototype.tooltipExit = function () {

{
"name": "@hpcc-js/api",
"version": "0.0.35",
"version": "0.0.36",
"description": "hpcc-js - Viz api",

@@ -21,3 +21,3 @@ "main": "lib/index.js",

"dependencies": {
"@hpcc-js/common": "^0.0.35",
"@hpcc-js/common": "^0.0.36",
"d3-format": "^1.2.0",

@@ -28,6 +28,6 @@ "d3-tip": "GordonSmith/d3-tip#vJSNEXT",

"devDependencies": {
"@hpcc-js/bundle": "^0.0.8",
"@hpcc-js/bundle": "^0.0.9",
"rimraf": "^2.6.1",
"typedoc": "^0.7.1",
"typescript": "^2.4.1"
"typescript": "^2.4.2"
},

@@ -34,0 +34,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc