How to
// Creates a sample framework randomly scored. This should be replaced with some framework retrieving function.
let framework = OLM.CORE.Utils.getScoredFrameworkSample();
// Creates a tree based on the framework.
let fw_tree = new OLM.CORE.FrameworkTree();
fw_tree.buildFromFramework(framework);
// Creates the TreePack object. The config is editable on the right =>
let treePack = new OLM.TreePack(document.getElementById('test'), fw_tree, config);
treePack.onMouseOver = (node) => {
// Your mouseOver behavior here. In the exemple below, we just populate the right panel with the node infos.
}
// We chose an id for the svg element. Default behavior automatically creates a unique id.
treePack.draw(svgId = 'test-pack');