Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-3dmodelx

xiaxiangfeng54MIT1.0.12TypeScript support: included

3D models viewer with react.js

react, react-component, component, components, react-3dmodelx, react-3d-model, react-3dmodel, model, 3d-model

readme

react-3dmodelx

3D models viewer with react.js。文档地址:https://xiaxiangfeng.github.io/react-3d-model/index.html#/

Image text

从 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