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: {
|
2022-05-13 21:42:19 +08:00
|
|
|
width: window.document.documentElement.clientWidth,
|
|
|
|
height: window.document.documentElement.clientHeight,
|
2021-05-18 04:25:07 +08:00
|
|
|
},
|
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,
|
|
|
|
},
|
2022-02-11 22:30:35 +08:00
|
|
|
focusedId: 'none',
|
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,
|
|
|
|
},
|
2024-06-11 03:31:30 +08:00
|
|
|
genericMainContent: {
|
|
|
|
genericContentId: undefined,
|
2024-02-19 18:59:45 +08:00
|
|
|
width: 0,
|
|
|
|
height: 0,
|
|
|
|
browserWidth: 0,
|
|
|
|
browserHeight: 0,
|
|
|
|
},
|
2022-10-24 21:11:28 +08:00
|
|
|
sharedNotes: {
|
|
|
|
isPinned: false,
|
|
|
|
width: 0,
|
|
|
|
height: 0,
|
|
|
|
browserWidth: 0,
|
|
|
|
browserHeight: 0,
|
|
|
|
},
|
2021-05-18 04:25:07 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export const INITIAL_OUTPUT_STATE = {
|
|
|
|
navBar: {
|
2022-07-30 03:02:31 +08:00
|
|
|
display: false,
|
2021-05-18 04:25:07 +08:00
|
|
|
width: 0,
|
|
|
|
height: 0,
|
|
|
|
top: 0,
|
|
|
|
left: 0,
|
|
|
|
tabOrder: 0,
|
|
|
|
zIndex: 1,
|
|
|
|
},
|
|
|
|
actionBar: {
|
2022-07-30 03:02:31 +08:00
|
|
|
display: false,
|
2021-05-18 04:25:07 +08:00
|
|
|
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,
|
2022-02-11 22:30:35 +08:00
|
|
|
focusedId: 'none',
|
2021-05-18 04:25:07 +08:00
|
|
|
},
|
|
|
|
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,
|
|
|
|
},
|
2024-06-11 03:31:30 +08:00
|
|
|
genericMainContent: {
|
2024-02-19 18:59:45 +08:00
|
|
|
display: false,
|
|
|
|
width: 0,
|
|
|
|
height: 0,
|
|
|
|
top: 0,
|
|
|
|
left: 0,
|
|
|
|
tabOrder: 0,
|
|
|
|
zIndex: 1,
|
|
|
|
},
|
2022-10-24 21:11:28 +08:00
|
|
|
sharedNotes: {
|
|
|
|
display: false,
|
|
|
|
width: 0,
|
|
|
|
height: 0,
|
|
|
|
top: 0,
|
|
|
|
left: 0,
|
|
|
|
tabOrder: 0,
|
|
|
|
zIndex: 1,
|
|
|
|
},
|
2021-05-18 04:25:07 +08:00
|
|
|
};
|