mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 19:13:49 +01:00
add classname to doodle preview
This commit is contained in:
parent
7a1cd8cc0c
commit
ac42aa31ec
@ -48,9 +48,9 @@ class DoodlePreview extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { width, height } = this.props;
|
||||
const { width, height, className } = this.props;
|
||||
return (
|
||||
<canvas width={width} height={height} ref="canvas" />
|
||||
<canvas className={className} width={width} height={height} ref="canvas" />
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -60,6 +60,7 @@ DoodlePreview.defaultProps = {
|
||||
pixelRatio: 1
|
||||
};
|
||||
DoodlePreview.propTypes = {
|
||||
className: PropTypes.string,
|
||||
width: PropTypes.number.isRequired,
|
||||
height: PropTypes.number.isRequired,
|
||||
pixelRatio: PropTypes.number.isRequired,
|
||||
|
Loading…
Reference in New Issue
Block a user