0.0.4 • Published 3 years ago
cw-three v0.0.4
简介
cw-three是一个UI库,基于three.js生成简单的3D课件和基本图形并绑定到HTML页面的DOM元素上,提供基本的交互功能。
Installation
Install cw-three with npm
npm install cw-three
Usage/Examples
页面上添加 id 为 "threeContainer" 的div元素等其他DOM元素,通过class或者style设置位置和宽高等样式。
<div id="threeContainer" class="myClass"></div>
import {Cube} from 'cw-three'
// page mounted
const cube1 = new Cube('threeContainer')
cube1.init()
Contributing
Contributions are always welcome!