@yhsoft/model-viewer
Version:
基于 ThreeJS 开发的三维模型查看器,支持多种 3D 格式的模型浏览,支持对模型的旋转、平移、缩放等操作
45 lines (32 loc) • 828 B
Markdown
<p align="center">
<a href="https://rd-docs.yinghuasoft.com/">
<img width="200" src="https://rd-docs.yinghuasoft.com/svgs/rapid.svg">
</a>
</p>
<h1 align="center">Model Viewer</h1>
<div align="center">
基于 ThreeJS 开发的 3D 模型查看器
</div>
### ✨ 特性
- 🌈 基于 ThreeJS 开发
- 📦 支持加载多种三维模型:obj, fbx, glb, gltf, 3mf, 3ds ……
- ⚙️ 丰富的 API 方便灵活定制与拓展
- 🎨 可设置主题和布局,适合更丰富的应用场景
### 兼容环境
- 现代浏览器
### 示例

### 安装
```bash
npm install @yhsoft/model-viewer
```
```bash
pnpm add @yhsoft/model-viewer
```
```bash
yarn add @yhsoft/model-viewer
```
### 用法
```vue
import { ModelViewer } from "@yhsoft/model-viewer";
```