52637c59e0
* add button to the toolbar to switch palm rejection mode * add a message for that new button to the locales/en * add boolean palmRejection to state of the toolbar * save that boolean also to the session storage, so it is ready to use it in the input handler
42 lines
1.9 KiB
JavaScript
42 lines
1.9 KiB
JavaScript
import React from 'react';
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
import WhiteboardService from '/imports/ui/components/whiteboard/service';
|
|
import WhiteboardToolbarService from './service';
|
|
import WhiteboardToolbar from './component';
|
|
|
|
const WhiteboardToolbarContainer = props => (
|
|
<WhiteboardToolbar {...props} />
|
|
);
|
|
|
|
export default withTracker((params) => {
|
|
const { whiteboardId } = params;
|
|
|
|
const data = {
|
|
actions: {
|
|
undoAnnotation: WhiteboardToolbarService.undoAnnotation,
|
|
clearWhiteboard: WhiteboardToolbarService.clearWhiteboard,
|
|
addWhiteboardGlobalAccess: WhiteboardService.addGlobalAccess,
|
|
removeWhiteboardGlobalAccess: WhiteboardService.removeGlobalAccess,
|
|
changeWhiteboardMode: WhiteboardToolbarService.changeWhiteboardMode,
|
|
getCurrentPalmRejectionMode: WhiteboardToolbarService.getCurrentPalmRejectionMode,
|
|
setInitialPalmRejectionMode: WhiteboardToolbarService.setInitialPalmRejectionMode,
|
|
setPalmRejectionMode: WhiteboardToolbarService.setPalmRejectionMode,
|
|
setInitialWhiteboardToolbarValues: WhiteboardToolbarService.setInitialWhiteboardToolbarValues,
|
|
getCurrentDrawSettings: WhiteboardToolbarService.getCurrentDrawSettings,
|
|
setFontSize: WhiteboardToolbarService.setFontSize,
|
|
setTool: WhiteboardToolbarService.setTool,
|
|
setThickness: WhiteboardToolbarService.setThickness,
|
|
setColor: WhiteboardToolbarService.setColor,
|
|
setTextShapeObject: WhiteboardToolbarService.setTextShapeObject,
|
|
},
|
|
textShapeActiveId: WhiteboardToolbarService.getTextShapeActiveId(),
|
|
multiUser: WhiteboardService.isMultiUserActive(whiteboardId),
|
|
isPresenter: WhiteboardToolbarService.isPresenter(),
|
|
annotations: WhiteboardToolbarService.filterAnnotationList(),
|
|
isMeteorConnected: Meteor.status().connected,
|
|
multiUserSize: WhiteboardService.getMultiUserSize(whiteboardId),
|
|
};
|
|
|
|
return data;
|
|
})(WhiteboardToolbarContainer);
|