From 32711c3ff88a14463cb2d51e2f8b691f8aaff9ca Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Thu, 4 Mar 2021 18:47:36 -0700 Subject: [PATCH] move vertexNode.visibleProperty phetioReadOnly:false from overrides.js to code, #148 --- js/graphing-quadratics-phet-io-overrides.js | 3 --- js/standardform/view/VertexNode.js | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/js/graphing-quadratics-phet-io-overrides.js b/js/graphing-quadratics-phet-io-overrides.js index 6b1d364a..f64c81ae 100644 --- a/js/graphing-quadratics-phet-io-overrides.js +++ b/js/graphing-quadratics-phet-io-overrides.js @@ -220,9 +220,6 @@ window.phet.preloads.phetio.phetioElementsOverrides = "graphingQuadratics.standardFormScreen.view.rightPointToolNode.visibleProperty": { "phetioFeatured": true }, - "graphingQuadratics.standardFormScreen.view.vertexNode.visibleProperty": { - "phetioReadOnly": true - }, "graphingQuadratics.standardFormScreen.view.viewProperties.axisOfSymmetryVisibleProperty": { "phetioFeatured": true }, diff --git a/js/standardform/view/VertexNode.js b/js/standardform/view/VertexNode.js index 817c91f4..0c4c138c 100644 --- a/js/standardform/view/VertexNode.js +++ b/js/standardform/view/VertexNode.js @@ -40,8 +40,8 @@ class VertexNode extends PointNode { coordinatesDecimals: GQConstants.VERTEX_DECIMALS, // phet-io - phetioDocumentation: 'displays the vertex of the interactive quadratic' - + phetioDocumentation: 'displays the vertex of the interactive quadratic', + visiblePropertyOptions: { phetioReadOnly: true } // because visibility is derived below }, options ); // position coordinates on the outside of the parabola