Class LineStylePanel

Line style toolbox panel. Can be [re]used to control different line attributes.

Hierarchy

Constructors

  • Creates a new line style panel.

    Parameters

    • title: string

      panel title

    • language: Language

      language (localization) subsystem

    • lineStyleAttribute: string

      name of the line attribute to edit

    • lineStyles: string[]

      available styles

    • Optional currentStyle: string

      currently selected style

    Returns LineStylePanel

Properties

currentStyle?: string

Selected line style.

language: Language

Language (localization) subsystem.

lineAttributes: [string, string][] = []

Common line attributes.

lineStyleAttribute: string

Panel controlled attribute name.

lineStyles: string[] = []

Available line styles.

onLineStyleChanged?: LineStyleChangeHandler

Line style change event handler.

title: string

Panel title.

Methods

  • Selects supplied style box.

    Parameters

    • style: string

      current style to select.

    Returns void

Generated using TypeDoc