HTML legend for use with the Brain Viewer.

Hierarchy

  • Legend

Constructors

  • Create a new legend. Call update(...) to initialize or update the DOM after.

    Parameters

    • elem: HTMLElement

      DOM element to attach legend to.

    • Optional settings: Partial<LegendSettings>

    Returns Legend

Properties

backgroundColor: string = "#00000088"
color: ScaleSequential<string, never> = ...
elem: HTMLElement
height: number = ...
marginBottom: number = ...
marginLeft: number = 0
marginRight: number = 0
marginTop: number = 18
tickSize: number = 16
title: string = "Intensity"
width: number = 320

Methods

  • Apply settings to legend.

    Parameters

    • settings: Partial<LegendSettings>

      Legend settings.

    Returns void

  • Update legend with new settings.

    Parameters

    • settings: Partial<LegendSettings>

      Legend settings.

    Returns void

Generated using TypeDoc