|
18 | 18 | graphWorkspace: '', |
19 | 19 | graphData: null, |
20 | 20 | graphDataMode: 'overview', |
| 21 | + graphGalaxyQuality: false, |
21 | 22 | graphDataPreset: 'galaxy', |
22 | 23 | graphDataIncludeCode: false, |
23 | 24 | graphDataShowUnlinked: false, |
|
2338 | 2339 | const freezeRow = byId('graph-freeze-row'); |
2339 | 2340 | if (freezeRow) freezeRow.hidden = full; |
2340 | 2341 | const orbitPause = byId('graph-orbit-pause-row'); |
2341 | | - if (orbitPause) orbitPause.hidden = full; |
| 2342 | + const orbitCapable = full ? state.graphGalaxyQuality : graphIsGalaxy(); |
| 2343 | + if (orbitPause) orbitPause.hidden = !orbitCapable; |
2342 | 2344 | const style = byId('graph-style').value; |
2343 | 2345 | const styleNotes = full ? GRAPH_LOD_STYLE_NOTES : GRAPH_STYLE_NOTES; |
2344 | 2346 | byId('graph-style-note').textContent = styleNotes[style] || styleNotes.classic; |
|
2359 | 2361 | function updateGraphGalaxyControls() { |
2360 | 2362 | const galaxy = graphIsGalaxy(); |
2361 | 2363 | const full = state.graphMode === 'full'; |
| 2364 | + const orbitCapable = full ? state.graphGalaxyQuality : galaxy; |
2362 | 2365 | const size = byId('graph-size'); |
2363 | 2366 | if (galaxy && !full) { |
2364 | 2367 | if (['degree', 'betweenness'].includes(size.value)) size.dataset.legacyValue = size.value; |
|
2405 | 2408 | byId('graph-orbits-pause-detail').textContent = 'physics'; |
2406 | 2409 | byId('graph-orbits-pause').setAttribute('aria-label', 'Pause orbital physics'); |
2407 | 2410 | const orbitPauseRow = byId('graph-orbit-pause-row'); |
2408 | | - if (orbitPauseRow) orbitPauseRow.hidden = !(galaxy && !full); |
| 2411 | + if (orbitPauseRow) orbitPauseRow.hidden = !orbitCapable; |
2409 | 2412 | } |
2410 | 2413 |
|
2411 | 2414 | function setChoicePressed(selector, dataKey, selected) { |
|
3535 | 3538 | state.graphData = data; |
3536 | 3539 | state.graphWorkspace = targetWorkspace; |
3537 | 3540 | state.graphDataMode = targetMode; |
| 3541 | + state.graphGalaxyQuality = galaxyQuality; |
3538 | 3542 | state.graphDataPreset = byId('graph-preset').value; |
3539 | 3543 | state.graphDataIncludeCode = responseIncludeCode; |
3540 | 3544 | state.graphDataShowUnlinked = targetShowUnlinked; |
|
0 commit comments