import React, { PropTypes } from 'react'; import ShapeGroupContainer from '../whiteboard/shape-group/container.jsx'; import Cursor from './cursor/component.jsx'; import PresentationToolbarContainer from './presentation-toolbar/container.jsx'; import Slide from './slide/component.jsx'; import styles from './styles.scss'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import PollingContainer from '/imports/ui/components/polling/container'; import PresentationOverlayContainer from './presentation-overlay/container'; import WhiteboardOverlayContainer from '/imports/ui/components/whiteboard/whiteboard-overlay/component'; export default class PresentationArea extends React.Component { constructor(props) { super(props); } renderPresentationArea() { let slideObj = this.props.currentSlide; if (this.props.currentSlide) { slideObj = this.props.currentSlide.slide; let x = -slideObj.x_offset * 2 * slideObj.width / 100; let y = -slideObj.y_offset * 2 * slideObj.height / 100; let viewBoxWidth = slideObj.width * slideObj.width_ratio / 100; let viewBoxHeight = slideObj.height * slideObj.height_ratio / 100; return ( {this.props.cursor ? : null } {this.props.userIsPresenter ? : null } ); } else { return null; } } renderPresentationToolbar() { if (this.props.currentSlide) { return ( ); } else { return null; } } render() { return (
{this.renderPresentationArea()}
{this.renderPresentationToolbar()}
); } } PresentationArea.defaultProps = { svgProps: { }, svgStyle: { }, };