summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorjiteshjha2016-07-06 12:58:41 +0530
committerjiteshjha2016-07-06 12:58:41 +0530
commitf8d45641bf73330066cd5764eebbf6a1dcb00591 (patch)
tree4c9c34bdb5d916cb6105b786a2297c68dec3fb7c /index.html
parent57c13b64f9aab43e14b27dba4b58226fbd8d59b5 (diff)
downloadxcos-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.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/index.html b/index.html
index 683bf30..d0fe017 100644
--- a/index.html
+++ b/index.html
@@ -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