Closed pixelzoom closed 1 year ago
This issue is deferred until Graphing Quadratics 1.2 is published https://github.com/phetsims/graphing-quadratics/issues/137.
Self assigning. I'll probably have some time to do this after Graphing Quadratics 1.2 is published.
@amanda-phet ready for review in master. I used your mockup (above) as a guide for colors, spacing, etc.
Here are before and after screenshots.
Graphing Quadratics:
Graphing Lines:
Also note that Level 3 of the Line Game screen in Graphing Lines has point tools as the reward. Run the sin with ?showReward
, play Level 3 (no need to get any correct answers), and you'll see a reward that uses the new point tool:
I should also note that I did NOT migrate PointToolBodyNode
to common code. It's not clear which repo it should live in, and it's currently used only within the "graphing lines" family of sims. So as with the other components that are shared by that family, it currently lives in the graphing-lines repo. If/when a more general use is needed, PointToolBodyNode
can be easily migrated to some other repo.
Looks like a nice change overall. Thanks for making this happen @pixelzoom !
Screenshots will need to be revised for the sims that use the point tool. I've created issues for each sim, linked above.
This issue is done, and is ready to be verified in a future QA process.
There's no reason to have QA verify this, it's gotten a workout while getting the sim ready for https://github.com/phetsims/graphing-quadratics/issues/176. Closing.
As discussed in https://github.com/phetsims/graphing-quadratics/issues/158...
graphing-lines and graphing-quadratics both have "point tools". But they have different implementations of PointTool (model) and PointToolNode (view). The reason for that is documented in #18. (graphing-slope-intercept consists of a screen from graphing-lines, so uses the point tool from graphing-lines.)
Both implementations of PointToolNode use .png files that were exported from graphing-lines/asserts/point_tool.ai. Then we needed a wider display area (to show more decimal places) in https://github.com/phetsims/graphing-quadratics/issues/158, so we copied point_tool.ai to graphing-quadratics/asserts/point_tool.ai, and made adjusts specific to https://github.com/phetsims/graphing-quadratics/issues/158, to be released in Graphing Quadratics 1.2.
We realized that a better long-term solution is to ditch the .ai and .png files for PointToolNode, and create a "point tool body" (
PointToolBodyNode
?) programmatically. It should be parameterized to handle different sizes of display area, different sizes of "grippy" area, different colors, etc. The basic body shape will useShadedRectangleNode
. The grippy parts will likely be a set of Paths that are filled with a LinearGradient to give the illusion of being lit from above.PointToolBodyNode
will not include the probe part of the tool. Adding a sim-specific probe will be the responsibility of the client application.This mockup by @amanda-phet shows the revised PointToolNode on the right: