forked from radzenhq/radzen-blazor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIChartSeriesOverlay.cs
33 lines (29 loc) · 921 Bytes
/
IChartSeriesOverlay.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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>
RenderFragment RenderTooltip(double mouseX, double mouseY, double marginLeft, double marginTop);
}
}