// Copyright 2017 Istituto Nazionale di Fisica Nucleare // // Licensed under the EUPL import { Chart } from './chart'; import { Image } from './image'; import { Events } from "./events"; import { ImportFile } from "./importFile"; //INIZIO DELLO SCRIPT window.onload = () => { // skip the tooltip for the moment; it generates an apparently fatal error //$('[data-toggle="tooltip"]').tooltip(); let drawImage = new Image(); let drawChart = new Chart(); let importFile = new ImportFile(drawImage, drawChart); new Events(drawImage, drawChart); //creazione dell'albero e gestione barre laterali importFile.setImportFile(); importFile.compressingSidenav(); // enable drag&drop let droppableArea: any = document.querySelector('.droppable'); importFile.makeDroppable(droppableArea); drawImage.zPixel1 = { x: 0, y: 0 }; drawImage.zPixel2 = { x: 0, y: 0 }; };