ChemSharp.Molecules.Blazor 2.0.0-alpha.3

.NET 6.0
This is a prerelease version of ChemSharp.Molecules.Blazor.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package ChemSharp.Molecules.Blazor --version 2.0.0-alpha.3
NuGet\Install-Package ChemSharp.Molecules.Blazor -Version 2.0.0-alpha.3
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="ChemSharp.Molecules.Blazor" Version="2.0.0-alpha.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ChemSharp.Molecules.Blazor --version 2.0.0-alpha.3
#r "nuget: ChemSharp.Molecules.Blazor, 2.0.0-alpha.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ChemSharp.Molecules.Blazor as a Cake Addin
#addin nuget:?package=ChemSharp.Molecules.Blazor&version=2.0.0-alpha.3&prerelease

// Install ChemSharp.Molecules.Blazor as a Cake Tool
#tool nuget:?package=ChemSharp.Molecules.Blazor&version=2.0.0-alpha.3&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>

NuGet Badge

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
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

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.0.0-beta.1 14 12/1/2022
2.0.0-alpha.3 53 9/13/2022
2.0.0-alpha.2 44 9/5/2022
2.0.0-alpha.1 48 9/2/2022
1.1.0-beta.2 77 7/26/2022
1.1.0-beta.1 97 5/16/2022
1.0.15 239 1/27/2022
1.0.14 87 1/24/2022
1.0.13 138 12/5/2021
1.0.12 107 12/5/2021
1.0.11 2,886 11/25/2021