Skip to content

Commit

Permalink
move phetioReadOnly:false from overrides.js to code for vertexManipul…
Browse files Browse the repository at this point in the history
…ator.visibleProperty and focusManipulator.visibleProperty, #148
  • Loading branch information
pixelzoom committed Mar 5, 2021
1 parent 55f294c commit 3e4c969
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
3 changes: 2 additions & 1 deletion js/common/view/VertexManipulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class VertexManipulator extends GQManipulator {
coordinatesDecimals: GQConstants.VERTEX_DECIMALS,

// phet-io
phetioDocumentation: 'a manipulator for the vertex'
phetioDocumentation: 'a manipulator for the vertex',
phetioReadOnly: true // because visibility is derived below

}, options );

Expand Down
3 changes: 2 additions & 1 deletion js/focusanddirectrix/view/FocusManipulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class FocusManipulator extends GQManipulator {
coordinatesDecimals: GQConstants.FOCUS_DECIMALS,

// phet-io
phetioDocumentation: 'manipulator for the focus'
phetioDocumentation: 'manipulator for the focus',
phetioReadOnly: true // because visibility is derived below

}, options );

Expand Down
9 changes: 0 additions & 9 deletions js/graphing-quadratics-phet-io-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ window.phet.preloads.phetio.phetioElementsOverrides =
"graphingQuadratics.focusAndDirectrixScreen.view.equationAccordionBox.interactiveEquationNode.visibleProperty": {
"phetioFeatured": true
},
"graphingQuadratics.focusAndDirectrixScreen.view.focusManipulator.visibleProperty": {
"phetioReadOnly": true
},
"graphingQuadratics.focusAndDirectrixScreen.view.graphControlPanel.visibleProperty": {
"phetioFeatured": true
},
Expand All @@ -137,9 +134,6 @@ window.phet.preloads.phetio.phetioElementsOverrides =
"graphingQuadratics.focusAndDirectrixScreen.view.rightPointToolNode.visibleProperty": {
"phetioFeatured": true
},
"graphingQuadratics.focusAndDirectrixScreen.view.vertexManipulator.visibleProperty": {
"phetioReadOnly": true
},
"graphingQuadratics.focusAndDirectrixScreen.view.viewProperties.coordinatesVisibleProperty": {
"phetioFeatured": true
},
Expand Down Expand Up @@ -297,9 +291,6 @@ window.phet.preloads.phetio.phetioElementsOverrides =
"graphingQuadratics.vertexFormScreen.view.rightPointToolNode.visibleProperty": {
"phetioFeatured": true
},
"graphingQuadratics.vertexFormScreen.view.vertexManipulator.visibleProperty": {
"phetioReadOnly": true
},
"graphingQuadratics.vertexFormScreen.view.viewProperties.axisOfSymmetryVisibleProperty": {
"phetioFeatured": true
},
Expand Down

0 comments on commit 3e4c969

Please sign in to comment.