-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #582 from apexcharts/fix-shape-enum
Fix shape enum
- Loading branch information
Showing
8 changed files
with
80 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/Blazor-ApexCharts/Models/MultiType/MarkerShapeSelections.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ApexCharts | ||
{ | ||
/// <remarks> | ||
/// Accepts either a single value or collection of values. Providing a collection of values in a multi-series chart will assign fill types where each index corresponds to the series index.<br /><br /> | ||
/// </remarks> | ||
public class MarkerShapeSelections : ValueOrList<MarkerShape> | ||
{ | ||
/// <summary> | ||
/// Converts a fill type collection into a list of fill types | ||
/// </summary> | ||
public static implicit operator List<MarkerShape>(MarkerShapeSelections source) => source.values; | ||
|
||
/// <summary> | ||
/// Converts a list of fill types into a fill type collection | ||
/// </summary> | ||
public static implicit operator MarkerShapeSelections(List<MarkerShape> source) => new(source); | ||
|
||
/// <summary> | ||
/// Converts a fill type into a fill type collection | ||
/// </summary> | ||
public static implicit operator MarkerShapeSelections(MarkerShape source) => new(source); | ||
|
||
/// <summary> | ||
/// Creates a new collection of fill types with the provided values | ||
/// </summary> | ||
public MarkerShapeSelections(params MarkerShape[] values) : base(values) { } | ||
|
||
/// <summary> | ||
/// Creates a new collection of fill types with the provided values | ||
/// </summary> | ||
public MarkerShapeSelections(IEnumerable<MarkerShape> values) : base(values) { } | ||
} | ||
} |