Skip to content

FlowCell

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/constraints/FlowCell.ts for the most up-to-date information.

Overview

A configurable cell containing a Node used for FlowConstraint layout

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class FlowCell

import { FlowCell } from 'scenerystack/scenery';

Constructor

new FlowCell( constraint : FlowConstraint, node : Node, proxy : LayoutProxy | null )

Instance Methods

onLayoutOptionsChange( isInitial )

(protected)

Type FlowCellOptions

import type { FlowCellOptions } from 'scenerystack/scenery';
  • isSeparator?: boolean
    Allows marking a cell as a "separator", such that multiple adjacent separators (and those at the start/end) get collapsed (all but the first are not included in layout AND made invisible)
  • & StrictOmit<ExternalFlowConfigurableOptions, "orientation">

Source Code

See the source for FlowCell.ts in the scenery repository.