feat: add velocity/acceleration visibility toggles to preferences - #30
Merged
Conversation
Adds two checkboxes in the Preferences dialog that let users control which kinematic quantity groups appear in the graph axis selectors: - "Show Velocity" — toggles vx, vy, speed (default: on) - "Show Acceleration" — toggles ax, ay, |a| (default: on) When a group is turned off, those quantities disappear from both the X-axis and Y-axis combo boxes. If the currently selected axis was one of the hidden quantities, the selection resets to the first available property automatically. Implementation details: - TrackLabPreferencesModel: two new BooleanProperty fields - TrackLabPreferencesNode: two new Checkbox rows (EN + FR strings) - kinematics-plottable-properties: refactored to return a KinematicsPlottableGroups object (time / position / velocity / acceleration) so filtering by category is explicit and stable - GraphControlsPanel: stores combo-box references; new rebuildComboBoxes() swaps them in-place in the title HBox - ConfigurableGraph: stores controlsPanel ref; new setAvailableProperties() resets invalid axis selections then delegates to rebuildComboBoxes() - KinematicsGraphNode: accepts preferencesModel, links to preference changes and calls graph.setAvailableProperties() reactively - SimScreenView: forwards trackLabPreferences to KinematicsGraphNode https://claude.ai/code/session_01YaV1vpxbx3is233G6cR71x
Acceleration quantities (ax, ay, |a|) are now hidden from the graph axis selectors by default. Users can opt in via Preferences. https://claude.ai/code/session_01YaV1vpxbx3is233G6cR71x
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.
Adds two checkboxes in the Preferences dialog that let users control
which kinematic quantity groups appear in the graph axis selectors:
When a group is turned off, those quantities disappear from both the
X-axis and Y-axis combo boxes. If the currently selected axis was one
of the hidden quantities, the selection resets to the first available
property automatically.
Implementation details:
KinematicsPlottableGroups object (time / position / velocity /
acceleration) so filtering by category is explicit and stable
rebuildComboBoxes() swaps them in-place in the title HBox
setAvailableProperties() resets invalid axis selections then
delegates to rebuildComboBoxes()
changes and calls graph.setAvailableProperties() reactively
https://claude.ai/code/session_01YaV1vpxbx3is233G6cR71x