You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
874 KiB
1 line
874 KiB
5 years ago
|
webpackJsonp([47],{1127:function(t,i,e){(function(t){var e;"undefined"!=typeof window?e=window.__DEV__:void 0!==t&&(e=t.__DEV__),void 0===e&&(e=!0);var n=e;i.__DEV__=n}).call(i,e(40))},1146:function(t,e,n){var p=n(768),g=n(1152),m=n(965).parsePercent,v=n(1153),f=p.each,i=["left","right","top","bottom","width","height"],o=[["width","left","right"],["height","top","bottom"]];function a(c,h,d,p,f){var g=0,m=0;null==p&&(p=1/0),null==f&&(f=1/0);var v=0;h.eachChild(function(t,e){var n,i,a=t.position,o=t.getBoundingRect(),r=h.childAt(e+1),s=r&&r.getBoundingRect();if("horizontal"===c){var l=o.width+(s?-s.x+o.x:0);v=p<(n=g+l)||t.newline?(g=0,n=l,m+=v+d,o.height):Math.max(v,o.height)}else{var u=o.height+(s?-s.y+o.y:0);v=f<(i=m+u)||t.newline?(g+=v+d,m=0,i=u,o.width):Math.max(v,o.width)}t.newline||(a[0]=g,a[1]=m,"horizontal"===c?g=n+d:m=i+d)})}var r=a,s=p.curry(a,"vertical"),l=p.curry(a,"horizontal");function y(t,e,n){n=v.normalizeCssArray(n||0);var i=e.width,a=e.height,o=m(t.left,i),r=m(t.top,a),s=m(t.right,i),l=m(t.bottom,a),u=m(t.width,i),c=m(t.height,a),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=a-l-h-r),null!=p&&(isNaN(u)&&isNaN(c)&&(i/a<p?u=.8*i:c=.8*a),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=i-s-u-d),isNaN(r)&&(r=a-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(t.top||t.bottom){case"middle":case"center":r=a/2-c/2-n[0];break;case"bottom":r=a-c-h}o=o||0,r=r||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=a-h-r-(l||0));var f=new g(o+n[3],r+n[0],u,c);return f.margin=n,f}function u(e,n){return n&&e&&f(i,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}e.LOCATION_PARAMS=i,e.HV_NAMES=o,e.box=r,e.vbox=s,e.hbox=l,e.getAvailableSize=function(t,e,n){var i=e.width,a=e.height,o=m(t.x,i),r=m(t.y,a),s=m(t.x2,i),l=m(t.y2,a);return(isNaN(o)||isNaN(parseFloat(t.x)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=i),(isNaN(r)||isNaN(parseFloat(t.y)))&&(r=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=a),n=v.normalizeCssArray(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-r-n[0]-n[2],0)}},e.getLayoutRect=y,e.positionElement=function(t,e,n,i,a){var o=!a||!a.hv||a.hv[0],r=!a||!a.hv||a.hv[1],s=a&&a.boundingMode||"all";if(o||r){var l;if("raw"===s)l="group"===t.type?new g(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();(l=l.clone()).applyTransform(u)}e=y(p.defaults({width:l.width,height:l.height},e),n,i);var c=t.position,h=o?e.x-l.x:0,d=r?e.y-l.y:0;t.attr("position","raw"===s?[h,d]:[c[0]+h,c[1]+d])}},e.sizeCalculable=function(t,e){return null!=t[o[e][0]]||null!=t[o[e][1]]&&null!=t[o[e][2]]},e.mergeLayoutParam=function(l,u,t){p.isObject(t)||(t={});var c=t.ignoreSize;p.isArray(c)||(c=[c,c]);var e=i(o[0],0),n=i(o[1],1);function i(t,e){var n={},i=0,a={},o=0;if(f(t,function(t){a[t]=l[t]}),f(t,function(t){h(u,t)&&(n[t]=a[t]=u[t]),d(n,t)&&i++,d(a,t)&&o++}),c[e])return d(u,t[1])?a[t[2]]=null:d(u,t[2])&&(a[t[1]]=null),a;if(2!==o&&i){if(2<=i)return n;for(var r=0;r<t.length;r++){var s=t[r];if(!h(n,s)&&h(l,s)){n[s]=l[s];break}}return n}return a}function h(t,e){return t.hasOwnProperty(e)}function d(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,n){f(t,function(t){e[t]=n[t]})}a(o[0],l,e),a(o[1],l,n)},e.getLayoutParams=function(t){return u({},t)},e.copyLayoutParams=u},1150:function(t,e){var i="undefined"==typeof Float32Array?Array:Float32Array;function a(t){return Math.sqrt(o(t))}var n=a;function o(t){return t[0]*t[0]+t[1]*t[1]}var r=o;function s(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var l=s;function u(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var c=u;e.create=function(t,e){var n=new i(2);return null==t&&(t=0),null==e&&(e=0),n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.clone=function(t){var e=new i(2);return e[0]=t[0],e[1]=t[1],e},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},e.sub=fun
|