Created
September 19, 2019 09:22
-
-
Save davengeo/5fa8b1cd0605157ac931a173b3f4afd7 to your computer and use it in GitHub Desktop.
#jArchi remove visible relationships of a selected element in a diagram
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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