Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaxiangfeng committed Oct 24, 2022
1 parent 52533d9 commit e0fd522
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
# react-3d-model

> 加载 3D 模型的 react 组件。预览地址:https://xiaxiangfeng.github.io/react-3d-model/index.html#/
> 3D models viewer with react.js。文档地址:https://xiaxiangfeng.github.io/react-3d-model/index.html#/
![Image text](https://xiaxiangfeng.github.io/react-3d-model/Animation.gif)

## 从 NPM 下载包

```npm
npm i react-3d-model
```

## Basic usage

```tsx
import React from 'react';
import Model from 'react-3d-model';

export default () => (
<div style={{ maxWidth: 800, width: '100%', height: 400, margin: 'auto' }}>
<Model.FBX src="./Samba%20Dancing.fbx" />
</div>
);
```

Demo:

## Getting Started

Expand Down
Binary file added docs/Animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
{
"private": true,
"private": false,
"name": "react-3d-model",
"version": "1.0.0",
"description": "3D models viewer with react.js",
"author": "xiaxiangfeng",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/xiaxiangfeng/react-3d-model.git"
},
"keywords": [
"react",
"react-component",
"component",
"components",
"react-3d-model",
"model",
"3d-model"
],
"bugs": {
"url": "https://github.com/xiaxiangfeng/react-3d-model/issues"
},
"homepage": "https://github.com/xiaxiangfeng/react-3d-model",
"scripts": {
"start": "dumi dev",
"docs:build": "dumi build",
Expand Down

0 comments on commit e0fd522

Please sign in to comment.