This project is a monorepo with the package threed-glb-viewer and a test environment in pkg-example.
npm install @into-cps-association/threed-glb-viewer
bun add @into-cps-association/threed-glb-viewer
pnpm add @into-cps-association/threed-glb-viewer
yarn add @into-cps-association/threed-glb-viewer
# Add a canvas component
<canvas id="threed-glb-viewer-canvas"></canvas>
# Specify a path to a gltf file
renderThreejs("../static/models/2CylinderEngine/glTF/2CylinderEngine.gltf")
cd packages/threed-glb-viewer
bun install
bun run build
cd packages/pkg-example
bun install
bun run dev
MIT