2022-07-04 12:56:37 -07:00
|
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Radzen.Blazor
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Interface for chart overlays
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public interface IChartSeriesOverlay
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Render overlay
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="categoryScale"></param>
|
|
|
|
|
|
/// <param name="valueScale"></param>
|
|
|
|
|
|
/// <returns>RenderFragment</returns>
|
|
|
|
|
|
RenderFragment Render(ScaleBase categoryScale, ScaleBase valueScale);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets overlay visibility state
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
bool Visible { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Hit test
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
bool Contains(double mouseX, double mouseY, int tolerance);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Renders tooltip
|
|
|
|
|
|
/// </summary>
|
2024-10-28 09:01:13 +01:00
|
|
|
|
RenderFragment RenderTooltip(double mouseX, double mouseY);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Get position of the overlay tooltip.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>Position.</returns>
|
|
|
|
|
|
Point GetTooltipPosition(double mouseX, double mouseY);
|
2022-07-04 12:56:37 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|