@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;
        selections?: SelectionBase[];
        selectionsListener?: SelectionsEventListener;
        updateSelection?: null | SelectionHandler;
    }

    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

    selections?: SelectionBase[]

    The selections

    selectionsListener?: SelectionsEventListener

    Selections event listener

    updateSelection?: null | SelectionHandler

    Handles adding selection (set null to disable editing)