Skip to content

Frame

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.