Skip to content

Commit

Permalink
support dynamic layout in ToggleNode, phetsims/sun#885
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed Jun 17, 2024
1 parent d01d731 commit 0ae9cad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 3 additions & 0 deletions js/layout/LayoutProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ae9cad

Please sign in to comment.