sizableTypeChecks¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/scenery/blob/main/js/layout/sizableTypeChecks.ts for the most up-to-date information.
Overview¶
To avoid circular dependencies, this file contains type checks for the Sizable type hierarchy.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Type HeightSizableNode¶
Type SizableNode¶
Type WidthSizableNode¶
Some typescript gymnastics to provide a user-defined type guard that treats something as widthSizable We need to define an unused function with a concrete type, so that we can extract the return type of the function and provide a type for a Node that extends this type.
Source Code¶
See the source for sizableTypeChecks.ts in the scenery repository.