Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OpacityPanel

Opacity panel.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new OpacityPanel(title: string, opacities: number[], currentOpacity?: number, icon?: string): OpacityPanel
  • Creates an opacity panel.

    Parameters

    • title: string

      panel title.

    • opacities: number[]

      available opacities.

    • Optional currentOpacity: number

      current opacity.

    • Optional icon: string

      toolbox panel button (SVG image markup).

    Returns OpacityPanel

Properties

icon

icon: string

Panel button icon as an SVG markup.

Optional onOpacityChanged

onOpacityChanged: OpacityChangeHandler

Opacity change event handler.

title

title: string

Panel name/title.

Methods

getUi

  • getUi(): HTMLDivElement

Generated using TypeDoc