@samatawy/diagrams
    Preparing search index...

    Class GradientPicker

    A standalone gradient editor popup.

    Usage — inline into any container:

    const picker = new GradientPicker(hostEl, initialValue);
    picker.onChange = (v) => console.log(v);

    Usage — anchored popup (positions itself next to a trigger element):

    const picker = GradientPicker.open(triggerEl, initialValue, (v) => {
    console.log('changed', v);
    });
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    onChange: ((value: IGradient) => void) | null = null

    Fires whenever the gradient value changes.

    Accessors

    Methods