Initial commit: drawNET Alpha v1.0 - Professional Topology Designer with Full i18n and Performance Optimizations

This commit is contained in:
leeyj
2026-03-22 22:37:24 +09:00
commit 5cea93e317
192 changed files with 14449 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
import { state } from '../../state.js';
export const uiHandlers = {
toggleInventory: () => {
import('../../graph/analysis.js').then(m => m.toggleInventory());
},
toggleProperties: () => {
import('../../properties_sidebar/index.js').then(m => m.toggleSidebar());
},
toggleLayers: () => {
import('../../ui/layer_panel.js').then(m => m.toggleLayerPanel());
},
editLabel: () => {
if (!state.graph) return;
const selected = state.graph.getSelectedCells();
if (selected.length === 0) return;
import('../../properties_sidebar/index.js').then(m => {
m.toggleSidebar(true);
setTimeout(() => {
const labelInput = document.getElementById('prop-label');
if (labelInput) {
labelInput.focus();
labelInput.select();
}
}, 50);
});
},
cancel: () => {
if (!state.graph) return;
state.graph.cleanSelection();
import('../../properties_sidebar/index.js').then(m => m.toggleSidebar(false));
}
};