Last active
May 4, 2017 21:24
-
-
Save gregmac/fa89a3d86dcb1a008153 to your computer and use it in GitHub Desktop.
Revisions
-
gregmac revised this gist
Sep 21, 2015 . 1 changed file with 11 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,13 +6,14 @@ ## ## Developed by: Greg MacLellan ## Date created: 2015-09-15 ## 2015-09-21: Added suppor for displaying parse errors while rendering ## Installed by: Greg MacLellan ## @param Theme:title=Theme|type=enum|required=true|enumValues=Hand drawn,Simple #set( $id = $action.dateFormatter.calendar.timeInMillis) <div id="diagram$id" class="sequence-diagram" data-sequence-theme="$paramTheme" style="font-family: monospace; white-space: pre;">$body</div> <script type="text/javascript"> jQuery(function() { if (typeof sequenceInitalized == "undefined") { @@ -23,7 +24,15 @@ jQuery(".sequence-diagram").each(function(e) { var jqe = jQuery(this); var theme = jqe.attr('data-sequence-theme') == "Simple" ? "simple" : "hand"; try { jqe.sequenceDiagram({theme: theme}); } catch (err) { console.log('Sequence error', err.message); jqe .css('border', '1px solid #999') .append('<div class="error">'+err.message+'</div>'); throw err; } }); }); }); -
gregmac revised this gist
Sep 16, 2015 . 1 changed file with 7 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,19 +8,23 @@ ## Date created: 2015-09-15 ## Installed by: Greg MacLellan ## @param Theme:title=Theme|type=enum|required=true|enumValues=Hand drawn,Simple #set( $id = $action.dateFormatter.calendar.timeInMillis) <div id="diagram$id" class="sequence-diagram" data-sequence-theme="$paramTheme">$body</div> <script type="text/javascript"> jQuery(function() { if (typeof sequenceInitalized == "undefined") { sequenceInitalized = true; jQuery.getScript("https://cdn.rawgit.com/bramp/js-sequence-diagrams/gh-pages/js/raphael-min.js", function() { jQuery.getScript("https://cdn.rawgit.com/bramp/js-sequence-diagrams/gh-pages/js/sequence-diagram-min.js", function() { jQuery(".sequence-diagram").each(function(e) { var jqe = jQuery(this); var theme = jqe.attr('data-sequence-theme') == "Simple" ? "simple" : "hand"; jqe.sequenceDiagram({theme: theme}); }); }); }); } -
gregmac created this gist
Sep 16, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ ## Macro title: UML Sequence Diagram ## Macro has a body: Y ## Body processing: Unrendered ## ## This macro allows use of js-sequence-diagrams from http://bramp.github.io/js-sequence-diagrams/ ## ## Developed by: Greg MacLellan ## Date created: 2015-09-15 ## Installed by: Greg MacLellan ## @noparams #set( $id = $action.dateFormatter.calendar.timeInMillis) <div id="diagram$id" class="sequence-diagram">$body</div> <script type="text/javascript"> jQuery(function() { if (typeof sequenceInitalized == "undefined") { sequenceInitalized = true; jQuery.getScript("https://cdn.rawgit.com/bramp/js-sequence-diagrams/gh-pages/js/raphael-min.js", function() { jQuery.getScript("https://cdn.rawgit.com/bramp/js-sequence-diagrams/gh-pages/js/sequence-diagram-min.js", function() { jQuery(".sequence-diagram").sequenceDiagram({theme: 'hand'}); }); }); } }); </script>