phetsims / masses-and-springs-basics

"Masses and Springs: Basics" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
0 stars 3 forks source link

Inconsistent Z-ordering of reference lines #17

Closed arouinfar closed 5 years ago

arouinfar commented 5 years ago

Across all screens, the lines are inconsistently layered. In general, I would prefer that the lines are layered above the springNode (for easier measurement), but behind the mass.

On Stretch, both lines are layered behind both the mass and springNode. image

On Bounce, all lines are behind the mass, but only Resting Position is behind the springNode. image

On Lab, all lines are above the springNode, but the Resting Position is on top of the mass. image image

Denz1994 commented 5 years ago

The order of adding view components to the scene graph has changed. Please review @arouinfar for the above correction.

All lines should be behind the mass and in front of the spring.

arouinfar commented 5 years ago

Looks great!