@molcrafts/molvis-stage-viewer
v0.2.2
Published
MolVis 3D custom elements (molvis-viewer / molvis-style-gallery)
Readme
@molcrafts/molvis-stage-viewer
Custom elements molvis-viewer and molvis-style-gallery. Published
separately from the @molcrafts/molvis-stage engine.
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@molcrafts/[email protected]/dist/main.js"
></script>
<molvis-viewer format="xyz">
<template data-molvis-source>…</template>
</molvis-viewer>import "@molcrafts/molvis-stage-viewer";The engine API (mountMolvis, pipeline, I/O) stays on
@molcrafts/molvis-stage. Bundlers that already import the engine should
call defineMolvisViewer from @molcrafts/molvis-stage-viewer/element
instead of loading the CDN bundle.
2D docs use @molcrafts/molvis-sketch-viewer.
Build
npm run build -w @molcrafts/molvis-stage-viewerPage / plugin / vsc-ext builds do not run this.
