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 2.8.0 to 2.8.2

16

CHANGELOG.md

@@ -6,2 +6,18 @@ # Change Log

## [2.8.2](https://github.com/hpcc-systems/Visualization/compare/@hpcc-js/api@2.8.1...@hpcc-js/api@2.8.2) (2019-08-30)
**Note:** Version bump only for package @hpcc-js/api
## [2.8.1](https://github.com/hpcc-systems/Visualization/compare/@hpcc-js/api@2.8.0...@hpcc-js/api@2.8.1) (2019-08-30)
**Note:** Version bump only for package @hpcc-js/api
# [2.8.0](https://github.com/hpcc-systems/Visualization/compare/@hpcc-js/api@2.7.16...@hpcc-js/api@2.8.0) (2019-08-13)

@@ -8,0 +24,0 @@

2

dist/index.min.js

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

!function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],o):o((t=t||self)["@hpcc-js/api"]={},t["@hpcc-js/common"])}(this,function(t,o){"use strict";function e(){}function r(){}function l(){}function i(){}e.prototype._dataFamily="1D",e.prototype._palette=o.Palette.rainbow("default"),e.prototype.click=function(t,o,e){console.log("Click: "+JSON.stringify(t)+", "+o+", "+e)},e.prototype.dblclick=function(t,o,e){console.log("Double click: "+JSON.stringify(t)+", "+o+", "+e)},r.prototype._dataFamily="2D",r.prototype._palette=o.Palette.ordinal("default"),r.prototype.fillColor=function(t,o,e){return this._palette(t[0])},r.prototype.strokeColor=function(t,e,r){return o.hsl(this.fillColor(t,e,r)).darker().toString()},r.prototype.textColor=function(t,e,r){return o.Palette.textColor(this.fillColor(t,e,r))},r.prototype.click=function(t,o,e){console.log("Click: "+JSON.stringify(t)+", "+o+", "+e)},r.prototype.dblclick=function(t,o,e){console.log("Double click: "+JSON.stringify(t)+", "+o+", "+e)},l.prototype._palette=o.Palette.rainbow("default"),l.prototype.fillColor=function(t,o,e){return this._palette(t.length)},l.prototype.strokeColor=function(t,e,r){return o.hsl(this.fillColor(t,e,r)).darker().toString()},l.prototype.textColor=function(t,e,r){return o.Palette.textColor(this.fillColor(t,e,r))},l.prototype.click=function(t,o,e){console.log("Click: "+JSON.stringify(t)+", "+o+", "+e)},l.prototype.dblclick=function(t,o,e){console.log("Double click: "+JSON.stringify(t)+", "+o+", "+e)},i.prototype._dataFamily="graph",i.prototype.vertex_click=function(t,o,e,r){r&&r.vertex&&console.log("Vertex click: "+r.vertex.id())},i.prototype.vertex_dblclick=function(t,o,e,r){r&&r.vertex&&console.log("Vertex double click: "+r.vertex.id())},i.prototype.edge_click=function(t,o,e,r){r&&r.edge&&console.log("Edge click: "+r.edge.id())},i.prototype.edge_dblclick=function(t,o,e,r){r&&r.edge&&console.log("Edge double click: "+r.edge.id())};var n=function(t,o){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e])})(t,o)};function p(t,o){function e(){this.constructor=t}n(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}var a=function(t){function o(){return t.call(this)||this}return p(o,t),o.prototype.isValid=function(){if(this.validate()&&!new RegExp(this.validate()).test(this.value()))return!1;return!0},o.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()},o.prototype.blur=function(t){},o.prototype.keyup=function(t){},o.prototype.focus=function(t){},o.prototype.click=function(t){},o.prototype.dblclick=function(t){},o.prototype.change=function(t,o){},o.prototype.resetValue=function(t){t.value(t._inputElement[0].node().value)},o.prototype.disable=function(t){this._inputElement.forEach(function(o,e){o.attr("disabled",t?"disabled":null)})},o.prototype.setFocus=function(){this._inputElement.length&&this._inputElement[0].node().focus()},o}(o.Widget);function s(){}a.prototype.publish("name","","string","HTML name for the input"),a.prototype.publish("label","","string","Descriptive label"),a.prototype.publish("value","","string","Input Current Value"),a.prototype.publish("validate",null,"string","Input Validation"),s.prototype._dataFamily="ND",s.prototype._palette=o.Palette.ordinal("default"),s.prototype.fillColor=function(t,o,e){return this._palette(o)},s.prototype.strokeColor=function(t,e,r){return o.hsl(this.fillColor(t,e,r)).darker().toString()},s.prototype.textColor=function(t,e,r){return o.Palette.textColor(this.fillColor(t,e,r))},s.prototype.click=function(t,o,e){console.log("Click: "+JSON.stringify(t)+", "+o+", "+e)},s.prototype.dblclick=function(t,o,e){console.log("Double click: "+JSON.stringify(t)+", "+o+", "+e)};!function(t,o){void 0===o&&(o={});var e=o.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===e&&r.firstChild?r.insertBefore(l,r.firstChild):r.appendChild(l),l.styleSheet?l.styleSheet.cssText=t:l.appendChild(document.createTextNode(t))}}('.d3-tip{line-height:1;font-weight:700;padding:12px;background:rgba(0,0,0,.66);color:#fff;border-radius:2px;pointer-events:none!important;z-index:10}.d3-tip.hidden{visibility:hidden}.d3-tip:after{content:" ";box-sizing:border-box;display:inline-block;border:4px solid rgba(0,0,0,.66);position:absolute;pointer-events:none!important;width:8px;height:8px;margin:0}.d3-tip.n:after{top:100%;left:calc(50% - 4px);border-top-width:8px;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}.d3-tip.e:after{top:calc(50% - 4px);left:-12px;border-top-color:transparent;border-right-width:8px;border-bottom-color:transparent;border-left-color:transparent}.d3-tip.s{margin-top:8px}.d3-tip.s:after{top:-12px;left:calc(50% - 4px);border-top-color:transparent;border-right-color:transparent;border-bottom-width:8px;border-left-color:transparent}.d3-tip.w:after{top:calc(50% - 4px);left:100%;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-width:8px}.d3-tip.notick:after{border-color:transparent!important}.common_Widget .over{stroke:rgba(0,0,0,.66);opacity:.66}.d3-tip.ITooltip-tooltipStyle-series-table{padding:0}.d3-tip .ITooltip-series-table td,.d3-tip .ITooltip-series-table th{padding:6px;text-align:left;border:1px solid #d1d1d1}.d3-tip .ITooltip-series-table .series-table-row-color{display:inline-block;height:10px;width:10px;margin-right:10px}.d3-tip .ITooltip-series-table .series-table-row-label{display:inline-block}.d3-tip .ITooltip-series-table th{background-color:#b3b3b3}.d3-tip .ITooltip-series-table td{background-color:#fff;color:#555;font-weight:400}.d3-tip .ITooltip-series-table td:first-child{border-right:0}table.ITooltip-series-table td:last-child{border-left:1px dotted #a3a3a3}');var c=function(t){function e(){var e=t.call(this)||this;if(e.tooltip=function(){var t=function(){return"n"},e=function(){return[0,0]},r=function(){return" "},l=h(document.body),i=f(),n=null,p=null,a=null,s=function(t){var o;if(o=t.node(),n=o?"svg"===o.tagName.toLowerCase()?o:o.ownerSVGElement:null){p=n.createSVGPoint();var e=l();e&&i&&e.appendChild(i)}};s.show=function(t,o,i){a=i[o];var n=Array.prototype.slice.call(arguments),p=r.apply(this,n);if(null===p)return s;var f,y=e.apply(this,n),h=d(),b=u.length,g=l().getBoundingClientRect();for(h.html(p).style("opacity",1).style("pointer-events","all");b--;)h.classed(u[b],!1);for(var v,m=!1,x={},w=u[0],k=0;k<u.length&&!(m=T(u[k]));k++);if(m)h.classed("notick",!1);else{h.classed("notick",!0);var C=(v=x[w]).top>v.bottom?v.top>0?-v.top:0:v.bottom,_=function(t){return t.left>t.right?t.left>0?-t.left:0:t.right>0?t.right:0}(x[w]);T(w,C,_)}return s;function T(t,o,e){o=o||0,e=e||0,h.style("white-space","nowrap"),f=c.get(t).apply(this),h.classed(t,!0).style("top",f.top+y[0]-o+"px").style("left",f.left+y[1]-e+"px");var r=h.node().getBoundingClientRect(),l=r.top>g.top&&r.left>g.left&&r.bottom<g.bottom&&r.right<g.right;return x[t]={top:g.top-r.top,right:r.right-g.right,bottom:r.bottom-g.bottom,left:g.left-r.left},h.style("white-space","normal"),x[t].total_overflow=Object.keys(x[t]).filter(function(o){return x[t][o]>0}).reduce(function(o,e){return o+x[t][e]},0),x[w].total_overflow>x[t].total_overflow&&(w=t),l||h.classed(t,!1),l}},s.hide=function(){return d().style("opacity",0).style("pointer-events","none"),s},s.attr=function(t,e){if(arguments.length<2&&"string"==typeof t)return d().attr(t);var r=Array.prototype.slice.call(arguments);return o.selection.prototype.attr.apply(d(),r),s},s.style=function(t,e){if(arguments.length<2&&"string"==typeof t)return d().style(t);var r=Array.prototype.slice.call(arguments);return o.selection.prototype.style.apply(d(),r),s},s.direction=function(o){return arguments.length?(t=null==o?o:h(o),s):t},s.offset=function(t){return arguments.length?(e=null==t?t:h(t),s):e},s.html=function(t){return arguments.length?(r=null==t?t:h(t),s):r},s.rootElement=function(t){return arguments.length?(l=h(t),s):l},s.destroy=function(){return i&&(d().remove(),i=null),s};var c=o.map({n:function(){var t=y(window);return{top:t.n.y-i.offsetHeight,left:t.n.x-i.offsetWidth/2}},s:function(){var t=y(window);return{top:t.s.y+8,left:t.s.x-i.offsetWidth/2}},e:function(){var t=y(window);return{top:t.e.y-i.offsetHeight/2,left:t.e.x+8}},w:function(){var t=y(window);return{top:t.w.y-i.offsetHeight/2,left:t.w.x-i.offsetWidth-8}},nw:function(){var t=y(window);return{top:t.nw.y-i.offsetHeight,left:t.nw.x-i.offsetWidth}},ne:function(){var t=y(window);return{top:t.ne.y-i.offsetHeight,left:t.ne.x}},sw:function(){var t=y(window);return{top:t.sw.y,left:t.sw.x-i.offsetWidth}},se:function(){var t=y(window);return{top:t.se.y,left:t.se.x}}}),u=c.keys();function f(){var t=o.select(document.createElement("div"));return t.attr("class","d3-tip").style("position","absolute").style("top","0px").style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),t.node()}function d(){return null==i&&(i=f(),l().appendChild(i)),o.select(i)}function y(t){for(var o=a||t;null==o.getCTM&&null!=o.parentNode;)o=o.parentNode;var e={},r=o.getCTM(),l=o.getBBox(),i=l.width,n=l.height,s=l.x,c=l.y;return p.x=s,p.y=c,e.nw=p.matrixTransform(r),p.x+=i,e.ne=p.matrixTransform(r),p.y+=n,e.se=p.matrixTransform(r),p.x-=i,e.sw=p.matrixTransform(r),p.y-=n/2,e.w=p.matrixTransform(r),p.x+=i,e.e=p.matrixTransform(r),p.x-=i/2,p.y-=n/2,e.n=p.matrixTransform(r),p.y+=n,e.s=p.matrixTransform(r),e}function h(t){return"function"==typeof t?t:function(){return t}}return s}(),e._valueFormatter=o.format(e.tooltipValueFormat()),e.layerEnter){var r=e.layerEnter;e.layerEnter=function(t,o,e){this._parentOverlay||(this._parentOverlay=t._parentOverlay),this.tooltipEnter(o),r.apply(this,arguments)};var l=e.layerUpdate;e.layerUpdate=function(t){l.apply(this,arguments),this.tooltipUpdate()};var i=e.layerExit;e.layerExit=function(t){this.tooltipExit(),i.apply(this,arguments)}}else{var n=e.enter;e.enter=function(t,o){this.tooltipEnter(o),n.apply(this,arguments)};var p=e.update;e.update=function(t,o){p.apply(this,arguments),this.tooltipUpdate()};var a=e.exit;e.exit=function(t,o){this.tooltipExit(),a.apply(this,arguments)}}return e}return p(e,t),e.prototype.tooltipEnter=function(t){var o=this.parentOverlay();o.empty()||this.tooltip.rootElement(o.node().parentNode),t.call(this.tooltip)},e.prototype.tooltipUpdate=function(){var t=this;this.tooltip.offset(function(){if(event&&t.tooltipFollowMouse()){var o=document.querySelector(".d3-tip");return o.style.display="block",o.style.left=t.tooltipOffset()+event.clientX+"px",o.style.top=event.clientY+"px",[]}switch(t.tooltip.direction()()){case"e":return[0,t.tooltipOffset()];default:return[-t.tooltipOffset(),0]}});var o=this.tooltip.attr("class");o&&(o=(o=o.split(" notick").join("")+(this.tooltipTick()?"":" notick")+("none"===this.tooltipStyle()?" hidden":"")).split(" ").filter(function(t){return 0!==t.indexOf("ITooltip-tooltipStyle-")}).join(" "),o+=" ITooltip-tooltipStyle-"+this.tooltipStyle(),this.tooltip.attr("class",o))},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(void 0===t&&(t={}),t.label=void 0===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;case"series-table":var o='<table class="ITooltip-series-table"><thead><tr><th colspan="2">'+t.label+"</th></tr></thead><tbody>";return t.arr.forEach(function(t){o+="<tr>",o+="<td>",o+='<div class="series-table-row-color" style="background-color:'+t.color+'"></div>',o+='<div class="series-table-row-label">'+t.label+"</div>",o+="</td>",o+='<td><div class="series-table-row-value">'+t.value+"</div></td>",o+="</tr>"}),o+="</tbody>",o+="</table>";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>":""!==t.label?"<span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>":"<span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>"}},e.prototype.tooltipKeyValueFormat=function(t,o){var e="";for(var r in o)if(r!==t){var l=o&&o[r]?o[r]:"";e+='<tr><td style="'+(this.tooltipLabelColor_exists()?"color:"+this.tooltipLabelColor():"")+'">'+r+'</td><td style="font-weight:normal">'+l+"</td></tr>"}return'<table>\n <thead>\n <tr><th colspan="2" style="font-weight:bold;font-size:16px">'+o[t]+"</th></tr>\n </thead>\n <tbody>\n "+e+"\n </tbody>\n </table>"},e}(o.Widget);c.prototype.publish("tooltipStyle","default","set","Style mode",["default","none","series-table"],{}),c.prototype.publish("tooltipFollowMouse",!1,"boolean","If true, the tooltip will follow mouse movement",null,{}),c.prototype.publish("tooltipValueFormat",",.2f","string","Number format of tooltip value(s)",null,{}),c.prototype.publish("tooltipSeriesColor","#EAFFFF","html-color","Color of tooltip series text",null,{}),c.prototype.publish("tooltipLabelColor","#CCFFFF","html-color","Color of tooltip label text",null,{}),c.prototype.publish("tooltipValueColor","white","html-color","Color of tooltip value(s)",null,{}),c.prototype.publish("tooltipTick",!0,"boolean","Show tooltip tick",null,{}),c.prototype.publish("tooltipOffset",8,"number","Offset from the cursor",null,{});var u=c.prototype.tooltipValueFormat;c.prototype.tooltipValueFormat=function(t){var e=u.apply(this,arguments);return arguments.length&&(this._valueFormatter=o.format(t)),e};var f=function(){function t(){}return t.prototype.click=function(t,o,e){console.log("Click: "+JSON.stringify(t)+", "+o+", "+e)},t.prototype.dblclick=function(t,o,e){console.log("Double click: "+JSON.stringify(t)+", "+o+", "+e)},t}();f.prototype._palette=o.Palette.ordinal("default"),t.BUILD_VERSION="2.9.0",t.I1DChart=e,t.I2DAggrChart=l,t.I2DChart=r,t.IGraph=i,t.IInput=a,t.INDChart=s,t.ITooltip=c,t.ITree=f,t.PKG_NAME="@hpcc-js/api",t.PKG_VERSION="2.8.0",t.instanceOfIHighlight=function(t){return"function"==typeof t.highlightColumn},Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],e):e((t=t||self)["@hpcc-js/api"]={},t["@hpcc-js/common"])}(this,function(t,e){"use strict";function n(){}function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function o(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function i(){}n.prototype._dataFamily="1D",n.prototype._palette=e.Palette.rainbow("default"),n.prototype.click=function(t,e,n){console.log("Click: "+JSON.stringify(t)+", "+e+", "+n)},n.prototype.dblclick=function(t,e,n){console.log("Double click: "+JSON.stringify(t)+", "+e+", "+n)};var l="\\s*([+-]?\\d+)\\s*",a="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3})$/,c=/^#([0-9a-f]{6})$/,h=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),p=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=new RegExp("^rgba\\("+[l,l,l,a]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,a]+"\\)$"),y=new RegExp("^hsl\\("+[a,s,s]+"\\)$"),g=new RegExp("^hsla\\("+[a,s,s,a]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function v(t){var e;return t=(t+"").trim().toLowerCase(),(e=u.exec(t))?new x((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=c.exec(t))?b(parseInt(e[1],16)):(e=h.exec(t))?new x(e[1],e[2],e[3],1):(e=p.exec(t))?new x(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?w(e[1],e[2],e[3],e[4]):(e=d.exec(t))?w(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=y.exec(t))?N(e[1],e[2]/100,e[3]/100,1):(e=g.exec(t))?N(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?b(m[t]):"transparent"===t?new x(NaN,NaN,NaN,0):null}function b(t){return new x(t>>16&255,t>>8&255,255&t,1)}function w(t,e,n,r){return r<=0&&(t=e=n=NaN),new x(t,e,n,r)}function _(t){return t instanceof i||(t=v(t)),t?new x((t=t.rgb()).r,t.g,t.b,t.opacity):new x}function x(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function k(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function N(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new C(t,e,n,r)}function M(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=v(t)),!t)return new C;if(t instanceof C)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),l=Math.max(e,n,r),a=NaN,s=l-o,u=(l+o)/2;return s?(a=e===l?(n-r)/s+6*(n<r):n===l?(r-e)/s+2:(e-n)/s+4,s/=u<.5?l+o:2-l-o,a*=60):s=u>0&&u<1?0:a,new C(a,s,u,t.opacity)}(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function E(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}r(i,v,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),r(x,function(t,e,n,r){return 1===arguments.length?_(t):new x(t,e,n,null==r?1:r)},o(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new x(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new x(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+k(this.r)+k(this.g)+k(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),r(C,M,o(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new x(E(t>=240?t-240:t+120,o,r),E(t,o,r),E(t<120?t+240:t-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var S=Math.PI/180,A=180/Math.PI,O=.96422,T=1,I=.82521,P=4/29,F=6/29,$=3*F*F,V=F*F*F;function j(t){if(t instanceof D)return new D(t.l,t.a,t.b,t.opacity);if(t instanceof R){if(isNaN(t.h))return new D(t.l,0,0,t.opacity);var e=t.h*S;return new D(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof x||(t=_(t));var n,r,o=B(t.r),i=B(t.g),l=B(t.b),a=L((.2225045*o+.7168786*i+.0606169*l)/T);return o===i&&i===l?n=r=a:(n=L((.4360747*o+.3850649*i+.1430804*l)/O),r=L((.0139322*o+.0971045*i+.7141733*l)/I)),new D(116*a-16,500*(n-a),200*(a-r),t.opacity)}function D(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function L(t){return t>V?Math.pow(t,1/3):t/$+P}function q(t){return t>F?t*t*t:$*(t-P)}function z(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function B(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function R(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}r(D,function(t,e,n,r){return 1===arguments.length?j(t):new D(t,e,n,null==r?1:r)},o(i,{brighter:function(t){return new D(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new D(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new x(z(3.1338561*(e=O*q(e))-1.6168667*(t=T*q(t))-.4906146*(n=I*q(n))),z(-.9787684*e+1.9161415*t+.033454*n),z(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),r(R,function(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof R)return new R(t.h,t.c,t.l,t.opacity);if(t instanceof D||(t=j(t)),0===t.a&&0===t.b)return new R(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*A;return new R(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new R(t,e,n,null==r?1:r)},o(i,{brighter:function(t){return new R(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new R(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return j(this).rgb()}}));var H=-.14861,U=1.78277,J=-.29227,W=-.90649,G=1.97294,X=G*W,K=G*U,Y=U*J-W*H;function Z(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Q(){}function tt(){}function et(){}r(Z,function(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Z)return new Z(t.h,t.s,t.l,t.opacity);t instanceof x||(t=_(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(Y*r+X*e-K*n)/(Y+X-K),i=r-o,l=(G*(n-o)-J*i)/W,a=Math.sqrt(l*l+i*i)/(G*o*(1-o)),s=a?Math.atan2(l,i)*A-120:NaN;return new Z(s<0?s+360:s,a,o,t.opacity)}(t):new Z(t,e,n,null==r?1:r)},o(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Z(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Z(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*S,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),o=Math.sin(t);return new x(255*(e+n*(H*r+U*o)),255*(e+n*(J*r+W*o)),255*(e+n*(G*r)),this.opacity)}})),Q.prototype._dataFamily="2D",Q.prototype._palette=e.Palette.ordinal("default"),Q.prototype.fillColor=function(t,e,n){return this._palette(t[0])},Q.prototype.strokeColor=function(t,e,n){return M(this.fillColor(t,e,n)).darker().toString()},Q.prototype.textColor=function(t,n,r){return e.Palette.textColor(this.fillColor(t,n,r))},Q.prototype.click=function(t,e,n){console.log("Click: "+JSON.stringify(t)+", "+e+", "+n)},Q.prototype.dblclick=function(t,e,n){console.log("Double click: "+JSON.stringify(t)+", "+e+", "+n)},tt.prototype._palette=e.Palette.rainbow("default"),tt.prototype.fillColor=function(t,e,n){return this._palette(t.length)},tt.prototype.strokeColor=function(t,e,n){return M(this.fillColor(t,e,n)).darker().toString()},tt.prototype.textColor=function(t,n,r){return e.Palette.textColor(this.fillColor(t,n,r))},tt.prototype.click=function(t,e,n){console.log("Click: "+JSON.stringify(t)+", "+e+", "+n)},tt.prototype.dblclick=function(t,e,n){console.log("Double click: "+JSON.stringify(t)+", "+e+", "+n)},et.prototype._dataFamily="graph",et.prototype.vertex_click=function(t,e,n,r){r&&r.vertex&&console.log("Vertex click: "+r.vertex.id())},et.prototype.vertex_dblclick=function(t,e,n,r){r&&r.vertex&&console.log("Vertex double click: "+r.vertex.id())},et.prototype.edge_click=function(t,e,n,r){r&&r.edge&&console.log("Edge click: "+r.edge.id())},et.prototype.edge_dblclick=function(t,e,n,r){r&&r.edge&&console.log("Edge double click: "+r.edge.id())};var nt=function(t,e){return(nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function rt(t,e){function n(){this.constructor=t}nt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var ot=function(t){function e(){return t.call(this)||this}return rt(e,t),e.prototype.isValid=function(){if(this.validate()&&!new RegExp(this.validate()).test(this.value()))return!1;return!0},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.keyup=function(t){},e.prototype.focus=function(t){},e.prototype.click=function(t){},e.prototype.dblclick=function(t){},e.prototype.change=function(t,e){},e.prototype.resetValue=function(t){t.value(t._inputElement[0].node().value)},e.prototype.disable=function(t){this._inputElement.forEach(function(e,n){e.attr("disabled",t?"disabled":null)})},e.prototype.setFocus=function(){this._inputElement.length&&this._inputElement[0].node().focus()},e}(e.Widget);function it(){}function lt(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}ot.prototype.publish("name","","string","HTML name for the input"),ot.prototype.publish("label","","string","Descriptive label"),ot.prototype.publish("value","","string","Input Current Value"),ot.prototype.publish("validate",null,"string","Input Validation"),it.prototype._dataFamily="ND",it.prototype._palette=e.Palette.ordinal("default"),it.prototype.fillColor=function(t,e,n){return this._palette(e)},it.prototype.strokeColor=function(t,e,n){return M(this.fillColor(t,e,n)).darker().toString()},it.prototype.textColor=function(t,n,r){return e.Palette.textColor(this.fillColor(t,n,r))},it.prototype.click=function(t,e,n){console.log("Click: "+JSON.stringify(t)+", "+e+", "+n)},it.prototype.dblclick=function(t,e,n){console.log("Double click: "+JSON.stringify(t)+", "+e+", "+n)};var at,st=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ut(t){return new ct(t)}function ct(t){if(!(e=st.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}function ht(t,e){var n=lt(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}ut.prototype=ct.prototype,ct.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var pt={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return ht(100*t,e)},r:ht,s:function(t,e){var n=lt(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(at=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=r.length;return i===l?r:i>l?r+new Array(i-l+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+lt(t,Math.max(0,e+i-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function ft(t){return t}var dt,yt,gt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function mt(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var o=t.length,i=[],l=0,a=e[0],s=0;o>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),i.push(t.substring(o-=a,o+a)),!((s+=a+1)>r));)a=e[l=(l+1)%e.length];return i.reverse().join(n)}):ft,o=t.currency,i=t.decimal,l=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):ft,a=t.percent||"%";function s(t){var e=(t=ut(t)).fill,n=t.align,s=t.sign,u=t.symbol,c=t.zero,h=t.width,p=t.comma,f=t.precision,d=t.trim,y=t.type;"n"===y?(p=!0,y="g"):pt[y]||(null==f&&(f=12),d=!0,y="g"),(c||"0"===e&&"="===n)&&(c=!0,e="0",n="=");var g="$"===u?o[0]:"#"===u&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",m="$"===u?o[1]:/[%p]/.test(y)?a:"",v=pt[y],b=/[defgprs%]/.test(y);function w(t){var o,a,u,w=g,_=m;if("c"===y)_=v(t)+_,t="";else{var x=(t=+t)<0;if(t=v(Math.abs(t),f),d&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=e=r;break;case"0":0===o&&(o=r),e=r;break;default:if(o>0){if(!+t[r])break t;o=0}}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),x&&0==+t&&(x=!1),w=(x?"("===s?s:"-":"-"===s||"("===s?"":s)+w,_=("s"===y?gt[8+at/3]:"")+_+(x&&"("===s?")":""),b)for(o=-1,a=t.length;++o<a;)if(48>(u=t.charCodeAt(o))||u>57){_=(46===u?i+t.slice(o+1):t.slice(o))+_,t=t.slice(0,o);break}}p&&!c&&(t=r(t,1/0));var k=w.length+t.length+_.length,N=k<h?new Array(h-k+1).join(e):"";switch(p&&c&&(t=r(N+t,N.length?h-_.length:1/0),N=""),n){case"<":t=w+t+_+N;break;case"=":t=w+N+t+_;break;case"^":t=N.slice(0,k=N.length>>1)+w+t+_+N.slice(k);break;default:t=N+w+t+_}return l(t)}return f=null==f?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),w.toString=function(){return t+""},w}return{format:s,formatPrefix:function(t,e){var n,r=s(((t=ut(t)).type="f",t)),o=3*Math.max(-8,Math.min(8,Math.floor((n=e,((n=lt(Math.abs(n)))?n[1]:NaN)/3)))),i=Math.pow(10,-o),l=gt[8+o/3];return function(t){return r(i*t)+l}}}}dt=mt({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),yt=dt.format,dt.formatPrefix;function vt(){}function bt(t,e){var n=new vt;if(t instanceof vt)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,o=-1,i=t.length;if(null==e)for(;++o<i;)n.set(o,t[o]);else for(;++o<i;)n.set(e(r=t[o],o,t),r)}else if(t)for(var l in t)n.set(l,t[l]);return n}function wt(){}vt.prototype=bt.prototype={constructor:vt,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var _t=bt.prototype;wt.prototype=function(t,e){var n=new wt;if(t instanceof wt)t.each(function(t){n.add(t)});else if(t){var r=-1,o=t.length;if(null==e)for(;++r<o;)n.add(t[r]);else for(;++r<o;)n.add(e(t[r],r,t))}return n}.prototype={constructor:wt,has:_t.has,add:function(t){return this["$"+(t+="")]=t,this},remove:_t.remove,clear:_t.clear,values:_t.keys,size:_t.size,empty:_t.empty,each:_t.each};var xt="http://www.w3.org/1999/xhtml",kt={svg:"http://www.w3.org/2000/svg",xhtml:xt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Nt(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),kt.hasOwnProperty(e)?{space:kt[e],local:t}:t}function Mt(t){var e=Nt(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===xt&&e.documentElement.namespaceURI===xt?e.createElement(t):e.createElementNS(n,t)}})(e)}function Ct(){}function Et(t){return null==t?Ct:function(){return this.querySelector(t)}}function St(){return[]}function At(t){return new Array(t.length)}function Ot(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Ot.prototype={constructor:Ot,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Tt="$";function It(t,e,n,r,o,i){for(var l,a=0,s=e.length,u=i.length;a<u;++a)(l=e[a])?(l.__data__=i[a],r[a]=l):n[a]=new Ot(t,i[a]);for(;a<s;++a)(l=e[a])&&(o[a]=l)}function Pt(t,e,n,r,o,i,l){var a,s,u,c={},h=e.length,p=i.length,f=new Array(h);for(a=0;a<h;++a)(s=e[a])&&(f[a]=u=Tt+l.call(s,s.__data__,a,e),u in c?o[a]=s:c[u]=s);for(a=0;a<p;++a)(s=c[u=Tt+l.call(t,i[a],a,i)])?(r[a]=s,s.__data__=i[a],c[u]=null):n[a]=new Ot(t,i[a]);for(a=0;a<h;++a)(s=e[a])&&c[f[a]]===s&&(o[a]=s)}function Ft(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function $t(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Vt(t){return t.trim().split(/^|\s+/)}function jt(t){return t.classList||new Dt(t)}function Dt(t){this._node=t,this._names=Vt(t.getAttribute("class")||"")}function Lt(t,e){for(var n=jt(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function qt(t,e){for(var n=jt(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function zt(){this.textContent=""}function Bt(){this.innerHTML=""}function Rt(){this.nextSibling&&this.parentNode.appendChild(this)}function Ht(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ut(){return null}function Jt(){var t=this.parentNode;t&&t.removeChild(this)}function Wt(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Gt(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}Dt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Xt={};"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Xt={mouseenter:"mouseover",mouseleave:"mouseout"}));function Kt(t,e,n){return t=Yt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Yt(t,e,n){return function(r){try{t.call(this,this.__data__,e,n)}finally{}}}function Zt(t){return function(){var e=this.__on;if(e){for(var n,r=0,o=-1,i=e.length;r<i;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.capture);++o?e.length=o:delete this.__on}}}function Qt(t,e,n){var r=Xt.hasOwnProperty(t.type)?Kt:Yt;return function(o,i,l){var a,s=this.__on,u=r(e,i,l);if(s)for(var c=0,h=s.length;c<h;++c)if((a=s[c]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=u,a.capture=n),void(a.value=e);this.addEventListener(t.type,u,n),a={type:t.type,name:t.name,value:e,listener:u,capture:n},s?s.push(a):this.__on=[a]}}function te(t,e,n){var r=$t(t),o=r.CustomEvent;"function"==typeof o?o=new o(e,n):(o=r.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}var ee=[null];function ne(t,e){this._groups=t,this._parents=e}function re(){return new ne([[document.documentElement]],ee)}function oe(t){return"string"==typeof t?new ne([[document.querySelector(t)]],[document.documentElement]):new ne([[t]],ee)}ne.prototype=re.prototype={constructor:ne,select:function(t){"function"!=typeof t&&(t=Et(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i,l,a=e[o],s=a.length,u=r[o]=new Array(s),c=0;c<s;++c)(i=a[c])&&(l=t.call(i,i.__data__,c,a))&&("__data__"in i&&(l.__data__=i.__data__),u[c]=l);return new ne(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?St:function(){return this.querySelectorAll(t)}}(t));for(var e=this._groups,n=e.length,r=[],o=[],i=0;i<n;++i)for(var l,a=e[i],s=a.length,u=0;u<s;++u)(l=a[u])&&(r.push(t.call(l,l.__data__,u,a)),o.push(l));return new ne(r,o)},filter:function(t){"function"!=typeof t&&(t=function(t){return function(){return this.matches(t)}}(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i,l=e[o],a=l.length,s=r[o]=[],u=0;u<a;++u)(i=l[u])&&t.call(i,i.__data__,u,l)&&s.push(i);return new ne(r,this._parents)},data:function(t,e){if(!t)return d=new Array(this.size()),c=-1,this.each(function(t){d[++c]=t}),d;var n,r=e?Pt:It,o=this._parents,i=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var l=i.length,a=new Array(l),s=new Array(l),u=new Array(l),c=0;c<l;++c){var h=o[c],p=i[c],f=p.length,d=t.call(h,h&&h.__data__,c,o),y=d.length,g=s[c]=new Array(y),m=a[c]=new Array(y);r(h,p,g,m,u[c]=new Array(f),d,e);for(var v,b,w=0,_=0;w<y;++w)if(v=g[w]){for(w>=_&&(_=w+1);!(b=m[_])&&++_<y;);v._next=b||null}}return(a=new ne(a,o))._enter=s,a._exit=u,a},enter:function(){return new ne(this._enter||this._groups.map(At),this._parents)},exit:function(){return new ne(this._exit||this._groups.map(At),this._parents)},join:function(t,e,n){var r=this.enter(),o=this,i=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=e&&(o=e(o)),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,o=n.length,i=Math.min(r,o),l=new Array(r),a=0;a<i;++a)for(var s,u=e[a],c=n[a],h=u.length,p=l[a]=new Array(h),f=0;f<h;++f)(s=u[f]||c[f])&&(p[f]=s);for(;a<r;++a)l[a]=e[a];return new ne(l,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,o=t[e],i=o.length-1,l=o[i];--i>=0;)(r=o[i])&&(l&&4^r.compareDocumentPosition(l)&&l.parentNode.insertBefore(r,l),l=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ft);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var l,a=n[i],s=a.length,u=o[i]=new Array(s),c=0;c<s;++c)(l=a[c])&&(u[c]=l);u.sort(e)}return new ne(o,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()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],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 e=this._groups,n=0,r=e.length;n<r;++n)for(var o,i=e[n],l=0,a=i.length;l<a;++l)(o=i[l])&&t.call(o,o.__data__,l,i);return this},attr:function(t,e){var n=Nt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):function(t,e){return t.style.getPropertyValue(e)||$t(t).getComputedStyle(t,null).getPropertyValue(e)}(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=Vt(t+"");if(arguments.length<2){for(var r=jt(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?Lt:qt)(this,t)}}:e?function(t){return function(){Lt(this,t)}}:function(t){return function(){qt(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?zt:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Bt:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(Rt)},lower:function(){return this.each(Ht)},append:function(t){var e="function"==typeof t?t:Mt(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Mt(t),r=null==e?Ut:"function"==typeof e?e:Et(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Jt)},clone:function(t){return this.select(t?Gt:Wt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,o,i=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),l=i.length;if(!(arguments.length<2)){for(a=e?Qt:Zt,null==n&&(n=!1),r=0;r<l;++r)this.each(a(i[r],e,n));return this}var a=this.node().__on;if(a)for(var s,u=0,c=a.length;u<c;++u)for(r=0,s=a[u];r<l;++r)if((o=i[r]).type===s.type&&o.name===s.name)return s.value},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return te(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return te(this,t,e)}})(t,e))}};!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}('.d3-tip{line-height:1;font-weight:700;padding:12px;background:rgba(0,0,0,.66);color:#fff;border-radius:2px;pointer-events:none!important;z-index:10}.d3-tip.hidden{visibility:hidden}.d3-tip:after{content:" ";box-sizing:border-box;display:inline-block;border:4px solid rgba(0,0,0,.66);position:absolute;pointer-events:none!important;width:8px;height:8px;margin:0}.d3-tip.n:after{top:100%;left:calc(50% - 4px);border-top-width:8px;border-right-color:transparent}.d3-tip.e:after,.d3-tip.n:after{border-bottom-color:transparent;border-left-color:transparent}.d3-tip.e:after{top:calc(50% - 4px);left:-12px;border-top-color:transparent;border-right-width:8px}.d3-tip.s{margin-top:8px}.d3-tip.s:after{top:-12px;left:calc(50% - 4px);border-bottom-width:8px;border-left-color:transparent}.d3-tip.s:after,.d3-tip.w:after{border-top-color:transparent;border-right-color:transparent}.d3-tip.w:after{top:calc(50% - 4px);left:100%;border-bottom-color:transparent;border-left-width:8px}.d3-tip.notick:after{border-color:transparent!important}.common_Widget .over{stroke:rgba(0,0,0,.66);opacity:.66}.d3-tip.ITooltip-tooltipStyle-series-table{padding:0}.d3-tip .ITooltip-series-table td,.d3-tip .ITooltip-series-table th{padding:6px;text-align:left;border:1px solid #d1d1d1}.d3-tip .ITooltip-series-table .series-table-row-color{display:inline-block;height:10px;width:10px;margin-right:10px}.d3-tip .ITooltip-series-table .series-table-row-label{display:inline-block}.d3-tip .ITooltip-series-table th{background-color:#b3b3b3}.d3-tip .ITooltip-series-table td{background-color:#fff;color:#555;font-weight:400}.d3-tip .ITooltip-series-table td:first-child{border-right:0}table.ITooltip-series-table td:last-child{border-left:1px dotted #a3a3a3}');var ie=function(t){function e(){var e=t.call(this)||this;if(e.tooltip=function(){var t=function(){return"n"},e=function(){return[0,0]},n=function(){return" "},r=d(document.body),o=h(),i=null,l=null,a=null,s=function(t){if(i=function(t){var e=t.node();return e?"svg"===e.tagName.toLowerCase()?e:e.ownerSVGElement:null}(t)){l=i.createSVGPoint();var e=r();e&&o&&e.appendChild(o)}};s.show=function(t,o,i){a=i[o];var l=Array.prototype.slice.call(arguments),h=n.apply(this,l);if(null===h)return s;var f,d=e.apply(this,l),y=p(),g=c.length,m=r().getBoundingClientRect();for(y.html(h).style("opacity",1).style("pointer-events","all");g--;)y.classed(c[g],!1);for(var v,b=!1,w={},_=c[0],x=0;x<c.length&&!(b=M(c[x]));x++);if(b)y.classed("notick",!1);else{y.classed("notick",!0);var k=(v=w[_]).top>v.bottom?v.top>0?-v.top:0:v.bottom,N=function(t){return t.left>t.right?t.left>0?-t.left:0:t.right>0?t.right:0}(w[_]);M(_,k,N)}return s;function M(t,e,n){e=e||0,n=n||0,y.style("white-space","nowrap"),f=u.get(t).apply(this),y.classed(t,!0).style("top",f.top+d[0]-e+"px").style("left",f.left+d[1]-n+"px");var r=y.node().getBoundingClientRect(),o=r.top>m.top&&r.left>m.left&&r.bottom<m.bottom&&r.right<m.right;return w[t]={top:m.top-r.top,right:r.right-m.right,bottom:r.bottom-m.bottom,left:m.left-r.left},y.style("white-space","normal"),w[t].total_overflow=Object.keys(w[t]).filter(function(e){return w[t][e]>0}).reduce(function(e,n){return e+w[t][n]},0),w[_].total_overflow>w[t].total_overflow&&(_=t),o||y.classed(t,!1),o}},s.hide=function(){return p().style("opacity",0).style("pointer-events","none"),s},s.attr=function(t,e){if(arguments.length<2&&"string"==typeof t)return p().attr(t);var n=Array.prototype.slice.call(arguments);return re.prototype.attr.apply(p(),n),s},s.style=function(t,e){if(arguments.length<2&&"string"==typeof t)return p().style(t);var n=Array.prototype.slice.call(arguments);return re.prototype.style.apply(p(),n),s},s.direction=function(e){return arguments.length?(t=null==e?e:d(e),s):t},s.offset=function(t){return arguments.length?(e=null==t?t:d(t),s):e},s.html=function(t){return arguments.length?(n=null==t?t:d(t),s):n},s.rootElement=function(t){return arguments.length?(r=d(t),s):r},s.destroy=function(){return o&&(p().remove(),o=null),s};var u=bt({n:function(){var t=f(window);return{top:t.n.y-o.offsetHeight,left:t.n.x-o.offsetWidth/2}},s:function(){var t=f(window);return{top:t.s.y+8,left:t.s.x-o.offsetWidth/2}},e:function(){var t=f(window);return{top:t.e.y-o.offsetHeight/2,left:t.e.x+8}},w:function(){var t=f(window);return{top:t.w.y-o.offsetHeight/2,left:t.w.x-o.offsetWidth-8}},nw:function(){var t=f(window);return{top:t.nw.y-o.offsetHeight,left:t.nw.x-o.offsetWidth}},ne:function(){var t=f(window);return{top:t.ne.y-o.offsetHeight,left:t.ne.x}},sw:function(){var t=f(window);return{top:t.sw.y,left:t.sw.x-o.offsetWidth}},se:function(){var t=f(window);return{top:t.se.y,left:t.se.x}}}),c=u.keys();function h(){var t=oe(document.createElement("div"));return t.attr("class","d3-tip").style("position","absolute").style("top","0px").style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),t.node()}function p(){return null==o&&(o=h(),r().appendChild(o)),oe(o)}function f(t){for(var e=a||t;null==e.getCTM&&null!=e.parentNode;)e=e.parentNode;var n={},r=e.getCTM(),o=e.getBBox(),i=o.width,s=o.height,u=o.x,c=o.y;return l.x=u,l.y=c,n.nw=l.matrixTransform(r),l.x+=i,n.ne=l.matrixTransform(r),l.y+=s,n.se=l.matrixTransform(r),l.x-=i,n.sw=l.matrixTransform(r),l.y-=s/2,n.w=l.matrixTransform(r),l.x+=i,n.e=l.matrixTransform(r),l.x-=i/2,l.y-=s/2,n.n=l.matrixTransform(r),l.y+=s,n.s=l.matrixTransform(r),n}function d(t){return"function"==typeof t?t:function(){return t}}return s}(),e._valueFormatter=yt(e.tooltipValueFormat()),e.layerEnter){var n=e.layerEnter;e.layerEnter=function(t,e,r){this._parentOverlay||(this._parentOverlay=t._parentOverlay),this.tooltipEnter(e),n.apply(this,arguments)};var r=e.layerUpdate;e.layerUpdate=function(t){r.apply(this,arguments),this.tooltipUpdate()};var o=e.layerExit;e.layerExit=function(t){this.tooltipExit(),o.apply(this,arguments)}}else{var i=e.enter;e.enter=function(t,e){this.tooltipEnter(e),i.apply(this,arguments)};var l=e.update;e.update=function(t,e){l.apply(this,arguments),this.tooltipUpdate()};var a=e.exit;e.exit=function(t,e){this.tooltipExit(),a.apply(this,arguments)}}return e}return rt(e,t),e.prototype.tooltipEnter=function(t){var e=this.parentOverlay();e.empty()||this.tooltip.rootElement(e.node().parentNode),t.call(this.tooltip)},e.prototype.tooltipUpdate=function(){var t=this;this.tooltip.offset(function(){if(event&&t.tooltipFollowMouse()){var e=document.querySelector(".d3-tip");return e.style.display="block",e.style.left=t.tooltipOffset()+event.clientX+"px",e.style.top=event.clientY+"px",[]}switch(t.tooltip.direction()()){case"e":return[0,t.tooltipOffset()];default:return[-t.tooltipOffset(),0]}});var e=this.tooltip.attr("class");e&&(e=(e=e.split(" notick").join("")+(this.tooltipTick()?"":" notick")+("none"===this.tooltipStyle()?" hidden":"")).split(" ").filter(function(t){return 0!==t.indexOf("ITooltip-tooltipStyle-")}).join(" "),e+=" ITooltip-tooltipStyle-"+this.tooltipStyle(),this.tooltip.attr("class",e))},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(void 0===t&&(t={}),t.label=void 0===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;case"series-table":var e='<table class="ITooltip-series-table"><thead><tr><th colspan="2">'+t.label+"</th></tr></thead><tbody>";return t.arr.forEach(function(t){e+="<tr>",e+="<td>",e+='<div class="series-table-row-color" style="background-color:'+t.color+'"></div>',e+='<div class="series-table-row-label">'+t.label+"</div>",e+="</td>",e+='<td><div class="series-table-row-value">'+t.value+"</div></td>",e+="</tr>"}),e+="</tbody>",e+="</table>";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>":""!==t.label?"<span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>":"<span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>"}},e.prototype.tooltipKeyValueFormat=function(t,e){var n="";for(var r in e)if(r!==t){var o=e&&e[r]?e[r]:"";n+='<tr><td style="'+(this.tooltipLabelColor_exists()?"color:"+this.tooltipLabelColor():"")+'">'+r+'</td><td style="font-weight:normal">'+o+"</td></tr>"}return'<table>\n <thead>\n <tr><th colspan="2" style="font-weight:bold;font-size:16px">'+e[t]+"</th></tr>\n </thead>\n <tbody>\n "+n+"\n </tbody>\n </table>"},e}(e.Widget);ie.prototype.publish("tooltipStyle","default","set","Style mode",["default","none","series-table"],{}),ie.prototype.publish("tooltipFollowMouse",!1,"boolean","If true, the tooltip will follow mouse movement",null,{}),ie.prototype.publish("tooltipValueFormat",",.2f","string","Number format of tooltip value(s)",null,{}),ie.prototype.publish("tooltipSeriesColor","#EAFFFF","html-color","Color of tooltip series text",null,{}),ie.prototype.publish("tooltipLabelColor","#CCFFFF","html-color","Color of tooltip label text",null,{}),ie.prototype.publish("tooltipValueColor","white","html-color","Color of tooltip value(s)",null,{}),ie.prototype.publish("tooltipTick",!0,"boolean","Show tooltip tick",null,{}),ie.prototype.publish("tooltipOffset",8,"number","Offset from the cursor",null,{});var le=ie.prototype.tooltipValueFormat;ie.prototype.tooltipValueFormat=function(t){var e=le.apply(this,arguments);return arguments.length&&(this._valueFormatter=yt(t)),e};var ae=function(){function t(){}return t.prototype.click=function(t,e,n){console.log("Click: "+JSON.stringify(t)+", "+e+", "+n)},t.prototype.dblclick=function(t,e,n){console.log("Double click: "+JSON.stringify(t)+", "+e+", "+n)},t}();ae.prototype._palette=e.Palette.ordinal("default"),t.BUILD_VERSION="2.10.1",t.I1DChart=n,t.I2DAggrChart=tt,t.I2DChart=Q,t.IGraph=et,t.IInput=ot,t.INDChart=it,t.ITooltip=ie,t.ITree=ae,t.PKG_NAME="@hpcc-js/api",t.PKG_VERSION="2.8.2",t.instanceOfIHighlight=function(t){return"function"==typeof t.highlightColumn},Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=index.min.js.map
{
"name": "@hpcc-js/api",
"version": "2.8.0",
"version": "2.8.2",
"description": "hpcc-js - Viz api",

@@ -30,3 +30,3 @@ "main": "dist/index.js",

"dependencies": {
"@hpcc-js/common": "^2.19.0"
"@hpcc-js/common": "^2.19.2"
},

@@ -37,6 +37,6 @@ "devDependencies": {

"rimraf": "2.6.3",
"rollup": "1.15.4",
"rollup-plugin-alias": "1.5.2",
"rollup-plugin-commonjs": "10.0.0",
"rollup-plugin-node-resolve": "5.0.2",
"rollup": "1.20.2",
"rollup-plugin-alias": "2.0.0",
"rollup-plugin-commonjs": "10.1.0",
"rollup-plugin-node-resolve": "5.2.0",
"rollup-plugin-postcss": "2.0.3",

@@ -61,3 +61,3 @@ "rollup-plugin-sourcemaps": "0.4.2",

"homepage": "https://github.com/hpcc-systems/Visualization",
"gitHead": "36000eff3e6716a42308eff1a2c402ee4939e4ff"
"gitHead": "8fa4ad73edba707471118a1044343ee70005dffa"
}
export declare const PKG_NAME = "@hpcc-js/api";
export declare const PKG_VERSION = "2.8.0";
export declare const BUILD_VERSION = "2.9.0";
export declare const PKG_VERSION = "2.8.2";
export declare const BUILD_VERSION = "2.10.1";
//# sourceMappingURL=__package__.d.ts.map

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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