Skip to content

Commit

Permalink
prepare to create dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
asadarafat committed Feb 2, 2025
1 parent ea41113 commit e2d319f
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions html-static/js/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ async function reloadViewport() {
}


// /// VS-CODE BackEnd messaging handler
// /// VS-CODE BackEnd messaging handler
// /// VS-CODE BackEnd messaging handler
// /// VS-CODE BackEnd messaging handler
// /// VS-CODE BackEnd messaging handler
// /// VS-CODE BackEnd messaging handler


document.addEventListener("DOMContentLoaded", async function () {
// vertical layout
Expand Down Expand Up @@ -808,7 +803,7 @@ document.addEventListener("DOMContentLoaded", async function () {
// Listen for the custom 'dblclick' event.
cy.on("dblclick", 'node', function (event) {
var node = event.target;

globalSelectedNode = node.data("extraData").longname;


Expand All @@ -822,7 +817,6 @@ document.addEventListener("DOMContentLoaded", async function () {
// Click event listener for nodes
cy.on("click", "node", async function (event) {


console.info("node clicked init");
console.info("isPanel01Cy: ", isPanel01Cy);
console.info("nodeClicked: ", nodeClicked);
Expand Down Expand Up @@ -851,6 +845,8 @@ document.addEventListener("DOMContentLoaded", async function () {



// aarafat-tag:
// protoype double click node to trigger Connect to SSH, but still mixed up with single clice to trigger show Panel-Node
const currentTime = Date.now();
// Check if the current tap is on the same node and within the threshold.
if (globalDblclickLastClick.id === node.id() && (currentTime - globalDblclickLastClick.time < globalDblClickThreshold)) {
Expand All @@ -866,9 +862,7 @@ document.addEventListener("DOMContentLoaded", async function () {
// Update globalDblclickLastClick with the current tap info.
globalDblclickLastClick.time = currentTime;
globalDblclickLastClick.id = node.id();

console.log(" ########### dblclick false")

}


Expand Down Expand Up @@ -908,8 +902,10 @@ document.addEventListener("DOMContentLoaded", async function () {
console.info("deleted Node: ", node.data("extraData").longname);
deleteNodeToEditorToFile(node)
}

if ((node.data("editor") === "true")) {
showPanelNodeEditor(node)

} else {
// Remove all Overlayed Panel
const panelOverlays = document.getElementsByClassName("panel-overlay");
Expand Down

0 comments on commit e2d319f

Please sign in to comment.