Skip to content

Commit

Permalink
Merge pull request #398 from LayTec-AG/bugfix/build-warnings
Browse files Browse the repository at this point in the history
Clean up
  • Loading branch information
sean-mcl authored Nov 22, 2023
2 parents 1dd6e82 + 17738fc commit df3aa89
Show file tree
Hide file tree
Showing 2,362 changed files with 2,419 additions and 2,454 deletions.
7 changes: 0 additions & 7 deletions Plotly.Blazor.Examples/Components/AreaPolarChart.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@
@using Plotly.Blazor.Traces.ScatterPolarLib
@using Font = Plotly.Blazor.LayoutLib.Font

@if (!IsInitialized)
{
<MudPaper>
<MudProgressLinear Color="Color.Primary" Indeterminate="true"/>
</MudPaper>
}

<PlotlyChart style="height: 60vh; min-height: 350px" @bind-Layout="layout" @bind-Data="data" @ref="chart"/>

@code
Expand Down
1 change: 1 addition & 0 deletions Plotly.Blazor.Examples/Components/BarChart.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Plotly.Blazor.LayoutLib

<PlotlyChart style="height: 60vh; min-height: 350px" @bind-Config="config" @bind-Layout="layout" @bind-Data="data" @ref="chart"/>

@code
Expand Down
7 changes: 0 additions & 7 deletions Plotly.Blazor.Examples/Components/CategoricalPolarChart.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
@using Font = Plotly.Blazor.LayoutLib.Font
@using ThetaUnitEnum = Plotly.Blazor.Traces.ScatterPolarLib.ThetaUnitEnum

@if (!IsInitialized)
{
<MudPaper>
<MudProgressLinear Color="Color.Primary" Indeterminate="true"/>
</MudPaper>
}

<PlotlyChart style="height: 60vh; min-height: 350px" @bind-Layout="layout" @bind-Data="data" @ref="chart"/>

@code
Expand Down
7 changes: 0 additions & 7 deletions Plotly.Blazor.Examples/Components/LinePolarPlot.razor
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@
@using Font = Plotly.Blazor.LayoutLib.Font
@inject NavigationManager MyNavigationManager

@if (!IsInitialized)
{
<MudPaper>
<MudProgressLinear Color="Color.Primary" Indeterminate="true"/>
</MudPaper>
}

<PlotlyChart style="height: 60vh; min-height: 350px" @bind-Layout="layout" @bind-Data="data" @ref="chart"/>

@code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@
@using ThetaUnitEnum = Plotly.Blazor.Traces.ScatterPolarLib.ThetaUnitEnum
@using TickFont = Plotly.Blazor.LayoutLib.PolarLib.RadialAxisLib.TickFont

@if (!IsInitialized)
{
<MudPaper>
<MudProgressLinear Color="Color.Primary" Indeterminate="true"/>
</MudPaper>
}

<PlotlyChart style="height: 60vh; min-height: 350px" @bind-Layout="layout" @bind-Data="data" @ref="chart"/>

@code
Expand Down
7 changes: 0 additions & 7 deletions Plotly.Blazor.Examples/Components/PolarChartSector.razor
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@
@using ThetaUnitEnum = Plotly.Blazor.Traces.ScatterPolarLib.ThetaUnitEnum
@using TickFont = Plotly.Blazor.LayoutLib.PolarLib.RadialAxisLib.TickFont

@if (!IsInitialized)
{
<MudPaper>
<MudProgressLinear Color="Color.Primary" Indeterminate="true"/>
</MudPaper>
}

<PlotlyChart style="height: 60vh; min-height: 350px" @bind-Layout="layout" @bind-Data="data" @ref="chart"/>

@code
Expand Down
5 changes: 5 additions & 0 deletions Plotly.Blazor.Examples/Pages/Polar/AreaPolarPage.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@page "/area-polar"

<Example Title="Area Polar Chart" Url="Plotly.Blazor.Examples/Components/AreaPolarChart.razor">
<AreaPolarChart/>
</Example>
5 changes: 5 additions & 0 deletions Plotly.Blazor.Examples/Pages/Polar/CategoricalPolarPage.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@page "/categorical-polar"

<Example Title="Categorical Polar Chart" Url="Plotly.Blazor.Examples/Components/CategoricalPolarChart.razor">
<CategoricalPolarChart/>
</Example>
5 changes: 5 additions & 0 deletions Plotly.Blazor.Examples/Pages/Polar/DirectionPolarPage.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@page "/direction-polar"

<Example Title="Polar Chart Directions" Url="Plotly.Blazor.Examples/Components/PolarChartDirectionsChart.razor">
<PolarChartDirectionsChart/>
</Example>
5 changes: 5 additions & 0 deletions Plotly.Blazor.Examples/Pages/Polar/LinePolarPage.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@page "/line-polar"

<Example Title="Line Polar Plot" Url="Plotly.Blazor.Examples/Components/LinePolarPlot.razor">
<LinePolarPlot/>
</Example>
5 changes: 5 additions & 0 deletions Plotly.Blazor.Examples/Pages/Polar/SectorPolarPage.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@page "/sector-polar"

<Example Title="Polar Chart Sector" Url="Plotly.Blazor.Examples/Components/PolarChartSector.razor">
<PolarChartSector/>
</Example>
29 changes: 0 additions & 29 deletions Plotly.Blazor.Examples/Pages/PolarPlotsPage.razor

This file was deleted.

8 changes: 4 additions & 4 deletions Plotly.Blazor.Examples/Plotly.Blazor.Examples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<GHPages>true</GHPages>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" />
<PackageReference Include="MudBlazor" />
<PackageReference Include="Newtonsoft.Json"/>
<PackageReference Include="PublishSPAforGitHubPages.Build"/>
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="PublishSPAforGitHubPages.Build" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Plotly.Blazor\Plotly.Blazor.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor.Examples/Shared/CodeSnippet.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<pre style="max-height: 60vh; min-height: 350px; overflow-y: auto; "><code id="code" style="font-size: 12px;">@Code</code></pre>
<pre style="max-height: 60vh; min-height: 350px; overflow-y: auto; " class="razor"><code id="code" style="font-size: 12px;">@Code</code></pre>

@code {

Expand Down
6 changes: 5 additions & 1 deletion Plotly.Blazor.Examples/Shared/NavMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
<MudNavLink Match="NavLinkMatch.All" Href="@($"{NavManager.BaseUri}scattergl")">ScatterGl</MudNavLink>
<MudNavLink Match="NavLinkMatch.All" Href="@($"{NavManager.BaseUri}indicator")">Indicator</MudNavLink>
<MudNavLink Match="NavLinkMatch.All" Href="@($"{NavManager.BaseUri}smith")">Smith</MudNavLink>
<MudNavLink Match="NavLinkMatch.All" Href="@($"{NavManager.BaseUri}poparchartpage")">Line Polar Plot</MudNavLink>
<MudNavLink Match="NavLinkMatch.All" Href="@($"{NavManager.BaseUri}line-polar")">Line Polar</MudNavLink>
<MudNavLink Match="NavLinkMatch.All" Href="@($"{NavManager.BaseUri}area-polar")">Area Polar</MudNavLink>
<MudNavLink Match="NavLinkMatch.All" Href="@($"{NavManager.BaseUri}categorical-polar")">Categorical Polar</MudNavLink>
<MudNavLink Match="NavLinkMatch.All" Href="@($"{NavManager.BaseUri}direction-polar")">Polar Direction</MudNavLink>
<MudNavLink Match="NavLinkMatch.All" Href="@($"{NavManager.BaseUri}sector-polar")">Polar Sector</MudNavLink>
<MudNavLink Match="NavLinkMatch.All" Href="@($"{NavManager.BaseUri}hover")">Hover Event</MudNavLink>
<MudNavLink Match="NavLinkMatch.All" Href="@($"{NavManager.BaseUri}click")">Click Event</MudNavLink>
<MudNavLink Match="NavLinkMatch.All" Href="@($"{NavManager.BaseUri}legendclick")">Legend Click Event</MudNavLink>
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor.Generator/Templates/Class/Class.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace {{Namespace}}
/// {{.}}
{{/Description}}
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("{{GeneratorName}}", "{{GeneratorVersion}}")]
[System.CodeDom.Compiler.GeneratedCode("{{GeneratorName}}", null)]
{{#HasSpecialProperties}}
[JsonConverter(typeof(PlotlyConverter))]
{{/HasSpecialProperties}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace {{Namespace}}
/// {{.}}
{{/Description}}
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("{{GeneratorName}}", "{{GeneratorVersion}}")]
[System.CodeDom.Compiler.GeneratedCode("{{GeneratorName}}", null)]
[JsonConverter(typeof(EnumConverter))]
public enum {{Name}}
{
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor.Generator/Templates/Flag/Flag.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace {{Namespace}}
/// {{.}}
{{/Description}}
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("{{GeneratorName}}", "{{GeneratorVersion}}")]
[System.CodeDom.Compiler.GeneratedCode("{{GeneratorName}}", null)]
[Flags]
[JsonConverter(typeof(EnumConverter))]
public enum {{Name}}
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor.Generator/Templates/Interface/Interface.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace {{Namespace}}
/// {{.}}
{{/Description}}
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("{{GeneratorName}}", "{{GeneratorVersion}}")]
[System.CodeDom.Compiler.GeneratedCode("{{GeneratorName}}", null)]
public interface {{Name}}
{
{{#Properties}}
Expand Down
16 changes: 16 additions & 0 deletions Plotly.Blazor.Generator/src/Interop/EventDataPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,20 @@ public class EventDataPoint
/// </summary>
public object Lon { get; set; }
}

/// <summary>
/// A single event can have one selected point.
/// </summary>
public class LegendEventDataPoint
{
/// <summary>
/// The zero-based point number. Can be used to identify the trace.
/// </summary>
public object CurveNumber { get; set; }

/// <summary>
/// The zero-based point number. Can be used to identify the expanded trace
/// </summary>
public object ExpandedIndex { get; set; }
}
}
14 changes: 3 additions & 11 deletions Plotly.Blazor.Generator/src/Interop/RelayoutEventData.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using Plotly.Blazor.LayoutLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Plotly.Blazor.Interop
namespace Plotly.Blazor.Interop
{

/// <summary>
Expand All @@ -19,15 +12,14 @@ public class RelayoutEventData
/// <remarks>
/// In some cases this may be not be set.
/// </remarks>
public double[] XRange { get; set; }

public object[] XRange { get; set; }

/// <summary>
/// The y-axis of the layout. [y0, y1].
/// </summary>
/// <remarks>
/// In some cases this may be not be set.
/// </remarks>
public double[] YRange { get; set; }
public object[] YRange { get; set; }
}
}
3 changes: 1 addition & 2 deletions Plotly.Blazor.Generator/src/PlotlyChart.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
@using Plotly.Blazor;
@implements IDisposable

<div style="min-height: 350px; height: 100%" @attributes="AdditionalAttributes" id="@Id"></div>

<div style="min-height: 350px; height: 100%" @attributes="AdditionalAttributes" id="@Id"></div>
2 changes: 1 addition & 1 deletion Plotly.Blazor.Generator/src/PlotlyJsInterop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public static async Task SubscribeHoverEvent(this IJSRuntime jsRuntime, DotNetOb
{
await jsRuntime.InvokeVoidAsync($"{PlotlyInterop}.subscribeHoverEvent", cancellationToken, objectReference, objectReference.Value.Id);
}

/// <summary>
/// Can be used to subscribe to relayout events.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Plotly.Blazor.Generator/src/wwwroot/plotly-interop.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@
subscribeLegendClickEvent: function (dotNetObj, id) {
var plot = document.getElementById(id);
plot.on('plotly_legendclick', function (data) {
console.log("title: " + data.layout.title.text + " curveNumber:" + data.curveNumber + " expandedIndex:" + data.expandedIndex)

dotNetObj.invokeMethodAsync('LegendClickEvent', {
CurveNumber: data.curveNumber,
ExpandedIndex: data.expandedIndex
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor/Animation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Plotly.Blazor
/// <summary>
/// The Animation class.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", "4.0.1.0")]
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", null)]
[Serializable]
public class Animation : IEquatable<Animation>
{
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor/AnimationLib/DirectionEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Plotly.Blazor.AnimationLib
/// <summary>
/// The direction in which to play the frames triggered by the animation call
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", "4.0.1.0")]
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", null)]
[JsonConverter(typeof(EnumConverter))]
public enum DirectionEnum
{
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor/AnimationLib/Frame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Plotly.Blazor.AnimationLib
/// <summary>
/// The Frame class.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", "4.0.1.0")]
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", null)]
[Serializable]
public class Frame : IEquatable<Frame>
{
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor/AnimationLib/ModeEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Plotly.Blazor.AnimationLib
/// which the new animation is started. If <c>afterall</c> all existing frames
/// are animated to completion before the new animation is started.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", "4.0.1.0")]
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", null)]
[JsonConverter(typeof(EnumConverter))]
public enum ModeEnum
{
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor/AnimationLib/Transition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Plotly.Blazor.AnimationLib
/// <summary>
/// The Transition class.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", "4.0.1.0")]
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", null)]
[Serializable]
public class Transition : IEquatable<Transition>
{
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor/AnimationLib/TransitionLib/EasingEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Plotly.Blazor.AnimationLib.TransitionLib
/// <summary>
/// The easing function used for the transition
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", "4.0.1.0")]
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", null)]
[JsonConverter(typeof(EnumConverter))]
public enum EasingEnum
{
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor/AnimationLib/TransitionLib/OrderingEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Plotly.Blazor.AnimationLib.TransitionLib
/// Determines whether the figure&#39;s layout or traces smoothly transitions
/// during updates that make both traces and layout change.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", "4.0.1.0")]
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", null)]
[JsonConverter(typeof(EnumConverter))]
public enum OrderingEnum
{
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Plotly.Blazor
/// <summary>
/// The Config class.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", "4.0.1.0")]
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", null)]
[Serializable]
public class Config : IEquatable<Config>
{
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor/ConfigLib/DisplayModeBarEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Plotly.Blazor.ConfigLib
/// visible. If <c>false</c>, the mode bar is always hidden. If <c>hover</c>,
/// the mode bar is visible while the mouse cursor is on the graph container.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", "4.0.1.0")]
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", null)]
[JsonConverter(typeof(EnumConverter))]
public enum DisplayModeBarEnum
{
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor/ConfigLib/DoubleClickEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Plotly.Blazor.ConfigLib
/// the odd double clicks resets the axis ranges to their initial values and
/// even double clicks set the axis ranges to their autorange values.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", "4.0.1.0")]
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", null)]
[JsonConverter(typeof(EnumConverter))]
public enum DoubleClickEnum
{
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor/ConfigLib/Edits.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Plotly.Blazor.ConfigLib
/// <summary>
/// The Edits class.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", "4.0.1.0")]
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", null)]
[Serializable]
public class Edits : IEquatable<Edits>
{
Expand Down
2 changes: 1 addition & 1 deletion Plotly.Blazor/ConfigLib/ScrollZoomFlag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Plotly.Blazor.ConfigLib
/// do not have zoombox via pan), but turned off by default for cartesian subplots.
/// Set <c>scrollZoom</c> to <c>false</c> to disable scrolling for all subplots.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", "4.0.1.0")]
[System.CodeDom.Compiler.GeneratedCode("Plotly.Blazor.Generator", null)]
[Flags]
[JsonConverter(typeof(EnumConverter))]
public enum ScrollZoomFlag
Expand Down
Loading

0 comments on commit df3aa89

Please sign in to comment.