Skip to content

GridCell

Overview

A configurable cell containing a Node used for GridConstraint layout

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

Class GridCell

import { GridCell } from 'scenerystack/scenery';

Instance Methods

onLayoutOptionsChange( isInitial )

(protected)

Instance Properties

size : OrientationPair<number>

Type GridCellOptions

import type { GridCellOptions } from 'scenerystack/scenery';
  • row?: number
    Defines the row (or if height>1, the top-most row) index of the cell. row:0 is the top-most row
  • column?: number
    Defines the column (or if width>1, the left-most column) index of the cell. column:0 is the left-most column.
  • horizontalSpan?: number
    How many columns this one cell spans.
  • verticalSpan?: number
    How many rows this one cell spans
  • & ExternalGridConfigurableOptions

Source Code

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