17 lines
444 B
C#
17 lines
444 B
C#
using UnityEngine.UIElements;
|
|
|
|
namespace EasyChart
|
|
{
|
|
public sealed class DefaultChartLegendTogglePolicy : IChartLegendTogglePolicy
|
|
{
|
|
public static readonly DefaultChartLegendTogglePolicy Instance = new DefaultChartLegendTogglePolicy();
|
|
|
|
private DefaultChartLegendTogglePolicy() { }
|
|
|
|
public bool GetNextVisibleState(bool isVisible, PointerDownEvent evt)
|
|
{
|
|
return !isVisible;
|
|
}
|
|
}
|
|
}
|