@diamondlightsource/davidia
    Preparing search index...

    Interface PlotBaseProps

    Props for selections, baton and configuration in a plot component

    interface PlotBaseProps {
        batonProps?: BatonProps;
        customToolbarChildren?: ReactNode;
        plotConfig: PlotConfig;
        selectionOptions?: SelectionOptions;
        selections?: SelectionBase[];
        selectionsListener?: SelectionsEventListener;
        updateSelection?: SelectionHandler | null;
    }

    Hierarchy (View Summary)

    Index

    Properties

    batonProps?: BatonProps

    The baton props

    customToolbarChildren?: ReactNode

    Children to customize the toolbar. If undefined then use default toolbar, if null, disable toolbar, otherwise use given children

    plotConfig: PlotConfig

    The plot configuration

    selectionOptions?: SelectionOptions

    Selection type options and limits (0 = limitless)

    selections?: SelectionBase[]

    The selections

    selectionsListener?: SelectionsEventListener

    Selections event listener

    updateSelection?: SelectionHandler | null

    Handles adding selection (set null to disable editing)