phetsims / sun

User-interface components for PhET simulations, built on top of Scenery.
MIT License
4 stars 12 forks source link

Better support for `?component` in demos #877

Closed zepumph closed 4 months ago

zepumph commented 4 months ago

I found a lot of duplicated query parameter support for using the ?component query parameter in demos. Since DemosScreenView is in sun, it seems like we can factor that out to sun, and automatically make it supported as a default.

zepumph commented 4 months ago

I am much happier with that. Now every DemosScreenView has auto support for ?component. I recently ran into this because the sun buttons screen didn't let me use this parameter, but it didn't error either. Closing