@rcsb/rcsb-statistics 0.3.1-dev.0 → 0.3.1-dev.2

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.
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkrcsb_statistics=self.webpackChunkrcsb_statistics||[]).push([[47],{3047:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c});var s=a(6540);const c=()=>s.createElement("article",{className:"col-12"},s.createElement("h4",null,"PDB Data Snapshot"),s.createElement("div",null,"(data table goes here)"))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkrcsb_statistics=self.webpackChunkrcsb_statistics||[]).push([[5],{5:(t,e,r)=>{r.r(e),r.d(e,{default:()=>m});var n=r(6540),o=r(7767),a=r(1559),i=r(3513),l=r(2390),s=r(8533),c=r(6073),u=r(2137),b=r(8027),d=r(6061);const m=()=>{const t=(0,o.g)().plotname||"",e=t||"defaultKey",r=["distribution-space-group","distribution-resolution","distribution-r-free","distribution-molecular-weight-structure","distribution-atom-count","distribution-residue-count","distribution-source-organism-natural","distribution-software","distribution-journal","distribution-structural-genomics-centers","assembly-symmetry-dist","taxonomy","enzyme-classification-name","scop-classification"].includes(t),{data:m,isLoading:g,error:f}=(0,c.A)(e),p=(0,d.R)();if(g)return n.createElement(l.tt,null,n.createElement(i.A,null));if(f)return n.createElement(l.tt,null,n.createElement(s.A,{error:f}));const E=m&&m.length>0?{labels:m[0].map((t=>t.label)),datasets:m.map(((t,e)=>{const r={};return t.forEach((t=>{r[t.label]=t.population})),{label:t[0]?.objectConfig?.objectId?.[1]??`Dataset ${e+1}`,data:m[0].map((t=>r[t.label]||0)),backgroundColor:t[0]?.objectConfig?.color||"rgba(0, 0, 0, 0.1)",borderColor:t[0]?.objectConfig?.color||"rgba(0, 0, 0, 0.1)",borderWidth:1,objectConfig:t.map((t=>t.objectConfig))}}))}:null,h=t&&u.A[t];return n.createElement(l.tt,{key:t},E&&h?n.createElement(n.Fragment,null,n.createElement(l.Kb,null,n.createElement(l.OV,{onClick:()=>{const t=(t=>{const e="https://search.rcsb.org/query-editor.html?json=";return t?.searchRequest?`${e}${encodeURIComponent(JSON.stringify(t.searchRequest))}`:e})(p);t&&window.open(t,"_blank")}},n.createElement(b.Pcn,null)," Search API")),n.createElement(a.A,{data:E,options:h,isOverallPlot:!1,isDistPlot:r})):n.createElement(l.tt,null,n.createElement(s.A,{error:new Error("No data available.")})))}}}]);