Comparing version 2.0.0-rc1 to 2.0.0
@@ -653,3 +653,11 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
function bindMouseEventsToDispatcher(selection, dispatch, prefix) { | ||
return selection.on('click', dispatch[prefix + 'Click']).on('mouseover', dispatch[prefix + 'MouseOver']).on('mousemove', dispatch[prefix + 'MouseMove']).on('mouseout', dispatch[prefix + 'MouseOut']); | ||
return selection.on('click', function (d, i) { | ||
dispatch.call(prefix + 'Click', this, d, i); | ||
}).on('mouseover', function (d, i) { | ||
dispatch.call(prefix + 'MouseOver', this, d, i); | ||
}).on('mousemove', function (d, i) { | ||
dispatch.call(prefix + 'MouseMove', this, d, i); | ||
}).on('mouseout', function (d, i) { | ||
dispatch.call(prefix + 'MouseOut', this, d, i); | ||
}); | ||
} | ||
@@ -656,0 +664,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("d3-selection"),require("d3-dispatch")):"function"==typeof define&&define.amd?define(["d3-selection","d3-dispatch"],t):"object"==typeof exports?exports.d3Kit=t(require("d3-selection"),require("d3-dispatch")):e.d3Kit=t(e.d3,e.d3)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.helper=t.LayerOrganizer=t.Chartlet=t.Skeleton=t.factory=void 0;var o=n(1);Object.defineProperty(t,"Skeleton",{enumerable:!0,get:function(){return r(o)["default"]}});var i=n(6);Object.defineProperty(t,"Chartlet",{enumerable:!0,get:function(){return r(i)["default"]}});var u=n(4);Object.defineProperty(t,"LayerOrganizer",{enumerable:!0,get:function(){return r(u)["default"]}});var a=n(5);Object.defineProperty(t,"helper",{enumerable:!0,get:function(){return r(a)["default"]}});var f=n(7);t.factory={createChart:f.createChart}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){function r(e,t){return 0===arguments.length?P:(P=e,t||Z.call("data",this,e),C)}function o(e,t){return 0===arguments.length?L:(L=l["default"].deepExtend(L,e),e&&(e.margin?c(t):e.offset&&a()),t||Z.call("options",this,e),C)}function a(){W.attr("transform","translate("+(L.margin.left+L.offset[0])+","+(L.margin.top+L.offset[1])+")")}function c(e){a(),T=S-L.margin.left-L.margin.right,k=D-L.margin.top-L.margin.bottom,e||Z.call("resize",this,[S,D,T,k])}function p(e,t){return 0===arguments.length?L.margin:(L.margin=l["default"].extend(L.margin,e),c(t),C)}function h(e){return 0===arguments.length?L.offset:(L.offset=e,a(),C)}function m(t,n){if(0===arguments.length||null===t||void 0===t)return S;if(S=l["default"].isNumber(t)?+t:"auto"==t.trim().toLowerCase()?e.clientWidth:+(t+"").replace(/px/gi,"").trim(),l["default"].isNaN(S))throw Error("invalid width: "+S);return S=Math.floor(S),T=S-L.margin.left-L.margin.right,q.attr("width",S),n||Z.call("resize",this,[S,D,T,k]),C}function g(t,n){if(0===arguments.length||null===t||void 0===t)return D;if(D=l["default"].isNumber(t)?+t:"auto"==t.trim().toLowerCase()?e.clientHeight:+(t+"").replace(/px/gi,"").trim(),l["default"].isNaN(D))throw Error("invalid height: "+D);return D=Math.floor(D),k=D-L.margin.top-L.margin.bottom,q.attr("height",D),n||Z.call("resize",this,[S,D,T,k]),C}function v(e,t){return 0===arguments.length?[S,D]:(m(e[0],!0),g(e[1],t),C)}function y(e){return 0===arguments.length?F:F!=e?N(e,$):C}function b(e){return 0===arguments.length?$:$!=e?N(F,e):C}function w(e){return 0===arguments.length?R:(R=null!==e&&void 0!==e&&""!==e&&e!==!1&&"false"!==(e+"").toLowerCase()&&(!!l["default"].isNumber(e)&&(0!==+e&&+e)),C)}function x(){if(H)switch($){case"dom":l["default"].off(e,"resize",H);break;default:case"window":l["default"].off(window,"resize",H)}return H=null,C}function j(t){if(t)switch($){case"dom":l["default"].on(e,"resize",t);break;default:case"window":l["default"].on(window,"resize",t)}return H=t,C}function N(e,t){if(e=(!e||"false"!=(e+"").toLowerCase())&&e,t=t||$,e!=F)x(),F=e,$=t,e&&(H=l["default"].debounce(function(){R?(M(F,!0),_(R)):M(F)},100),j(H));else if(t!=$){var n=H;x(),$=t,j(n)}return H&&H(),C}function E(){return n||[]}function O(e){var t=C;return l["default"].isObject(e)&&Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function M(e,t){switch(e){case"all":case"full":case"both":v(["auto","auto"],t);break;case"height":g("auto",t);break;default:case"width":m("auto",t)}return C}function _(e,t){var n=S,r=D;if(!l["default"].isNumber(e))throw"Invalid ratio: must be a Number";if(e=+e,(n/r).toFixed(4)==e.toFixed(4))return C;var o=Math.floor(n/e);return o>r?m(Math.floor(r*e),t):g(o,t),C}function z(){return null!==P&&void 0!==P}function A(){return T>0&&k>0}var C={};e=l["default"].$(e);var P=null,L=l["default"].deepExtend({},s,t),S=0,D=0,T=0,k=0,$="window",F=!1,H=null,R=!1,q=(0,i.select)(e).append("svg"),W=q.append("g");a();var I=new f["default"](W),K=n?n.concat(d):d,Z=u.dispatch.apply(this,K);return v([L.initialWidth,L.initialHeight]),l["default"].extend(C,{getCustomEventNames:E,getDispatcher:function(){return Z},getInnerWidth:function(){return T},getInnerHeight:function(){return k},getLayerOrganizer:function(){return I},getRootG:function(){return W},getSvg:function(){return q},data:r,options:o,margin:p,offset:h,width:m,height:g,dimension:v,autoResize:y,autoResizeDetection:b,autoResizeToAspectRatio:w,hasData:z,hasNonZeroArea:A,mixin:O,resizeToFitContainer:M,resizeToAspectRatio:_}),l["default"].rebind(C,Z,"on"),C}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),u=n(3),a=n(4),f=r(a),c=n(5),l=r(c),s={margin:{top:30,right:30,bottom:30,left:30},offset:[.5,.5],initialWidth:720,initialHeight:500},d=["data","options","resize"];t["default"]=o},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){function n(e,n,r){var o=r?r+"."+n:n;if(c.hasOwnProperty(o))throw"invalid or duplicate layer id: "+o;var u=e.append(t).classed(i["default"].dasherize(n)+"-layer",!0);return c[o]=u,u}function r(e,t,o){if(Array.isArray(t))return t.map(function(t){r(e,t,o)});if(i["default"].isObject(t)){var u=Object.keys(t)[0],a=n(e,u,o);return r(a,t[u],o?o+"."+u:u),a}return n(e,t,o)}function o(t){return r(e,t)}function u(e){return Array.isArray(e)?e.map(o):o(e)}function a(e){return c[e]}function f(e){return!!c[e]}var c={};return t=t||"g",{create:u,get:a,has:f}};var o=n(5),i=r(o)},function(e,t){"use strict";function n(e,t,n){return e.on("click",t[n+"Click"]).on("mouseover",t[n+"MouseOver"]).on("mousemove",t[n+"MouseMove"]).on("mouseout",t[n+"MouseOut"])}function r(e,t){return t?e.selectAll("*").remove():e.selectAll("*").transition().style("opacity",0).remove()}function o(e){return"object"===("undefined"==typeof HTMLElement?"undefined":x(HTMLElement))?e instanceof HTMLElement:e&&"object"===("undefined"==typeof e?"undefined":x(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function i(e){return o(e)?e:document.querySelector(e)}function u(e){return Array.isArray(e)?e:[].slice.call(document.querySelectorAll(e))}function a(e){e=e||{};for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n)for(var r in n)if(n.hasOwnProperty(r)){var o=n[r];!d(o)||Array.isArray(o)||h(o)?e[r]=o:e[r]=a(e[r],o)}}return e}function f(e){e=e||{};for(var t=1;t<arguments.length;t++)if(arguments[t])for(var n in arguments[t])arguments[t].hasOwnProperty(n)&&(e[n]=arguments[t][n]);return e}function c(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n){e.removeEventListener(t,n,!1)}function s(e,t,n){var r=void 0,o=function(){var o=this,i=arguments,u=function(){r=null,n||e.apply(o,i)},a=n&&!r;return clearTimeout(r),r=setTimeout(u,t),a&&e.apply(o,i),o};return o.isDebounced=!0,o.now=function(){return clearTimeout(r),e.apply(this,arguments)},o}function d(e){return!(!e||!N["undefined"==typeof e?"undefined":x(e)])}function p(e){return"number"==typeof e||e&&"object"==("undefined"==typeof e?"undefined":x(e))&&M.call(e)==E||!1}function h(e){var t={};return!!e&&"[object Function]"===t.toString.call(e)}function m(e){return null==e?"":String(e).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function g(e,t){return null==e?"":!t&&_?_.call(e):(t=z(t),String(e).replace(new RegExp("^"+t+"+|"+t+"+$","g"),""))}function v(e){return g(e).replace(/([A-Z])/g,"-$1").replace(/[-_\s]+/g,"-").toLowerCase()}function y(e,t){for(var n=1,r=arguments.length,o=void 0;++n<r;)e[o=arguments[n]]=b(e,t,t[o]);return e}function b(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function w(e){return"function"==typeof e?e:function(){return e}}Object.defineProperty(t,"__esModule",{value:!0});var x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},j=Number.isNaN?Number.isNaN:window.isNaN,N={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},E="[object Number]",O=Object.prototype,M=O.toString,_=String.prototype.trim,z=function(e){return null==e?"\\s":e.source?e.source:"["+m(e)+"]"};t["default"]={$:i,$$:u,dasherize:v,debounce:s,deepExtend:a,extend:f,isElement:o,isFunction:h,isNaN:j,isNumber:p,isObject:d,on:c,off:l,trim:g,rebind:y,functor:w,removeAllChildren:r,bindMouseEventsToDispatcher:n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){t()}function i(e,t,n,r){function i(e,t){return arguments.length>1?(h[e]=f["default"].functor(t),this):f["default"].functor(h[e])}function a(e,t,n){return i(e)(t,n)}function c(e,t){return function(n){e(n,f["default"].debounce(function(e,r){m.call(t,this,n)}),5)}}function l(e,t,n){return h[n||t]=function(n,r){return e.property(t)(n,r)},this}function s(e,t,n){return t.forEach(function(t,r){l(e,t,n&&r<n.length?n[r]:void 0)}),this}function d(e){return r.forEach(function(t){m.on(t,function(){var n=Array.prototype.slice.call(arguments);e.apply(t,this,n)})}),this}function p(){return r}t=t||o,n=n||o,r=r||[];var h={},m=u.dispatch.apply(this,["enterDone","updateDone","exitDone"].concat(r)),g={getDispatcher:function(){return m},getPropertyValue:a,inheritPropertyFrom:l,inheritPropertiesFrom:s,publishEventsTo:d,getCustomEventNames:p,property:i,enter:c(e,"enterDone"),update:c(t,"updateDone"),exit:c(n,"exitDone")};return f["default"].rebind(g,m,"on"),g}Object.defineProperty(t,"__esModule",{value:!0});var u=n(3),a=n(5),f=r(a);t["default"]=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var r=function(r,o){var i=new u["default"](r,f["default"].deepExtend({},e,o),t);return n&&n(i),i};return t=t?t:[],r.getCustomEvents=function(){return t},r}Object.defineProperty(t,"__esModule",{value:!0}),t.createChart=o;var i=n(1),u=r(i),a=n(5),f=r(a)}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("d3-selection"),require("d3-dispatch")):"function"==typeof define&&define.amd?define(["d3-selection","d3-dispatch"],t):"object"==typeof exports?exports.d3Kit=t(require("d3-selection"),require("d3-dispatch")):e.d3Kit=t(e.d3,e.d3)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.helper=t.LayerOrganizer=t.Chartlet=t.Skeleton=t.factory=void 0;var o=n(1);Object.defineProperty(t,"Skeleton",{enumerable:!0,get:function(){return r(o)["default"]}});var i=n(6);Object.defineProperty(t,"Chartlet",{enumerable:!0,get:function(){return r(i)["default"]}});var u=n(4);Object.defineProperty(t,"LayerOrganizer",{enumerable:!0,get:function(){return r(u)["default"]}});var a=n(5);Object.defineProperty(t,"helper",{enumerable:!0,get:function(){return r(a)["default"]}});var f=n(7);t.factory={createChart:f.createChart}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){function r(e,t){return 0===arguments.length?P:(P=e,t||Z.call("data",this,e),C)}function o(e,t){return 0===arguments.length?L:(L=l["default"].deepExtend(L,e),e&&(e.margin?c(t):e.offset&&a()),t||Z.call("options",this,e),C)}function a(){W.attr("transform","translate("+(L.margin.left+L.offset[0])+","+(L.margin.top+L.offset[1])+")")}function c(e){a(),T=S-L.margin.left-L.margin.right,k=D-L.margin.top-L.margin.bottom,e||Z.call("resize",this,[S,D,T,k])}function p(e,t){return 0===arguments.length?L.margin:(L.margin=l["default"].extend(L.margin,e),c(t),C)}function h(e){return 0===arguments.length?L.offset:(L.offset=e,a(),C)}function m(t,n){if(0===arguments.length||null===t||void 0===t)return S;if(S=l["default"].isNumber(t)?+t:"auto"==t.trim().toLowerCase()?e.clientWidth:+(t+"").replace(/px/gi,"").trim(),l["default"].isNaN(S))throw Error("invalid width: "+S);return S=Math.floor(S),T=S-L.margin.left-L.margin.right,q.attr("width",S),n||Z.call("resize",this,[S,D,T,k]),C}function g(t,n){if(0===arguments.length||null===t||void 0===t)return D;if(D=l["default"].isNumber(t)?+t:"auto"==t.trim().toLowerCase()?e.clientHeight:+(t+"").replace(/px/gi,"").trim(),l["default"].isNaN(D))throw Error("invalid height: "+D);return D=Math.floor(D),k=D-L.margin.top-L.margin.bottom,q.attr("height",D),n||Z.call("resize",this,[S,D,T,k]),C}function v(e,t){return 0===arguments.length?[S,D]:(m(e[0],!0),g(e[1],t),C)}function y(e){return 0===arguments.length?F:F!=e?N(e,$):C}function b(e){return 0===arguments.length?$:$!=e?N(F,e):C}function w(e){return 0===arguments.length?R:(R=null!==e&&void 0!==e&&""!==e&&e!==!1&&"false"!==(e+"").toLowerCase()&&(!!l["default"].isNumber(e)&&(0!==+e&&+e)),C)}function x(){if(H)switch($){case"dom":l["default"].off(e,"resize",H);break;default:case"window":l["default"].off(window,"resize",H)}return H=null,C}function j(t){if(t)switch($){case"dom":l["default"].on(e,"resize",t);break;default:case"window":l["default"].on(window,"resize",t)}return H=t,C}function N(e,t){if(e=(!e||"false"!=(e+"").toLowerCase())&&e,t=t||$,e!=F)x(),F=e,$=t,e&&(H=l["default"].debounce(function(){R?(M(F,!0),_(R)):M(F)},100),j(H));else if(t!=$){var n=H;x(),$=t,j(n)}return H&&H(),C}function E(){return n||[]}function O(e){var t=C;return l["default"].isObject(e)&&Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function M(e,t){switch(e){case"all":case"full":case"both":v(["auto","auto"],t);break;case"height":g("auto",t);break;default:case"width":m("auto",t)}return C}function _(e,t){var n=S,r=D;if(!l["default"].isNumber(e))throw"Invalid ratio: must be a Number";if(e=+e,(n/r).toFixed(4)==e.toFixed(4))return C;var o=Math.floor(n/e);return o>r?m(Math.floor(r*e),t):g(o,t),C}function z(){return null!==P&&void 0!==P}function A(){return T>0&&k>0}var C={};e=l["default"].$(e);var P=null,L=l["default"].deepExtend({},s,t),S=0,D=0,T=0,k=0,$="window",F=!1,H=null,R=!1,q=(0,i.select)(e).append("svg"),W=q.append("g");a();var I=new f["default"](W),K=n?n.concat(d):d,Z=u.dispatch.apply(this,K);return v([L.initialWidth,L.initialHeight]),l["default"].extend(C,{getCustomEventNames:E,getDispatcher:function(){return Z},getInnerWidth:function(){return T},getInnerHeight:function(){return k},getLayerOrganizer:function(){return I},getRootG:function(){return W},getSvg:function(){return q},data:r,options:o,margin:p,offset:h,width:m,height:g,dimension:v,autoResize:y,autoResizeDetection:b,autoResizeToAspectRatio:w,hasData:z,hasNonZeroArea:A,mixin:O,resizeToFitContainer:M,resizeToAspectRatio:_}),l["default"].rebind(C,Z,"on"),C}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),u=n(3),a=n(4),f=r(a),c=n(5),l=r(c),s={margin:{top:30,right:30,bottom:30,left:30},offset:[.5,.5],initialWidth:720,initialHeight:500},d=["data","options","resize"];t["default"]=o},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){function n(e,n,r){var o=r?r+"."+n:n;if(c.hasOwnProperty(o))throw"invalid or duplicate layer id: "+o;var u=e.append(t).classed(i["default"].dasherize(n)+"-layer",!0);return c[o]=u,u}function r(e,t,o){if(Array.isArray(t))return t.map(function(t){r(e,t,o)});if(i["default"].isObject(t)){var u=Object.keys(t)[0],a=n(e,u,o);return r(a,t[u],o?o+"."+u:u),a}return n(e,t,o)}function o(t){return r(e,t)}function u(e){return Array.isArray(e)?e.map(o):o(e)}function a(e){return c[e]}function f(e){return!!c[e]}var c={};return t=t||"g",{create:u,get:a,has:f}};var o=n(5),i=r(o)},function(e,t){"use strict";function n(e,t,n){return e.on("click",function(e,r){t.call(n+"Click",this,e,r)}).on("mouseover",function(e,r){t.call(n+"MouseOver",this,e,r)}).on("mousemove",function(e,r){t.call(n+"MouseMove",this,e,r)}).on("mouseout",function(e,r){t.call(n+"MouseOut",this,e,r)})}function r(e,t){return t?e.selectAll("*").remove():e.selectAll("*").transition().style("opacity",0).remove()}function o(e){return"object"===("undefined"==typeof HTMLElement?"undefined":x(HTMLElement))?e instanceof HTMLElement:e&&"object"===("undefined"==typeof e?"undefined":x(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function i(e){return o(e)?e:document.querySelector(e)}function u(e){return Array.isArray(e)?e:[].slice.call(document.querySelectorAll(e))}function a(e){e=e||{};for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n)for(var r in n)if(n.hasOwnProperty(r)){var o=n[r];!d(o)||Array.isArray(o)||h(o)?e[r]=o:e[r]=a(e[r],o)}}return e}function f(e){e=e||{};for(var t=1;t<arguments.length;t++)if(arguments[t])for(var n in arguments[t])arguments[t].hasOwnProperty(n)&&(e[n]=arguments[t][n]);return e}function c(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n){e.removeEventListener(t,n,!1)}function s(e,t,n){var r=void 0,o=function(){var o=this,i=arguments,u=function(){r=null,n||e.apply(o,i)},a=n&&!r;return clearTimeout(r),r=setTimeout(u,t),a&&e.apply(o,i),o};return o.isDebounced=!0,o.now=function(){return clearTimeout(r),e.apply(this,arguments)},o}function d(e){return!(!e||!N["undefined"==typeof e?"undefined":x(e)])}function p(e){return"number"==typeof e||e&&"object"==("undefined"==typeof e?"undefined":x(e))&&M.call(e)==E||!1}function h(e){var t={};return!!e&&"[object Function]"===t.toString.call(e)}function m(e){return null==e?"":String(e).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function g(e,t){return null==e?"":!t&&_?_.call(e):(t=z(t),String(e).replace(new RegExp("^"+t+"+|"+t+"+$","g"),""))}function v(e){return g(e).replace(/([A-Z])/g,"-$1").replace(/[-_\s]+/g,"-").toLowerCase()}function y(e,t){for(var n=1,r=arguments.length,o=void 0;++n<r;)e[o=arguments[n]]=b(e,t,t[o]);return e}function b(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function w(e){return"function"==typeof e?e:function(){return e}}Object.defineProperty(t,"__esModule",{value:!0});var x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},j=Number.isNaN?Number.isNaN:window.isNaN,N={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},E="[object Number]",O=Object.prototype,M=O.toString,_=String.prototype.trim,z=function(e){return null==e?"\\s":e.source?e.source:"["+m(e)+"]"};t["default"]={$:i,$$:u,dasherize:v,debounce:s,deepExtend:a,extend:f,isElement:o,isFunction:h,isNaN:j,isNumber:p,isObject:d,on:c,off:l,trim:g,rebind:y,functor:w,removeAllChildren:r,bindMouseEventsToDispatcher:n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){t()}function i(e,t,n,r){function i(e,t){return arguments.length>1?(h[e]=f["default"].functor(t),this):f["default"].functor(h[e])}function a(e,t,n){return i(e)(t,n)}function c(e,t){return function(n){e(n,f["default"].debounce(function(e,r){m.call(t,this,n)}),5)}}function l(e,t,n){return h[n||t]=function(n,r){return e.property(t)(n,r)},this}function s(e,t,n){return t.forEach(function(t,r){l(e,t,n&&r<n.length?n[r]:void 0)}),this}function d(e){return r.forEach(function(t){m.on(t,function(){var n=Array.prototype.slice.call(arguments);e.apply(t,this,n)})}),this}function p(){return r}t=t||o,n=n||o,r=r||[];var h={},m=u.dispatch.apply(this,["enterDone","updateDone","exitDone"].concat(r)),g={getDispatcher:function(){return m},getPropertyValue:a,inheritPropertyFrom:l,inheritPropertiesFrom:s,publishEventsTo:d,getCustomEventNames:p,property:i,enter:c(e,"enterDone"),update:c(t,"updateDone"),exit:c(n,"exitDone")};return f["default"].rebind(g,m,"on"),g}Object.defineProperty(t,"__esModule",{value:!0});var u=n(3),a=n(5),f=r(a);t["default"]=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var r=function(r,o){var i=new u["default"](r,f["default"].deepExtend({},e,o),t);return n&&n(i),i};return t=t?t:[],r.getCustomEvents=function(){return t},r}Object.defineProperty(t,"__esModule",{value:!0}),t.createChart=o;var i=n(1),u=r(i),a=n(5),f=r(a)}])}); |
{ | ||
"name": "d3kit", | ||
"version": "2.0.0-rc1", | ||
"version": "2.0.0", | ||
"description": "A kit of tools to speed D3 related project development.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -11,6 +11,6 @@ /** | ||
return selection | ||
.on('click', dispatch[prefix + 'Click']) | ||
.on('mouseover', dispatch[prefix + 'MouseOver']) | ||
.on('mousemove', dispatch[prefix + 'MouseMove']) | ||
.on('mouseout', dispatch[prefix + 'MouseOut']); | ||
.on('click', function(d, i) {dispatch.call(prefix + 'Click', this, d, i);}) | ||
.on('mouseover', function(d, i) {dispatch.call(prefix + 'MouseOver', this, d, i);}) | ||
.on('mousemove', function(d, i) {dispatch.call(prefix + 'MouseMove', this, d, i);}) | ||
.on('mouseout', function(d, i) {dispatch.call(prefix + 'MouseOut', this, d, i);}); | ||
} | ||
@@ -17,0 +17,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
112111
2681
2
0