Skip to content

LockNode

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

Overview

LockNode shows a padlock that is either open or closed, depending on the state of a boolean Property.

@author Chris Malley (PixelZoom, Inc.)

Class LockNode

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

Constructor

new LockNode( isLockedProperty : TProperty<boolean>, providedOptions? : LockNodeOptions )

Instance Methods

Type LockNodeOptions

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

BooleanToggleNodeOptions

Source Code

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