2021-08-05 19:03:24 +08:00
|
|
|
import DEFAULT_VALUES from '/imports/ui/components/layout/defaultValues';
|
2021-05-18 04:25:07 +08:00
|
|
|
|
|
|
|
export const INITIAL_INPUT_STATE = {
|
|
|
|
autoarrAngeLayout: true,
|
|
|
|
customParameters: {
|
|
|
|
|
|
|
|
},
|
|
|
|
browser: {
|
|
|
|
width: 0,
|
|
|
|
height: 0,
|
|
|
|
},
|
2021-07-12 21:22:26 +08:00
|
|
|
bannerBar: {
|
|
|
|
hasBanner: false,
|
|
|
|
},
|
2021-07-13 00:24:53 +08:00
|
|
|
notificationsBar: {
|
|
|
|
hasNotification: false,
|
|
|
|
},
|
2021-05-18 04:25:07 +08:00
|
|
|
navBar: {
|
|
|
|
hasNavBar: true,
|
|
|
|
height: DEFAULT_VALUES.navBarHeight,
|
|
|
|
},
|
|
|
|
actionBar: {
|
|
|
|
hasActionBar: true,
|
|
|
|
height: DEFAULT_VALUES.actionBarHeight,
|
|
|
|
},
|
|
|
|
sidebarNavigation: {
|
|
|
|
isOpen: true,
|
|
|
|
width: 0,
|
|
|
|
height: 0,
|
|
|
|
browserWidth: 0,
|
2021-05-19 22:51:31 +08:00
|
|
|
sidebarNavPanel: DEFAULT_VALUES.sidebarNavPanel,
|
2021-05-18 04:25:07 +08:00
|
|
|
},
|
|
|
|
sidebarContent: {
|
|
|
|
isOpen: true,
|
|
|
|
currentPanelType: DEFAULT_VALUES.panelType,
|
|
|
|
width: 0,
|
|
|
|
height: 0,
|
|
|
|
browserWidth: 0,
|
2021-05-19 22:51:31 +08:00
|
|
|
sidebarContentPanel: DEFAULT_VALUES.sidebarContentPanel,
|
2021-07-13 03:47:06 +08:00
|
|
|
resizableEdge: {
|
|
|
|
top: false,
|
|
|
|
right: false,
|
|
|
|
bottom: false,
|
|
|
|
left: false,
|
|
|
|
},
|
2021-05-18 04:25:07 +08:00
|
|
|
},
|
|
|
|
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,
|
2021-07-13 03:47:06 +08:00
|
|
|
isResizing: false,
|
|
|
|
cameraOptimalGridSize: {
|
|
|
|
width: 0,
|
|
|
|
height: 0,
|
|
|
|
},
|
2021-05-18 04:25:07 +08:00
|
|
|
},
|
|
|
|
presentation: {
|
|
|
|
isOpen: true,
|
|
|
|
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,
|
|
|
|
},
|
2021-08-16 21:38:39 +08:00
|
|
|
captions: {
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
},
|
2021-05-18 04:25:07 +08:00
|
|
|
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,
|
2021-07-13 20:56:39 +08:00
|
|
|
position: null,
|
2021-05-18 04:25:07 +08:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
};
|