@aibee/gltf-viewer
v1.0.1
Published
gltf模型预览工具
Downloads
4
Keywords
Readme
gltf-viewer
gltf glb模型预览工具
Install
$ npm config set @aibee:registry https://npm.aibee.cn
$ npm i -S @aibee/gltf-viewer
Usage Use Component
模型预览组件
<GltfViewer :url="url"></GltfViewer>
import { GltfViewer } from '@aibee/gltf-viewer';
export default {
components: { GltfViewer },
}
模型截图
import { GltfModelCropper } from '@aibee/gltf-viewer';
const cropper = new GltfModelCropper(modelUrl);
const base64 = await cropper.toDataURL();