function initAll() { darkMode(); setLang("fr"); dysFont(); } var mobile = false; var switchs = [], lineCount = [], logiques = [], lines = [], endLines = [], end, switchsInfo = [], switchsInfoCopy = [], lineRemove = []; console.log(document.querySelector("#setting_container").offsetWidth); var width = window.innerWidth - window.innerWidth / 100 * 30; var height = window.innerWidth / 5; var stage = new Konva.Stage({ container: 'setting_container', width: width, height: height, }); var layer = new Konva.Layer(); stage.add(layer); colonneTot = 1; numberPerColonne = [1]; var logiqueCount = 0; for (let i = 0; i < colonneTot; i++) { liveColonneNumber.push([]); } insertLogiqueColonne("logique1", "et", 0); calculNombreSwitch(); switchCreator(numberOfSwitch); createAllLinkSwitch(); initAllSwitch(); createEnd(); initEnd();