浏览代码

docs: box type and reference

astanusic 2 年之前
父节点
当前提交
ecd7d037f7
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      docs/cientos/shapes/box.md

+ 13 - 0
docs/cientos/shapes/box.md

@@ -4,6 +4,19 @@
 
 The `cientos` package provides a `<Box />` component that serves as a short-cut for a `BoxGeometry` and a `MeshBasicMaterial` with a `Mesh` object.
 
+```typescript
+args: [
+        width: number,
+        height: number,
+        depth: number,
+        widthSegments: number,
+        heightSegments: number,
+        depthSegments: number
+      ]
+```
+reference: [BoxGeometry](https://threejs.org/docs/?q=box#api/en/geometries/BoxGeometry)
+
+
 ## Usage
 
 ```html