0.0.2 • Published 2 years ago
@reidjs/vue3d v0.0.2
vue3d
Easily view interactive 3d models in any vue app.

Setup
- Install @reidjs/vue3d
npm i @reidjs/vue3d
- Import the
ModelViewercomponent
<script setup>
import { ModelViewer } from "@reidjs/vue3d"
</script>
<template>
<ModelViewer src="/plant.glb" auto-rotate camera-controls></ModelViewer>
<template>Docs
This package wraps google's model-viewer with vue, so refer to their docs for usage.
Local development
Install issue to install google model viewer you need: "@google/model-viewer": "^3.1.1", "three": "^0.151.2", in package.json
Project Setup
npm installCompile and Hot-Reload for Development
npm run devType-Check, Compile and Minify for Production
npm run buildRun Unit Tests with Vitest
npm run test:unitLint with ESLint
npm run lint