2017-04-20 02:27:00 +08:00
|
|
|
import React from 'react';
|
2018-01-08 12:44:42 +08:00
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
2017-04-20 02:27:00 +08:00
|
|
|
import WhiteboardToolbarService from './service';
|
|
|
|
import WhiteboardToolbar from './component';
|
|
|
|
|
2017-09-26 07:45:44 +08:00
|
|
|
const WhiteboardToolbarContainer = props => (
|
2017-08-03 09:24:38 +08:00
|
|
|
<WhiteboardToolbar {...props} />
|
2018-01-08 12:44:42 +08:00
|
|
|
);
|
2017-04-20 02:27:00 +08:00
|
|
|
|
2018-01-08 12:44:42 +08:00
|
|
|
export default withTracker(() => ({
|
2017-09-22 08:18:15 +08:00
|
|
|
actions: {
|
|
|
|
undoAnnotation: WhiteboardToolbarService.undoAnnotation,
|
|
|
|
clearWhiteboard: WhiteboardToolbarService.clearWhiteboard,
|
|
|
|
changeWhiteboardMode: WhiteboardToolbarService.changeWhiteboardMode,
|
|
|
|
setInitialWhiteboardToolbarValues: WhiteboardToolbarService.setInitialWhiteboardToolbarValues,
|
|
|
|
getCurrentDrawSettings: WhiteboardToolbarService.getCurrentDrawSettings,
|
|
|
|
setFontSize: WhiteboardToolbarService.setFontSize,
|
|
|
|
setTool: WhiteboardToolbarService.setTool,
|
|
|
|
setThickness: WhiteboardToolbarService.setThickness,
|
|
|
|
setColor: WhiteboardToolbarService.setColor,
|
|
|
|
setTextShapeObject: WhiteboardToolbarService.setTextShapeObject,
|
|
|
|
},
|
2017-06-17 10:32:41 +08:00
|
|
|
textShapeActiveId: WhiteboardToolbarService.getTextShapeActiveId(),
|
2017-08-03 09:24:38 +08:00
|
|
|
multiUser: WhiteboardToolbarService.getMultiUserStatus(),
|
|
|
|
isPresenter: WhiteboardToolbarService.isPresenter(),
|
2018-01-08 12:44:42 +08:00
|
|
|
}))(WhiteboardToolbarContainer);
|