Skip to content

Upgrade to XDSMjs 0.8.1

Rémi Lafage edited this page Jun 11, 2020 · 3 revisions
  • Basically the call to the XDSM creation has to be triggered by the user once the page is loaded (either you put the init script at the end of the page or you listen to the DOMContentLoaded event if you keep it in head part).
    <script type="text/javascript">
        document.addEventListener('DOMContentLoaded', () => {
            XDSMjs().createXdsm();
        });
    </script>

or if you want to configure the display (config) or pass the XDSM data structure (XDSMjs format) via javascript

    <script type="text/javascript">
        document.addEventListener('DOMContentLoaded', () => {
            let mdo = {nodes: ..., edges: ...}
            let config = { lalelizer: ..., layout: ... };
            XDSMjs(config).createXdsm(mdo);
        });
    </script>
  • Assets were renamed, your html file should be modified accordingly :
    • build directory is renamed dist
    • xdsm.bundle.js becomes xdsmjs.js
    • xdsm.css becomes xdsmjs.css
Clone this wiki locally