Current collected state Current
Observed since 20 Oct, 19:36 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
3d model preview base on vue-3d-model
展示3d模型的组件,基于 MIT 开源协议的 vue-3d-model 功能增强
功能正在研发中,部分功能并未完工
增强功能包括
using npm
npm install 3d-preview-model --save
Or using script tag for global use
| prop | type | default | example |
|---|---|---|---|
| src | string | - | './exapmle.obj' |
| width | number | - | 300 |
| height | number | - | 300 |
| env | string | - | static/texture/Temp/ |
| position | object | { x: 0, y: 0, z: 0 } | { x: 100, y: 20, z: -10 } |
| rotation | object | { x: 0, y: 0, z: 0 } | { x: Math.PI / 2, y: 0, z: - Math.PI / 4 } |
| cameraPosition | object | { x: 0, y: 0, z: 0 } | { x: 1, y: 2, z: -3 } |
| cameraRotation | object | { x: 0, y: 0, z: 0 } | { x: 3, y: 2, z: -1 } |
| scale | object | { x: 1, y: 1, z: 1 } | { x: 2, y: 2, z: 3 } |
| lights | array | - | |
| backgroundColor | number/string | 0xffffff | 0xffffff/'#f00'/'rgb(255,255,255)' |
| backgroundAlpha | number | 1 | 0.5 |
| controlsOptions | object | - | see OrbitControls Properties |
| crossOrigin | string | anonymous | anonymous/use-credentials |
| gammaOutput | boolean | false | true/false |
| glOptions | object | { antialias: true, alpha: true } | see WebGLRenderer Parameters |
| event |
|---|
| on-mousedown |
| on-mousemove |
| on-mouseup |
| on-click |
| on-load |
| on-progress |
| on-error |
| model format | component tag |
|---|---|
| obj | <model-obj> |
| json | <model-three> |
| stl | <model-stl> |
| dae | <model-collada> |
| ply | <model-ply> |
| gltf(2.0) | <model-gltf> |
| ctm | <model-ctm> |
| fbx | <model-fbx> |
Modern browsers and IE 11.
You can click on this for more information.
MIT
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:36 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:6b0a680628887caa5e546c4f9841d30c5c187bd22cbee926b2c2eed4629d2ef4