react-three
Version:
Construct three.js scenes using React
14 lines (12 loc) • 387 B
JavaScript
import * as THREE from 'three';
import { createTHREEComponent } from '../../Utils';
import THREEObject3DMixin from '../../mixins/THREEObject3DMixin';
export default createTHREEComponent(
'AxisHelper',
THREEObject3DMixin,
{
createTHREEObject: function() {
return new THREE.AxisHelper(this._currentElement.props.size || 5);
}
}
);