diff --git a/plantuml/sequence-diagram-tips.md b/plantuml/sequence-diagram-tips.md new file mode 100644 index 0000000..69f7c37 --- /dev/null +++ b/plantuml/sequence-diagram-tips.md @@ -0,0 +1,23 @@ +## Arrow colors + +You can change the colors of the arrows and messages as followings: + +a -[#red]> b : some message + +## Collections + +There is a "collections" participant type: + +``` +collections "Things" as things +``` + +## Hidden returns + +There is sometimes some weirdness when returning after a self call when there is no explicit return. You can add a hidden return to fix this using: + +``` +a -> b++ : do stuff +b -> b : do stuff to self +b -[hidden]-> a : hidden return to fix weirdness +```