import React from 'react'; import PropTypes from 'prop-types'; import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import PollingContainer from '/imports/ui/components/polling/container'; import ShapeGroupContainer from '../whiteboard/shape-group/container'; import Cursor from './cursor/component'; import PresentationToolbarContainer from './presentation-toolbar/container'; import Slide from './slide/component'; import styles from './styles.scss'; 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; const x = -slideObj.x_offset * 2 * slideObj.width / 100; const y = -slideObj.y_offset * 2 * slideObj.height / 100; const viewBoxWidth = slideObj.width * slideObj.width_ratio / 100; const viewBoxHeight = slideObj.height * slideObj.height_ratio / 100; return ( {this.props.cursor ? : null } ); } return null; } renderPresentationToolbar() { if (this.props.currentSlide) { return ( ); } return null; } render() { return (
{this.renderPresentationArea()}
{this.renderPresentationToolbar()}
); } } PresentationArea.defaultProps = { svgProps: { }, svgStyle: { }, };