Closed samreid closed 4 years ago
@jonathanolson said:
That style of refactoring looks good to me
I'll work towards moving this to PHET_CORE
OK I moved this to PHET_CORE. Leaving assigned to @jonathanolson to see if there's anything else to do. I'll also create an issue in number line to use this new common code, and I'll start using it in circuit-construction-kit (via scenery-phet).
Is this ready for production? I created https://github.com/phetsims/sun/issues/596 because it seems like the right thing to do. Please note if we should hold off until this is reviewed.
To support ariaOrientation, instead of just using the same property as for layout box, I added another one specifically for this purpose. That was we can easily change it if they deviate for some reason. See https://github.com/phetsims/phet-core/commit/7e5dc05564c5a1cb94e30d96a5f70f56a3697451 and let me know if that is problematic.
Everything looks good to me (patched up some JSDoc things in the above commit). Thanks!
Number Line Integers, Circuit Construction Kit and Area Model need an
Orientation
Enumeration. We discussed on slack:I'll look into updating the Area Model implementation to use Enumeration, so it will work seamlessly with PhET-iO (using EnumerationIO), then ask @jonathanolson to take a look. If that checks out, we can move this to phet-core and update Number Line and Circuit Construction Kit to use it.