I want to generate a diagram by giving the json in typescript file. The diagram should automatically generate with the JSON
Below is the json for the attached screenshot.
[{"shape":{"type":"Basic","shape":"Rectangle","cornerRadius":0},"id":"nodeAeCoEa","width":150,"height":20,"offsetX":291.5,"offsetY":144,"style":{"fill":"#726dd1","strokeColor":"black","strokeWidth":1,"strokeDashArray":"","opacity":1,"gradient":{"type":"None"}},"container":null,"visible":true,"horizontalAlignment":"Left","verticalAlignment":"Top","backgroundColor":"transparent","borderColor":"none","borderWidth":0,"rotateAngle":0,"pivot":{"x":0.5,"y":0.5},"margin":{},"flip":"None","wrapper":{"actualSize":{"width":150,"height":20},"offsetX":291.5,"offsetY":144},"constraints":5240814,"zIndex":0,"annotations":[],"ports":[],"isExpanded":true,"expandIcon":{"shape":"None"},"inEdges":[],"outEdges":[],"parentId":"Ready to Registerv8UVR","processId":"","umlIndex":-1,"isPhase":false,"isLane":false},{"shape":{"type":"Basic","shape":"Rectangle","cornerRadius":0},"id":"nodeBiNM0M","width":150,"height":70,"offsetX":291.5,"offsetY":184,"style":{"fill":"#dbe6eb","strokeColor":"#dbe6eb","strokeWidth":1,"strokeDashArray":"","opacity":1,"gradient":{"type":"None"}},"annotations":[{"id":"BO6vx","content":"Are you ready to register? You can do so right here","style":{"strokeWidth":0,"strokeColor":"transparent","fill":"transparent","fontSize":14,"bold":false,"textWrapping":"WrapWithOverflow","color":"black","whiteSpace":"CollapseSpace","fontFamily":"Arial","italic":false,"opacity":1,"strokeDashArray":"","textAlign":"Center","textOverflow":"Wrap","textDecoration":"None"},"hyperlink":{"link":"","content":"","textDecoration":"None"},"constraints":4,"visibility":true,"rotateAngle":0,"margin":{"right":0,"bottom":0,"left":0,"top":0},"horizontalAlignment":"Center","verticalAlignment":"Center","offset":{"x":0.5,"y":0.5}}],"container":null,"visible":true,"horizontalAlignment":"Left","verticalAlignment":"Top","backgroundColor":"transparent","borderColor":"none","borderWidth":0,"rotateAngle":0,"pivot":{"x":0.5,"y":0.5},"margin":{},"flip":"None","wrapper":{"actualSize":{"width":150,"height":70},"offsetX":291.5,"offsetY":184},"constraints":5240814,"zIndex":1,"ports":[],"isExpanded":true,"expandIcon":{"shape":"None"},"inEdges":[],"outEdges":[],"parentId":"Ready to Registerv8UVR","processId":"","umlIndex":-1,"isPhase":false,"isLane":false},{"children":["nodeAeCoEa","nodeBiNM0M"],"shape":{"type":"Basic","shape":"Rectangle"},"id":"Ready to Registerv8UVR","container":null,"offsetX":291.5,"offsetY":176.5,"visible":true,"horizontalAlignment":"Left","verticalAlignment":"Top","backgroundColor":"transparent","borderColor":"none","borderWidth":0,"rotateAngle":0,"pivot":{"x":0.5,"y":0.5},"margin":{"right":0,"bottom":0,"left":0,"top":0},"flip":"None","wrapper":{"actualSize":{"width":150,"height":85},"offsetX":291.5,"offsetY":176.5},"style":{"fill":"white","strokeWidth":1,"strokeColor":"transparent","strokeDashArray":"","opacity":1,"gradient":{"type":"None"}},"width":150,"height":85,"zIndex":2,"annotations":[],"ports":[],"isExpanded":true,"expandIcon":{"shape":"None"},"constraints":5240814,"inEdges":[],"outEdges":[],"parentId":"","processId":"","umlIndex":-1,"isPhase":false,"isLane":false}]
Attachment:
Screenshot_from_20200120_102237_b2482ebd.zip