@next-bricks/data-view 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +18 -9
- package/dist/chunks/2938.1d24bf3a.js +2 -0
- package/dist/chunks/2938.1d24bf3a.js.map +1 -0
- package/dist/chunks/{5155.52b564af.js → 5902.15d216ce.js} +3 -3
- package/dist/chunks/5902.15d216ce.js.map +1 -0
- package/dist/chunks/8374.9cc215b5.js +2 -0
- package/dist/chunks/8374.9cc215b5.js.map +1 -0
- package/dist/chunks/859.472360b6.js +2 -0
- package/dist/chunks/859.472360b6.js.map +1 -0
- package/dist/chunks/cabinet-container.bc8cb288.js +3 -0
- package/dist/chunks/cabinet-container.bc8cb288.js.map +1 -0
- package/dist/chunks/cabinet-thumbnail.d6c2b232.js +3 -0
- package/dist/chunks/cabinet-thumbnail.d6c2b232.js.map +1 -0
- package/dist/chunks/china-map-chart.eb43bf10.js +2 -0
- package/dist/chunks/china-map-chart.eb43bf10.js.map +1 -0
- package/dist/chunks/crystal-ball-indicator.d8cd86a8.js +2 -0
- package/dist/chunks/crystal-ball-indicator.d8cd86a8.js.map +1 -0
- package/dist/chunks/gear-background.7707f3b1.js.map +1 -1
- package/dist/chunks/globe-with-gear-indicator.38da7193.js +2 -0
- package/dist/chunks/globe-with-gear-indicator.38da7193.js.map +1 -0
- package/dist/chunks/globe-with-halo-indicator.23e27349.js +2 -0
- package/dist/chunks/globe-with-halo-indicator.23e27349.js.map +1 -0
- package/dist/chunks/loading-panel.4b9cfaa7.js +2 -0
- package/dist/chunks/loading-panel.4b9cfaa7.js.map +1 -0
- package/dist/chunks/main.d5b7fc71.js +2 -0
- package/dist/chunks/{main.dacb91a2.js.map → main.d5b7fc71.js.map} +1 -1
- package/dist/chunks/modern-style-treemap.d59d18bc.js +3 -0
- package/dist/chunks/modern-style-treemap.d59d18bc.js.map +1 -0
- package/dist/chunks/progress-bar-list.3b337de3.js +2 -0
- package/dist/chunks/progress-bar-list.3b337de3.js.map +1 -0
- package/dist/examples.json +29 -23
- package/dist/images/1056eac3.png +0 -0
- package/dist/images/12997c2b.png +0 -0
- package/dist/images/4f7762f3.svg +21 -0
- package/dist/images/698229b4.png +0 -0
- package/dist/images/73baf989.png +0 -0
- package/dist/images/b2fdf90d.svg +74 -0
- package/dist/images/d20b2c27.svg +46 -0
- package/dist/images/f1a78578.png +0 -0
- package/dist/index.c11ec70a.js +2 -0
- package/dist/index.c11ec70a.js.map +1 -0
- package/dist/manifest.json +243 -175
- package/dist/media/0c649f21.webm +0 -0
- package/dist/media/2978c0ae.ttf +0 -0
- package/dist/media/cc0a5a55.ttf +0 -0
- package/dist/types.json +557 -320
- package/dist-types/bootstrap.d.ts +2 -0
- package/dist-types/china-map-chart/index.d.ts +2 -1
- package/dist-types/crystal-ball-indicator/index.d.ts +7 -4
- package/dist-types/gear-background/index.d.ts +1 -1
- package/dist-types/globe-with-gear-indicator/index.d.ts +45 -0
- package/dist-types/globe-with-gear-indicator/index.spec.d.ts +1 -0
- package/dist-types/globe-with-halo-indicator/RotatingArc.d.ts +2 -0
- package/dist-types/globe-with-halo-indicator/RotatingArc.spec.d.ts +1 -0
- package/dist-types/globe-with-halo-indicator/SatelliteRing.d.ts +2 -0
- package/dist-types/globe-with-halo-indicator/index.d.ts +45 -0
- package/dist-types/globe-with-halo-indicator/index.spec.d.ts +1 -0
- package/docs/china-map-chart.md +55 -27
- package/docs/crystal-ball-indicator.md +34 -29
- package/docs/globe-with-gear-indicator.md +42 -0
- package/docs/globe-with-halo-indicator.md +42 -0
- package/package.json +2 -2
- package/dist/chunks/2836.358bb597.js +0 -2
- package/dist/chunks/2836.358bb597.js.map +0 -1
- package/dist/chunks/5155.52b564af.js.map +0 -1
- package/dist/chunks/5371.15b68669.js +0 -2
- package/dist/chunks/5371.15b68669.js.map +0 -1
- package/dist/chunks/8847.9be1eec6.js +0 -2
- package/dist/chunks/8847.9be1eec6.js.map +0 -1
- package/dist/chunks/cabinet-container.95ec63e8.js +0 -3
- package/dist/chunks/cabinet-container.95ec63e8.js.map +0 -1
- package/dist/chunks/cabinet-thumbnail.dc01323b.js +0 -3
- package/dist/chunks/cabinet-thumbnail.dc01323b.js.map +0 -1
- package/dist/chunks/china-map-chart.375f876a.js +0 -2
- package/dist/chunks/china-map-chart.375f876a.js.map +0 -1
- package/dist/chunks/crystal-ball-indicator.269b1f6d.js +0 -2
- package/dist/chunks/crystal-ball-indicator.269b1f6d.js.map +0 -1
- package/dist/chunks/loading-panel.b7f40435.js +0 -2
- package/dist/chunks/loading-panel.b7f40435.js.map +0 -1
- package/dist/chunks/main.dacb91a2.js +0 -2
- package/dist/chunks/modern-style-treemap.0b40defb.js +0 -3
- package/dist/chunks/modern-style-treemap.0b40defb.js.map +0 -1
- package/dist/chunks/progress-bar-list.b788a7ce.js +0 -2
- package/dist/chunks/progress-bar-list.b788a7ce.js.map +0 -1
- package/dist/images/66ee9c70.png +0 -0
- package/dist/images/cc662090.png +0 -0
- package/dist/index.fefb1c64.js +0 -2
- package/dist/index.fefb1c64.js.map +0 -1
- package/dist-types/china-map-chart/map.d.ts +0 -144
- /package/dist/chunks/{5155.52b564af.js.LICENSE.txt → 5902.15d216ce.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{cabinet-container.95ec63e8.js.LICENSE.txt → cabinet-container.bc8cb288.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{cabinet-thumbnail.dc01323b.js.LICENSE.txt → cabinet-thumbnail.d6c2b232.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{modern-style-treemap.0b40defb.js.LICENSE.txt → modern-style-treemap.d59d18bc.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[859],{6837:(t,e,n)=>{n.d(e,{Z:()=>u,w:()=>l});var r=n(18769),o=n(99126);const i=new Map,a=new o.A((t=>{t.forEach((t=>{var e;const{target:n}=t;null===(e=i.get(n))||void 0===e||e.forEach((e=>e(t)))}))})),p=(t,e)=>{i.has(t)||(i.set(t,new Set),a.observe(t)),i.get(t).add(e)},c=(t,e)=>{i.has(t)&&(i.get(t).delete(e),0===i.get(t).size&&(a.unobserve(t),i.delete(t)))};function l(t){const{targetRef:e,onResize:n}=t||{},o=(0,r.useRef)(),i=null!=e?e:o,[a,l]=(0,r.useState)({clientWidth:0,clientHeight:0}),u=(0,r.useCallback)((t=>{const{target:e}=t,{clientWidth:r=0,clientHeight:o=0}=e;l((e=>e.clientWidth===r&&e.clientHeight===o?e:(null==n||n(t),{clientWidth:r,clientHeight:o})))}),[n]);return(0,r.useEffect)((()=>{if("object"!=typeof i||null===i||!(i.current instanceof Element))throw new Error("ResizeObserver must observe an Element");const t=i.current;return p(t,u),()=>{c(t,u)}}),[u,i]),[i,{...a}]}function u(t){const e=(0,r.useRef)();return(0,r.useEffect)((()=>{e.current=t})),e.current}},73240:(t,e,n)=>{n.d(e,{A:()=>f});var r=n(36758),o=n.n(r),i=n(40935),a=n.n(i),p=n(20062),c=n.n(p),l=new URL(n(54664),n.b),u=a()(o()),h=c()(l);u.push([t.id,`:host{display:block;width:100%;height:100%}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.wrapper{position:relative;width:100%;height:100%}.treemap{position:relative;overflow:hidden;width:100%;height:100%;cursor:url(${h}) 10 10,pointer}.treemap-leaf{position:absolute;overflow:hidden;border-radius:var(--no-border-radius);background:var(--color-fill-bg-container-2) radial-gradient(farthest-corner,#0f1014ff 0%,#0f101400 100%);box-shadow:inset 5px 5px 8px 1px rgba(51,102,255,0.24)}.tooltip{display:inline-block;visibility:hidden;position:absolute;top:0;left:0;padding:8px 8px 8px 15px;font-size:var(--chart-tooltips-font-size-2);line-height:20px;font-weight:var(--font-weight-500);color:var(--color-normal-text);--treemap-tooltip-background:rgba(103,149,219,0.12) radial-gradient(100% 100% ellipse at 12px 4px,rgba(var(--palette-tech-blue-6-channel),0.3),rgba(var(--palette-tech-blue-6-channel),0));--treemap-backdrop-filter:blur(5px);z-index:0}.bottom.tooltip,\n.bottomRight.tooltip,\n.bottomLeft.tooltip{padding:8px 8px 15px 8px}.right.tooltip{padding:8px 15px 8px 8px}.top.tooltip,\n.topLeft.tooltip,\n.topRight.tooltip{padding:15px 8px 8px 8px}.tooltip::before,\n.tooltip::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;z-index:-1;background:var(--treemap-tooltip-background);-webkit-backdrop-filter:var(--treemap-backdrop-filter);backdrop-filter:var(--treemap-backdrop-filter)}.tooltip::before{-webkit-clip-path:inset(0 0 0 7px round var(--medius-border-radius));clip-path:inset(0 0 0 7px round var(--medius-border-radius))}.top.tooltip::before,\n.topLeft.tooltip::before,\n.topRight.tooltip::before{-webkit-clip-path:inset(7px 0 0 0 round var(--medius-border-radius));clip-path:inset(7px 0 0 0 round var(--medius-border-radius))}.bottom.tooltip::before,\n.bottomRight.tooltip::before,\n.bottomLeft.tooltip::before{-webkit-clip-path:inset(0 0 7px 0 round var(--medius-border-radius));clip-path:inset(0 0 7px 0 round var(--medius-border-radius))}.right.tooltip::before{-webkit-clip-path:inset(0 7px 0 0 round var(--medius-border-radius));clip-path:inset(0 7px 0 0 round var(--medius-border-radius))}.tooltip::after{-webkit-clip-path:polygon(0 50%,7px calc(50% - 7px),7px calc(50% + 7px));clip-path:polygon(0 50%,7px calc(50% - 7px),7px calc(50% + 7px))}.bottom.tooltip::after{-webkit-clip-path:polygon(calc(50% - 7px) calc(100% - 7px),50% 100%,calc(50% + 7px) calc(100% - 7px));clip-path:polygon(calc(50% - 7px) calc(100% - 7px),50% 100%,calc(50% + 7px) calc(100% - 7px))}.bottomLeft.tooltip::after{-webkit-clip-path:polygon(7px calc(100% - 7px),14px 100%,21px calc(100% - 7px));clip-path:polygon(7px calc(100% - 7px),14px 100%,21px calc(100% - 7px))}.bottomRight.tooltip::after{-webkit-clip-path:polygon(calc(100% - 7px) calc(100% - 7px),calc(100% - 14px) 100%,calc(100% - 21px) calc(100% - 7px));clip-path:polygon(calc(100% - 7px) calc(100% - 7px),calc(100% - 14px) 100%,calc(100% - 21px) calc(100% - 7px))}.top.tooltip::after{-webkit-clip-path:polygon(calc(50% - 7px) 7px,50% 0,calc(50% + 7px) 7px);clip-path:polygon(calc(50% - 7px) 7px,50% 0,calc(50% + 7px) 7px)}.topLeft.tooltip::after{-webkit-clip-path:polygon(7px 7px,14px 0,21px 7px);clip-path:polygon(7px 7px,14px 0,21px 7px)}.topRight.tooltip::after{-webkit-clip-path:polygon(calc(100% - 7px) 7px,calc(100% - 14px) 0,calc(100% - 21px) 7px);clip-path:polygon(calc(100% - 7px) 7px,calc(100% - 14px) 0,calc(100% - 21px) 7px)}.right.tooltip::after{-webkit-clip-path:polygon(calc(100% - 7px) calc(50% - 7px),100% 50%,calc(100% - 7px) calc(50% + 7px));clip-path:polygon(calc(100% - 7px) calc(50% - 7px),100% 50%,calc(100% - 7px) calc(50% + 7px))}`,""]);const f=u.toString()},54664:(t,e,n)=>{t.exports=n.p+"images/f3856ac6.svg"},17290:(t,e,n)=>{function r(t){let e;const n=()=>cancelAnimationFrame(e),r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];e&&n(),e=requestAnimationFrame((()=>{t(...o)}))};return r.cancel=n,r}n.d(e,{G:()=>r})},37604:(t,e,n)=>{function r(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function o(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=a)):void 0===e&&(e=i);for(var n,r,o,p,u,h=new l(t),f=[h];n=f.pop();)if((o=e(n.data))&&(u=(o=Array.from(o)).length))for(n.children=o,p=u-1;p>=0;--p)f.push(r=o[p]=new l(o[p])),r.parent=n,r.depth=n.depth+1;return h.eachBefore(c)}function i(t){return t.children}function a(t){return Array.isArray(t)?t[1]:null}function p(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function c(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function l(t){this.data=t,this.depth=this.height=0,this.parent=null}n.d(e,{Ay:()=>o}),l.prototype=o.prototype={constructor:l,count:function(){return this.eachAfter(r)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,o,i=this,a=[i],p=[],c=-1;i=a.pop();)if(p.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=p.pop();)t.call(e,i,++c,this);return this},eachBefore:function(t,e){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(t.call(e,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,o=r&&r.length;--o>=0;)n+=r[o].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),o=null;for(t=n.pop(),e=r.pop();t===e;)o=t,t=n.pop(),e=r.pop();return o}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var o=r.length;t!==n;)r.splice(o,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return o(this).eachBefore(p)},[Symbol.iterator]:function*(){var t,e,n,r,o=this,i=[o];do{for(t=i.reverse(),i=[];o=t.pop();)if(yield o,e=o.children)for(n=0,r=e.length;n<r;++n)i.push(e[n])}while(i.length)}}},16399:(t,e,n)=>{function r(t,e,n,r,o){var i,a,p=t.children,c=p.length,l=new Array(c+1);for(l[0]=a=i=0;i<c;++i)l[i+1]=a+=p[i].value;!function t(e,n,r,o,i,a,c){if(e>=n-1){var u=p[e];return u.x0=o,u.y0=i,u.x1=a,void(u.y1=c)}for(var h=l[e],f=r/2+h,d=e+1,s=n-1;d<s;){var x=d+s>>>1;l[x]<f?d=x+1:s=x}f-l[d-1]<l[d]-f&&e+1<d&&--d;var g=l[d]-h,v=r-g;if(a-o>c-i){var b=r?(o*v+a*g)/r:a;t(e,d,g,o,i,b,c),t(d,n,v,b,i,a,c)}else{var y=r?(i*v+c*g)/r:c;t(e,d,g,o,i,a,y),t(d,n,v,o,y,a,c)}}(0,c,t.value,e,n,r,o)}n.d(e,{A:()=>r})},61997:(t,e,n)=>{function r(t,e,n,r,o){for(var i,a=t.children,p=-1,c=a.length,l=t.value&&(r-e)/t.value;++p<c;)(i=a[p]).y0=n,i.y1=o,i.x0=e,i.x1=e+=i.value*l}n.d(e,{A:()=>r})},1696:(t,e,n)=>{function r(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}n.d(e,{A:()=>p});var o=n(54960);function i(){return 0}function a(t){return function(){return t}}function p(){var t=o.Ay,e=!1,n=1,p=1,c=[0],l=i,u=i,h=i,f=i,d=i;function s(t){return t.x0=t.y0=0,t.x1=n,t.y1=p,t.eachBefore(x),c=[0],e&&t.eachBefore(r),t}function x(e){var n=c[e.depth],r=e.x0+n,o=e.y0+n,i=e.x1-n,a=e.y1-n;i<r&&(r=i=(r+i)/2),a<o&&(o=a=(o+a)/2),e.x0=r,e.y0=o,e.x1=i,e.y1=a,e.children&&(n=c[e.depth+1]=l(e)/2,r+=d(e)-n,o+=u(e)-n,(i-=h(e)-n)<r&&(r=i=(r+i)/2),(a-=f(e)-n)<o&&(o=a=(o+a)/2),t(e,r,o,i,a))}return s.round=function(t){return arguments.length?(e=!!t,s):e},s.size=function(t){return arguments.length?(n=+t[0],p=+t[1],s):[n,p]},s.tile=function(e){return arguments.length?(t=function(t){if("function"!=typeof t)throw new Error;return t}(e),s):t},s.padding=function(t){return arguments.length?s.paddingInner(t).paddingOuter(t):s.paddingInner()},s.paddingInner=function(t){return arguments.length?(l="function"==typeof t?t:a(+t),s):l},s.paddingOuter=function(t){return arguments.length?s.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):s.paddingTop()},s.paddingTop=function(t){return arguments.length?(u="function"==typeof t?t:a(+t),s):u},s.paddingRight=function(t){return arguments.length?(h="function"==typeof t?t:a(+t),s):h},s.paddingBottom=function(t){return arguments.length?(f="function"==typeof t?t:a(+t),s):f},s.paddingLeft=function(t){return arguments.length?(d="function"==typeof t?t:a(+t),s):d},s}},46793:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(61997),o=n(67766),i=n(54960);const a=function t(e){function n(t,n,a,p,c){if((l=t._squarify)&&l.ratio===e)for(var l,u,h,f,d,s=-1,x=l.length,g=t.value;++s<x;){for(h=(u=l[s]).children,f=u.value=0,d=h.length;f<d;++f)u.value+=h[f].value;u.dice?(0,r.A)(u,n,a,p,g?a+=(c-a)*u.value/g:c):(0,o.A)(u,n,a,g?n+=(p-n)*u.value/g:p,c),g-=u.value}else t._squarify=l=(0,i.AI)(e,t,n,a,p,c),l.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(i.U1)},67766:(t,e,n)=>{function r(t,e,n,r,o){for(var i,a=t.children,p=-1,c=a.length,l=t.value&&(o-n)/t.value;++p<c;)(i=a[p]).x0=e,i.x1=r,i.y0=n,i.y1=n+=i.value*l}n.d(e,{A:()=>r})},6849:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(61997),o=n(67766);function i(t,e,n,i,a){(1&t.depth?o.A:r.A)(t,e,n,i,a)}},54960:(t,e,n)=>{n.d(e,{AI:()=>a,Ay:()=>p,U1:()=>i});var r=n(61997),o=n(67766),i=(1+Math.sqrt(5))/2;function a(t,e,n,i,a,p){for(var c,l,u,h,f,d,s,x,g,v,b,y=[],m=e.children,w=0,k=0,A=m.length,R=e.value;w<A;){u=a-n,h=p-i;do{f=m[k++].value}while(!f&&k<A);for(d=s=f,b=f*f*(v=Math.max(h/u,u/h)/(R*t)),g=Math.max(s/b,b/d);k<A;++k){if(f+=l=m[k].value,l<d&&(d=l),l>s&&(s=l),b=f*f*v,(x=Math.max(s/b,b/d))>g){f-=l;break}g=x}y.push(c={value:f,dice:u<h,children:m.slice(w,k)}),c.dice?(0,r.A)(c,n,i,a,R?i+=h*f/R:p):(0,o.A)(c,n,i,R?n+=u*f/R:a,p),R-=f,w=k}return y}const p=function t(e){function n(t,n,r,o,i){a(e,t,n,r,o,i)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(i)}}]);
|
|
2
|
+
//# sourceMappingURL=859.472360b6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunks/859.472360b6.js","mappings":"8LAIA,MAAMA,EAAmB,IAAIC,IAcvBC,EAAiC,IAAKC,EAAAA,GAPZC,IAC9BA,EAAQC,SAASC,IAAU,IAAAC,EACzB,MAAM,OAAEC,GAAWF,EACS,QAA5BC,EAAAP,EAAiBS,IAAID,UAAO,IAAAD,GAA5BA,EAA8BF,SAASK,GAAaA,EAASJ,IAAO,GACpE,IAKSK,EAAUA,CAACC,EAAkBF,KACnCV,EAAiBa,IAAID,KACxBZ,EAAiBc,IAAIF,EAAS,IAAIG,KAClCb,EAAeS,QAAQC,IAGzBZ,EAAiBS,IAAIG,GAASI,IAAIN,EAAS,EAGhCO,EAAYA,CAACL,EAAkBF,KACtCV,EAAiBa,IAAID,KACvBZ,EAAiBS,IAAIG,GAASM,OAAOR,GAEM,IAAvCV,EAAiBS,IAAIG,GAASO,OAChCjB,EAAee,UAAUL,GACzBZ,EAAiBkB,OAAON,IAE5B,EClBK,SAASQ,EACdC,GAEA,MAAM,UACJC,EAAS,SACTC,GACEF,GAAS,CAAC,EAERG,GAAWC,EAAAA,EAAAA,UACXC,EAAMJ,QAAAA,EAAaE,GAClBL,EAAM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ASlB,EAAS7D,EAAQyC,EAAIC,EAAIC,EAAIC,GACpC4C,EAAcT,EAAO/E,EAAQyC,EAAIC,EAAIC,EAAIC,EAC3C,CAMA,OAJAiB,EAASkB,MAAQ,SAASpB,GACxB,OAAOmB,GAAQnB,GAAKA,GAAK,EAAIA,EAAI,EACnC,EAEOE,CACR,CAXD,CAWGyB,E","sources":["webpack:///./src/hooks/useResizeObserver/resizeObserverUtil.ts","webpack:///./src/hooks/useResizeObserver/index.ts","webpack:///./src/hooks/usePrevious/index.ts","webpack:///./src/modern-style-treemap/modern-style-treemap.shadow.css","webpack:///../../src/debounceByAnimationFrame.ts","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/count.js","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/index.js","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/each.js","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/eachAfter.js","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/eachBefore.js","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/find.js","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/sum.js","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/sort.js","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/path.js","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/ancestors.js","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/descendants.js","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/leaves.js","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/links.js","webpack:///../../node_modules/d3-hierarchy/src/hierarchy/iterator.js","webpack:///../../node_modules/d3-hierarchy/src/treemap/binary.js","webpack:///../../node_modules/d3-hierarchy/src/treemap/dice.js","webpack:///../../node_modules/d3-hierarchy/src/treemap/round.js","webpack:///../../node_modules/d3-hierarchy/src/constant.js","webpack:///../../node_modules/d3-hierarchy/src/treemap/index.js","webpack:///../../node_modules/d3-hierarchy/src/accessors.js","webpack:///../../node_modules/d3-hierarchy/src/treemap/resquarify.js","webpack:///../../node_modules/d3-hierarchy/src/treemap/slice.js","webpack:///../../node_modules/d3-hierarchy/src/treemap/sliceDice.js","webpack:///../../node_modules/d3-hierarchy/src/treemap/squarify.js"],"sourcesContent":["import ResizeObserver from \"resize-observer-polyfill\";\n\nexport type ResizeCallback = (entry: ResizeObserverEntry) => void;\n\nconst elementListeners = new Map<Element, Set<ResizeCallback>>();\n\nexport const elementListeners_only_for_test =\n process.env.NODE_ENV === \"test\"\n ? elementListeners\n : /* istanbul ignore next */ null;\n\nconst resizeObserverCallback = (entries: ResizeObserverEntry[]): void => {\n entries.forEach((entry) => {\n const { target } = entry;\n elementListeners.get(target)?.forEach((callback) => callback(entry));\n });\n};\n\nconst resizeObserver: ResizeObserver = new (ResizeObserver as any)(resizeObserverCallback);\n\nexport const observe = (element: Element, callback: ResizeCallback): void => {\n if (!elementListeners.has(element)) {\n elementListeners.set(element, new Set());\n resizeObserver.observe(element);\n }\n\n elementListeners.get(element).add(callback);\n};\n\nexport const unobserve = (element: Element, callback: ResizeCallback): void => {\n if (elementListeners.has(element)) {\n elementListeners.get(element).delete(callback);\n\n if (elementListeners.get(element).size === 0) {\n resizeObserver.unobserve(element);\n elementListeners.delete(element);\n }\n }\n};\n","import {\n useState,\n useCallback,\n useRef,\n type RefObject,\n useEffect,\n} from \"react\";\nimport { observe, unobserve } from \"./resizeObserverUtil.js\";\n\ninterface ElementSize {\n clientWidth: number;\n clientHeight: number;\n}\n\nexport interface ResizeObserveProps<T extends Element = Element> {\n targetRef?: RefObject<T>;\n onResize?: (size: ResizeObserverEntry) => void;\n}\n\nexport function useResizeObserver<T extends Element = Element>(\n props?: ResizeObserveProps<T>\n): [RefObject<T>, ElementSize] {\n const {\n targetRef,\n onResize,\n } = props || {};\n\n const localRef = useRef<T>();\n const ref = targetRef ?? localRef;\n const [size, setSize] = useState<ElementSize>({ clientWidth: 0, clientHeight: 0 });\n\n const handleResize = useCallback(\n (entry: ResizeObserverEntry) => {\n const { target } = entry;\n const { clientWidth = 0, clientHeight = 0 } = target;\n\n setSize((prev) => {\n // skip if same size\n if (prev.clientWidth === clientWidth && prev.clientHeight === clientHeight) {\n return prev;\n }\n\n onResize?.(entry);\n\n return { clientWidth, clientHeight };\n });\n },\n [onResize]\n );\n\n useEffect(() => {\n if (\n typeof ref !== \"object\" ||\n ref === null ||\n !(ref.current instanceof Element)\n ) {\n throw new Error(\"ResizeObserver must observe an Element\");\n }\n\n const element = ref.current;\n observe(element, handleResize);\n\n return () => {\n unobserve(element, handleResize);\n };\n }, [handleResize, ref]);\n\n return [ref, { ...size }];\n}\n","import {useRef, useEffect} from 'react';\nexport function usePrevious<T>(data?: T):T|undefined{\n const ref = useRef<T>();\n useEffect(()=>{\n ref.current = data\n })\n return ref.current;\n}\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"./dot.svg\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:block;width:100%;height:100%}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.wrapper{position:relative;width:100%;height:100%}.treemap{position:relative;overflow:hidden;width:100%;height:100%;cursor:url(${___CSS_LOADER_URL_REPLACEMENT_0___}) 10 10,pointer}.treemap-leaf{position:absolute;overflow:hidden;border-radius:var(--no-border-radius);background:var(--color-fill-bg-container-2) radial-gradient(farthest-corner,#0f1014ff 0%,#0f101400 100%);box-shadow:inset 5px 5px 8px 1px rgba(51,102,255,0.24)}.tooltip{display:inline-block;visibility:hidden;position:absolute;top:0;left:0;padding:8px 8px 8px 15px;font-size:var(--chart-tooltips-font-size-2);line-height:20px;font-weight:var(--font-weight-500);color:var(--color-normal-text);--treemap-tooltip-background:rgba(103,149,219,0.12) radial-gradient(100% 100% ellipse at 12px 4px,rgba(var(--palette-tech-blue-6-channel),0.3),rgba(var(--palette-tech-blue-6-channel),0));--treemap-backdrop-filter:blur(5px);z-index:0}.bottom.tooltip,\n.bottomRight.tooltip,\n.bottomLeft.tooltip{padding:8px 8px 15px 8px}.right.tooltip{padding:8px 15px 8px 8px}.top.tooltip,\n.topLeft.tooltip,\n.topRight.tooltip{padding:15px 8px 8px 8px}.tooltip::before,\n.tooltip::after{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;z-index:-1;background:var(--treemap-tooltip-background);-webkit-backdrop-filter:var(--treemap-backdrop-filter);backdrop-filter:var(--treemap-backdrop-filter)}.tooltip::before{-webkit-clip-path:inset(0 0 0 7px round var(--medius-border-radius));clip-path:inset(0 0 0 7px round var(--medius-border-radius))}.top.tooltip::before,\n.topLeft.tooltip::before,\n.topRight.tooltip::before{-webkit-clip-path:inset(7px 0 0 0 round var(--medius-border-radius));clip-path:inset(7px 0 0 0 round var(--medius-border-radius))}.bottom.tooltip::before,\n.bottomRight.tooltip::before,\n.bottomLeft.tooltip::before{-webkit-clip-path:inset(0 0 7px 0 round var(--medius-border-radius));clip-path:inset(0 0 7px 0 round var(--medius-border-radius))}.right.tooltip::before{-webkit-clip-path:inset(0 7px 0 0 round var(--medius-border-radius));clip-path:inset(0 7px 0 0 round var(--medius-border-radius))}.tooltip::after{-webkit-clip-path:polygon(0 50%,7px calc(50% - 7px),7px calc(50% + 7px));clip-path:polygon(0 50%,7px calc(50% - 7px),7px calc(50% + 7px))}.bottom.tooltip::after{-webkit-clip-path:polygon(calc(50% - 7px) calc(100% - 7px),50% 100%,calc(50% + 7px) calc(100% - 7px));clip-path:polygon(calc(50% - 7px) calc(100% - 7px),50% 100%,calc(50% + 7px) calc(100% - 7px))}.bottomLeft.tooltip::after{-webkit-clip-path:polygon(7px calc(100% - 7px),14px 100%,21px calc(100% - 7px));clip-path:polygon(7px calc(100% - 7px),14px 100%,21px calc(100% - 7px))}.bottomRight.tooltip::after{-webkit-clip-path:polygon(calc(100% - 7px) calc(100% - 7px),calc(100% - 14px) 100%,calc(100% - 21px) calc(100% - 7px));clip-path:polygon(calc(100% - 7px) calc(100% - 7px),calc(100% - 14px) 100%,calc(100% - 21px) calc(100% - 7px))}.top.tooltip::after{-webkit-clip-path:polygon(calc(50% - 7px) 7px,50% 0,calc(50% + 7px) 7px);clip-path:polygon(calc(50% - 7px) 7px,50% 0,calc(50% + 7px) 7px)}.topLeft.tooltip::after{-webkit-clip-path:polygon(7px 7px,14px 0,21px 7px);clip-path:polygon(7px 7px,14px 0,21px 7px)}.topRight.tooltip::after{-webkit-clip-path:polygon(calc(100% - 7px) 7px,calc(100% - 14px) 0,calc(100% - 21px) 7px);clip-path:polygon(calc(100% - 7px) 7px,calc(100% - 14px) 0,calc(100% - 21px) 7px)}.right.tooltip::after{-webkit-clip-path:polygon(calc(100% - 7px) calc(50% - 7px),100% 50%,calc(100% - 7px) calc(50% + 7px));clip-path:polygon(calc(100% - 7px) calc(50% - 7px),100% 50%,calc(100% - 7px) calc(50% + 7px))}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","export type SimpleFunction<P extends unknown[] = unknown[], R = unknown> = (\n ...args: P\n) => R;\n\n// The debounce function receives our function as a parameter\nexport function debounceByAnimationFrame<P extends unknown[]>(\n fn: SimpleFunction<P, void>\n): SimpleFunction<P, void> & { cancel: () => void } {\n // This holds the requestAnimationFrame reference, so we can cancel it if we wish\n let frame: number;\n\n const cancel = () => cancelAnimationFrame(frame);\n\n // The debounce function returns a new function that can receive a variable number of arguments\n const func = (...params: P) => {\n // If the frame variable has been defined, clear it now, and queue for next frame\n if (frame) {\n cancel();\n }\n\n // Queue our function call for the next frame\n frame = requestAnimationFrame(() => {\n // Call our function and pass any params we received\n fn(...params);\n });\n };\n\n func.cancel = cancel;\n\n return func;\n}\n","function count(node) {\n var sum = 0,\n children = node.children,\n i = children && children.length;\n if (!i) sum = 1;\n else while (--i >= 0) sum += children[i].value;\n node.value = sum;\n}\n\nexport default function() {\n return this.eachAfter(count);\n}\n","import node_count from \"./count.js\";\nimport node_each from \"./each.js\";\nimport node_eachBefore from \"./eachBefore.js\";\nimport node_eachAfter from \"./eachAfter.js\";\nimport node_find from \"./find.js\";\nimport node_sum from \"./sum.js\";\nimport node_sort from \"./sort.js\";\nimport node_path from \"./path.js\";\nimport node_ancestors from \"./ancestors.js\";\nimport node_descendants from \"./descendants.js\";\nimport node_leaves from \"./leaves.js\";\nimport node_links from \"./links.js\";\nimport node_iterator from \"./iterator.js\";\n\nexport default function hierarchy(data, children) {\n if (data instanceof Map) {\n data = [undefined, data];\n if (children === undefined) children = mapChildren;\n } else if (children === undefined) {\n children = objectChildren;\n }\n\n var root = new Node(data),\n node,\n nodes = [root],\n child,\n childs,\n i,\n n;\n\n while (node = nodes.pop()) {\n if ((childs = children(node.data)) && (n = (childs = Array.from(childs)).length)) {\n node.children = childs;\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = childs[i] = new Node(childs[i]));\n child.parent = node;\n child.depth = node.depth + 1;\n }\n }\n }\n\n return root.eachBefore(computeHeight);\n}\n\nfunction node_copy() {\n return hierarchy(this).eachBefore(copyData);\n}\n\nfunction objectChildren(d) {\n return d.children;\n}\n\nfunction mapChildren(d) {\n return Array.isArray(d) ? d[1] : null;\n}\n\nfunction copyData(node) {\n if (node.data.value !== undefined) node.value = node.data.value;\n node.data = node.data.data;\n}\n\nexport function computeHeight(node) {\n var height = 0;\n do node.height = height;\n while ((node = node.parent) && (node.height < ++height));\n}\n\nexport function Node(data) {\n this.data = data;\n this.depth =\n this.height = 0;\n this.parent = null;\n}\n\nNode.prototype = hierarchy.prototype = {\n constructor: Node,\n count: node_count,\n each: node_each,\n eachAfter: node_eachAfter,\n eachBefore: node_eachBefore,\n find: node_find,\n sum: node_sum,\n sort: node_sort,\n path: node_path,\n ancestors: node_ancestors,\n descendants: node_descendants,\n leaves: node_leaves,\n links: node_links,\n copy: node_copy,\n [Symbol.iterator]: node_iterator\n};\n","export default function(callback, that) {\n let index = -1;\n for (const node of this) {\n callback.call(that, node, ++index, this);\n }\n return this;\n}\n","export default function(callback, that) {\n var node = this, nodes = [node], next = [], children, i, n, index = -1;\n while (node = nodes.pop()) {\n next.push(node);\n if (children = node.children) {\n for (i = 0, n = children.length; i < n; ++i) {\n nodes.push(children[i]);\n }\n }\n }\n while (node = next.pop()) {\n callback.call(that, node, ++index, this);\n }\n return this;\n}\n","export default function(callback, that) {\n var node = this, nodes = [node], children, i, index = -1;\n while (node = nodes.pop()) {\n callback.call(that, node, ++index, this);\n if (children = node.children) {\n for (i = children.length - 1; i >= 0; --i) {\n nodes.push(children[i]);\n }\n }\n }\n return this;\n}\n","export default function(callback, that) {\n let index = -1;\n for (const node of this) {\n if (callback.call(that, node, ++index, this)) {\n return node;\n }\n }\n}\n","export default function(value) {\n return this.eachAfter(function(node) {\n var sum = +value(node.data) || 0,\n children = node.children,\n i = children && children.length;\n while (--i >= 0) sum += children[i].value;\n node.value = sum;\n });\n}\n","export default function(compare) {\n return this.eachBefore(function(node) {\n if (node.children) {\n node.children.sort(compare);\n }\n });\n}\n","export default function(end) {\n var start = this,\n ancestor = leastCommonAncestor(start, end),\n nodes = [start];\n while (start !== ancestor) {\n start = start.parent;\n nodes.push(start);\n }\n var k = nodes.length;\n while (end !== ancestor) {\n nodes.splice(k, 0, end);\n end = end.parent;\n }\n return nodes;\n}\n\nfunction leastCommonAncestor(a, b) {\n if (a === b) return a;\n var aNodes = a.ancestors(),\n bNodes = b.ancestors(),\n c = null;\n a = aNodes.pop();\n b = bNodes.pop();\n while (a === b) {\n c = a;\n a = aNodes.pop();\n b = bNodes.pop();\n }\n return c;\n}\n","export default function() {\n var node = this, nodes = [node];\n while (node = node.parent) {\n nodes.push(node);\n }\n return nodes;\n}\n","export default function() {\n return Array.from(this);\n}\n","export default function() {\n var leaves = [];\n this.eachBefore(function(node) {\n if (!node.children) {\n leaves.push(node);\n }\n });\n return leaves;\n}\n","export default function() {\n var root = this, links = [];\n root.each(function(node) {\n if (node !== root) { // Don’t include the root’s parent, if any.\n links.push({source: node.parent, target: node});\n }\n });\n return links;\n}\n","export default function*() {\n var node = this, current, next = [node], children, i, n;\n do {\n current = next.reverse(), next = [];\n while (node = current.pop()) {\n yield node;\n if (children = node.children) {\n for (i = 0, n = children.length; i < n; ++i) {\n next.push(children[i]);\n }\n }\n }\n } while (next.length);\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n i, n = nodes.length,\n sum, sums = new Array(n + 1);\n\n for (sums[0] = sum = i = 0; i < n; ++i) {\n sums[i + 1] = sum += nodes[i].value;\n }\n\n partition(0, n, parent.value, x0, y0, x1, y1);\n\n function partition(i, j, value, x0, y0, x1, y1) {\n if (i >= j - 1) {\n var node = nodes[i];\n node.x0 = x0, node.y0 = y0;\n node.x1 = x1, node.y1 = y1;\n return;\n }\n\n var valueOffset = sums[i],\n valueTarget = (value / 2) + valueOffset,\n k = i + 1,\n hi = j - 1;\n\n while (k < hi) {\n var mid = k + hi >>> 1;\n if (sums[mid] < valueTarget) k = mid + 1;\n else hi = mid;\n }\n\n if ((valueTarget - sums[k - 1]) < (sums[k] - valueTarget) && i + 1 < k) --k;\n\n var valueLeft = sums[k] - valueOffset,\n valueRight = value - valueLeft;\n\n if ((x1 - x0) > (y1 - y0)) {\n var xk = value ? (x0 * valueRight + x1 * valueLeft) / value : x1;\n partition(i, k, valueLeft, x0, y0, xk, y1);\n partition(k, j, valueRight, xk, y0, x1, y1);\n } else {\n var yk = value ? (y0 * valueRight + y1 * valueLeft) / value : y1;\n partition(i, k, valueLeft, x0, y0, x1, yk);\n partition(k, j, valueRight, x0, yk, x1, y1);\n }\n }\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (x1 - x0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.y0 = y0, node.y1 = y1;\n node.x0 = x0, node.x1 = x0 += node.value * k;\n }\n}\n","export default function(node) {\n node.x0 = Math.round(node.x0);\n node.y0 = Math.round(node.y0);\n node.x1 = Math.round(node.x1);\n node.y1 = Math.round(node.y1);\n}\n","export function constantZero() {\n return 0;\n}\n\nexport default function(x) {\n return function() {\n return x;\n };\n}\n","import roundNode from \"./round.js\";\nimport squarify from \"./squarify.js\";\nimport {required} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nexport default function() {\n var tile = squarify,\n round = false,\n dx = 1,\n dy = 1,\n paddingStack = [0],\n paddingInner = constantZero,\n paddingTop = constantZero,\n paddingRight = constantZero,\n paddingBottom = constantZero,\n paddingLeft = constantZero;\n\n function treemap(root) {\n root.x0 =\n root.y0 = 0;\n root.x1 = dx;\n root.y1 = dy;\n root.eachBefore(positionNode);\n paddingStack = [0];\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(node) {\n var p = paddingStack[node.depth],\n x0 = node.x0 + p,\n y0 = node.y0 + p,\n x1 = node.x1 - p,\n y1 = node.y1 - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n if (node.children) {\n p = paddingStack[node.depth + 1] = paddingInner(node) / 2;\n x0 += paddingLeft(node) - p;\n y0 += paddingTop(node) - p;\n x1 -= paddingRight(node) - p;\n y1 -= paddingBottom(node) - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n tile(node, x0, y0, x1, y1);\n }\n }\n\n treemap.round = function(x) {\n return arguments.length ? (round = !!x, treemap) : round;\n };\n\n treemap.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];\n };\n\n treemap.tile = function(x) {\n return arguments.length ? (tile = required(x), treemap) : tile;\n };\n\n treemap.padding = function(x) {\n return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();\n };\n\n treemap.paddingInner = function(x) {\n return arguments.length ? (paddingInner = typeof x === \"function\" ? x : constant(+x), treemap) : paddingInner;\n };\n\n treemap.paddingOuter = function(x) {\n return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();\n };\n\n treemap.paddingTop = function(x) {\n return arguments.length ? (paddingTop = typeof x === \"function\" ? x : constant(+x), treemap) : paddingTop;\n };\n\n treemap.paddingRight = function(x) {\n return arguments.length ? (paddingRight = typeof x === \"function\" ? x : constant(+x), treemap) : paddingRight;\n };\n\n treemap.paddingBottom = function(x) {\n return arguments.length ? (paddingBottom = typeof x === \"function\" ? x : constant(+x), treemap) : paddingBottom;\n };\n\n treemap.paddingLeft = function(x) {\n return arguments.length ? (paddingLeft = typeof x === \"function\" ? x : constant(+x), treemap) : paddingLeft;\n };\n\n return treemap;\n}\n","export function optional(f) {\n return f == null ? null : required(f);\n}\n\nexport function required(f) {\n if (typeof f !== \"function\") throw new Error;\n return f;\n}\n","import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\nimport {phi, squarifyRatio} from \"./squarify.js\";\n\nexport default (function custom(ratio) {\n\n function resquarify(parent, x0, y0, x1, y1) {\n if ((rows = parent._squarify) && (rows.ratio === ratio)) {\n var rows,\n row,\n nodes,\n i,\n j = -1,\n n,\n m = rows.length,\n value = parent.value;\n\n while (++j < m) {\n row = rows[j], nodes = row.children;\n for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value;\n if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += (y1 - y0) * row.value / value : y1);\n else treemapSlice(row, x0, y0, value ? x0 += (x1 - x0) * row.value / value : x1, y1);\n value -= row.value;\n }\n } else {\n parent._squarify = rows = squarifyRatio(ratio, parent, x0, y0, x1, y1);\n rows.ratio = ratio;\n }\n }\n\n resquarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return resquarify;\n})(phi);\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (y1 - y0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.x0 = x0, node.x1 = x1;\n node.y0 = y0, node.y1 = y0 += node.value * k;\n }\n}\n","import dice from \"./dice.js\";\nimport slice from \"./slice.js\";\n\nexport default function(parent, x0, y0, x1, y1) {\n (parent.depth & 1 ? slice : dice)(parent, x0, y0, x1, y1);\n}\n","import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\n\nexport var phi = (1 + Math.sqrt(5)) / 2;\n\nexport function squarifyRatio(ratio, parent, x0, y0, x1, y1) {\n var rows = [],\n nodes = parent.children,\n row,\n nodeValue,\n i0 = 0,\n i1 = 0,\n n = nodes.length,\n dx, dy,\n value = parent.value,\n sumValue,\n minValue,\n maxValue,\n newRatio,\n minRatio,\n alpha,\n beta;\n\n while (i0 < n) {\n dx = x1 - x0, dy = y1 - y0;\n\n // Find the next non-empty node.\n do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);\n minValue = maxValue = sumValue;\n alpha = Math.max(dy / dx, dx / dy) / (value * ratio);\n beta = sumValue * sumValue * alpha;\n minRatio = Math.max(maxValue / beta, beta / minValue);\n\n // Keep adding nodes while the aspect ratio maintains or improves.\n for (; i1 < n; ++i1) {\n sumValue += nodeValue = nodes[i1].value;\n if (nodeValue < minValue) minValue = nodeValue;\n if (nodeValue > maxValue) maxValue = nodeValue;\n beta = sumValue * sumValue * alpha;\n newRatio = Math.max(maxValue / beta, beta / minValue);\n if (newRatio > minRatio) { sumValue -= nodeValue; break; }\n minRatio = newRatio;\n }\n\n // Position and record the row orientation.\n rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});\n if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);\n else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);\n value -= sumValue, i0 = i1;\n }\n\n return rows;\n}\n\nexport default (function custom(ratio) {\n\n function squarify(parent, x0, y0, x1, y1) {\n squarifyRatio(ratio, parent, x0, y0, x1, y1);\n }\n\n squarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return squarify;\n})(phi);\n"],"names":["elementListeners","Map","resizeObserver","ResizeObserver","entries","forEach","entry","_elementListeners$get","target","get","callback","observe","element","has","set","Set","add","unobserve","delete","size","useResizeObserver","props","targetRef","onResize","localRef","useRef","ref","setSize","useState","clientWidth","clientHeight","handleResize","useCallback","prev","useEffect","current","Element","Error","usePrevious","data","___CSS_LOADER_URL_IMPORT_0___","URL","___CSS_LOADER_EXPORT___","___CSS_LOADER_URL_REPLACEMENT_0___","push","module","id","toString","debounceByAnimationFrame","fn","frame","cancel","cancelAnimationFrame","func","_len","arguments","length","params","Array","_key","requestAnimationFrame","count","node","sum","children","i","value","hierarchy","undefined","mapChildren","objectChildren","child","childs","n","root","Node","nodes","pop","from","parent","depth","eachBefore","computeHeight","d","isArray","copyData","height","this","prototype","constructor","eachAfter","each","that","index","call","next","find","sort","compare","path","end","start","ancestor","a","b","aNodes","ancestors","bNodes","c","leastCommonAncestor","k","splice","descendants","leaves","links","source","copy","Symbol","iterator","reverse","x0","y0","x1","y1","sums","partition","j","valueOffset","valueTarget","hi","mid","valueLeft","valueRight","xk","yk","Math","round","constantZero","x","tile","squarify","dx","dy","paddingStack","paddingInner","paddingTop","paddingRight","paddingBottom","paddingLeft","treemap","positionNode","p","f","required","padding","paddingOuter","constant","custom","ratio","resquarify","rows","_squarify","row","m","dice","phi","sqrt","squarifyRatio","nodeValue","sumValue","minValue","maxValue","newRatio","minRatio","alpha","beta","i0","i1","max","slice"],"sourceRoot":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see cabinet-container.bc8cb288.js.LICENSE.txt */
|
|
2
|
+
(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[4219],{8540:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CabinetContainer:()=>X,CabinetContainerComponent:()=>U});var a,i=r(24586),n=r(74635),o=r(70918),l=r(26902),s=r(5536),c=r(86121),p=r(70829),h=r(62740),b=r(18769),g=r.n(b),d=r(24295),u=r(10300),f=r(79935),v=r(21053),x=r(53373),w=r.n(x),m=r(6837);let k,y,C,A,W,z,M,E,T,N,S,R,D,_,H,j,O;const{defineElement:P,property:L,event:$}=(0,u.createDecorators)(),B=(0,d.wrapBrick)("data-view.cabinet-node");let X;var Z=new WeakMap,q=new WeakMap,F=new WeakMap,G=new WeakMap,I=new WeakMap,J=new WeakSet,K=new WeakMap;class Q extends d.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,J),(0,o.A)(this,Z,y(this,"host")),(0,o.A)(this,q,(C(this),A(this,[]))),(0,o.A)(this,F,(W(this),z(this))),(0,o.A)(this,G,(M(this),E(this))),(0,o.A)(this,I,(T(this),N(this))),(0,o.A)(this,K,(D(this),_(this))),(0,i.A)(this,"handleClick",(O(this),e=>{(0,s.A)(J,this,S).emit(e)})),(0,i.A)(this,"handleDbClick",(e=>{(0,s.A)(J,this,H).emit(e)}))}get type(){return(0,p.A)(Z,this)}set type(e){(0,c.A)(Z,this,e)}get data(){return(0,p.A)(q,this)}set data(e){(0,c.A)(q,this,e)}get status(){return(0,p.A)(F,this)}set status(e){(0,c.A)(F,this,e)}get customTitle(){return(0,p.A)(G,this)}set customTitle(e){(0,c.A)(G,this,e)}render(){return g().createElement(U,{type:this.type,data:this.data,status:this.status,customTitle:this.customTitle,handleClick:this.handleClick,handleDbClick:this.handleDbClick})}}function U(e){const{type:t,data:r,status:a,customTitle:i,handleClick:n,handleDbClick:o}=e,l=(0,b.useRef)(!1),s=(0,b.useRef)(),[c,{clientWidth:p,clientHeight:h}]=(0,m.w)(),d=(0,b.useCallback)(((e,t,a,i)=>{const n=Math.max(i,a),o=Math.min(i,a),l=Math.min(t,e),s=Math.max(t,e),c=Math.ceil((e+t)/2),p=Math.ceil((a+i)/2),h=Math.ceil(r.length/c);return c<=1?{col:1,row:r.length}:h===p||l===s||l===c||s===c?{col:c,row:h}:h>p?d(c,s,h,o):h<p?d(l,c,n,h):void 0}),[r.length]),u=(0,b.useMemo)((()=>{if(!r.length)return;const e=p-27,t=h-84;if(e<=0||t<=0)return;const a=Math.floor(e/118),i=Math.floor(t/105),n=Math.floor(e/56),o=Math.floor(t/63),l=a*i,s=n*o,c=r.length;if(c<=l)return{width:Math.floor(e/a),itemWidth:118};if(c>=s)return{width:Math.floor(e/n),itemWidth:56};{const{col:t}=d(a,n,i,o);return{width:Math.floor(e/t),itemWidth:Math.max(e/t-10,56)}}}),[r.length,p,h,d]),f=(e,t,r)=>{e.stopPropagation(),window.clearTimeout(s.current),l.current=!1,s.current=window.setTimeout((function(){l.current||null==n||n({data:t,type:r})}),200)},v=(e,t,r)=>{window.clearTimeout(s.current),l.current=!0,e.stopPropagation(),null==o||o({data:t,type:r})};return g().createElement("div",{className:w()("wrapper",{hostWrapper:"host"===t||"k8s-blue"===t,k8sWrapper:"k8s"===t},a&&`wrapper-${a}`),ref:c,onClick:e=>f(e,void 0,"container"),onDoubleClick:e=>v(e,void 0,"container")},g().createElement("div",{className:w()("container",{hostContainer:"host"===t||"k8s-blue"===t,k8sContainer:"k8s"===t},a&&`container-${a}`)},g().createElement("div",{className:"content"},g().createElement("div",{className:"contentLayout"},r.map(((e,t)=>g().createElement("div",{key:t,className:"itemContent",style:{width:null==u?void 0:u.width}},g().createElement("div",{className:"item",style:{width:null==u?void 0:u.itemWidth},onClick:t=>f(t,e,"node"),onDoubleClick:t=>v(t,e,"node")},g().createElement(B,{type:e.type,nodeTitle:e.nodeTitle,status:e.status,isAlert:e.isAlert}))))))),i&&g().createElement("div",{className:"footer"},g().createElement("div",{className:"footerTitle"},i))))}a=Q,({e:[y,C,A,W,z,M,E,T,N,S,R,D,_,H,j,O],c:[X,k]}=(0,h.A)(a,[P("data-view.cabinet-container",{styleTexts:[f.A,v.A]})],[[L({attribute:!1}),1,"type"],[L({attribute:!1}),1,"data"],[L(),1,"status"],[L(),1,"customTitle"],[$({type:"container.click"}),1,"onHandleClick",e=>(0,p.A)(I,e),(e,t)=>(0,c.A)(I,e,t)],[$({type:"container.dbclick"}),1,"onHandleDbClick",e=>(0,p.A)(K,e),(e,t)=>(0,c.A)(K,e,t)]],0,(e=>J.has((0,l.A)(e))),d.ReactNextElement)),k()},6837:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p,w:()=>c});var a=r(18769),i=r(99126);const n=new Map,o=new i.A((e=>{e.forEach((e=>{var t;const{target:r}=e;null===(t=n.get(r))||void 0===t||t.forEach((t=>t(e)))}))})),l=(e,t)=>{n.has(e)||(n.set(e,new Set),o.observe(e)),n.get(e).add(t)},s=(e,t)=>{n.has(e)&&(n.get(e).delete(t),0===n.get(e).size&&(o.unobserve(e),n.delete(e)))};function c(e){const{targetRef:t,onResize:r}=e||{},i=(0,a.useRef)(),n=null!=t?t:i,[o,c]=(0,a.useState)({clientWidth:0,clientHeight:0}),p=(0,a.useCallback)((e=>{const{target:t}=e,{clientWidth:a=0,clientHeight:i=0}=t;c((t=>t.clientWidth===a&&t.clientHeight===i?t:(null==r||r(e),{clientWidth:a,clientHeight:i})))}),[r]);return(0,a.useEffect)((()=>{if("object"!=typeof n||null===n||!(n.current instanceof Element))throw new Error("ResizeObserver must observe an Element");const e=n.current;return l(e,p),()=>{s(e,p)}}),[p,n]),[n,{...o}]}function p(e){const t=(0,a.useRef)();return(0,a.useEffect)((()=>{t.current=e})),t.current}},21053:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(36758),i=r.n(a),n=r(40935),o=r.n(n)()(i());o.push([e.id,'*,\n*:after,\n*:before{box-sizing:border-box}.wrapper{width:100%;height:100%;position:relative}.container{width:100%;height:100%;border:3px solid;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);display:flex;flex-direction:column;cursor:pointer;overflow:hidden}.wrapper:after,\n.wrapper:before{content:"";position:absolute;left:50%;border:3px solid;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);transform:translateX(-50%)}.wrapper:before{width:calc(100% - 10px);height:100%;bottom:-14px;z-index:-1;opacity:0.6}.wrapper:after{width:calc(100% - 30px);height:100%;bottom:-24px;z-index:-10;opacity:0.4}.hostWrapper:before,\n.hostWrapper:after{border-image:radial-gradient(circle,rgba(55,229,252,1),#007aca) 3 3}.hostWrapper:not(:has(.item:hover)):hover:before,\n.hostWrapper.wrapper-active:before{border-image:radial-gradient(circle,rgba(55,229,252,1),#45e4ff) 3 3}.k8sWrapper:after,\n.k8sWrapper:before{border-image:radial-gradient(circle,rgba(255,102,51,1),#ff663380) 3 3}.hostContainer{background:rgba(7,4,21,0.85);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border-image:radial-gradient(circle,rgba(55,229,252,1),#007aca) 3 3}.hostContainer:not(:has(.item:hover)):hover,\n.hostContainer.container-active{border-image:radial-gradient(circle,rgba(55,229,252,1),#45e4ff) 3 3;box-shadow:inset 0 0 30px 0 #45e4ff,inset 0 0 20px 0 #45e4ff}.hostWrapper.wrapper-faded:after,\n.hostWrapper.wrapper-faded:before,\n.k8sWrapper.wrapper-faded:after,\n.k8sWrapper.wrapper-faded:before{opacity:0.1}.k8sContainer{background:rgba(7,4,21,0.8);border-image:radial-gradient(circle,rgba(255,102,51,1),#ff663399) 3 3}.k8sContainer:not(:has(.item:hover)):hover,\n.k8sContainer.container-active{box-shadow:inset 0 0 30px 0 #ff6633,inset 0 0 20px 0 #ff6633}.hostContainer.container-faded,\n.k8sContainer.container-faded{opacity:0.4}.content{flex:1;padding:20px 10px;width:100%;box-sizing:border-box;overflow:hidden;display:flex}.contentLayout{overflow:auto;height:100%}.itemContent{display:inline-block;vertical-align:middle}.item{min-width:56px;min-height:63px;max-width:118px;margin:auto}.footer{width:100%;height:57px;text-align:center;line-height:57px;font-size:var(--auxiliary-font-size);font-weight:var(--font-weight-400);color:var(--color-normal-text);position:relative;display:flex}.footerTitle{flex:1;width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.footer:after{content:"";width:100%;height:100%;position:absolute;left:0;top:0;z-index:-1}.hostContainer > .footer:after{background:linear-gradient(180deg,rgba(26,103,157,0.2) 0%,#1b69a0 100%)}.k8sContainer > .footer:after{background:linear-gradient(180deg,rgba(255,102,51,0.1) 0%,rgba(255,102,51,0.55) 100%)}.hostContainer:not(:has(.item:hover)):hover > .footer:after,\n.hostContainer.container-active > .footer:after,\n.k8sContainer:not(:has(.item:hover)):hover > .footer:after,\n.k8sContainer.container-active > .footer:after{opacity:0.65}',""]);const l=o.toString()},79935:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(36758),i=r.n(a),n=r(40935),o=r.n(n)()(i());o.push([e.id,":host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}",""]);const l=o.toString()},53373:(e,t)=>{var r;!function(){"use strict";var a={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=o(e,n(r)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)a.call(e,r)&&e[r]&&(t=o(t,r));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},5536:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(12559);function i(e,t,r){return r((0,a.A)(e,t))}},74635:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(72016);function i(e,t){(0,a.A)(e,t),t.add(e)}},24586:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(11369);function i(e,t,r){return(t=(0,a.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}}}]);
|
|
3
|
+
//# sourceMappingURL=cabinet-container.bc8cb288.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunks/cabinet-container.bc8cb288.js","mappings":";obASA,MAAM,cAAEA,EAAa,SAAEC,EAAQ,MAAEC,IAAUC,EAAAA,EAAAA,oBAErCC,GAAcC,EAAAA,EAAAA,WAClB,0BACA,IAAAC,EAAA,IAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,EAAA,IAAAJ,QAAAK,EAAA,IAAAC,QAAAC,EAAA,IAAAP,QAmBF,MAAAQ,UAIUC,EAAAA,iBAEVC,WAAAA,GAAA,SAAAC,YAAAC,EAAAA,EAAAA,GAAA,KAAAP,IACEQ,EAAAA,EAAAA,GAAA,KAAAd,EAAAe,EAAA,KAO+B,UAE/BD,EAAAA,EAAAA,GAAA,KAAAZ,GAAAc,EAAA,MAAAC,EAAA,KAOoC,OAEpCH,EAAAA,EAAAA,GAAA,KAAAX,GAAAe,EAAA,MAAAC,EAAA,SASAL,EAAAA,EAAAA,GAAA,KAAAV,GAAAgB,EAAA,MAAAC,EAAA,SASAP,EAAAA,EAAAA,GAAA,KAAAT,GAAAiB,EAAA,MAAAC,EAAA,SAOAT,EAAAA,EAAAA,GAAA,KAAAN,GAAAgB,EAAA,MAAAC,EAAA,SAAAC,EAAAA,EAAAA,GAAA,oBAAAC,EAAA,MAOeC,KACbC,EAAAA,EAAAA,GAAAvB,EAAAwB,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","sources":["webpack:///./src/cabinet/cabinet-container/index.tsx","webpack:///./src/hooks/useResizeObserver/resizeObserverUtil.ts","webpack:///./src/hooks/useResizeObserver/index.ts","webpack:///./src/hooks/usePrevious/index.ts","webpack:///./src/cabinet/cabinet-container/cabinet-container.shadow.css","webpack:///./src/data-view-variables.shadow.css","webpack:///../../node_modules/classnames/index.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/defineProperty.js"],"sourcesContent":["import React, { useCallback, useMemo, useRef } from \"react\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport { createDecorators, EventEmitter } from \"@next-core/element\";\nimport variablesText from \"../../data-view-variables.shadow.css\";\nimport styleText from \"./cabinet-container.shadow.css\";\nimport classNames from \"classnames\";\nimport { CabinetNodeProps, CabinetNode } from \"../cabinet-node/index.js\";\nimport { useResizeObserver } from \"../../hooks/index.js\";\n\nconst { defineElement, property, event } = createDecorators();\nexport type ContainerType = \"host\" | \"k8s\" | \"k8s-blue\";\nconst WrappedNode = wrapBrick<CabinetNode, CabinetNodeProps>(\n \"data-view.cabinet-node\"\n);\nexport interface ClickEventDataType {\n type: \"node\" | \"container\";\n data: CabinetNodeProps | undefined;\n}\n\nexport interface CabinetContainerProps {\n data: CabinetNodeProps[];\n type?: ContainerType;\n customTitle?: string | undefined;\n status?: \"active\" | \"faded\";\n handleClick?: (params: ClickEventDataType) => void;\n handleDbClick?: (params: ClickEventDataType) => void;\n}\n\n/**\n * 大屏集群容器构件\n * @author astrid\n */\n@defineElement(\"data-view.cabinet-container\", {\n styleTexts: [variablesText, styleText],\n})\nclass CabinetContainer\n extends ReactNextElement\n implements CabinetContainerProps\n{\n /**\n * @kind ContainerType\n * @required true\n * @default host\n * @description 容器类型,host、k8s(主题橙色)、k8s-blue(蓝色主题)\n */\n @property({ attribute: false })\n accessor type: ContainerType = \"host\";\n\n /**\n * @kind CabinetNodeProps[]\n * @required true\n * @default -\n * @description 数据\n */\n @property({ attribute: false })\n accessor data: CabinetNodeProps[] = [];\n\n /**\n * @kind \"active\" | \"faded\"\n * @required false\n * @default\n * @description 当前状态,是否高亮或者淡化\n */\n @property()\n accessor status: \"active\" | \"faded\";\n\n /**\n * @kind string|undefined\n * @required false\n * @default -\n * @description 容器标题\n */\n @property()\n accessor customTitle: string | undefined;\n\n /**\n * @detail\n * @description 节点或者container 点击事件\n */\n @event({ type: \"container.click\" })\n accessor #onHandleClick!: EventEmitter<ClickEventDataType>;\n\n /**\n * @detail\n * @description 节点或者container 双击击事件\n */\n @event({ type: \"container.dbclick\" })\n accessor #onHandleDbClick!: EventEmitter<ClickEventDataType>;\n\n handleClick = (params: ClickEventDataType) => {\n this.#onHandleClick.emit(params);\n };\n handleDbClick = (params: ClickEventDataType) => {\n this.#onHandleDbClick.emit(params);\n };\n\n render(): React.ReactNode {\n return (\n <CabinetContainerComponent\n type={this.type}\n data={this.data}\n status={this.status}\n customTitle={this.customTitle}\n handleClick={this.handleClick}\n handleDbClick={this.handleDbClick}\n />\n );\n }\n}\n\nexport function CabinetContainerComponent(\n props: CabinetContainerProps\n): React.ReactElement {\n const { type, data, status, customTitle, handleClick, handleDbClick } = props;\n const isDbClick = useRef<boolean>(false);\n const timerRef = useRef<number>();\n\n const [containerRef, { clientWidth, clientHeight }] =\n useResizeObserver<HTMLDivElement>();\n const binarySearch = useCallback(\n (\n maxSizeCol: number,\n minSizeCol: number,\n maxSizeRow: number,\n minSizeRow: number\n ): { col: number; row: number } => {\n // 利用二分法,去找到一个合适大小;\n const maxRow = Math.max(minSizeRow, maxSizeRow), // 2\n minRow = Math.min(minSizeRow, maxSizeRow), // 1\n minCol = Math.min(minSizeCol, maxSizeCol),\n maxCol = Math.max(minSizeCol, maxSizeCol);\n const centerCol = Math.ceil((maxSizeCol + minSizeCol) / 2); // 希望col多一些\n const centerRow = Math.ceil((maxSizeRow + minSizeRow) / 2);\n const needRow = Math.ceil(data.length / centerCol);\n if (centerCol <= 1) {\n return {\n col: 1,\n row: data.length,\n };\n }\n if (\n needRow === centerRow ||\n minCol === maxCol ||\n minCol === centerCol ||\n maxCol === centerCol\n ) {\n return {\n col: centerCol,\n row: needRow,\n };\n }\n if (needRow > centerRow) {\n // 那么col要放大,row减少\n return binarySearch(centerCol, maxCol, needRow, minRow);\n }\n if (needRow < centerRow) {\n // 那么col要缩小,row增加\n return binarySearch(minCol, centerCol, maxRow, needRow);\n }\n },\n [data.length]\n );\n const layoutWidth = useMemo(() => {\n if (!data.length) {\n return;\n }\n\n //数据总量: A, 整个屏幕最大尺寸可以放 B, 整个屏幕最小尺寸可以放C,\n // B>=A,用 最大尺寸\n // C>=A: 用最小尺寸\n // B< A <C: 反推尺寸,\n const maxWidth = 118,\n minWidth = 56,\n maxHeight = 105,\n minHeight = 63;\n const realWidth = clientWidth - 27;\n const realHeight = clientHeight - 84;\n if (realWidth <= 0 || realHeight <= 0) {\n return;\n }\n const maxSizeCol = Math.floor(realWidth / maxWidth),\n maxSizeRow = Math.floor(realHeight / maxHeight),\n minSizeCol = Math.floor(realWidth / minWidth),\n minSizeRow = Math.floor(realHeight / minHeight);\n const maxSizeNum = maxSizeCol * maxSizeRow,\n minSizeNum = minSizeCol * minSizeRow;\n const allNum = data.length;\n if (allNum <= maxSizeNum) {\n return {\n width: Math.floor(realWidth / maxSizeCol),\n itemWidth: maxWidth,\n };\n } else if (allNum >= minSizeNum) {\n return {\n width: Math.floor(realWidth / minSizeCol),\n itemWidth: minWidth,\n };\n } else {\n // 在区间内, 希望撑满整个屏幕, 尺寸肯定在最大和最小之间\n const { col } = binarySearch(\n maxSizeCol,\n minSizeCol,\n maxSizeRow,\n minSizeRow\n );\n return {\n width: Math.floor(realWidth / col),\n itemWidth: Math.max(realWidth / col - 10, minWidth),\n };\n }\n }, [data.length, clientWidth, clientHeight, binarySearch]);\n\n const handleOnClick = (\n e: React.MouseEvent<HTMLDivElement>,\n data: CabinetNodeProps | undefined,\n type: \"node\" | \"container\"\n ) => {\n e.stopPropagation();\n window.clearTimeout(timerRef.current);\n isDbClick.current = false;\n timerRef.current = window.setTimeout(function () {\n if (!isDbClick.current) {\n handleClick?.({\n data,\n type,\n });\n }\n }, 200);\n };\n const handleOnDBClick = (\n e: React.MouseEvent<HTMLDivElement>,\n data: CabinetNodeProps | undefined,\n type: \"node\" | \"container\"\n ) => {\n window.clearTimeout(timerRef.current);\n isDbClick.current = true;\n e.stopPropagation();\n handleDbClick?.({\n data,\n type,\n });\n };\n\n return (\n <div\n className={classNames(\n \"wrapper\",\n {\n hostWrapper: type === \"host\" || type === \"k8s-blue\",\n k8sWrapper: type === \"k8s\",\n },\n status && `wrapper-${status}`\n )}\n ref={containerRef}\n onClick={(e) => handleOnClick(e, undefined, \"container\")}\n onDoubleClick={(e) => handleOnDBClick(e, undefined, \"container\")}\n >\n <div\n className={classNames(\n \"container\",\n {\n hostContainer: type === \"host\" || type === \"k8s-blue\",\n k8sContainer: type === \"k8s\",\n },\n status && `container-${status}`\n )}\n >\n <div className=\"content\">\n <div className=\"contentLayout\">\n {data.map((item, index) => (\n <div\n key={index}\n className=\"itemContent\"\n style={{ width: layoutWidth?.width }}\n >\n <div\n className=\"item\"\n style={{ width: layoutWidth?.itemWidth }}\n onClick={(e) => handleOnClick(e, item, \"node\")}\n onDoubleClick={(e) => handleOnDBClick(e, item, \"node\")}\n >\n <WrappedNode\n type={item.type}\n nodeTitle={item.nodeTitle}\n status={item.status}\n isAlert={item.isAlert}\n />\n </div>\n </div>\n ))}\n </div>\n </div>\n {customTitle && (\n <div className=\"footer\">\n <div className=\"footerTitle\">{customTitle}</div>\n </div>\n )}\n </div>\n </div>\n );\n}\n\nexport { CabinetContainer };\n","import ResizeObserver from \"resize-observer-polyfill\";\n\nexport type ResizeCallback = (entry: ResizeObserverEntry) => void;\n\nconst elementListeners = new Map<Element, Set<ResizeCallback>>();\n\nexport const elementListeners_only_for_test =\n process.env.NODE_ENV === \"test\"\n ? elementListeners\n : /* istanbul ignore next */ null;\n\nconst resizeObserverCallback = (entries: ResizeObserverEntry[]): void => {\n entries.forEach((entry) => {\n const { target } = entry;\n elementListeners.get(target)?.forEach((callback) => callback(entry));\n });\n};\n\nconst resizeObserver: ResizeObserver = new (ResizeObserver as any)(resizeObserverCallback);\n\nexport const observe = (element: Element, callback: ResizeCallback): void => {\n if (!elementListeners.has(element)) {\n elementListeners.set(element, new Set());\n resizeObserver.observe(element);\n }\n\n elementListeners.get(element).add(callback);\n};\n\nexport const unobserve = (element: Element, callback: ResizeCallback): void => {\n if (elementListeners.has(element)) {\n elementListeners.get(element).delete(callback);\n\n if (elementListeners.get(element).size === 0) {\n resizeObserver.unobserve(element);\n elementListeners.delete(element);\n }\n }\n};\n","import {\n useState,\n useCallback,\n useRef,\n type RefObject,\n useEffect,\n} from \"react\";\nimport { observe, unobserve } from \"./resizeObserverUtil.js\";\n\ninterface ElementSize {\n clientWidth: number;\n clientHeight: number;\n}\n\nexport interface ResizeObserveProps<T extends Element = Element> {\n targetRef?: RefObject<T>;\n onResize?: (size: ResizeObserverEntry) => void;\n}\n\nexport function useResizeObserver<T extends Element = Element>(\n props?: ResizeObserveProps<T>\n): [RefObject<T>, ElementSize] {\n const {\n targetRef,\n onResize,\n } = props || {};\n\n const localRef = useRef<T>();\n const ref = targetRef ?? localRef;\n const [size, setSize] = useState<ElementSize>({ clientWidth: 0, clientHeight: 0 });\n\n const handleResize = useCallback(\n (entry: ResizeObserverEntry) => {\n const { target } = entry;\n const { clientWidth = 0, clientHeight = 0 } = target;\n\n setSize((prev) => {\n // skip if same size\n if (prev.clientWidth === clientWidth && prev.clientHeight === clientHeight) {\n return prev;\n }\n\n onResize?.(entry);\n\n return { clientWidth, clientHeight };\n });\n },\n [onResize]\n );\n\n useEffect(() => {\n if (\n typeof ref !== \"object\" ||\n ref === null ||\n !(ref.current instanceof Element)\n ) {\n throw new Error(\"ResizeObserver must observe an Element\");\n }\n\n const element = ref.current;\n observe(element, handleResize);\n\n return () => {\n unobserve(element, handleResize);\n };\n }, [handleResize, ref]);\n\n return [ref, { ...size }];\n}\n","import {useRef, useEffect} from 'react';\nexport function usePrevious<T>(data?: T):T|undefined{\n const ref = useRef<T>();\n useEffect(()=>{\n ref.current = data\n })\n return ref.current;\n}\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `*,\n*:after,\n*:before{box-sizing:border-box}.wrapper{width:100%;height:100%;position:relative}.container{width:100%;height:100%;border:3px solid;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);display:flex;flex-direction:column;cursor:pointer;overflow:hidden}.wrapper:after,\n.wrapper:before{content:\"\";position:absolute;left:50%;border:3px solid;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);transform:translateX(-50%)}.wrapper:before{width:calc(100% - 10px);height:100%;bottom:-14px;z-index:-1;opacity:0.6}.wrapper:after{width:calc(100% - 30px);height:100%;bottom:-24px;z-index:-10;opacity:0.4}.hostWrapper:before,\n.hostWrapper:after{border-image:radial-gradient(circle,rgba(55,229,252,1),#007aca) 3 3}.hostWrapper:not(:has(.item:hover)):hover:before,\n.hostWrapper.wrapper-active:before{border-image:radial-gradient(circle,rgba(55,229,252,1),#45e4ff) 3 3}.k8sWrapper:after,\n.k8sWrapper:before{border-image:radial-gradient(circle,rgba(255,102,51,1),#ff663380) 3 3}.hostContainer{background:rgba(7,4,21,0.85);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border-image:radial-gradient(circle,rgba(55,229,252,1),#007aca) 3 3}.hostContainer:not(:has(.item:hover)):hover,\n.hostContainer.container-active{border-image:radial-gradient(circle,rgba(55,229,252,1),#45e4ff) 3 3;box-shadow:inset 0 0 30px 0 #45e4ff,inset 0 0 20px 0 #45e4ff}.hostWrapper.wrapper-faded:after,\n.hostWrapper.wrapper-faded:before,\n.k8sWrapper.wrapper-faded:after,\n.k8sWrapper.wrapper-faded:before{opacity:0.1}.k8sContainer{background:rgba(7,4,21,0.8);border-image:radial-gradient(circle,rgba(255,102,51,1),#ff663399) 3 3}.k8sContainer:not(:has(.item:hover)):hover,\n.k8sContainer.container-active{box-shadow:inset 0 0 30px 0 #ff6633,inset 0 0 20px 0 #ff6633}.hostContainer.container-faded,\n.k8sContainer.container-faded{opacity:0.4}.content{flex:1;padding:20px 10px;width:100%;box-sizing:border-box;overflow:hidden;display:flex}.contentLayout{overflow:auto;height:100%}.itemContent{display:inline-block;vertical-align:middle}.item{min-width:56px;min-height:63px;max-width:118px;margin:auto}.footer{width:100%;height:57px;text-align:center;line-height:57px;font-size:var(--auxiliary-font-size);font-weight:var(--font-weight-400);color:var(--color-normal-text);position:relative;display:flex}.footerTitle{flex:1;width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.footer:after{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;z-index:-1}.hostContainer > .footer:after{background:linear-gradient(180deg,rgba(26,103,157,0.2) 0%,#1b69a0 100%)}.k8sContainer > .footer:after{background:linear-gradient(180deg,rgba(255,102,51,0.1) 0%,rgba(255,102,51,0.55) 100%)}.hostContainer:not(:has(.item:hover)):hover > .footer:after,\n.hostContainer.container-active > .footer:after,\n.k8sContainer:not(:has(.item:hover)):hover > .footer:after,\n.k8sContainer.container-active > .footer:after{opacity:0.65}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateGetter(s, r, a) {\n return a(assertClassBrand(s, r));\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateMethodInitSpec(obj, privateSet) {\n checkPrivateRedeclaration(obj, privateSet);\n privateSet.add(obj);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}"],"names":["defineElement","property","event","createDecorators","WrappedNode","wrapBrick","_CabinetContainer","_A","WeakMap","_B","_C","_D","_E","_CabinetContainer_brand","WeakSet","_F","CabinetContainer","ReactNextElement","constructor","arguments","_classPrivateMethodInitSpec","_classPrivateFieldInitSpec","_init_type","_init_extra_type","_init_data","_init_extra_data","_init_status","_init_extra_status","_init_customTitle","_init_extra_customTitle","_init_onHandleClick","_init_extra_onHandleClick","_init_onHandleDbClick","_defineProperty","_init_extra_onHandleDbClick","params","_classPrivateGetter","this","_get_onHandleClick","emit","_get_onHandleDbClick","type","_classPrivateFieldGet","v","_classPrivateFieldSet","data","status","customTitle","render","React","CabinetContainerComponent","handleClick","handleDbClick","props","isDbClick","useRef","timerRef","containerRef","clientWidth","clientHeight","useResizeObserver","binarySearch","useCallback","maxSizeCol","minSizeCol","maxSizeRow","minSizeRow","maxRow","Math","max","minRow","min","minCol","maxCol","centerCol","ceil","centerRow","needRow","length","col","row","layoutWidth","useMemo","realWidth","realHeight","floor","maxSizeNum","minSizeNum","allNum","width","itemWidth","handleOnClick","e","stopPropagation","window","clearTimeout","current","setTimeout","handleOnDBClick","className","classNames","hostWrapper","k8sWrapper","ref","onClick","undefined","onDoubleClick","hostContainer","k8sContainer","map","item","index","key","style","nodeTitle","isAlert","_CabinetContainer2","_set_onHandleClick","_set_onHandleDbClick","c","_initClass","_applyDecs","styleTexts","variablesText","styleText","attribute","o","_","has","_checkInRHS","elementListeners","Map","resizeObserver","ResizeObserver","entries","forEach","entry","_elementListeners$get","target","get","callback","observe","element","set","Set","add","unobserve","delete","size","targetRef","onResize","localRef","setSize","useState","handleResize","prev","useEffect","Element","Error","usePrevious","___CSS_LOADER_EXPORT___","push","module","id","toString","hasOwn","hasOwnProperty","classes","i","arg","appendClass","parseValue","Array","isArray","apply","Object","prototype","includes","call","value","newClass","exports","default","s","r","a","obj","privateSet","defineProperty","enumerable","configurable","writable"],"sourceRoot":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see cabinet-thumbnail.d6c2b232.js.LICENSE.txt */
|
|
2
|
+
(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[3158],{88393:(e,t,a)=>{"use strict";a.r(t),a.d(t,{CabinetThumbnail:()=>T,CabinetThumbnailComponent:()=>L});var r,l=a(70918),n=a(86121),i=a(70829),o=a(62740),s=a(18769),c=a.n(s),p=a(24295),b=a(10300),g=a(53373),u=a.n(g),h=a(79935),d=a(45097),f=a(6837);let x,v,m,w,y,k,z;const E=(0,p.wrapBrick)("data-view.cabinet-app-layer"),{defineElement:C,property:N}=(0,b.createDecorators)(),A=(0,p.wrapBrick)("data-view.cabinet-node");let T;var W=new WeakMap,S=new WeakMap,H=new WeakMap;class R extends p.ReactNextElement{constructor(){super(...arguments),(0,l.A)(this,W,v(this,[])),(0,l.A)(this,S,(m(this),w(this,4))),(0,l.A)(this,H,(y(this),k(this))),z(this)}get clusters(){return(0,i.A)(W,this)}set clusters(e){(0,n.A)(W,this,e)}get columns(){return(0,i.A)(S,this)}set columns(e){(0,n.A)(S,this,e)}get appName(){return(0,i.A)(H,this)}set appName(e){(0,n.A)(H,this,e)}render(){return c().createElement(L,{clusters:this.clusters,columns:this.columns,appName:this.appName})}}function L(e){const{clusters:t,columns:a,appName:r}=e,l=(0,s.useRef)(),n=(0,s.useRef)(),[i,o]=(0,s.useState)(),p=(0,f.Z)(i);return(0,s.useLayoutEffect)((()=>{if(t.length&&a>0){const e=l.current.clientWidth/(n.current.clientWidth/(null!=p?p:1)),t=l.current.clientHeight/(n.current.clientHeight*(null!=p?p:1));o(Math.min(Math.floor(100*Math.min(e,t))/100,1))}}),[t,p,a]),c().createElement("div",{ref:l,className:"wrapper"},c().createElement("div",{className:"thumbnailLayout",ref:n,style:{...i?{transform:`scale(${i})`}:{}}},c().createElement(E,{className:"appLayer",appTitle:r}),c().createElement("div",{className:"layout"},t.map(((e,t)=>c().createElement("div",{className:"clusterWrapper",key:t},c().createElement("div",{className:u()("clusterContainer",{clusterHostContainer:"host"===e.type||"k8s-blue"===e.type,clusterK8sContainer:"k8s"===e.type})},c().createElement("div",{className:"clusterContent"},c().createElement("div",{className:"clusterContentLayout",style:{gridTemplateColumns:`repeat(${a},1fr)`}},e.data.map(((e,t)=>c().createElement("div",{key:t,className:"itemContent"},c().createElement(A,{type:e.type,nodeTitle:e.nodeTitle})))))),c().createElement("div",{className:"clusterTitle"},c().createElement("div",{className:"title"},e.title)))))))))}r=R,({e:[v,m,w,y,k,z],c:[T,x]}=(0,o.A)(r,[C("data-view.cabinet-thumbnail",{styleTexts:[h.A,d.A]})],[[N({attribute:!1}),1,"clusters"],[N({type:Number}),1,"columns"],[N(),1,"appName"]],0,void 0,p.ReactNextElement)),x()},6837:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p,w:()=>c});var r=a(18769),l=a(99126);const n=new Map,i=new l.A((e=>{e.forEach((e=>{var t;const{target:a}=e;null===(t=n.get(a))||void 0===t||t.forEach((t=>t(e)))}))})),o=(e,t)=>{n.has(e)||(n.set(e,new Set),i.observe(e)),n.get(e).add(t)},s=(e,t)=>{n.has(e)&&(n.get(e).delete(t),0===n.get(e).size&&(i.unobserve(e),n.delete(e)))};function c(e){const{targetRef:t,onResize:a}=e||{},l=(0,r.useRef)(),n=null!=t?t:l,[i,c]=(0,r.useState)({clientWidth:0,clientHeight:0}),p=(0,r.useCallback)((e=>{const{target:t}=e,{clientWidth:r=0,clientHeight:l=0}=t;c((t=>t.clientWidth===r&&t.clientHeight===l?t:(null==a||a(e),{clientWidth:r,clientHeight:l})))}),[a]);return(0,r.useEffect)((()=>{if("object"!=typeof n||null===n||!(n.current instanceof Element))throw new Error("ResizeObserver must observe an Element");const e=n.current;return o(e,p),()=>{s(e,p)}}),[p,n]),[n,{...i}]}function p(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e})),t.current}},45097:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var r=a(36758),l=a.n(r),n=a(40935),i=a.n(n)()(l());i.push([e.id,'*,\n*:after,\n*:before{box-sizing:border-box}.wrapper{width:100%;height:100%}.wrapper,\n.thumbnailLayout{display:flex;justify-content:center;align-items:center}.appLayer{width:90%;margin-bottom:16px;align-self:center;pointer-events:none}.thumbnailLayout{flex-direction:column}.layout{display:flex;gap:17px;margin-top:27px;align-items:stretch}.clusterWrapper{width:100%;height:auto}.clusterContainer{width:100%;height:100%;border:3px solid;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);display:flex;flex-direction:column}.clusterHostContainer{background:rgba(7,4,21,0.85);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border-image:radial-gradient(circle,rgba(55,229,252,1),#007aca) 3 3}.clusterK8sContainer{background:rgba(7,4,21,0.8);border-image:radial-gradient(circle,rgba(255,102,51,1),#ff663399) 3 3}.clusterContent{flex:1;padding:20px 10px;width:100%}.clusterContentLayout{display:grid;width:100%}.itemContent{width:118px;pointer-events:none;height:105px}.clusterTitle{width:100%;text-align:center;line-height:57px;font-size:var(--auxiliary-font-size);font-weight:var(--font-weight-400);color:var(--color-normal-text);position:relative;display:flex}.title{flex:1;width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.clusterTitle:after{content:"";width:100%;height:100%;position:absolute;left:0;top:0;z-index:-1}.clusterHostContainer > .clusterTitle:after{background:linear-gradient(180deg,rgba(26,103,157,0.2) 0%,#1b69a0 100%)}.clusterK8sContainer > .clusterTitle:after{background:linear-gradient(180deg,rgba(255,102,51,0.1) 0%,rgba(255,102,51,0.55) 100%)}',""]);const o=i.toString()},79935:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var r=a(36758),l=a.n(r),n=a(40935),i=a.n(n)()(l());i.push([e.id,":host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}",""]);const o=i.toString()},53373:(e,t)=>{var a;!function(){"use strict";var r={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=i(e,n(a)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)r.call(e,a)&&e[a]&&(t=i(t,a));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(a=function(){return l}.apply(t,[]))||(e.exports=a)}()}}]);
|
|
3
|
+
//# sourceMappingURL=cabinet-thumbnail.d6c2b232.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunks/cabinet-thumbnail.d6c2b232.js","mappings":";sXAaA,MAAMA,GAAyBC,EAAAA,EAAAA,WAC7B,gCAEI,cAAEC,EAAa,SAAEC,IAAaC,EAAAA,EAAAA,oBAE9BC,GAAcJ,EAAAA,EAAAA,WAClB,0BACA,IAAAK,EAAA,IAAAC,EAAA,IAAAC,QAAAC,EAAA,IA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F,WACtB,OAAOA,CACP,UAFoB,OAEpB,YAIH,CArEA","sources":["webpack:///./src/cabinet/cabinet-thumbnail/index.tsx","webpack:///./src/hooks/useResizeObserver/resizeObserverUtil.ts","webpack:///./src/hooks/useResizeObserver/index.ts","webpack:///./src/hooks/usePrevious/index.ts","webpack:///./src/cabinet/cabinet-thumbnail/cabinet-thumbnail.shadow.css","webpack:///./src/data-view-variables.shadow.css","webpack:///../../node_modules/classnames/index.js"],"sourcesContent":["import React, { useLayoutEffect, useRef, useState } from \"react\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport { createDecorators } from \"@next-core/element\";\nimport classNames from \"classnames\";\nimport { CabinetNode, CabinetNodeProps } from \"../cabinet-node/index.js\";\nimport { ContainerType } from \"../cabinet-container/index.js\";\nimport variablesText from \"../../data-view-variables.shadow.css\";\nimport styleText from \"./cabinet-thumbnail.shadow.css\";\nimport { usePrevious } from \"../../hooks/index.js\";\nimport {\n CabinetAppLayer,\n CabinetAppLayerProps,\n} from \"../cabinet-app-layer/index.js\";\nconst WrappedCabinetAppLayer = wrapBrick<CabinetAppLayer, CabinetAppLayerProps>(\n \"data-view.cabinet-app-layer\"\n);\nconst { defineElement, property } = createDecorators();\n\nconst WrappedNode = wrapBrick<CabinetNode, CabinetNodeProps>(\n \"data-view.cabinet-node\"\n);\nexport interface Clusters {\n data: CabinetNodeProps[];\n type?: ContainerType;\n title?: string | undefined;\n}\n\nexport interface CabinetThumbnailProps {\n clusters: Clusters[];\n appName: string;\n columns?: number;\n}\n\n/**\n * 应用墙缩略图\n * @author astrid\n */\n@defineElement(\"data-view.cabinet-thumbnail\", {\n styleTexts: [variablesText, styleText],\n})\nclass CabinetThumbnail\n extends ReactNextElement\n implements CabinetThumbnailProps\n{\n /**\n * @kind CabinetContainerProps[]\n * @required true\n * @default\n * @description 集群数据\n */\n @property({ attribute: false })\n accessor clusters: Clusters[] = [];\n\n /**\n * @kind number\n * @required\n * @default 4\n * @description 单个容器列数\n */\n @property({ type: Number })\n accessor columns: number = 4;\n\n /**\n * @kind string\n * @required true\n * @default\n * @description 应用名称\n */\n @property()\n accessor appName: string;\n\n render(): React.ReactNode {\n return (\n <CabinetThumbnailComponent\n clusters={this.clusters}\n columns={this.columns}\n appName={this.appName}\n />\n );\n }\n}\n\nexport function CabinetThumbnailComponent(\n props: CabinetThumbnailProps\n): React.ReactElement {\n const { clusters, columns, appName } = props;\n const containerRef = useRef<HTMLDivElement>();\n const layoutRef = useRef<HTMLDivElement>();\n const [scale, setScale] = useState<number>();\n const preScale = usePrevious(scale);\n\n useLayoutEffect(() => {\n if (!!clusters.length && columns > 0) {\n // 计算缩放比例\n const wScale =\n containerRef.current.clientWidth /\n (layoutRef.current.clientWidth / (preScale ?? 1));\n const hScale =\n containerRef.current.clientHeight /\n (layoutRef.current.clientHeight * (preScale ?? 1));\n setScale(Math.min(Math.floor(Math.min(wScale, hScale) * 100) / 100, 1));\n }\n }, [clusters, preScale, columns]);\n\n return (\n <div ref={containerRef} className=\"wrapper\">\n <div\n className=\"thumbnailLayout\"\n ref={layoutRef}\n style={{\n ...(scale ? { transform: `scale(${scale})` } : {}),\n }}\n >\n <WrappedCabinetAppLayer className=\"appLayer\" appTitle={appName} />\n <div className=\"layout\">\n {clusters.map((item, index) => (\n <div className=\"clusterWrapper\" key={index}>\n <div\n className={classNames(\"clusterContainer\", {\n clusterHostContainer:\n item.type === \"host\" || item.type === \"k8s-blue\",\n clusterK8sContainer: item.type === \"k8s\",\n })}\n >\n <div className=\"clusterContent\">\n <div\n className=\"clusterContentLayout\"\n style={{ gridTemplateColumns: `repeat(${columns},1fr)` }}\n >\n {item.data.map((node, index) => (\n <div key={index} className=\"itemContent\">\n <WrappedNode\n type={node.type}\n nodeTitle={node.nodeTitle}\n />\n </div>\n ))}\n </div>\n </div>\n <div className=\"clusterTitle\">\n <div className=\"title\">{item.title}</div>\n </div>\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n}\nexport { CabinetThumbnail };\n","import ResizeObserver from \"resize-observer-polyfill\";\n\nexport type ResizeCallback = (entry: ResizeObserverEntry) => void;\n\nconst elementListeners = new Map<Element, Set<ResizeCallback>>();\n\nexport const elementListeners_only_for_test =\n process.env.NODE_ENV === \"test\"\n ? elementListeners\n : /* istanbul ignore next */ null;\n\nconst resizeObserverCallback = (entries: ResizeObserverEntry[]): void => {\n entries.forEach((entry) => {\n const { target } = entry;\n elementListeners.get(target)?.forEach((callback) => callback(entry));\n });\n};\n\nconst resizeObserver: ResizeObserver = new (ResizeObserver as any)(resizeObserverCallback);\n\nexport const observe = (element: Element, callback: ResizeCallback): void => {\n if (!elementListeners.has(element)) {\n elementListeners.set(element, new Set());\n resizeObserver.observe(element);\n }\n\n elementListeners.get(element).add(callback);\n};\n\nexport const unobserve = (element: Element, callback: ResizeCallback): void => {\n if (elementListeners.has(element)) {\n elementListeners.get(element).delete(callback);\n\n if (elementListeners.get(element).size === 0) {\n resizeObserver.unobserve(element);\n elementListeners.delete(element);\n }\n }\n};\n","import {\n useState,\n useCallback,\n useRef,\n type RefObject,\n useEffect,\n} from \"react\";\nimport { observe, unobserve } from \"./resizeObserverUtil.js\";\n\ninterface ElementSize {\n clientWidth: number;\n clientHeight: number;\n}\n\nexport interface ResizeObserveProps<T extends Element = Element> {\n targetRef?: RefObject<T>;\n onResize?: (size: ResizeObserverEntry) => void;\n}\n\nexport function useResizeObserver<T extends Element = Element>(\n props?: ResizeObserveProps<T>\n): [RefObject<T>, ElementSize] {\n const {\n targetRef,\n onResize,\n } = props || {};\n\n const localRef = useRef<T>();\n const ref = targetRef ?? localRef;\n const [size, setSize] = useState<ElementSize>({ clientWidth: 0, clientHeight: 0 });\n\n const handleResize = useCallback(\n (entry: ResizeObserverEntry) => {\n const { target } = entry;\n const { clientWidth = 0, clientHeight = 0 } = target;\n\n setSize((prev) => {\n // skip if same size\n if (prev.clientWidth === clientWidth && prev.clientHeight === clientHeight) {\n return prev;\n }\n\n onResize?.(entry);\n\n return { clientWidth, clientHeight };\n });\n },\n [onResize]\n );\n\n useEffect(() => {\n if (\n typeof ref !== \"object\" ||\n ref === null ||\n !(ref.current instanceof Element)\n ) {\n throw new Error(\"ResizeObserver must observe an Element\");\n }\n\n const element = ref.current;\n observe(element, handleResize);\n\n return () => {\n unobserve(element, handleResize);\n };\n }, [handleResize, ref]);\n\n return [ref, { ...size }];\n}\n","import {useRef, useEffect} from 'react';\nexport function usePrevious<T>(data?: T):T|undefined{\n const ref = useRef<T>();\n useEffect(()=>{\n ref.current = data\n })\n return ref.current;\n}\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `*,\n*:after,\n*:before{box-sizing:border-box}.wrapper{width:100%;height:100%}.wrapper,\n.thumbnailLayout{display:flex;justify-content:center;align-items:center}.appLayer{width:90%;margin-bottom:16px;align-self:center;pointer-events:none}.thumbnailLayout{flex-direction:column}.layout{display:flex;gap:17px;margin-top:27px;align-items:stretch}.clusterWrapper{width:100%;height:auto}.clusterContainer{width:100%;height:100%;border:3px solid;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);display:flex;flex-direction:column}.clusterHostContainer{background:rgba(7,4,21,0.85);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border-image:radial-gradient(circle,rgba(55,229,252,1),#007aca) 3 3}.clusterK8sContainer{background:rgba(7,4,21,0.8);border-image:radial-gradient(circle,rgba(255,102,51,1),#ff663399) 3 3}.clusterContent{flex:1;padding:20px 10px;width:100%}.clusterContentLayout{display:grid;width:100%}.itemContent{width:118px;pointer-events:none;height:105px}.clusterTitle{width:100%;text-align:center;line-height:57px;font-size:var(--auxiliary-font-size);font-weight:var(--font-weight-400);color:var(--color-normal-text);position:relative;display:flex}.title{flex:1;width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.clusterTitle:after{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;z-index:-1}.clusterHostContainer > .clusterTitle:after{background:linear-gradient(180deg,rgba(26,103,157,0.2) 0%,#1b69a0 100%)}.clusterK8sContainer > .clusterTitle:after{background:linear-gradient(180deg,rgba(255,102,51,0.1) 0%,rgba(255,102,51,0.55) 100%)}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{--palette-rgba-white-1:rgba(255,255,255,10%);--palette-rgba-white-2:rgba(255,255,255,20%);--palette-rgba-white-3:rgba(255,255,255,30%);--palette-rgba-white-4:rgba(255,255,255,40%);--palette-rgba-white-5:rgba(255,255,255,50%);--palette-rgba-white-6:rgba(255,255,255,60%);--palette-rgba-white-7:rgba(255,255,255,70%);--palette-rgba-white-8:rgba(255,255,255,80%);--palette-rgba-white-9:rgba(255,255,255,90%);--palette-rgba-white-10:rgba(255,255,255,100%);--palette-rgba-gray-1:rgba(0,0,0,10%);--palette-rgba-gray-2:rgba(0,0,0,20%);--palette-rgba-gray-3:rgba(0,0,0,30%);--palette-rgba-gray-4:rgba(0,0,0,40%);--palette-rgba-gray-5:rgba(0,0,0,50%);--palette-rgba-gray-6:rgba(0,0,0,60%);--palette-rgba-gray-7:rgba(0,0,0,70%);--palette-rgba-gray-8:rgba(0,0,0,80%);--palette-rgba-gray-9:rgba(0,0,0,90%);--palette-rgba-gray-10:rgba(0,0,0,100%);--palette-rgba-blue-gray-2:rgba(101,106,134,20%);--palette-rgba-blue-gray-3:rgba(101,106,134,30%);--palette-rgba-blue-gray-8:rgba(101,106,134,80%);--palette-tech-blue-4-channel:67,127,255;--palette-tech-blue-4:rgb(var(--palette-tech-blue-4-channel));--palette-tech-blue-6-channel:51,102,255;--palette-tech-blue-6:rgb(var(--palette-tech-blue-6-channel));--palette-tech-blue-8-channel:40,69,159;--palette-tech-blue-8:rgb(var(--palette-tech-blue-8-channel));--palette-sea-green-4-channel:131,245,225;--palette-sea-green-4:rgb(var(--palette-sea-green-4-channel));--palette-green-6-channel:81,235,73;--palette-green-6:rgb(var(--palette-green-6-channel));--palette-green-2:rgba(var(--palette-green-6-channel),20%);--palette-lotus-pink-7-channel:204,0,102;--palette-lotus-pink-7:rgb(var(--palette-lotus-pink-7-channel));--palette-red-6-channel:242,39,39;--palette-red-6:rgb(var(--palette-red-6-channel));--palette-red-2:rgba(var(--palette-red-6-channel),20%);--color-fill-global-bg:#0f1014;--color-fill-bg-container-1:var(--palette-rgba-white-1);--color-fill-bg-container-2:var(--palette-rgba-blue-gray-2);--color-fill-bg-container-3:var(--palette-rgba-blue-gray-8);--color-fill-bg-base-1:var(--palette-rgba-blue-gray-2);--color-fill-bg-base-2:rgba(15,16,20,0%);--color-fill-bg-base-3:rgba(0,0,0,20%);--color-fill-bg-base-4:rgba(40,46,58,100%);--color-fill-bg-base-5:rgba(19,25,47,80%);--color-fill-bg-base-6:var(--palette-rgba-blue-gray-3);--color-brand:var(--palette-tech-blue-6);--color-brand-hover:var(--palette-tech-blue-4);--color-brand-active:var(--palette-tech-blue-8);--color-contrast-1:var(--palette-sea-green-4);--color-error:var(--palette-red-6);--color-error-bg:var(--palette-red-2);--color-success:var(--palette-green-6);--color-success-bg:var(--palette-green-2);--color-header-text-big:var(--palette-rgba-white-10);--color-header-text:var(--palette-rgba-white-10);--color-normal-text:var(--palette-rgba-white-10);--color-strong-text:var(--palette-rgba-white-9);--color-auxiliary-text:var(--palette-rgba-white-8);--color-secondary-text:var(--palette-rgba-white-6);--color-disabled-text:var(--palette-rgba-white-4);--color-border-divider-line:var(--palette-rgba-white-1);--color-text-divider-line-1:var(--palette-rgba-white-2);--color-text-divider-line-2:var(--palette-rgba-white-2);--small-border-radius:2px;--medius-border-radius:5px;--larger-border-radius:12px;--container-border-radius:9999px;--no-border-radius:0px;--mask-bg:var(--palette-rgba-gray-7);--title-font-size-larger:30px;--title-font-size-strong:22px;--title-font-size:18px;--normal-font-size:14px;--auxiliary-font-size:16px;--auxiliary-font-size-small:12px;--overview-data-font-size:34px;--statistics-data-font-size:28px;--normal-data-font-size-larger:20px;--normal-data-font-size:16px;--chart-legend-font-size:12px;--chart-tooltips-font-size-1:12px;--chart-tooltips-font-size-2:12px;--chart-axis-x-font-size:12px;--chart-axis-x-font-size-larger:14px;--chart-axis-y-font-size:12px;--chart-axis-y-font-size-larger:14px;--font-weight-600:600;--font-weight-500:500;--font-weight-400:400;--text-shadow:0px 1px 4px #2863ee;--border-width-base:1px;--border-width-double-base:2px;--border-width-tribble-base:3px;--punctate-width-base:1px;--paragraph-width-base:1px;--button-text-color:#40d0db}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["WrappedCabinetAppLayer","wrapBrick","defineElement","property","createDecorators","WrappedNode","_CabinetThumbnail","_A","WeakMap","_B","_C","CabinetThumbnail","ReactNextElement","constructor","arguments","_classPrivateFieldInitSpec","_init_clusters","_init_extra_clusters","_init_columns","_init_extra_columns","_init_appName","_init_extra_appName","clusters","_classPrivateFieldGet","v","_classPrivateFieldSet","columns","appName","render","React","CabinetThumbnailComponent","this","props","containerRef","useRef","layoutRef","scale","setScale","useState","preScale","usePrevious","useLayoutEffect","length","wScale","current","clientWidth","hScale","clientHeight","Math","min","floor","ref","className","style","transform","appTitle","map","item","index","key","classNames","clusterHostContainer","type","clusterK8sContainer","gridTemplateColumns","data","node","nodeTitle","title","_CabinetThumbnail2","e","c","_initClass","_applyDecs","styleTexts","variablesText","styleText","attribute","Number","elementListeners","Map","resizeObserver","ResizeObserver","entries","forEach","entry","_elementListeners$get","target","get","callback","observe","element","has","set","Set","add","unobserve","delete","size","useResizeObserver","targetRef","onResize","localRef","setSize","handleResize","useCallback","prev","useEffect","Element","Error","___CSS_LOADER_EXPORT___","push","module","id","toString","hasOwn","hasOwnProperty","classes","i","arg","appendClass","parseValue","Array","isArray","apply","Object","prototype","includes","call","value","newClass","exports","default"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[8038,2052],{60680:(e,t,n)=>{n.r(t),n.d(t,{ChinaMapChart:()=>I,ChinaMapChartComponent:()=>$});var r,a=n(74635),i=n(70918),o=n(26902),s=n(5536),c=n(86121),l=n(70829),u=n(62740),d=n(18769),p=n.n(d),f=n(10300),h=n(24295),g=(n(44291),n(48458)),y=n(25337),m=n(72445),v=n(10177),b=n(68429),w=n(98418),A=n(39123),x=n(3861);let S,E,L,k,C,H,z,T,j;const{defineElement:O,property:q,event:F}=(0,f.createDecorators)();let I;var D=new WeakMap,P=new WeakMap,M=new WeakMap,N=new WeakSet,_=new WeakMap;class R extends h.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,N),(0,i.A)(this,D,E(this)),(0,i.A)(this,P,(L(this),k(this))),(0,i.A)(this,M,(C(this),H(this))),(0,i.A)(this,_,(j(this),(e,t)=>{(0,s.A)(N,this,z).emit({open:e,data:t})}))}get dataSource(){return(0,l.A)(D,this)}set dataSource(e){(0,c.A)(D,this,e)}get detailContentStyle(){return(0,l.A)(P,this)}set detailContentStyle(e){(0,c.A)(P,this,e)}render(){return p().createElement($,{dataSource:this.dataSource,onDetailOpenChange:(0,l.A)(_,this),detailContentStyle:this.detailContentStyle})}}function $(e){const{onDetailOpenChange:t,dataSource:n=[],detailContentStyle:r={}}=e,a=(0,d.useRef)(),i=(0,d.useRef)(),[o,s]=(0,d.useState)(),c=(0,d.useRef)(),[l,u]=(0,d.useState)();return(0,d.useEffect)((()=>{const e=new g.Z5({id:a.current,logoVisible:!1,map:new y.A({center:[90.268,40.3628],pitch:35,zoom:1})});e.setMapStatus({doubleClickZoom:!1,zoomEnable:!1});const t=new Image;t.src=v;const r=new Image;return r.src=b,e.addImage("default",t),e.addImage("selected",r),e.addImage("chinaBg",w),e.on("loaded",(()=>{const t={...A,features:A.features.slice(0,A.features.length-2)},r={...A,features:A.features.slice(A.features.length-2,A.features.length)},a=new g.qH({autoFit:!1}).source(t);a.shape("extrude").color("rgba(84, 239, 241, 0.20)").style({heightfixed:!0,pickLight:!0,opacity:1,raisingHeight:-13e5});const i=new g.qH({autoFit:!1}).source(t);i.shape("extrude").color("rgba(14, 11, 75, 0.58)").style({heightfixed:!0,pickLight:!0,opacity:1,raisingHeight:-11e5});const o=new g.qH({autoFit:!1}).source(t);o.shape("extrude").color("rgba(190, 225, 226, 1)").style({heightfixed:!0,pickLight:!0,opacity:1,raisingHeight:-9e5});const l=new g.qH({autoFit:!1}).source(t);l.shape("extrude").color("rgba(18, 26, 45, 1)").style({heightfixed:!0,pickLight:!0,opacity:1,raisingHeight:-7e5});const d=new g.qH({autoFit:!1}).source(t);d.shape("extrude").color("#111D3C").style({heightfixed:!0,pickLight:!0,opacity:1,raisingHeight:-5e5});const p=new g.qH({autoFit:!1}).source(t);p.shape("extrude").color("#121A2D").style({heightfixed:!0,pickLight:!0,opacity:1,raisingHeight:-3e5});const f=new g.qH({autoFit:!0}).source(t);f.shape("fill").color("rgba(8, 77, 255, 0.60)");const h=new g.PQ({autoFit:!1,zIndex:1}).source(w,{parser:{type:"image",extent:[73.33,17.9,134.85,53.73]}});h.shape("img").style({opacity:1});const y=(new g.S6).source(t).shape("line").color("rgba(43, 100, 255, 1)").size(1).style({raisingHeight:-16e5}),b=(new g.S6).source(t).shape("line").color("rgba(84, 239, 241, 1)").size(1).style({raisingHeight:-12e5}),x=(new g.S6).source(t).shape("line").color("rgba(43, 100, 255, 1)").size(1).style({raisingHeight:-6e5}),S=new g.S6({zIndex:2}).source(t).shape("line").color("#3DC6FF").size(1).style({raisingHeight:0}).scale("density",{type:"quantile"});e.addLayer(a),e.addLayer(i),e.addLayer(o),e.addLayer(l),e.addLayer(d),e.addLayer(p),e.addLayer(h),e.addLayer(f),e.addLayer(y),e.addLayer(b),e.addLayer(x),e.addLayer(S);const E=new g.qH({autoFit:!1}).source(r);E.shape("fill").color("black");const L=new g.S6({zIndex:2}).source(r).shape("line").color("rgba(30, 144, 255, 1)").size(.5).style({raisingHeight:0}).scale("density",{type:"quantile"});e.addLayer(E),e.addLayer(L),n.map((n=>{const r=document.createElement("div");let a="text";r.textContent=n.text;const i=t.features.find((e=>e.properties.name.includes(n.city)));["410000","820000","140000","110000","420000","430000","450000","500000","520000","530000","510000","610000","640000","150000","630000","540000","340000"].includes(i.id)&&(a=`${a} leftText`,n.isLeftOffset=!0),["620000","640000","450000","440000","120000","340000","510000","150000","320000"].includes(i.id)&&(a=`${a} topText`,n.isTopOffset=!0),r.className=a,r.onclick=e=>{n.width=r.getBoundingClientRect().width,((e,t)=>{e.stopPropagation(),(0,m.isEqual)(t,c.current)?s(null):(s(t),u({left:`${(0,m.toNumber)(e.target.style.left.replace("px",""))+24}px`,top:`${(0,m.toNumber)(e.target.style.top.replace("px",""))+28}px`}))})(e,n)};const o=document.createElement("img");o.src=v,o.className="iconImg";const l=i.properties.center;let d=l[1];["530000","520000","430000","360000","330000","610000","370000","130000"].includes(i.id)&&(d-=1);const p=new g.pH({element:r}).setLnglat({lng:l[0],lat:d}),f=new g.pH({element:o}).setLnglat({lng:l[0],lat:d});e.addMarker(p),e.addMarker(f)}))})),()=>{e.destroy()}}),[]),(0,d.useEffect)((()=>{var e;const t=e=>{i.current&&e.composedPath().includes(i.current)||s(null)};return null===(e=document)||void 0===e||e.addEventListener("click",t),()=>{var e;null===(e=document)||void 0===e||e.removeEventListener("click",t)}}),[]),(0,d.useEffect)((()=>{c.current=(0,m.cloneDeep)(o),t(!(0,m.isEmpty)(o),o)}),[o]),p().createElement("div",null,p().createElement("div",{id:"map",ref:a,className:"map"}),o&&p().createElement("div",{className:"detailContent",onClick:e=>{e.stopPropagation()},style:{..."textBottom"===o.detailDisplayLocation?{left:l.left,top:l.top,transform:`translate(${o.isLeftOffset?-o.width:0}px, ${o.isTopOffset?-50:-40}px)`}:{transform:"translate(-50%, 0%)",top:"50%",left:"50%"},...r}},p().createElement("slot",{name:"detail",ref:i})))}r=R,({e:[E,L,k,C,H,z,T,j],c:[I,S]}=(0,u.A)(r,[O("data-view.china-map-chart",{styleTexts:[x.A]})],[[q({attribute:!1}),1,"dataSource"],[q({attribute:!1}),1,"detailContentStyle"],[F({type:"detail.open.change"}),1,"openChangeEvent",e=>(0,l.A)(M,e),(e,t)=>(0,c.A)(M,e,t)]],0,(e=>_.has((0,o.A)(e))),h.ReactNextElement)),S()},40935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,a,i){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(o[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&o[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},36758:e=>{e.exports=function(e){return e[1]}},62740:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(17545),a=n(26902);function i(e,t,n){"symbol"==(0,r.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var o=n(11369);function s(e,t,n,s,c,l){var u,d,p,f,h,g,y,m=Symbol.metadata||Symbol.for("Symbol.metadata"),v=Object.defineProperty,b=Object.create,w=[b(null),b(null)],A=t.length;function x(t,n,r){return function(a,i){n&&(i=a,a=e);for(var o=0;o<t.length;o++)i=t[o].apply(a,r?[i]:[]);return r?i:a}}function S(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function E(e,t,n,a,o,s,c,l,p,f,h){function g(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var y=[].concat(t[0]),m=t[3],b=!c,A=1===o,E=3===o,L=4===o,k=2===o;function C(t,n,r){return function(a,i){return n&&(i=a,a=e),r&&r(a),H[t].call(a,i)}}if(!b){var H={},z=[],T=E?"get":L||A?"set":"value";if(p?(f||A?H={get:i((function(){return m(this)}),a,"get"),set:function(e){t[4](this,e)}}:H[T]=m,f||i(H[T],a,k?"":T)):f||(H=Object.getOwnPropertyDescriptor(e,a)),!f&&!p){if((d=w[+l][a])&&7!=(d^o))throw Error("Decorating two elements with the same name ("+H[T].name+") is not supported yet");w[+l][a]=o<3?1:o}}for(var j=e,O=y.length-1;O>=0;O-=n?2:1){var q=S(y[O],"A decorator","be",!0),F=n?y[O-1]:void 0,I={},D={kind:["field","accessor","method","getter","setter","class"][o],name:a,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");S(t,"An initializer","be",!0),s.push(t)}.bind(null,I)};if(b)d=q.call(F,j,D),I.v=1,S(d,"class decorators","return")&&(j=d);else if(D.static=l,D.private=p,d=D.access={has:p?h.bind():function(e){return a in e}},L||(d.get=p?k?function(e){return g(e),H.value}:C("get",0,g):function(e){return e[a]}),k||E||(d.set=p?C("set",0,g):function(e,t){e[a]=t}),j=q.call(F,A?{get:H.get,set:H.set}:H[T],D),I.v=1,A){if("object"==(0,r.A)(j)&&j)(d=S(j.get,"accessor.get"))&&(H.get=d),(d=S(j.set,"accessor.set"))&&(H.set=d),(d=S(j.init,"accessor.init"))&&z.unshift(d);else if(void 0!==j)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else S(j,(f?"field":"method")+" decorators","return")&&(f?z.unshift(j):H[T]=j)}return o<2&&c.push(x(z,l,1),x(s,l,0)),f||b||(p?A?c.splice(-1,0,C("get",l),C("set",l)):c.push(k?H[T]:S.call.bind(H[T])):v(e,a,H)),j}function L(e){return v(e,m,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[m]),u=b(null==u?null:u),h=[],g=function(e){e&&h.push(x(e))},y=function(t,r){for(var i=0;i<n.length;i++){var s=n[i],l=s[1],u=7&l;if((8&l)==t&&!u==r){var d=s[2],g=!!s[3],y=16&l;E(t?e:e.prototype,s,y,g?"#"+d:(0,o.A)(d),u,u<2?[]:t?f=f||[]:p=p||[],h,!!t,g,r,t&&g?function(t){return(0,a.A)(t)===e}:c)}}},y(8,0),y(0,0),y(8,1),y(0,1),g(p),g(f),d=h,A||L(e),{e:d,get c(){var n=[];return A&&[L(e=E(e,[t],s,e.name,5,n)),x(n,1)]}}}},12559:(e,t,n)=>{function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>r})},26902:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(17545);function a(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},72016:(e,t,n)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},70829:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(12559);function a(e,t){return e.get((0,r.A)(e,t))}},70918:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(72016);function a(e,t,n){(0,r.A)(e,t),t.set(e,n)}},86121:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(12559);function a(e,t,n){return e.set((0,r.A)(e,t),n),n}},11369:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(17545);function a(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=(0,r.A)(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},17545:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})}}]);
|
|
2
|
+
//# sourceMappingURL=china-map-chart.eb43bf10.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunks/china-map-chart.eb43bf10.js","mappings":"ucAaA,MAAM,cAAEA,EAAa,SAAEC,EAAQ,MAAEC,IAAUC,EAAAA,EAAAA,oBAE3C,IAAAC,EAAA,IAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAC,QAAAC,EAAA,IAAAL,QAIA,MAAAM,UAG4BC,EAAAA,iBAAiBC,WAAAA,GAAA,SAAAC,YAAAC,EAAAA,EAAAA,GAAA,KAAAP,IAC3CQ,EAAAA,EAAAA,GAAA,KAAAZ,EAAAa,EAAA,QAMAD,EAAAA,EAAAA,GAAA,KAAAV,GAAAY,EAAA,MAAAC,EAAA,SAMAH,EAAAA,EAAAA,GAAA,KAAAT,GAAAa,EAAA,MAAAC,EAAA,SASAL,EAAAA,EAAAA,GAAA,KAAAN,GAAiBY,EAAA,MAAG,CAACC,EAAeC,MAClCC,EAAAA,EAAAA,GAAAjB,EAAAkB,KAAKC,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AY5C,GAClC,GAAIqE,OAAOrE,KAAOA,EAAG,MAAM0F,UAAU,qDAAuD,OAAS1F,GAAI,OAAQA,GAAK,SACtH,OAAOA,CACT,C,kBCJe,SAAS2H,EAA2BC,EAAKC,GACtD,GAAIA,EAAkBlF,IAAIiF,GACxB,MAAM,IAAIlC,UAAU,iEAExB,C,kECHe,SAASoC,EAAuBjD,EAAGF,GAChD,OAAOE,EAAEwB,KAAI,OAAiBxB,EAAGF,GACnC,C,kDCFe,SAASzL,EAA2B0O,EAAKG,EAAYvD,IAClE,OAA0BoD,EAAKG,GAC/BA,EAAWzB,IAAIsB,EAAKpD,EACtB,C,kDCHe,SAASwD,EAAuBnD,EAAGF,EAAGD,GACnD,OAAOG,EAAEyB,KAAI,OAAiBzB,EAAGF,GAAID,GAAIA,CAC3C,C,kDCDe,SAAS8C,EAActD,GACpC,IAAInF,ECFS,SAAqBmF,EAAGQ,GACrC,GAAI,WAAY,OAAQR,KAAOA,EAAG,OAAOA,EACzC,IAAIlE,EAAIkE,EAAEe,OAAOgD,aACjB,QAAI,IAAWjI,EAAG,CAChB,IAAIjB,EAAIiB,EAAEmG,KAAKjC,EAAGQ,UAClB,GAAI,WAAY,OAAQ3F,GAAI,OAAOA,EACnC,MAAM,IAAI2G,UAAU,+CACtB,CACA,OAAyBwC,OAAiBhE,EAC5C,CDPU+D,CAAY/D,GACpB,MAAO,WAAY,OAAQnF,GAAKA,EAAIA,EAAI,EAC1C,C,kBELe,SAASoJ,EAAQ1F,GAG9B,OAAO0F,EAAU,mBAAqBlD,QAAU,iBAAmBA,OAAOmD,SAAW,SAAU3F,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqBwC,QAAUxC,EAAE1J,cAAgBkM,QAAUxC,IAAMwC,OAAOsC,UAAY,gBAAkB9E,CACpH,EAAG0F,EAAQ1F,EACb,C","sources":["webpack:///./src/china-map-chart/index.tsx","webpack:///../../node_modules/css-loader/dist/runtime/api.js","webpack:///../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/setFunctionName.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/applyDecs2311.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/assertClassBrand.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkInRHS.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js"],"sourcesContent":["import React, { useEffect, useRef, useState, CSSProperties } from \"react\";\nimport { EventEmitter, createDecorators } from \"@next-core/element\";\nimport { ReactNextElement } from \"@next-core/react-element\";\nimport \"@next-core/theme\";\nimport { Scene, PolygonLayer, LineLayer, Marker, ImageLayer } from \"@antv/l7\";\nimport { Map } from \"@antv/l7-maps\";\nimport { cloneDeep, isEmpty, isEqual, toNumber } from \"lodash\";\nimport defaultSvg from \"./assets/default.svg?url\";\nimport selectedSvg from \"./assets/selected.svg?url\";\nimport chinaPng from \"./assets/china.png\";\nimport CHINA from \"./map.json\";\nimport styleText from \"./styles.shadow.css\";\n\nconst { defineElement, property, event } = createDecorators();\n\n/**\n * 中国地图图表构件,可以显示省级指标数据\n */\nexport\n@defineElement(\"data-view.china-map-chart\", {\n styleTexts: [styleText],\n})\nclass ChinaMapChart extends ReactNextElement {\n /**\n * 数据源\n */\n @property({ attribute: false })\n accessor dataSource: DataSource[] | undefined;\n\n /**\n * 数据源\n */\n @property({ attribute: false })\n accessor detailContentStyle: CSSProperties | undefined;\n\n /**\n * 当提示可见性开始变化时触发\n * @detail 当前是否可见\n */\n @event({ type: \"detail.open.change\" })\n accessor #openChangeEvent!: EventEmitter<{\n open: boolean;\n data: Record<string, any>;\n }>;\n #handleOpenChange = (open: boolean, data: Record<string, any>): void => {\n this.#openChangeEvent.emit({ open, data });\n };\n\n render() {\n return (\n <ChinaMapChartComponent\n dataSource={this.dataSource}\n onDetailOpenChange={this.#handleOpenChange}\n detailContentStyle={this.detailContentStyle}\n />\n );\n }\n}\n\ninterface DataSource {\n /** 省级行政区域名,例如:四川、北京 */\n city: string;\n detailDisplayLocation: \"pageCenter\" | \"textBottom\";\n text: string;\n [x: string]: any;\n}\n\nexport interface ChinaMapChartProps {\n onDetailOpenChange: (open: boolean, data: Record<string, any>) => void;\n dataSource: DataSource[];\n detailContentStyle?: CSSProperties;\n // Define props here.\n}\n\nexport function ChinaMapChartComponent(props: ChinaMapChartProps) {\n const {\n onDetailOpenChange,\n dataSource = [],\n detailContentStyle = {},\n } = props;\n const mapRef = useRef<HTMLDivElement>();\n const slotRef = useRef<HTMLSlotElement>();\n const [showData, setShowData] = useState<DataSource>();\n const showDataRef = useRef<DataSource>();\n const [textPosition, setTextPosition] = useState<{\n left: string;\n top: string;\n }>();\n\n const textClick = (e: MouseEvent, data: any) => {\n e.stopPropagation();\n if (isEqual(data, showDataRef.current)) {\n setShowData(null);\n return;\n }\n setShowData(data);\n setTextPosition({\n left: `${toNumber((e.target as any).style.left.replace(\"px\", \"\")) + 24}px`,\n top: `${toNumber((e.target as any).style.top.replace(\"px\", \"\")) + 28}px`,\n });\n };\n useEffect(() => {\n const scene = new Scene({\n id: mapRef.current,\n logoVisible: false,\n map: new Map({\n center: [90.268, 40.3628],\n pitch: 35,\n zoom: 1,\n }),\n });\n scene.setMapStatus({ doubleClickZoom: false, zoomEnable: false });\n const defaultImg = new Image();\n defaultImg.src = defaultSvg;\n\n const selectedImg = new Image();\n selectedImg.src = selectedSvg;\n\n scene.addImage(\"default\", defaultImg);\n scene.addImage(\"selected\", selectedImg);\n scene.addImage(\"chinaBg\", chinaPng);\n\n scene.on(\"loaded\", () => {\n const data = {\n ...CHINA,\n features: CHINA.features.slice(0, CHINA.features.length - 2),\n };\n const southSeaData = {\n ...CHINA,\n features: CHINA.features.slice(\n CHINA.features.length - 2,\n CHINA.features.length\n ),\n };\n const seventhPolygonLayer = new PolygonLayer({\n autoFit: false,\n }).source(data);\n\n seventhPolygonLayer\n .shape(\"extrude\")\n .color(\"rgba(84, 239, 241, 0.20)\")\n .style({\n heightfixed: true,\n pickLight: true,\n opacity: 1,\n raisingHeight: -1300000,\n });\n\n const sixthPolygonLayer = new PolygonLayer({\n autoFit: false,\n }).source(data);\n\n sixthPolygonLayer.shape(\"extrude\").color(\"rgba(14, 11, 75, 0.58)\").style({\n heightfixed: true,\n pickLight: true,\n opacity: 1,\n raisingHeight: -1100000,\n });\n\n const fifthPolygonLayer = new PolygonLayer({\n autoFit: false,\n }).source(data);\n\n fifthPolygonLayer.shape(\"extrude\").color(\"rgba(190, 225, 226, 1)\").style({\n heightfixed: true,\n pickLight: true,\n opacity: 1,\n raisingHeight: -900000,\n });\n const fourthPolygonLayer = new PolygonLayer({\n autoFit: false,\n }).source(data);\n\n fourthPolygonLayer.shape(\"extrude\").color(\"rgba(18, 26, 45, 1)\").style({\n heightfixed: true,\n pickLight: true,\n opacity: 1,\n raisingHeight: -700000,\n });\n\n const thirdPolygonLayer = new PolygonLayer({\n autoFit: false,\n }).source(data);\n\n thirdPolygonLayer.shape(\"extrude\").color(\"#111D3C\").style({\n heightfixed: true,\n pickLight: true,\n opacity: 1,\n raisingHeight: -500000,\n });\n const secondPolygonLayer = new PolygonLayer({\n autoFit: false,\n }).source(data);\n\n secondPolygonLayer.shape(\"extrude\").color(\"#121A2D\").style({\n heightfixed: true,\n pickLight: true,\n opacity: 1,\n raisingHeight: -300000,\n });\n\n const firstPolygonLayer = new PolygonLayer({\n autoFit: true,\n }).source(data);\n\n firstPolygonLayer.shape(\"fill\").color(\"rgba(8, 77, 255, 0.60)\");\n // .select({\n // color: \"rgba(177, 254, 254, 1)\",\n // });//编排上层缩放会影响到高亮功能,还不知道怎么解决,暂时不实现。\n\n const chinaImgLayer = new ImageLayer({\n autoFit: false,\n zIndex: 1,\n }).source(chinaPng, {\n parser: {\n type: \"image\",\n extent: [73.33, 17.9, 134.85, 53.73],\n },\n });\n\n chinaImgLayer.shape(\"img\").style({\n opacity: 1,\n });\n\n const fourthLineLayer = new LineLayer()\n .source(data)\n .shape(\"line\")\n .color(\"rgba(43, 100, 255, 1)\")\n .size(1)\n .style({\n raisingHeight: -1600000,\n });\n\n const thirdLineLayer = new LineLayer()\n .source(data)\n .shape(\"line\")\n .color(\"rgba(84, 239, 241, 1)\")\n .size(1)\n .style({\n raisingHeight: -1200000,\n });\n\n const secondLineLayer = new LineLayer()\n .source(data)\n .shape(\"line\")\n .color(\"rgba(43, 100, 255, 1)\")\n .size(1)\n .style({\n raisingHeight: -600000,\n });\n\n const firstLineLayer = new LineLayer({ zIndex: 2 })\n .source(data)\n .shape(\"line\")\n .color(\"#3DC6FF\")\n .size(1)\n .style({\n raisingHeight: 0,\n })\n .scale(\"density\", {\n type: \"quantile\",\n });\n\n // const hightLayer = new LineLayer({\n // zIndex: 10, // 设置显示层级\n // name: \"hightlight\",\n // })\n // .source({\n // type: \"FeatureCollection\",\n // features: [],\n // })\n // .shape(\"line\")\n // .size(2)\n // .color(\"rgba(177, 254, 254, 1)\")\n // .style({\n // opacity: 1,\n // });\n // const hightPolygonLayer = new PolygonLayer({zIndex: 10})\n // .source({\n // type: \"FeatureCollection\",\n // features: [],\n // })\n // .shape(\"fill\")\n // .color(\"rgba(177, 254, 254, 1)\")\n // .style({\n // heightfixed: true,\n // pickLight: true,\n // opacity: 1,\n // raisingHeight: 0,\n // }); //自定义选择高亮\n\n scene.addLayer(seventhPolygonLayer);\n scene.addLayer(sixthPolygonLayer);\n scene.addLayer(fifthPolygonLayer);\n scene.addLayer(fourthPolygonLayer);\n scene.addLayer(thirdPolygonLayer);\n scene.addLayer(secondPolygonLayer);\n scene.addLayer(chinaImgLayer);\n // scene.addLayer(hightLayer);\n // scene.addLayer(hightPolygonLayer);\n scene.addLayer(firstPolygonLayer);\n\n scene.addLayer(fourthLineLayer);\n scene.addLayer(thirdLineLayer);\n scene.addLayer(secondLineLayer);\n scene.addLayer(firstLineLayer);\n\n // firstPolygonLayer.on(\"click\", (e) => {\n // const { feature } = e;\n // hightPolygonLayer.setData({\n // type: \"FeatureCollection\",\n // features: [feature],\n // });\n // hightLayer.setData({\n // type: \"FeatureCollection\",\n // features: [feature],\n // });\n // });\n\n const southSeaPolygonLayer = new PolygonLayer({\n autoFit: false,\n }).source(southSeaData);\n\n southSeaPolygonLayer.shape(\"fill\").color(\"black\");\n\n const southSeaLineLayer = new LineLayer({ zIndex: 2 })\n .source(southSeaData)\n .shape(\"line\")\n .color(\"rgba(30, 144, 255, 1)\")\n .size(0.5)\n .style({\n raisingHeight: 0,\n })\n .scale(\"density\", {\n type: \"quantile\",\n });\n scene.addLayer(southSeaPolygonLayer);\n scene.addLayer(southSeaLineLayer);\n\n dataSource.map((i) => {\n const el = document.createElement(\"div\");\n let classNameText = \"text\";\n el.textContent = i.text;\n const city = data.features.find((f) =>\n f.properties.name.includes(i.city)\n );\n //先手动调整位置,缓解重叠的问题\n if (\n [\n \"410000\",\n \"820000\",\n \"140000\",\n \"110000\",\n \"420000\",\n \"430000\",\n \"450000\",\n \"500000\",\n \"520000\",\n \"530000\",\n \"510000\",\n \"610000\",\n \"640000\",\n \"150000\",\n \"630000\",\n \"540000\",\n \"340000\",\n ].includes(city.id)\n ) {\n classNameText = `${classNameText} leftText`;\n i.isLeftOffset = true;\n }\n if (\n [\n \"620000\",\n \"640000\",\n \"450000\",\n \"440000\",\n \"120000\",\n \"340000\",\n \"510000\",\n \"150000\",\n \"320000\",\n ].includes(city.id)\n ) {\n classNameText = `${classNameText} topText`;\n i.isTopOffset = true;\n }\n el.className = classNameText;\n\n el.onclick = (e) => {\n i.width = el.getBoundingClientRect().width;\n textClick(e, i);\n };\n\n const imgEl = document.createElement(\"img\");\n imgEl.src = defaultSvg;\n imgEl.className = \"iconImg\";\n\n const center = city.properties.center;\n let lat = center[1];\n if (\n [\n \"530000\",\n \"520000\",\n \"430000\",\n \"360000\",\n \"330000\",\n \"610000\",\n \"370000\",\n \"130000\",\n ].includes(city.id)\n ) {\n lat -= 1;\n }\n\n const marker = new Marker({\n element: el,\n }).setLnglat({ lng: center[0], lat });\n const imgMarker = new Marker({\n element: imgEl,\n }).setLnglat({ lng: center[0], lat });\n scene.addMarker(marker);\n scene.addMarker(imgMarker);\n });\n });\n\n return () => {\n scene.destroy();\n };\n }, []);\n\n useEffect(() => {\n const handleClick = (e: MouseEvent) => {\n if (slotRef.current && e.composedPath().includes(slotRef.current)) return;\n setShowData(null);\n };\n document?.addEventListener(\"click\", handleClick);\n return () => {\n document?.removeEventListener(\"click\", handleClick);\n };\n }, []);\n\n useEffect(() => {\n showDataRef.current = cloneDeep(showData);\n onDetailOpenChange(!isEmpty(showData), showData);\n }, [showData]);\n return (\n <div>\n <div id=\"map\" ref={mapRef} className=\"map\"></div>\n {showData && (\n <div\n className=\"detailContent\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n style={{\n ...(showData.detailDisplayLocation === \"textBottom\"\n ? {\n left: textPosition.left,\n top: textPosition.top,\n transform: `translate(${showData.isLeftOffset ? -showData.width : 0}px, ${showData.isTopOffset ? -50 : -40}px)`,\n }\n : {\n transform: \"translate(-50%, 0%)\",\n top: \"50%\",\n left: \"50%\",\n }),\n ...detailContentStyle,\n }}\n >\n <slot name=\"detail\" ref={slotRef}></slot>\n </div>\n )}\n </div>\n );\n}\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","import _typeof from \"./typeof.js\";\nexport default function setFunctionName(e, t, n) {\n \"symbol\" == _typeof(t) && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\");\n try {\n Object.defineProperty(e, \"name\", {\n configurable: !0,\n value: n ? n + \" \" + t : t\n });\n } catch (e) {}\n return e;\n}","import _typeof from \"./typeof.js\";\nimport checkInRHS from \"./checkInRHS.js\";\nimport setFunctionName from \"./setFunctionName.js\";\nimport toPropertyKey from \"./toPropertyKey.js\";\nexport default function applyDecs2311(e, t, n, r, o, i) {\n var a,\n c,\n u,\n s,\n f,\n l,\n p,\n d = Symbol.metadata || Symbol[\"for\"](\"Symbol.metadata\"),\n m = Object.defineProperty,\n h = Object.create,\n y = [h(null), h(null)],\n v = t.length;\n function g(t, n, r) {\n return function (o, i) {\n n && (i = o, o = e);\n for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []);\n return r ? i : o;\n };\n }\n function b(e, t, n, r) {\n if (\"function\" != typeof e && (r || void 0 !== e)) throw new TypeError(t + \" must \" + (n || \"be\") + \" a function\" + (r ? \"\" : \" or undefined\"));\n return e;\n }\n function applyDec(e, t, n, r, o, i, u, s, f, l, p) {\n function d(e) {\n if (!p(e)) throw new TypeError(\"Attempted to access private element on non-instance\");\n }\n var h = [].concat(t[0]),\n v = t[3],\n w = !u,\n D = 1 === o,\n S = 3 === o,\n j = 4 === o,\n E = 2 === o;\n function I(t, n, r) {\n return function (o, i) {\n return n && (i = o, o = e), r && r(o), P[t].call(o, i);\n };\n }\n if (!w) {\n var P = {},\n k = [],\n F = S ? \"get\" : j || D ? \"set\" : \"value\";\n if (f ? (l || D ? P = {\n get: setFunctionName(function () {\n return v(this);\n }, r, \"get\"),\n set: function set(e) {\n t[4](this, e);\n }\n } : P[F] = v, l || setFunctionName(P[F], r, E ? \"\" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) {\n if ((c = y[+s][r]) && 7 != (c ^ o)) throw Error(\"Decorating two elements with the same name (\" + P[F].name + \") is not supported yet\");\n y[+s][r] = o < 3 ? 1 : o;\n }\n }\n for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) {\n var z = b(h[O], \"A decorator\", \"be\", !0),\n A = n ? h[O - 1] : void 0,\n H = {},\n K = {\n kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"class\"][o],\n name: r,\n metadata: a,\n addInitializer: function (e, t) {\n if (e.v) throw Error(\"attempted to call addInitializer after decoration was finished\");\n b(t, \"An initializer\", \"be\", !0), i.push(t);\n }.bind(null, H)\n };\n if (w) c = z.call(A, N, K), H.v = 1, b(c, \"class decorators\", \"return\") && (N = c);else if (K[\"static\"] = s, K[\"private\"] = f, c = K.access = {\n has: f ? p.bind() : function (e) {\n return r in e;\n }\n }, j || (c.get = f ? E ? function (e) {\n return d(e), P.value;\n } : I(\"get\", 0, d) : function (e) {\n return e[r];\n }), E || S || (c.set = f ? I(\"set\", 0, d) : function (e, t) {\n e[r] = t;\n }), N = z.call(A, D ? {\n get: P.get,\n set: P.set\n } : P[F], K), H.v = 1, D) {\n if (\"object\" == _typeof(N) && N) (c = b(N.get, \"accessor.get\")) && (P.get = c), (c = b(N.set, \"accessor.set\")) && (P.set = c), (c = b(N.init, \"accessor.init\")) && k.unshift(c);else if (void 0 !== N) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or undefined\");\n } else b(N, (l ? \"field\" : \"method\") + \" decorators\", \"return\") && (l ? k.unshift(N) : P[F] = N);\n }\n return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I(\"get\", s), I(\"set\", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N;\n }\n function w(e) {\n return m(e, d, {\n configurable: !0,\n enumerable: !0,\n value: a\n });\n }\n return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) {\n e && f.push(g(e));\n }, p = function p(t, r) {\n for (var i = 0; i < n.length; i++) {\n var a = n[i],\n c = a[1],\n l = 7 & c;\n if ((8 & c) == t && !l == r) {\n var p = a[2],\n d = !!a[3],\n m = 16 & c;\n applyDec(t ? e : e.prototype, a, m, d ? \"#\" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) {\n return checkInRHS(t) === e;\n } : o);\n }\n }\n }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), {\n e: c,\n get c() {\n var n = [];\n return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)];\n }\n };\n}","export default function _assertClassBrand(e, t, n) {\n if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;\n throw new TypeError(\"Private element is not present on this object\");\n}","import _typeof from \"./typeof.js\";\nexport default function _checkInRHS(e) {\n if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? _typeof(e) : \"null\"));\n return e;\n}","export default function _checkPrivateRedeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldGet2(s, a) {\n return s.get(assertClassBrand(s, a));\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldSet2(s, a, r) {\n return s.set(assertClassBrand(s, a), r), r;\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}"],"names":["defineElement","property","event","createDecorators","_ChinaMapChart","_A","WeakMap","_B","_C","_ChinaMapChart_brand","WeakSet","_handleOpenChange","ChinaMapChart","ReactNextElement","constructor","arguments","_classPrivateMethodInitSpec","_classPrivateFieldInitSpec","_init_dataSource","_init_extra_dataSource","_init_detailContentStyle","_init_extra_detailContentStyle","_init_openChangeEvent","_init_extra_openChangeEvent","open","data","_classPrivateGetter","this","_get_openChangeEvent","emit","dataSource","_classPrivateFieldGet","v","_classPrivateFieldSet","detailContentStyle","render","React","ChinaMapChartComponent","onDetailOpenChange","props","mapRef","useRef","slotRef","showData","setShowData","useState","showDataRef","textPosition","setTextPosition","useEffect","scene","Scene","id","current","logoVisible","map","Map","center","pitch","zoom","setMapStatus","doubleClickZoom","zoomEnable","defaultImg","Image","src","defaultSvg","selectedImg","selectedSvg","addImage","chinaPng","on","CHINA","features","slice","length","southSeaData","seventhPolygonLayer","PolygonLayer","autoFit","source","shape","color","style","heightfixed","pickLight","opacity","raisingHeight","sixthPolygonLayer","fifthPolygonLayer","fourthPolygonLayer","thirdPolygonLayer","secondPolygonLayer","firstPolygonLayer","chinaImgLayer","ImageLayer","zIndex","parser","type","extent","fourthLineLayer","LineLayer","size","thirdLineLayer","secondLineLayer","firstLineLayer","scale","addLayer","southSeaPolygonLayer","southSeaLineLayer","i","el","document","createElement","classNameText","textContent","text","city","find","f","properties","name","includes","isLeftOffset","isTopOffset","className","onclick","e","width","getBoundingClientRect","textClick","stopPropagation","isEqual","left","toNumber","target","replace","top","imgEl","lat","marker","Marker","element","setLnglat","lng","imgMarker","addMarker","destroy","_document","handleClick","composedPath","addEventListener","_document2","removeEventListener","cloneDeep","isEmpty","ref","onClick","detailDisplayLocation","transform","_ChinaMapChart2","_set_openChangeEvent","c","_initClass","_applyDecs","styleTexts","styleText","attribute","o","_","has","_checkInRHS","module","exports","cssWithMappingToString","list","toString","item","content","needLayer","concat","join","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","push","setFunctionName","t","n","description","Object","defineProperty","configurable","value","applyDecs2311","r","a","u","s","l","p","d","Symbol","metadata","m","h","create","y","g","apply","b","TypeError","applyDec","w","D","S","j","E","I","P","call","F","get","set","getOwnPropertyDescriptor","Error","N","O","z","A","H","K","kind","addInitializer","bind","access","init","unshift","splice","enumerable","prototype","toPropertyKey","checkInRHS","_assertClassBrand","_checkPrivateRedeclaration","obj","privateCollection","_classPrivateFieldGet2","privateMap","_classPrivateFieldSet2","toPrimitive","String","_typeof","iterator"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[1335],{9557:(e,t,n)=>{n.r(t),n.d(t,{CrystalBallIndicator:()=>C,CrystalBallIndicatorComponent:()=>_});var a,r=n(70918),i=n(86121),o=n(70829),s=n(62740),c=n(18769),l=n.n(c),u=n(10300),p=n(24295),d=(n(44291),n(99126)),m=n(93652),h=(n(95178),n(29837),n(7178));let f,g,v,b,x,y,w,S,A;const E=572,k=16,N=new Intl.NumberFormat("zh-CN",{useGrouping:!0}),M=(0,p.wrapBrick)("eo-tag"),{defineElement:T,property:D}=(0,u.createDecorators)();let C;var I=new WeakMap,z=new WeakMap,L=new WeakMap,P=new WeakMap;class R extends p.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,I,g(this)),(0,r.A)(this,z,(v(this),b(this))),(0,r.A)(this,L,(x(this),y(this))),(0,r.A)(this,P,(w(this),S(this))),A(this)}get dataSource(){return(0,o.A)(I,this)}set dataSource(e){(0,i.A)(I,this,e)}get centerDataSource(){return(0,o.A)(z,this)}set centerDataSource(e){(0,i.A)(z,this,e)}get cornerDataSource(){return(0,o.A)(L,this)}set cornerDataSource(e){(0,i.A)(L,this,e)}get maxScale(){return(0,o.A)(P,this)}set maxScale(e){(0,i.A)(P,this,e)}render(){return l().createElement(_,{root:this,dataSource:this.dataSource,centerDataSource:this.centerDataSource,cornerDataSource:this.cornerDataSource,maxScale:this.maxScale})}}function _(e){let{root:t,dataSource:n,centerDataSource:a,cornerDataSource:r,maxScale:i}=e;const[o,s]=(0,c.useState)(null);(0,c.useEffect)((()=>{const e=new d.A((e=>{for(const n of e)if(n.target===t){const{width:e,height:t}=n.contentRect;s(Math.min(null!=i?i:1,e/810,t/604))}}));return e.observe(t),()=>e.disconnect()}),[i,t]);const u=(0,c.useMemo)((()=>{var e;const t=null!==(e=null==n?void 0:n.slice(0,12))&&void 0!==e?e:[];if(0===t.length)return[];const a=Math.ceil(t.length/2),r=t.length%2==0,i=Math.PI/(a+1),o=E/2,s=o+k;let c,l,u,p=0;const d=[];for(;p<t.length;){const e=t[p];if(p%2==0)u=i*(p/2+1)-Math.PI/2,c=s+o*Math.cos(u),l=s+o*Math.sin(u),d.push({...e,x:c,y:l});else if(r)d.push({...e,x:2*s-c,y:l});else{const t=Math.PI-(u+i/2);d.push({...e,x:s+o*Math.cos(t),y:s+o*Math.sin(t)})}p++}return d}),[n]);return l().createElement(l().Fragment,null,l().createElement("div",{className:"circle-container",style:{visibility:null===o?"hidden":"visible","--scale":o}},l().createElement("div",{className:"base"}),l().createElement("div",{className:"ring-container"},l().createElement("div",{className:"ring"}),l().createElement("div",{className:"video-container"},l().createElement("video",{width:352,height:352,autoPlay:!0,muted:!0,loop:!0,playsInline:!0},l().createElement("source",{src:m,type:"video/mp4"})))),l().createElement("div",{className:"ring-labels"},u.map(((e,t)=>l().createElement("div",{key:t,className:"ring-label-container "+(t%2==0?"even":"odd"),style:{left:e.x,top:e.y}},l().createElement("div",{className:"ring-icon"}),l().createElement("div",{className:"ring-label"},e.label),l().createElement("div",{className:"ring-value"},B(e.value)))))),l().createElement("div",{className:"center"},l().createElement("div",{className:"center-label"},null==a?void 0:a.label),l().createElement("div",{className:"center-value"},B(null==a?void 0:a.value)))),l().createElement("div",{className:"corner"},null==r?void 0:r.map(((e,t)=>l().createElement("div",{key:t,className:"corner-item"},l().createElement("div",{className:"corner-label"},e.label),l().createElement(M,{className:"corner-value",outline:!0,color:e.color,tagStyle:{fontSize:18,padding:"2px 16px"}},B(e.value)))))))}function B(e){return"number"==typeof e?N.format(e):e}a=R,({e:[g,v,b,x,y,w,S,A],c:[C,f]}=(0,s.A)(a,[T("data-view.crystal-ball-indicator",{styleTexts:[h.A]})],[[D({attribute:!1}),1,"dataSource"],[D({attribute:!1}),1,"centerDataSource"],[D({attribute:!1}),1,"cornerDataSource"],[D({type:Number}),1,"maxScale"]],0,void 0,p.ReactNextElement)),f()},97136:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(36758),r=n.n(a),i=n(40935),o=n.n(i),s=n(20062),c=n.n(s),l=new URL(n(17577),n.b),u=o()(r()),p=c()(l);u.push([e.id,`@font-face{font-family:ALiBaBaPuHuiTi;src:url(${p})}`,""]);const d=u},59291:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(36758),r=n.n(a),i=n(40935),o=n.n(i),s=n(20062),c=n.n(s),l=new URL(n(59552),n.b),u=o()(r()),p=c()(l);u.push([e.id,`@font-face{font-family:PangMenZhengDaoBiaoTiTi;src:url(${p})}`,""]);const d=u},7178:(e,t,n)=>{n.d(t,{A:()=>b});var a=n(36758),r=n.n(a),i=n(40935),o=n.n(i),s=n(20062),c=n.n(s),l=new URL(n(48362),n.b),u=new URL(n(5578),n.b),p=new URL(n(93893),n.b),d=new URL(n(21949),n.b),m=o()(r()),h=c()(l),f=c()(u),g=c()(p),v=c()(d);m.push([e.id,`:host,\n.circle-container,\n.ring-container,\n.video-container,\n.center{display:flex;align-items:center;justify-content:center}:host{position:relative;color:#fff;height:100%}:host([hidden]){display:none}*{box-sizing:border-box}.circle-container,\n.base,\n.ring-labels{width:604px;height:604px}.circle-container{padding:16px;position:relative;transform:scale(var(--scale));--scale:1}.base,\n.ring-labels{position:absolute;left:50%;transform:translate(-50%,0);top:0}.base{background:url(${h}) no-repeat;background-position:center;background-size:572px}.ring-label-container{position:absolute;padding:0 35px;margin-top:-14px;width:max-content}.ring-icon{position:absolute;width:36px;height:36px;background-repeat:no-repeat;background-size:100%;background-position:0 0;top:-4px}.odd{transform:translate(-100%,0);text-align:right}.odd .ring-icon{background-image:url(${f});right:-18px}.even .ring-icon{background-image:url(${g});left:-18px}.ring-label{color:#c8e2ff;font-size:18px}.ring-value{font-family:ALiBaBaPuHuiTi;font-size:28px;text-shadow:0px 4px 7px #514af7}.center{position:absolute;width:100%;height:100%;flex-direction:column;text-shadow:0px 2px 4px rgba(0,0,0,0.5)}.center-label:empty,\n.center-value:empty{display:none}.center-label{font-size:24px;font-weight:600}.center-value{font-family:PangMenZhengDaoBiaoTiTi;font-size:64px}.ring-container{position:relative;width:408px;height:408px}.video-container{border-radius:9999px;width:292px;height:292px;overflow:hidden}.ring{position:absolute;width:100%;height:100%;top:0;left:0;background:url(${v}) no-repeat;background-size:100% 100%;background-position:0 0;animation:ring-rotate 5s linear infinite}.corner{position:absolute;top:13px;left:31px;font-size:18px}.corner-item{display:flex;margin-bottom:15px}.corner-label{font-weight:500;line-height:25px}.corner-value{display:block;margin-left:19px}@keyframes ring-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}`,""]);const b=m.toString()},20062:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},95178:(e,t,n)=>{var a=n(72591),r=n.n(a),i=n(1740),o=n.n(i),s=n(88128),c=n.n(s),l=n(30855),u=n.n(l),p=n(93051),d=n.n(p),m=n(73656),h=n.n(m),f=n(97136),g={};g.styleTagTransform=h(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=o(),g.insertStyleElement=d(),r()(f.A,g),f.A&&f.A.locals&&f.A.locals},29837:(e,t,n)=>{var a=n(72591),r=n.n(a),i=n(1740),o=n.n(i),s=n(88128),c=n.n(s),l=n(30855),u=n.n(l),p=n(93051),d=n.n(p),m=n(73656),h=n.n(m),f=n(59291),g={};g.styleTagTransform=h(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=o(),g.insertStyleElement=d(),r()(f.A,g),f.A&&f.A.locals&&f.A.locals},72591:e=>{var t=[];function n(e){for(var n=-1,a=0;a<t.length;a++)if(t[a].identifier===e){n=a;break}return n}function a(e,a){for(var i={},o=[],s=0;s<e.length;s++){var c=e[s],l=a.base?c[0]+a.base:c[0],u=i[l]||0,p="".concat(l," ").concat(u);i[l]=u+1;var d=n(p),m={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)t[d].references++,t[d].updater(m);else{var h=r(m,a);a.byIndex=s,t.splice(s,0,{identifier:p,updater:h,references:1})}o.push(p)}return o}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var i=a(e=e||[],r=r||{});return function(e){e=e||[];for(var o=0;o<i.length;o++){var s=n(i[o]);t[s].references--}for(var c=a(e,r),l=0;l<i.length;l++){var u=n(i[l]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=c}}},88128:e=>{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},30855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},73656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5578:(e,t,n)=>{e.exports=n.p+"images/9514fc4d.png"},48362:(e,t,n)=>{e.exports=n.p+"images/c5f34792.png"},93652:(e,t,n)=>{e.exports=n.p+"media/b43f5418.mp4"},93893:(e,t,n)=>{e.exports=n.p+"images/9111af40.png"},21949:(e,t,n)=>{e.exports=n.p+"images/e4eec39c.png"},17577:(e,t,n)=>{e.exports=n.p+"media/792b07b2.ttf"},59552:(e,t,n)=>{e.exports=n.p+"media/78c4b1bd.ttf"}}]);
|
|
2
|
+
//# sourceMappingURL=crystal-ball-indicator.d8cd86a8.js.map
|