Skip to content

BucketFront

Overview

The front of a bucket (does not include the hole)

@author Jonathan Olson

Class BucketFront

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

Constructor

new BucketFront( bucket : Bucket, modelViewTransform : ModelViewTransform2, providedOptions? : BucketFrontOptions )

Instance Methods

setLabel( labelNode : Node )

Set a scenery node to appear in front of the bucket.

dispose()

Instance Properties

bucket : Bucket

(readonly)

Type BucketFrontOptions

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

Source Code

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