Skip to content

GridNode

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/scenery-phet/blob/main/js/GridNode.ts for the most up-to-date information.

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.