Skip to content

FlowCell

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.