Closed pixelzoom closed 3 months ago
I applied the changes above and tested in the state wrapper (I tested a VSM screen and the sampling screen). Seems to be working OK. @matthew-blackman can you please review/test?
Reviewed and tested. This is working well and the code looks great. Nice job! Closing.
PDL was used as an exemplar for instrumenting Gas Properties. While working on https://github.com/phetsims/gas-properties/issues/77 and https://github.com/phetsims/gas-properties/issues/231 with @zepumph, we noted the following things about the implementation of FieldIO:
toStateObject
is unnecessary. The default implementation that is derived from stateSchema does the same thing.defaultDeserializationMethod
is unnecessary. (Ask @zepumph why.)applyState
would be unnecessary if stateSchema usedReferenceArrayIO
instead ofArrayIO
. See ReferenceArrayIO's default applyState (line 37).According to @zepumph, the above changes will change the PhET-iO API, but will not require migration processors.