Graphing Lines has a point tool that looks like this:
Graphing Quadratics has a point tool that is similar, but has a different "crosshair" sensor:
To implement the point tool in Graphing Quadratics, PointToolNode was copied from graphing-quadratics, then modified, with this TODO in the code:
//TODO Copied from GRAPHING_LINES/common/view/PointToolNode
The implementations are very similar, but factoring something out to be used by both graphing-lines and graphing-quadratics would be a bit forced/unnatural.
Options:
(1) Use the new design in both graphing-quadratics and graphing-lines.
(2) Factor out common code, even if it's forced/unnatural.
(3) Live with code duplication.
Option (1) is best, if that's acceptable to the designer. @amanda-phet what do you think?
Graphing Lines has a point tool that looks like this:
Graphing Quadratics has a point tool that is similar, but has a different "crosshair" sensor:
To implement the point tool in Graphing Quadratics,
PointToolNode
was copied from graphing-quadratics, then modified, with this TODO in the code://TODO Copied from GRAPHING_LINES/common/view/PointToolNode
The implementations are very similar, but factoring something out to be used by both graphing-lines and graphing-quadratics would be a bit forced/unnatural.
Options: (1) Use the new design in both graphing-quadratics and graphing-lines. (2) Factor out common code, even if it's forced/unnatural. (3) Live with code duplication.
Option (1) is best, if that's acceptable to the designer. @amanda-phet what do you think?