
pl.gdela.socomo.visualizer.visualizer.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of socomo-core Show documentation
Show all versions of socomo-core Show documentation
Core parts of the tool for visualizing and analyzing source code modularity of a single java project.
/*
* Entry point for the visualizer single-page app.
* The visualizer html skeleton will call the socomo() function passing
* the composition of the module to be visualized in user's browser.
*/
/* global _ drawDiagram */
/* exported socomo */
function socomo(moduleName, composition) {
// todo: currently we show only one diagram for the first level
const levelName = _.keys(composition)[0];
const level = _.values(composition)[0];
document.body.innerHTML = `
${moduleName} ❭ ${levelName}
`;
drawDiagram(document.getElementById('main-diagram'), level);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy