All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui.js.vendor.d3.d3-selection.min.js Maven / Gradle / Ivy

The newest version!
// https://d3js.org/d3-selection/ Version 1.0.0. Copyright 2016 Mike Bostock.
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.d3=t.d3||{})}(this,function(t){"use strict";function n(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}function e(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===It&&n.documentElement.namespaceURI===It?n.createElement(t):n.createElementNS(e,t)}}function r(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function i(t){var i=n(t);return(i.local?r:e)(i)}function o(){return new u}function u(){this._="@"+(++kt).toString(36)}function c(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(n,e,r){return function(i){var o=t.event;t.event=i;try{n.call(this,this.__data__,e,r)}finally{t.event=o}}}function a(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 l(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=A&&(A=w+1);!(g=d[A])&&++A<_;);y._next=g||null}}return u=new Dt(u,r),u._enter=c,u._exit=s,u}function T(){return new Dt(this._exit||this._groups.map(b),this._parents)}function q(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),c=0;c=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this}function B(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=D);for(var e=this._groups,r=e.length,i=new Array(r),o=0;on?1:t>=n?0:NaN}function V(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function R(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t}function j(){for(var t=this._groups,n=0,e=t.length;n1?this.each((null==n?K:"function"==typeof n?W:Q)(t,n,null==e?"":e)):J(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)}function tt(t){return function(){delete this[t]}}function nt(t,n){return function(){this[t]=n}}function et(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function rt(t,n){return arguments.length>1?this.each((null==n?tt:"function"==typeof n?et:nt)(t,n)):this.node()[t]}function it(t){return t.trim().split(/^|\s+/)}function ot(t){return t.classList||new ut(t)}function ut(t){this._node=t,this._names=it(t.getAttribute("class")||"")}function ct(t,n){for(var e=ot(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Qt=[null];Dt.prototype=Vt.prototype={constructor:Dt,select:g,selectAll:x,filter:S,data:P,enter:E,exit:T,merge:q,order:O,sort:B,call:V,nodes:R,node:j,size:z,empty:H,each:I,attr:F,style:Z,property:rt,classed:ht,text:dt,html:wt,raise:xt,lower:bt,append:Et,insert:Ct,remove:Lt,datum:Pt,on:h,dispatch:Bt},t.creator=i,t.local=o,t.matcher=$t,t.mouse=d,t.namespace=n,t.namespaces=Ut,t.select=Rt,t.selectAll=jt,t.selection=Vt,t.selector=y,t.selectorAll=A,t.touch=zt,t.touches=Ht,t.window=J,t.customEvent=p,Object.defineProperty(t,"__esModule",{value:!0})});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy