Skip to content

HStrut

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

Overview

A Node meant to just take up horizontal space (usually for layout purposes). It is never displayed, and cannot have children.

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

Class HStrut

import { HStrut } from 'scenerystack/scenery';

Constructor

new HStrut( width : number, options? : HStrutOptions )

Instance Methods

Type HStrutOptions

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

SpacerOptions

Source Code

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