@@ -35,6 +35,10 @@ let copyBuffer = null;
|
|||||||
let editingNodeId = null;
|
let editingNodeId = null;
|
||||||
let editingShapeId = null;
|
let editingShapeId = null;
|
||||||
|
|
||||||
|
let syncInterval = null;
|
||||||
|
let syncHashes = { events: null, documents: null, network: null };
|
||||||
|
let pendingCanvasCreate = null;
|
||||||
|
|
||||||
const DOC_TYPE_ICONS = {
|
const DOC_TYPE_ICONS = {
|
||||||
deployment: { icon: 'fa-server', color: '#06b6d4' },
|
deployment: { icon: 'fa-server', color: '#06b6d4' },
|
||||||
attack: { icon: 'fa-bolt', color: '#ef4444' },
|
attack: { icon: 'fa-bolt', color: '#ef4444' },
|
||||||
@@ -732,7 +736,6 @@ async function loadNetworkData() {
|
|||||||
renderNodeList();
|
renderNodeList();
|
||||||
renderShapeList();
|
renderShapeList();
|
||||||
renderNodeToolbar();
|
renderNodeToolbar();
|
||||||
setupCanvasClickCreate();
|
|
||||||
startSync();
|
startSync();
|
||||||
if (shapes.length) nextShapeZ = Math.max(...shapes.map(x => x.z_index)) + 1;
|
if (shapes.length) nextShapeZ = Math.max(...shapes.map(x => x.z_index)) + 1;
|
||||||
buildCanvasGraph();
|
buildCanvasGraph();
|
||||||
@@ -1182,8 +1185,6 @@ function renderNodeToolbar() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let pendingCanvasCreate = null;
|
|
||||||
|
|
||||||
function setupCanvasClickCreate() {
|
function setupCanvasClickCreate() {
|
||||||
const wrapper = document.getElementById('networkCanvasWrapper');
|
const wrapper = document.getElementById('networkCanvasWrapper');
|
||||||
const bar = document.getElementById('nodeToolbar');
|
const bar = document.getElementById('nodeToolbar');
|
||||||
|
|||||||
Reference in New Issue
Block a user