@molcrafts/molvis-core
v0.0.10
Published
Molvis: interactive molecular visualization library
Readme
@molvis/core
Core rendering and interaction library for MolVis.
Install
npm install @molvis/coreQuick Start
import { mountMolvis, readFrame } from "@molvis/core";
const container = document.getElementById("viewer");
if (!container) {
throw new Error("viewer container not found");
}
const app = mountMolvis(container);
const frame = readFrame(pdbText, "example.pdb");
app.loadFrame(frame);
await app.start();Dev Commands
npm run build -w core # library build (dist/)
npm run dev -w core # demo dev server
npm run test -w core # unit tests
npm run release:check -w coreKnown Limitations (v0.0.2)
WrapPBCModifieris currently a validated no-op.DataSourceModifiervisibility toggles are state-only and do not filter blocks yet.SetFrameMetaCommandis reserved and currently does not mutate frame metadata.
License
BSD-3-Clause. See LICENSE.
