- Foldable left panel (user profile) and right panel (task details) - Clicking a task in the list or graph node selects it and shows details - Both views (task list + graph) always mounted via absolute inset-0 for correct canvas dimensions; tabs toggle visibility with opacity - Graph node selection animation: other nodes repel outward (charge -600), then selected node smoothly slides to center (500ms cubic ease-out), then charge restores to -120 and graph stabilizes - Graph re-fits on tab switch and panel resize via ResizeObserver - Fix UUID string IDs throughout (backend returns UUIDs, not integers) - Add TaskDetailPanel, UserPanel components - Add CLAUDE.md project documentation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
1.1 KiB
JavaScript
21 lines
1.1 KiB
JavaScript
import Octant from "./octant.js";
|
|
|
|
export default function(callback) {
|
|
var octs = [], q, node = this._root, child, x0, y0, z0, x1, y1, z1;
|
|
if (node) octs.push(new Octant(node, this._x0, this._y0, this._z0, this._x1, this._y1, this._z1));
|
|
while (q = octs.pop()) {
|
|
if (!callback(node = q.node, x0 = q.x0, y0 = q.y0, z0 = q.z0, x1 = q.x1, y1 = q.y1, z1 = q.z1) && node.length) {
|
|
var xm = (x0 + x1) / 2, ym = (y0 + y1) / 2, zm = (z0 + z1) / 2;
|
|
if (child = node[7]) octs.push(new Octant(child, xm, ym, zm, x1, y1, z1));
|
|
if (child = node[6]) octs.push(new Octant(child, x0, ym, zm, xm, y1, z1));
|
|
if (child = node[5]) octs.push(new Octant(child, xm, y0, zm, x1, ym, z1));
|
|
if (child = node[4]) octs.push(new Octant(child, x0, y0, zm, xm, ym, z1));
|
|
if (child = node[3]) octs.push(new Octant(child, xm, ym, z0, x1, y1, zm));
|
|
if (child = node[2]) octs.push(new Octant(child, x0, ym, z0, xm, y1, zm));
|
|
if (child = node[1]) octs.push(new Octant(child, xm, y0, z0, x1, ym, zm));
|
|
if (child = node[0]) octs.push(new Octant(child, x0, y0, z0, xm, ym, zm));
|
|
}
|
|
}
|
|
return this;
|
|
}
|