Skip to content

Spacer

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

Overview

A Node meant to just take up certain bounds. It is never displayed, and cannot have children.

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

Class Spacer

import { Spacer } from 'scenerystack/scenery';

Constructor

new Spacer( width : number, height : number, options? : SpacerOptions )

Instance Methods

Type SpacerOptions

import type { SpacerOptions } from 'scenerystack/scenery';

NodeOptions

Source Code

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