Skip to content

GridNode

Overview

When enabled, shows a grid across the play area that helps the user to make quantitative comparisons between distances.

@author Sam Reid (PhET Interactive Simulations) @author Aaron Davis (PhET Interactive Simulations) @author Agustín Vallejo

Class GridNode

import { GridNode } from 'scenerystack/scenery-phet';

Constructor

new GridNode( transformProperty : TReadOnlyProperty<ModelViewTransform2>, spacing : number, center : Vector2, numberOfGridLines : number, providedOptions? : GridNodeOptions )

Instance Methods

Type GridNodeOptions

import type { GridNodeOptions } from 'scenerystack/scenery-phet';

PathOptions

Source Code

See the source for GridNode.ts in the scenery-phet repository.