Skip to content

Instantly share code, notes, and snippets.

@davengeo
Created September 19, 2019 09:22
Show Gist options
  • Save davengeo/5fa8b1cd0605157ac931a173b3f4afd7 to your computer and use it in GitHub Desktop.
Save davengeo/5fa8b1cd0605157ac931a173b3f4afd7 to your computer and use it in GitHub Desktop.
#jArchi remove visible relationships of a selected element in a diagram
console.log("remove visible relationships");
$(selection).rels().each(function(r) {
v = r.view;
i = r.id;
$(v).find("relationship").each(function(f) {
if (i==f.id) {
console.log("deleting:"+f.id);
f.delete();
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment