SharpAstrology.HumanDesign.BlazorComponents
0.2.1
dotnet add package SharpAstrology.HumanDesign.BlazorComponents --version 0.2.1
NuGet\Install-Package SharpAstrology.HumanDesign.BlazorComponents -Version 0.2.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SharpAstrology.HumanDesign.BlazorComponents" Version="0.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SharpAstrology.HumanDesign.BlazorComponents --version 0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SharpAstrology.HumanDesign.BlazorComponents, 0.2.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SharpAstrology.HumanDesign.BlazorComponents as a Cake Addin #addin nuget:?package=SharpAstrology.HumanDesign.BlazorComponents&version=0.2.1 // Install SharpAstrology.HumanDesign.BlazorComponents as a Cake Tool #tool nuget:?package=SharpAstrology.HumanDesign.BlazorComponents&version=0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SharpAstrology.HumanDesign.BlazorComponents - A Blazor component library for SharpAstrology.HumanDesign
The goal of this package is to provide typical human design components. Contributions for alternative charts are welcome.
How to use the chart in Blazor?
@using SharpAstrology.DataModels
@using SharpAstrology.Enums
@using SharpAstrology.Ephemerides
@using SharpAstrology.HumanDesign.BlazorComponents
<PageTitle>Human Design Chart Example</PageTitle>
<div style="display: flex; flex-direction: row; height: 700px; align-items: center; justify-content: space-between; max-width: 800px">
<HumanDesignActivations Activations="chart.PersonalityActivation" Height="500px" PlanetsRight="false"
States="chart.PersonalityFixation"/>
<HumanDesignGraph Chart="chart"
CenterColorMap="centerColorMap"
FirstComparerColor="@firstComparerColor"
SecondComparerColor="@secondComparerColor"
/>
<HumanDesignActivations Activations="chart.DesignActivation" Height="500px" PlanetsRight="true"
States="chart.DesignFixation" Color="#ff4081" ChangedByComparatorColor="green"/>
</div>
@code
{
[Inject] SwissEphemeridesService EphService { get; set; }
private HumanDesignChart chart;
// These are the default colors and optional parameters.
private readonly string firstComparerColor = "#000000";
private readonly string secondComparerColor = "#ff4081";
private Dictionary<Centers, string> centerColorMap = new()
{
[Centers.Root] = "#E88835",
[Centers.Sacral] = "#FE352C",
[Centers.Emotions] = "#E88835",
[Centers.Spleen] = "#E88835",
[Centers.Heart] = "#FE352C",
[Centers.Self] = "#FFD12B",
[Centers.Throat] = "#E88835",
[Centers.Mind] = "#87FE49",
[Centers.Crown] = "#FFD12B"
};
protected override void OnInitialized()
{
using var eph = EphService.CreateContext();
chart = new HumanDesignChart(new DateTime(1988, 9, 4, 1, 15, 0, DateTimeKind.Utc), eph);
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.0)
- SharpAstrology.Base (>= 0.8.0)
- SharpAstrology.HumanDesign (>= 1.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.