mermaid/test/usageTests/reqJsApp.js
knsv bc5f73daa2 Fix for issue #37
Updated dependencies to dagre/dagre-d3
2015-03-07 12:28:52 +01:00

22 lines
683 B
JavaScript

require.config({
baseUrl: '.',
paths: {
// the left side is the module ID,
// the right side is the path to
// the jQuery file, relative to baseUrl.
// Also, the path should NOT include
// the '.js' file extension. This example
// is using jQuery 1.9.0 located at
// js/lib/jquery-1.9.0.js, relative to
// the HTML page.
mermaid: 'bower_components/mermaid/dist/mermaid.full'
}
});
// Start the main app logic.
requirejs(['simple','mermaid'],
function (simple) {
//jQuery, canvas and the app/sub module are all
//loaded and can be used here now.
mermaid.init();
});