bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/layout/context/initState.js

207 lines
3.4 KiB
JavaScript
Raw Normal View History

2021-05-18 04:25:07 +08:00
import DEFAULT_VALUES from '../defaultValues';
export const INITIAL_INPUT_STATE = {
autoarrAngeLayout: true,
customParameters: {
},
browser: {
width: 0,
height: 0,
},
navBar: {
hasNavBar: true,
height: DEFAULT_VALUES.navBarHeight,
},
actionBar: {
hasActionBar: true,
height: DEFAULT_VALUES.actionBarHeight,
},
sidebarNavigation: {
isOpen: true,
width: 0,
height: 0,
browserWidth: 0,
},
sidebarContent: {
isOpen: true,
currentPanelType: DEFAULT_VALUES.panelType,
width: 0,
height: 0,
browserWidth: 0,
},
sidebarContentHorizontalResizer: {
isOpen: true,
currentPanelType: DEFAULT_VALUES.panelType,
width: 0,
height: 0,
browserWidth: 0,
},
cameraDock: {
numCameras: 0,
position: DEFAULT_VALUES.cameraPosition,
width: 0,
height: 0,
browserWidth: 0,
browserHeight: 0,
isDragging: false,
isFullscreen: false,
},
presentation: {
isOpen: true,
isFullscreen: false,
slidesLength: 0,
currentSlide: {
num: 0,
size: {
width: 0,
height: 0,
},
},
width: 0,
height: 0,
browserWidth: 0,
browserHeight: 0,
},
screenShare: {
hasScreenShare: false,
width: 0,
height: 0,
browserWidth: 0,
browserHeight: 0,
},
externalVideo: {
hasExternalVideo: false,
width: 0,
height: 0,
browserWidth: 0,
browserHeight: 0,
},
};
export const INITIAL_OUTPUT_STATE = {
navBar: {
display: true,
width: 0,
height: 0,
top: 0,
left: 0,
tabOrder: 0,
zIndex: 1,
},
actionBar: {
display: true,
width: 0,
height: 0,
top: 0,
left: 0,
tabOrder: 0,
zIndex: 1,
},
sidebarNavigation: {
display: true,
minWidth: 0,
width: 0,
maxWidth: 0,
minHeight: 0,
height: 0,
maxHeight: 0,
top: 0,
left: 0,
tabOrder: 0,
isResizable: false,
resizableEdge: {
top: false,
right: false,
bottom: false,
left: false,
},
zIndex: 1,
},
sidebarContent: {
display: true,
minWidth: 0,
width: 0,
maxWidth: 0,
minHeight: 0,
height: 0,
maxHeight: 0,
top: 0,
left: 0,
currentPanelType: '',
tabOrder: 0,
isResizable: false,
resizableEdge: {
top: false,
right: false,
bottom: false,
left: false,
},
zIndex: 1,
},
mediaArea: {
width: 0,
height: 0,
},
cameraDock: {
display: false,
minWidth: 0,
width: 0,
maxWidth: 0,
minHeight: 0,
height: 0,
maxHeight: 0,
top: 0,
left: 0,
tabOrder: 0,
isDraggable: false,
isResizable: false,
resizableEdge: {
top: false,
right: false,
bottom: false,
left: false,
},
zIndex: 1,
},
dropZoneAreas: {},
presentation: {
display: true,
minWidth: 0,
width: 0,
maxWidth: 0,
minHeight: 0,
height: 0,
maxHeight: 0,
top: 0,
left: 0,
tabOrder: 0,
isResizable: false,
resizableEdge: {
top: false,
right: false,
bottom: false,
left: false,
},
presentationOrientation: 'horizontal',
zIndex: 1,
},
screenShare: {
display: false,
width: 0,
height: 0,
top: 0,
left: 0,
zIndex: 1,
},
externalVideo: {
display: false,
width: 0,
height: 0,
top: 0,
left: 0,
tabOrder: 0,
zIndex: 1,
},
};