diff options
author | jiteshjha | 2016-07-06 12:58:41 +0530 |
---|---|---|
committer | jiteshjha | 2016-07-06 12:58:41 +0530 |
commit | f8d45641bf73330066cd5764eebbf6a1dcb00591 (patch) | |
tree | 4c9c34bdb5d916cb6105b786a2297c68dec3fb7c /index.html | |
parent | 57c13b64f9aab43e14b27dba4b58226fbd8d59b5 (diff) | |
download | xcos-on-web-f8d45641bf73330066cd5764eebbf6a1dcb00591.tar.gz xcos-on-web-f8d45641bf73330066cd5764eebbf6a1dcb00591.tar.bz2 xcos-on-web-f8d45641bf73330066cd5764eebbf6a1dcb00591.zip |
Split-block is now over edges for port to edge links
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -560,6 +560,22 @@ cell.getChildAt(1).setConnectable(false); cell.getChildAt(2).setConnectable(false); cell.setConnectable(false); + + // Get the parent of the splitBlock + var parent = graph.model.getParent(cell); + + graph.model.beginUpdate(); + try { + /* + * Adds the split-block to the parent at the last index + * Enables split-block to appear over it's associated edges + */ + graph.model.add(parent, cell, graph.model.getChildCount(parent) - 1); + } + finally { + graph.model.endUpdate(); + } + graph.refresh(); } finally |