Security notice: JointJS 4.0 and earlier have a known security issue: graph JSON from an untrusted source can run scripts in the page (CVE pending). These versions will not be fixed. Upgrade to
@joint/core 4.1.4 or later (JointJS+ 4.1.2 or later) and sanitize untrusted data, see Sanitization.