You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
858 B
37 lines
858 B
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();
|