@camaty/gs-viewer
v0.1.2
Published
Single-file <gs-viewer> Web Component bundle (includes three.js)
Readme
@camaty/gs-viewer
Single-file distribution of the <gs-viewer> Web Component.
- Includes
threeinside the bundle (no importmap required) - Intended for easy CDN usage via jsDelivr
CDN usage (jsDelivr)
Load the bundle as an ES module:
<script type="module" src="https://cdn.jsdelivr.net/npm/@camaty/gs-viewer@latest/dist/gs-viewer.bundle.module.js"></script>Then use the tag:
<gs-viewer src="/path/to/scene.splat" camera-controls style="width: 800px; height: 600px;"></gs-viewer>Publish notes
From the repository root:
npm install
npm run build-library
cd packages/gs-viewer
npm publishThis package copies the bundle from the repo root build output into dist/ during prepack.
