Home > front end >  UML sequence diagram is generated by JS wrote a tool - NutUml
UML sequence diagram is generated by JS wrote a tool - NutUml

Time:12-05

This several days of UML sequence diagram is generated by JS wrote a tool, after is generated by canvas picture effect is as follows:


The picture above with the following description:
 
Client - & gt; Server: Request
Server - & gt; Client: the Response


Complete with code:

 
<script SRC="https://bbs.csdn.net/topics/nutuml.js" & gt; </script>

Your browser does not support the canvas element.


Var c=document. GetElementById (" myCanvas ");
Var umlText="Client - & gt; Server: Request \ n
"+ "Server - & gt; Client: the Response ";
Var uml=new NutUml (c);
Uml. DrawUml (umlText);
</script>


Rely on above nutuml. Js can be downloaded to making,
https://github.com/junfengliang/nutuml


Attention, ask everybody to give advice,

CodePudding user response:

Tested mark

CodePudding user response:

Yes, mark

CodePudding user response:

  • Related