Closed pixelzoom closed 11 months ago
I've addressed all items listed above. They all felt pretty good except for the last two, which relate to testing instances of types Photon
, Wave
, and EMEnergyPacket
for whether they are visible or infrared. I thought about trying to use a mixin, but have found these to be tricky and hard to maintain, so I ended up going with a pair of simple utility functions. This particular change didn't feel like a big win, but at least it consolidates it all into one place which would make it easier to change if necessary.
@pixelzoom - feel free to take a look if you see this going by, but I think I've addressed them all, so I'll go ahead and close.
👍🏻 Looks great.
For https://github.com/phetsims/greenhouse-effect/issues/331 ...
I used WebStorm Code > Analyze Code > Locate Duplicates, and ignored duplicates in js/micro/. Here are the duplicates that seemed significant.
energyPacketCrossedAltitude
in FluxSensor.ts and EnergyAbsorbingEmittingLayer.tsnew ArrowNode
in FluxMeterNode.ts:const options: PanelOptions
in InfraRedPanel.ts and SunlightPanel.tsisInfrared
in Photon.ts, EMEnergyPacket.ts, Wave.tsisVisible
in Photon.ts, EMEnergyPacket.ts, Wave.ts