diff --git a/js/imports.ts b/js/imports.ts index 2243881fc..f8cf339ce 100644 --- a/js/imports.ts +++ b/js/imports.ts @@ -268,6 +268,7 @@ export type { VSeparatorOptions } from './layout/nodes/VSeparator.js'; export { default as HSeparator } from './layout/nodes/HSeparator.js'; export type { HSeparatorOptions } from './layout/nodes/HSeparator.js'; export { default as LayoutProxy } from './layout/LayoutProxy.js'; +export type { Layoutable } from './layout/LayoutProxy.js'; export { default as LayoutProxyProperty } from './layout/LayoutProxyProperty.js'; export type { LayoutProxyPropertyOptions } from './layout/LayoutProxyProperty.js'; export { default as LayoutConstraint } from './layout/constraints/LayoutConstraint.js'; diff --git a/js/layout/LayoutProxy.ts b/js/layout/LayoutProxy.ts index 62a73d0ae..2a5ac32c0 100644 --- a/js/layout/LayoutProxy.ts +++ b/js/layout/LayoutProxy.ts @@ -18,6 +18,9 @@ import Orientation from '../../../phet-core/js/Orientation.js'; import Pool from '../../../phet-core/js/Pool.js'; import { HeightSizableNode, isHeightSizable, isWidthSizable, Node, scenery, Trail, WidthSizableNode } from '../imports.js'; +// For supporting general cases where you may layout a Node, or use in ManualConstraints. +export type Layoutable = Node | LayoutProxy; + export default class LayoutProxy { // Nulled out when disposed