interface MeasuringListener {
    blur?(measurement: Measurement): void;
    cancelled?(measurement: Measurement): void;
    committed?(measurement: Measurement): void;
    deleted?(measurements: Iterable<Measurement>): void;
    hover?(measurement: Measurement): void;
    selected?(measurement: Measurement): void;
    startedNew?(measurement: Measurement): void;
    startedUpdate?(measurement: Measurement): void;
    unselected?(measurement: Measurement): void;
}

Methods

  • The mouse pointer has left the measurement (label)

    Parameters

    Returns void

  • The adding or editing of a Measurement was cancelled (for new measurements it is not added to the list of measurements)

    Parameters

    Returns void

  • The given measurement was committed, it should be considered final

    Parameters

    Returns void

  • The given Measurement(s) were deleted from the set of measurements, for efficiency reasons this can also be an iterable of Measurements

    Parameters

    Returns void

  • The mouse is hovering over the measurement (label)

    Parameters

    Returns void

  • The given measurement was selected, either by the user clicking it, or by an external API call

    Parameters

    Returns void

  • An existing measurement was started to be edited (not implemented currently)

    Parameters

    Returns void

  • The given measurement was unselected, either by the user clicking somewhere else, or by an external API call

    Parameters

    Returns void