ChemSharp.Molecules.Blazor
2.0.0-beta.1
See the version list below for details.
dotnet add package ChemSharp.Molecules.Blazor --version 2.0.0-beta.1
NuGet\Install-Package ChemSharp.Molecules.Blazor -Version 2.0.0-beta.1
<PackageReference Include="ChemSharp.Molecules.Blazor" Version="2.0.0-beta.1" />
paket add ChemSharp.Molecules.Blazor --version 2.0.0-beta.1
#r "nuget: ChemSharp.Molecules.Blazor, 2.0.0-beta.1"
// Install ChemSharp.Molecules.Blazor as a Cake Addin #addin nuget:?package=ChemSharp.Molecules.Blazor&version=2.0.0-beta.1&prerelease // Install ChemSharp.Molecules.Blazor as a Cake Tool #tool nuget:?package=ChemSharp.Molecules.Blazor&version=2.0.0-beta.1&prerelease
<p align="center"> <img src="https://raw.githubusercontent.com/JensKrumsieck/ChemSharp/master/icon.png" height="125px" /></p> <h1 align="center" >ChemSharp.Molecules.Blazor</h1>
Blazor view for ChemSharp.Molecules using Three.js
Creates a BlazorMolecule-Component to be used in your razor-Views. Supports all files supported by ChemSharp.Molecules.
You can use BlazorMoleculeFactory to create molecule from IBrowserFile
Example usage of BlazorMolecule component (razor-file):
@page "/molecule"
@using ChemSharp.Molecules.Blazor
@inject IJSRuntime JS
<h3>Molecule</h3>
<InputFile OnChange="OnFileChange" id="filedrop" class="form-control" />
<BlazorMolecule Molecule=molecule class="lol" style="height: 50vh;"/>
@code {
Molecule? molecule;
private async Task OnFileChange(InputFileChangeEventArgs args)
{
var file = args.File;
molecule = await BlazorMoleculeFactory.CreateAsync(file);
}
}
Example Project: https://github.com/JensKrumsieck/blazor-playground
Supported Files:
- Import (XYZ, CIF (crystallographic information file, CCDC), MOL2 (TRIPOS Mol2), PDB (Protein Data Bank file), CDXML (Single Molecule only))
- Export (XYZ, MOL2)
<hr/>
Used Libraries:
Compatibility
- .NET 6.0
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- ChemSharp.Molecules (>= 2.0.0-beta.1)
- Microsoft.AspNetCore.ClientAssets (>= 0.1.0-alpha.21528.2)
- Microsoft.AspNetCore.Components (>= 6.0.1)
- Microsoft.AspNetCore.Components.Web (>= 6.0.1)
-
net7.0
- ChemSharp.Molecules (>= 2.0.0-beta.1)
- Microsoft.AspNetCore.ClientAssets (>= 0.1.0-alpha.21528.2)
- Microsoft.AspNetCore.Components (>= 7.0.0)
- Microsoft.AspNetCore.Components.Web (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
2.1.1 | 88 | 2/19/2024 | |
2.1.0 | 131 | 7/31/2023 | |
2.0.1 | 180 | 6/20/2023 | |
2.0.0 | 169 | 3/1/2023 | |
2.0.0-beta.1 | 173 | 12/1/2022 | |
2.0.0-alpha.3 | 118 | 9/13/2022 | |
2.0.0-alpha.2 | 106 | 9/5/2022 | |
2.0.0-alpha.1 | 112 | 9/2/2022 | |
1.1.0-beta.2 | 157 | 7/26/2022 | |
1.1.0-beta.1 | 178 | 5/16/2022 | |
1.0.15 | 337 | 1/27/2022 | |
1.0.14 | 151 | 1/24/2022 | |
1.0.13 | 215 | 12/5/2021 | |
1.0.12 | 181 | 12/5/2021 | |
1.0.11 | 3,018 | 11/25/2021 |