[mirotalksfu] - improve wb
هذا الالتزام موجود في:
@@ -869,7 +869,6 @@ progress {
|
|||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: none;
|
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
|
|||||||
@@ -940,9 +940,6 @@ function handleButtons() {
|
|||||||
whiteboardButton.onclick = () => {
|
whiteboardButton.onclick = () => {
|
||||||
toggleWhiteboard();
|
toggleWhiteboard();
|
||||||
};
|
};
|
||||||
whiteboardGhostButton.onclick = (e) => {
|
|
||||||
wbToggleBg();
|
|
||||||
};
|
|
||||||
whiteboardPencilBtn.onclick = () => {
|
whiteboardPencilBtn.onclick = () => {
|
||||||
whiteboardIsDrawingMode(true);
|
whiteboardIsDrawingMode(true);
|
||||||
};
|
};
|
||||||
@@ -1058,12 +1055,11 @@ function handleSelects() {
|
|||||||
whiteboardIsDrawingMode(true);
|
whiteboardIsDrawingMode(true);
|
||||||
};
|
};
|
||||||
wbBackgroundColorEl.onchange = () => {
|
wbBackgroundColorEl.onchange = () => {
|
||||||
let data = {
|
setWhiteboardBgColor(wbBackgroundColorEl.value);
|
||||||
peer_name: peer_name,
|
};
|
||||||
action: 'bgcolor',
|
whiteboardGhostButton.onclick = (e) => {
|
||||||
color: wbBackgroundColorEl.value,
|
wbIsBgTransparent = !wbIsBgTransparent;
|
||||||
};
|
setWhiteboardBgColor(wbIsBgTransparent ? 'rgba(0, 0, 0, 0.100)' : wbBackgroundColorEl.value);
|
||||||
whiteboardAction(data);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1462,6 +1458,15 @@ function setWhiteboardSize(w, h) {
|
|||||||
document.documentElement.style.setProperty('--wb-height', h);
|
document.documentElement.style.setProperty('--wb-height', h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setWhiteboardBgColor(color) {
|
||||||
|
let data = {
|
||||||
|
peer_name: peer_name,
|
||||||
|
action: 'bgcolor',
|
||||||
|
color: color,
|
||||||
|
};
|
||||||
|
whiteboardAction(data);
|
||||||
|
}
|
||||||
|
|
||||||
function whiteboardIsDrawingMode(status) {
|
function whiteboardIsDrawingMode(status) {
|
||||||
wbCanvas.isDrawingMode = status;
|
wbCanvas.isDrawingMode = status;
|
||||||
if (status) {
|
if (status) {
|
||||||
@@ -1759,15 +1764,6 @@ function whiteboardAction(data, emit = true) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function wbToggleBg() {
|
|
||||||
wbIsBgTransparent = !wbIsBgTransparent;
|
|
||||||
if (wbIsBgTransparent) {
|
|
||||||
document.documentElement.style.setProperty('--wb-bg', 'rgba(0, 0, 0, 0.100)');
|
|
||||||
} else {
|
|
||||||
setTheme(currentTheme);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ####################################################
|
// ####################################################
|
||||||
// HANDLE PARTICIPANTS
|
// HANDLE PARTICIPANTS
|
||||||
// ####################################################
|
// ####################################################
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم