Repository navigation
fix(xr): keep BabiaXR charts on the analysis table (XR epic S3) - #71
Merged
Merged
Conversation
- babiaCompat.js (analysis-table runtime): write Babia axis lines directly (A-Frame 1.7.1 never applies the line.end animation, so an axis kept the length of its first build) and ask the containment for a re-fit when an axis resizes; let an empty babia-queryjson wait instead of fetching ''. - Anchor keeps the containment bounds (axes) on the usable tabletop; getChartStatus reports off-table instead of ok while they overhang. - Bounding boxes are recomputed when the position attribute changed. - Generated row-budgeted charts read codexrChartDataSlice__data from their first build; the slice sync never re-points them at raw data. - New opt-in browser harness test:xr-chart-bounds-harness (8 chart types x 3/30/300 files on real generated scenes) and unit tests. Part of the XR environment review epic (S3). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FkKtAtQus8TVjhG9bhytC
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adrián · project thread
This is story S3 of the XR review epic. It covers audit findings CHARTS-1 (blocker), CHARTS-2, CHARTS-3 and CHARTS-6; the audit is in
docs/xr-audit/charts.md.What changes
Axes shrink again (CHARTS-1). BabiaXR 1.3.4 resizes an axis by animating
line__<axis>axis.end. A-Frame 1.7.1 never applies that animation, so an axis kept the length of its first build: a 40-row bars chart ended 1.35 m off the table.babiaCompat.jspart of the analysis-table runtime writes the line directly.Position, not only size (CHARTS-2).
computeAnchorOffsetstill centres the primary bounds. It then shifts the chart just enough to keep the containment bounds (axes included) on the usable tabletop.getChartStatus()reportsoff-table, withoverhangX/overhangZ, instead ofokwhile anything sticks out.Fresh measurements (CHARTS-3).
refreshGeometryBoundingBoxrecomputes a cachedboundingBoxwhenever the position attribute was replaced or its version changed.One build, from the slice (CHARTS-6).
from: codexrChartDataSlice__datanext to an empty slice producer, so the first Babia build already uses the top 20/30 rows.babia-queryjsonfrom fetching''(the page itself).syncActiveChartDataSlicenever re-points a chart that reads the slice back to rawdata.Tests
npm testpasses 1084/1084, and lint stays at the 158-warning budget.New unit tests in
test/analysis/xrChartTableBounds.test.cjscover:New opt-in browser harness
npm run test:xr-chart-bounds-harness:DEVELOPMENT.mdandtest/README.md.All four existing harnesses (
xr,xr-mode,project-evolution,xr-immersive) pass.Headless re-measurement against the audit scripts:
Out of scope
These are left for later stories:
Needs a manual check
Open a directory analysis with more than 20 files in a browser and in the headset. Check that bars, cylinders and maps sit on the table with their axes, and after an edit plus re-analysis.
Generated by Claude Code