Skip to content

HandleNode

Overview

Scenery node that shows a handle, which is made of two parts: the "grip" which is where you would grab it and the "attachment" which are elbow-shaped bars that attach the handle to another surface.

@author Chris Klusendorf (PhET Interactive Simulations) @author Sam Reid (PhET Interactive Simulations)

Class HandleNode

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

Constructor

new HandleNode( providedOptions? : HandleNodeOptions )

Instance Methods

dispose()

Type HandleNodeOptions

import type { HandleNodeOptions } from 'scenerystack/scenery-phet';
  • gripBaseColor?: TColor
    options for the grip
  • gripStroke?: TColor
  • gripLineWidth?: number
  • attachmentFill?: TColor
    options for the attachment(s)
  • attachmentStroke?: TColor
  • attachmentLineWidth?: number
  • hasLeftAttachment?: boolean
  • hasRightAttachment?: boolean
  • & StrictOmit<NodeOptions, "children">

Source Code

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