gramene-search 1.6.23 → 1.6.26
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/.parcel-cache/83e7562660f7cc15-BundleGraph +0 -0
- package/.parcel-cache/d3a1b9507cb44047-AssetGraph +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/dc1da35000e13623-RequestGraph +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/.parcel-cache/snapshot-dc1da35000e13623.txt +2 -2
- package/dist/index.js +9 -37
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/results/details/Expression.js +11 -40
- package/src/maize.html +0 -7
|
Binary file
|
|
Binary file
|
package/.parcel-cache/data.mdb
CHANGED
|
Binary file
|
|
Binary file
|
package/.parcel-cache/lock.mdb
CHANGED
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
66530099
|
|
2
|
+
1746654706473322000
|
package/dist/index.js
CHANGED
|
@@ -2213,42 +2213,13 @@ var $541b8b0d8c5501d2$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.conn
|
|
|
2213
2213
|
function $9e29a4f60318db7a$var$DynamicIframe(props) {
|
|
2214
2214
|
// Create a ref for the iframe element
|
|
2215
2215
|
const iframeRef = (0, $gXNCa$react.useRef)(null);
|
|
2216
|
-
|
|
2217
|
-
const resizeIframe = ()=>{
|
|
2218
|
-
if (iframeRef.current) {
|
|
2219
|
-
const iframe = iframeRef.current;
|
|
2220
|
-
const innerDoc = iframe.contentDocument || iframe.contentWindow.document;
|
|
2221
|
-
iframe.style.height = 44 + innerDoc.body.scrollHeight + 'px';
|
|
2222
|
-
}
|
|
2223
|
-
};
|
|
2224
|
-
// Resize iframe when content loads
|
|
2225
|
-
(0, $gXNCa$react.useEffect)(()=>{
|
|
2226
|
-
resizeIframe();
|
|
2227
|
-
}, []); // Empty dependency array ensures it only runs once after initial render
|
|
2228
|
-
// Optional: Resize iframe when window is resized
|
|
2216
|
+
const [iframeHeight, setIframeHeight] = (0, $gXNCa$react.useState)(500); // Default height
|
|
2229
2217
|
(0, $gXNCa$react.useEffect)(()=>{
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
window.removeEventListener('resize', resizeIframe);
|
|
2233
|
-
};
|
|
2234
|
-
}, []); // Empty dependency array ensures it only runs once after initial render
|
|
2235
|
-
// Resize iframe when content changes
|
|
2236
|
-
(0, $gXNCa$react.useEffect)(()=>{
|
|
2237
|
-
const iframe = iframeRef.current;
|
|
2238
|
-
if (!iframe) return;
|
|
2239
|
-
const observer = new MutationObserver(resizeIframe);
|
|
2240
|
-
const checkElement = ()=>{
|
|
2241
|
-
const innerDoc = iframe.contentDocument || iframe.contentWindow.document;
|
|
2242
|
-
const targetElement = innerDoc.querySelector('#heatmapContainer');
|
|
2243
|
-
if (targetElement) observer.observe(targetElement, {
|
|
2244
|
-
attributes: true,
|
|
2245
|
-
childList: true,
|
|
2246
|
-
subtree: true
|
|
2247
|
-
});
|
|
2248
|
-
else setTimeout(checkElement, 200); // Check again after 100 milliseconds
|
|
2218
|
+
const handleMessage = (event)=>{
|
|
2219
|
+
if (event.data.type === 'heightChange') setIframeHeight(event.data.height + 44);
|
|
2249
2220
|
};
|
|
2250
|
-
|
|
2251
|
-
return ()=>
|
|
2221
|
+
window.addEventListener("message", handleMessage);
|
|
2222
|
+
return ()=>window.removeEventListener("message", handleMessage);
|
|
2252
2223
|
}, []);
|
|
2253
2224
|
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("iframe", {
|
|
2254
2225
|
ref: iframeRef,
|
|
@@ -2256,6 +2227,7 @@ function $9e29a4f60318db7a$var$DynamicIframe(props) {
|
|
|
2256
2227
|
title: "Dynamic Iframe",
|
|
2257
2228
|
style: {
|
|
2258
2229
|
width: '100%',
|
|
2230
|
+
height: `${iframeHeight}px`,
|
|
2259
2231
|
border: 'none'
|
|
2260
2232
|
}
|
|
2261
2233
|
});
|
|
@@ -2282,10 +2254,10 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
|
|
|
2282
2254
|
props.expressionStudies
|
|
2283
2255
|
]);
|
|
2284
2256
|
let paralogs_url;
|
|
2285
|
-
let gene_url =
|
|
2257
|
+
let gene_url = `https://dev.gramene.org/static/atlasWidget.html?genes=${gene.atlas_id || gene._id}&localAPI=${isLocal}`;
|
|
2286
2258
|
let paralogs = [];
|
|
2287
2259
|
if (gene.homology && gene.homology.homologous_genes && gene.homology.homologous_genes.within_species_paralog) paralogs = gene.homology.homologous_genes.within_species_paralog;
|
|
2288
|
-
if (paralogs.length > 1 && atlasExperiment) paralogs_url =
|
|
2260
|
+
if (paralogs.length > 1 && atlasExperiment) paralogs_url = `https://dev.gramene.org/static/atlasWidget.html?genes=${paralogs.join(' ')}&experiment=${atlasExperiment}&localAPI=${isLocal}`;
|
|
2289
2261
|
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Tabs), {
|
|
2290
2262
|
children: [
|
|
2291
2263
|
paralogs_url && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Tab), {
|
|
@@ -2319,7 +2291,7 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
|
|
|
2319
2291
|
onChange: (e)=>setAtlasExperiment(e.target.value),
|
|
2320
2292
|
children: atlasExperimentList.map((experiment, index)=>/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("option", {
|
|
2321
2293
|
value: experiment._id,
|
|
2322
|
-
children: experiment.
|
|
2294
|
+
children: experiment.description || experiment._id
|
|
2323
2295
|
}, index))
|
|
2324
2296
|
})
|
|
2325
2297
|
})
|