mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
edit or commented left over console.log
This commit is contained in:
@@ -46,7 +46,7 @@ function handleWebConnect() {
|
|||||||
|
|
||||||
// Function to handle 'blender_connect' event
|
// Function to handle 'blender_connect' event
|
||||||
function handleBlenderConnect(blenderId) {
|
function handleBlenderConnect(blenderId) {
|
||||||
console.log("blender_connect: ", blenderId);
|
console.log("blender connected: ", blenderId);
|
||||||
if (!connectedClients.hasOwnProperty(blenderId)) {
|
if (!connectedClients.hasOwnProperty(blenderId)) {
|
||||||
connectedClients[blenderId] = {
|
connectedClients[blenderId] = {
|
||||||
shown: false,
|
shown: false,
|
||||||
@@ -77,7 +77,7 @@ function handleDefaultData(data) {
|
|||||||
|
|
||||||
// Function to handle 'blender_disconnect' event
|
// Function to handle 'blender_disconnect' event
|
||||||
function handleBlenderDisconnect(blenderId) {
|
function handleBlenderDisconnect(blenderId) {
|
||||||
console.log("blender_disconnect: ", blenderId);
|
console.log("blender disconnected: ", blenderId);
|
||||||
if (connectedClients.hasOwnProperty(blenderId)) {
|
if (connectedClients.hasOwnProperty(blenderId)) {
|
||||||
delete connectedClients[blenderId];
|
delete connectedClients[blenderId];
|
||||||
removeSelectOption(blenderId);
|
removeSelectOption(blenderId);
|
||||||
@@ -90,7 +90,7 @@ function handleBlenderDisconnect(blenderId) {
|
|||||||
|
|
||||||
function handleConnectedClients(data) {
|
function handleConnectedClients(data) {
|
||||||
$("#blender-count").text(data.length);
|
$("#blender-count").text(data.length);
|
||||||
console.log(data);
|
// console.log(data);
|
||||||
data.forEach(function (id) {
|
data.forEach(function (id) {
|
||||||
connectedClients[id] = {
|
connectedClients[id] = {
|
||||||
shown: false,
|
shown: false,
|
||||||
@@ -101,7 +101,7 @@ function handleConnectedClients(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleThemeData(themeData) {
|
function handleThemeData(themeData) {
|
||||||
console.log(themeData);
|
// console.log(themeData);
|
||||||
|
|
||||||
function arrayToRgbString(arr) {
|
function arrayToRgbString(arr) {
|
||||||
const [r, g, b, a] = arr.map((num) => Math.round(num * 255));
|
const [r, g, b, a] = arr.map((num) => Math.round(num * 255));
|
||||||
@@ -145,7 +145,7 @@ function handleDrawingsData(data) {
|
|||||||
|
|
||||||
const hasDrawings = drawings.length > 0 || sheets.length > 0;
|
const hasDrawings = drawings.length > 0 || sheets.length > 0;
|
||||||
|
|
||||||
console.log(connectedClients);
|
// console.log(connectedClients);
|
||||||
|
|
||||||
if (connectedClients.hasOwnProperty(blenderId)) {
|
if (connectedClients.hasOwnProperty(blenderId)) {
|
||||||
if (!connectedClients[blenderId].shown) {
|
if (!connectedClients[blenderId].shown) {
|
||||||
@@ -203,11 +203,10 @@ function addSelectOption(blenderId, filename) {
|
|||||||
|
|
||||||
function updateSelectOption(blenderId, filename) {
|
function updateSelectOption(blenderId, filename) {
|
||||||
$("#blender-" + blenderId).text(filename);
|
$("#blender-" + blenderId).text(filename);
|
||||||
console.log(blenderId, filename);
|
// console.log(blenderId, filename);
|
||||||
console.log($("#dropdown-menu").val());
|
console.log($("#dropdown-menu").val());
|
||||||
|
|
||||||
if ($("#dropdown-menu").val() === filename) {
|
if ($("#dropdown-menu").val() === filename) {
|
||||||
console.log("here");
|
|
||||||
displayDrawingsNames(blenderId, filename);
|
displayDrawingsNames(blenderId, filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -253,7 +252,7 @@ function displayDrawingsNames(blenderId, ifcFile) {
|
|||||||
const msg = {
|
const msg = {
|
||||||
path: path,
|
path: path,
|
||||||
};
|
};
|
||||||
console.log(msg);
|
// console.log(msg);
|
||||||
socket.emit("get_svg", msg);
|
socket.emit("get_svg", msg);
|
||||||
|
|
||||||
$("li").removeClass("selected-svg");
|
$("li").removeClass("selected-svg");
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ function connectSocket() {
|
|||||||
|
|
||||||
// Function to handle 'blender_connect' event
|
// Function to handle 'blender_connect' event
|
||||||
function handleBlenderConnect(blenderId) {
|
function handleBlenderConnect(blenderId) {
|
||||||
console.log("blender_connect: ", blenderId);
|
console.log("blender connected: ", blenderId);
|
||||||
if (!connectedClients.hasOwnProperty(blenderId)) {
|
if (!connectedClients.hasOwnProperty(blenderId)) {
|
||||||
connectedClients[blenderId] = {
|
connectedClients[blenderId] = {
|
||||||
shown: false,
|
shown: false,
|
||||||
@@ -63,7 +63,7 @@ function handleBlenderConnect(blenderId) {
|
|||||||
|
|
||||||
// Function to handle 'blender_disconnect' event
|
// Function to handle 'blender_disconnect' event
|
||||||
function handleBlenderDisconnect(blenderId) {
|
function handleBlenderDisconnect(blenderId) {
|
||||||
console.log("blender_disconnect: ", blenderId);
|
console.log("blender disconnected: ", blenderId);
|
||||||
if (connectedClients.hasOwnProperty(blenderId)) {
|
if (connectedClients.hasOwnProperty(blenderId)) {
|
||||||
delete connectedClients[blenderId];
|
delete connectedClients[blenderId];
|
||||||
removeGanttElement(blenderId);
|
removeGanttElement(blenderId);
|
||||||
@@ -76,7 +76,7 @@ function handleBlenderDisconnect(blenderId) {
|
|||||||
|
|
||||||
function handleConnectedClients(data) {
|
function handleConnectedClients(data) {
|
||||||
$("#blender-count").text(data.length);
|
$("#blender-count").text(data.length);
|
||||||
console.log(data);
|
// console.log(data);
|
||||||
data.forEach(function (id) {
|
data.forEach(function (id) {
|
||||||
connectedClients[id] = {
|
connectedClients[id] = {
|
||||||
shown: false,
|
shown: false,
|
||||||
@@ -87,7 +87,7 @@ function handleConnectedClients(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleThemeData(themeData) {
|
function handleThemeData(themeData) {
|
||||||
console.log(themeData);
|
// console.log(themeData);
|
||||||
|
|
||||||
function arrayToRgbString(arr) {
|
function arrayToRgbString(arr) {
|
||||||
const [r, g, b, a] = arr.map((num) => Math.round(num * 255));
|
const [r, g, b, a] = arr.map((num) => Math.round(num * 255));
|
||||||
@@ -385,12 +385,12 @@ function generateTooltip(task) {
|
|||||||
|
|
||||||
// Event handlers for editing gantt table data
|
// Event handlers for editing gantt table data
|
||||||
function editValue(list, task, event, cell, column) {
|
function editValue(list, task, event, cell, column) {
|
||||||
console.log("editValue function called with the following parameters:");
|
// console.log("editValue function called with the following parameters:");
|
||||||
console.log("list:", list);
|
// console.log("list:", list);
|
||||||
console.log("task:", task);
|
// console.log("task:", task);
|
||||||
console.log("event:", event);
|
// console.log("event:", event);
|
||||||
console.log("cell:", cell);
|
// console.log("cell:", cell);
|
||||||
console.log("column:", column);
|
// console.log("column:", column);
|
||||||
|
|
||||||
const ganttId = task.getGantt()["vDiv"].id;
|
const ganttId = task.getGantt()["vDiv"].id;
|
||||||
const index = ganttId.indexOf("-") + 1;
|
const index = ganttId.indexOf("-") + 1;
|
||||||
@@ -413,6 +413,7 @@ function editValue(list, task, event, cell, column) {
|
|||||||
value: event.target.value,
|
value: event.target.value,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
console.log("web operator: " + msg);
|
||||||
socket.emit("web_operator", msg);
|
socket.emit("web_operator", msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ function connectSocket() {
|
|||||||
|
|
||||||
// Function to handle 'blender_connect' event
|
// Function to handle 'blender_connect' event
|
||||||
function handleBlenderConnect(blenderId) {
|
function handleBlenderConnect(blenderId) {
|
||||||
console.log("blender_connect: ", blenderId);
|
console.log("blender connected: ", blenderId);
|
||||||
if (!connectedClients.hasOwnProperty(blenderId)) {
|
if (!connectedClients.hasOwnProperty(blenderId)) {
|
||||||
connectedClients[blenderId] = { shown: false, ifc_file: "" };
|
connectedClients[blenderId] = { shown: false, ifc_file: "" };
|
||||||
}
|
}
|
||||||
@@ -45,7 +45,7 @@ function handleBlenderConnect(blenderId) {
|
|||||||
|
|
||||||
// Function to handle 'blender_disconnect' event
|
// Function to handle 'blender_disconnect' event
|
||||||
function handleBlenderDisconnect(blenderId) {
|
function handleBlenderDisconnect(blenderId) {
|
||||||
console.log("blender_disconnect: ", blenderId);
|
console.log("blender disconnected: ", blenderId);
|
||||||
if (connectedClients.hasOwnProperty(blenderId)) {
|
if (connectedClients.hasOwnProperty(blenderId)) {
|
||||||
delete connectedClients[blenderId];
|
delete connectedClients[blenderId];
|
||||||
removeTableElement(blenderId);
|
removeTableElement(blenderId);
|
||||||
@@ -58,14 +58,14 @@ function handleBlenderDisconnect(blenderId) {
|
|||||||
|
|
||||||
function handleConnectedClients(data) {
|
function handleConnectedClients(data) {
|
||||||
$("#blender-count").text(data.length);
|
$("#blender-count").text(data.length);
|
||||||
console.log(data);
|
// console.log(data);
|
||||||
data.forEach(function (id) {
|
data.forEach(function (id) {
|
||||||
connectedClients[id] = { shown: false, ifc_file: "" };
|
connectedClients[id] = { shown: false, ifc_file: "" };
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleThemeData(themeData) {
|
function handleThemeData(themeData) {
|
||||||
console.log(themeData);
|
// console.log(themeData);
|
||||||
|
|
||||||
function arrayToRgbString(arr) {
|
function arrayToRgbString(arr) {
|
||||||
const [r, g, b, a] = arr.map((num) => Math.round(num * 255));
|
const [r, g, b, a] = arr.map((num) => Math.round(num * 255));
|
||||||
@@ -141,7 +141,7 @@ function addTableElement(blenderId, csvData, filename) {
|
|||||||
const csvHeaders = csvData.substring(0, firstLine).split(",");
|
const csvHeaders = csvData.substring(0, firstLine).split(",");
|
||||||
connectedClients[blenderId].headers = csvHeaders;
|
connectedClients[blenderId].headers = csvHeaders;
|
||||||
|
|
||||||
console.log(connectedClients[blenderId]);
|
// console.log(connectedClients[blenderId]);
|
||||||
const tableContainer = $("<div></div>")
|
const tableContainer = $("<div></div>")
|
||||||
.addClass("table-container")
|
.addClass("table-container")
|
||||||
.attr("id", "container-" + blenderId);
|
.attr("id", "container-" + blenderId);
|
||||||
@@ -188,8 +188,8 @@ function addTableElement(blenderId, csvData, filename) {
|
|||||||
|
|
||||||
// Toggle current column visibility
|
// Toggle current column visibility
|
||||||
column.visible = !column.visible;
|
column.visible = !column.visible;
|
||||||
console.log(column.title, column.visible);
|
// console.log(column.title, column.visible);
|
||||||
// Change menu item checkbox
|
|
||||||
if (column.visible) {
|
if (column.visible) {
|
||||||
table.showColumn(column.title);
|
table.showColumn(column.title);
|
||||||
checkbox.textContent = "\u2611"; // ☑
|
checkbox.textContent = "\u2611"; // ☑
|
||||||
|
|||||||
Reference in New Issue
Block a user