stl-viewer
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -321,7 +321,16 @@ 'use strict'; | ||
className: this.props.className, | ||
style: { width: width, height: height } | ||
style: { | ||
width: width, | ||
height: height, | ||
overflow: 'hidden' | ||
} | ||
}, | ||
_react2.default.createElement( | ||
'div', | ||
{ style: { textAlign: 'center', marginTop: height / 2 - 8 } }, | ||
{ style: { | ||
height: '100%', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center' | ||
} }, | ||
_react2.default.createElement(_ScaleLoader2.default, { color: modelColor, size: '16px' }) | ||
@@ -328,0 +337,0 @@ ) |
{ | ||
"name": "stl-viewer", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "A component for viewing an STL object from a given URL by utilizing Three.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/STLViewer.js", |
@@ -280,5 +280,14 @@ import React, { PropTypes, Component } from 'react'; | ||
className={this.props.className} | ||
style={{ width: width, height: height }} | ||
style={{ | ||
width: width, | ||
height: height, | ||
overflow: 'hidden', | ||
}} | ||
> | ||
<div style={{textAlign: 'center', marginTop: height/2 - 8 }} > | ||
<div style={{ | ||
height: '100%', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}} > | ||
<Loader color={modelColor} size="16px" /> | ||
@@ -285,0 +294,0 @@ </div> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
6615552
3498