1/** js sequence diagrams 2.0.1 2 * https://bramp.github.io/js-sequence-diagrams/ 3 * (c) 2012-2017 Andrew Brampton (bramp.net) 4 * @license Simplified BSD license. 5 */ 6(function() { 7'use strict'; 8/*global Diagram */ 9 10// The following are included by preprocessor */ 11// #include "build/diagram-grammar.js" 12// #include "src/theme.js" 13 14// #ifdef SNAP 15// #include "src/theme-snap.js" 16// #endif 17 18// #ifdef RAPHAEL 19// #include "src/theme-raphael.js" 20// #include "fonts/daniel/daniel_700.font.js" 21// #endif 22 23// #include "src/sequence-diagram.js" 24// #include "src/jquery-plugin.js" 25 26// Taken from underscore.js: 27// Establish the root object, `window` (`self`) in the browser, or `global` on the server. 28// We use `self` instead of `window` for `WebWorker` support. 29var root = (typeof self == 'object' && self.self == self && self) || 30 (typeof global == 'object' && global.global == global && global); 31 32// Export the Diagram object for **Node.js**, with 33// backwards-compatibility for their old module API. If we're in 34// the browser, add `Diagram` as a global object. 35if (typeof exports !== 'undefined') { 36 if (typeof module !== 'undefined' && module.exports) { 37 exports = module.exports = Diagram; 38 } 39 exports.Diagram = Diagram; 40} else { 41 root.Diagram = Diagram; 42} 43}()); 44