Skip to content

Commit 34bee2e

Browse files
committed
adding html for boundary conditions and simulations
1 parent 09036b8 commit 34bee2e

File tree

7 files changed

+1478
-10
lines changed

7 files changed

+1478
-10
lines changed

docs/api/boundary_conditions.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Title</title>
6+
</head>
7+
<body>
8+
9+
</body>
10+
</html>

docs/api/forest.html

Lines changed: 639 additions & 0 deletions
Large diffs are not rendered by default.

docs/api/index_api.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,20 @@ <h4>Key Classes</h4>
324324
</tbody>
325325
</table>
326326
</div>
327-
328-
<div class="admonition info">
329-
<p><strong>Optimization:</strong> The tree.utils module contains several Cython-optimized functions (<code>c_angle</code>, <code>c_basis</code>, <code>c_close</code>, <code>c_extend</code>, <code>c_local_optimize</code>, <code>c_obb</code>, <code>c_update</code>) for performance-critical operations.</p>
327+
<div class="api-classes">
328+
<h4>Main Classes</h4>
329+
<ul class="api-class-list">
330+
<li>
331+
<a href="tree.html"><code>Tree</code></a> - Main class for building bifurcating vascular structures
332+
</li>
333+
</ul>
334+
</div>
335+
<div class="admonition note">
336+
<p><strong>Performance note:</strong> The tree.utils module contains several Cython-optimized functions (<code>c_angle</code>, <code>c_basis</code>, <code>c_close</code>, <code>c_extend</code>, <code>c_local_optimize</code>, <code>c_obb</code>, <code>c_update</code>) for performance-critical operations.</p>
330337
</div>
331338
</article>
332339

340+
333341
<!-- Simulation Module -->
334342
<article id="module-simulation" class="api-module">
335343
<header class="api-module-header">

docs/api/script_api.js

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,35 @@
297297
sidebar.parentElement.insertBefore(toggleBtn, sidebar);
298298

299299
// Handle responsive behavior
300+
let resizeTimer;
300301
const checkResponsive = () => {
301-
if (window.innerWidth <= 900) {
302+
const width = window.innerWidth;
303+
304+
if (width <= 900) {
302305
toggleBtn.style.display = 'block';
303306
sidebar.style.display = 'none';
307+
sidebar.style.position = 'static';
304308
} else {
305309
toggleBtn.style.display = 'none';
306310
sidebar.style.display = 'block';
311+
sidebar.style.position = 'sticky';
312+
// Remove any mobile-specific inline styles
313+
sidebar.style.top = '';
314+
sidebar.style.left = '';
315+
sidebar.style.right = '';
316+
sidebar.style.bottom = '';
317+
sidebar.style.background = '';
318+
sidebar.style.zIndex = '';
319+
sidebar.style.padding = '';
320+
sidebar.style.overflowY = '';
321+
}
322+
323+
// Force layout recalculation
324+
const grid = document.querySelector('.api-grid');
325+
if (grid) {
326+
grid.style.display = 'none';
327+
grid.offsetHeight; // Force reflow
328+
grid.style.display = '';
307329
}
308330
};
309331

@@ -342,9 +364,22 @@
342364
}
343365
});
344366

345-
// Check on load and resize
367+
// Handle window resize with debouncing
368+
window.addEventListener('resize', () => {
369+
clearTimeout(resizeTimer);
370+
resizeTimer = setTimeout(() => {
371+
checkResponsive();
372+
373+
// Remove mobile overlay if present
374+
const closeBtn = sidebar.querySelector('.api-sidebar-close');
375+
if (closeBtn && window.innerWidth > 900) {
376+
closeBtn.remove();
377+
}
378+
}, 250);
379+
});
380+
381+
// Check on load
346382
checkResponsive();
347-
window.addEventListener('resize', checkResponsive);
348383

349384
// Close sidebar when clicking a link on mobile
350385
sidebar.addEventListener('click', (e) => {

0 commit comments

Comments
 (0)