Skip to content

TButtonAppearanceStrategy

Overview

Type to annotate the constructor signature of ButtonAppearanceStrategy @author Michael Kauzmann (PhET Interactive Simulations)

Type TButtonAppearanceStrategy

import type { TButtonAppearanceStrategy } from 'scenerystack/sun';

Type TButtonAppearanceStrategyOptions

import type { TButtonAppearanceStrategyOptions } from 'scenerystack/sun';
  • stroke?: TPaint
    These two act as defaults for the other strokes and line widths when provided, as sort of "convenience options".
  • lineWidth?: number
  • overFill?: TPaint
    Fill, stroke, line width, and opacity values for the various button states.
  • overStroke?: TPaint
  • overLineWidth?: number
  • overButtonOpacity?: number
  • selectedStroke?: TPaint
  • selectedLineWidth?: number
  • selectedButtonOpacity?: number
  • deselectedFill?: TPaint | null
  • deselectedStroke?: TPaint
  • deselectedLineWidth?: number
  • deselectedButtonOpacity?: number

Source Code

See the source for TButtonAppearanceStrategy.ts in the sun repository.