Package Exports
- react-3dmodelx
- react-3dmodelx/dist/esm/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-3dmodelx) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-3dmodelx
3D models viewer with react.js。文档地址:https://xiaxiangfeng.github.io/react-3d-model/index.html#/
从 NPM 下载包
npm i react-3dmodelx
Basic usage
import React from 'react';
import Model from 'react-3dmodelx';
export default () => (
<div style={{ maxWidth: 800, width: '100%', height: 400, margin: 'auto' }}>
<Model.FBX src="./Samba%20Dancing.fbx" />
</div>
);
Demo:
Getting Started
Install dependencies,
$ npm i
Start the dev server,
$ npm start
Build documentation,
$ npm run docs:build
Run test,
$ npm test
Build library via father
,
$ npm run build