Skip to content

Frame

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/joist/blob/main/js/Frame.ts for the most up-to-date information.

Overview

Decorative frame around the selected node

@author Sam Reid (PhET Interactive Simulations)

Class Frame

import { Frame } from 'scenerystack/joist';

Constructor

new Frame( content : Node, providedOptions? : FrameOptions )

Instance Methods

setHighlighted( highlighted : boolean )

Type FrameOptions

import type { FrameOptions } from 'scenerystack/joist';
  • xMargin1?: number
  • yMargin1?: number
  • cornerRadius?: number
  • & NodeOptions

Source Code

See the source for Frame.ts in the joist repository.