2017-04-20 02:27:00 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { createContainer } from 'meteor/react-meteor-data';
|
|
|
|
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} />
|
|
|
|
);
|
2017-04-20 02:27:00 +08:00
|
|
|
|
|
|
|
export default createContainer(() => ({
|
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(),
|
2017-04-20 02:27:00 +08:00
|
|
|
}), WhiteboardToolbarContainer);
|