summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Documentation/Wires connection.md35
-rw-r--r--Documentation/Wires connection.md~35
-rw-r--r--config/keyhandler-commons.xml9
-rw-r--r--css/common.css4
4 files changed, 76 insertions, 7 deletions
diff --git a/Documentation/Wires connection.md b/Documentation/Wires connection.md
new file mode 100644
index 0000000..d75087d
--- /dev/null
+++ b/Documentation/Wires connection.md
@@ -0,0 +1,35 @@
+# XCOS Wires Connection
+#### @jiteshjha @pooja
+
+### function connectionHandlerIsStartEvent()
+
+ - Starts connections on the background in wire-mode.
+ - function connectionHandlerMouseUp() depends on this function.
+
+### function connectionHandlerMouseUp()
+
+ - Avoids any connections for gestures within tolerance except when in wire-mode or when over a port.
+ - Responsible for the removal of self connections over an mxCell (edges or vertices) in wire-mode.
+
+### function updateFixedTerminalPoint()
+
+ - Updates connection points before the routing is called.
+ - Enables connection from any point on an edge.
+ - Without this function, default edge characteristics ( mid-point-specific connections only) come in play.
+
+### function createEdgeState()
+
+ - Overrides methods to preview and create new edges.
+ - Enables horizontal and vertical edges in preview state.
+ - Without this function, any connection from an edge will have it's source point and target point chosen based on the assumed center of a straight edge having source edge's source point and target point.
+
+### function createMarker()
+
+ - Adds in-place highlighting for complete cell area (no hotspot).
+ - Uses complete area of cell for new connections.
+ - Adds in-place highlighting when reconnecting existing edges.
+
+### function WireConnector()
+
+ - Creates a custom horizontal and vertical edge style.
+ - Without this function, the source and terminal of a connection from an source edge is assumed as if the source edge were an perpendicular connection.
diff --git a/Documentation/Wires connection.md~ b/Documentation/Wires connection.md~
new file mode 100644
index 0000000..d75087d
--- /dev/null
+++ b/Documentation/Wires connection.md~
@@ -0,0 +1,35 @@
+# XCOS Wires Connection
+#### @jiteshjha @pooja
+
+### function connectionHandlerIsStartEvent()
+
+ - Starts connections on the background in wire-mode.
+ - function connectionHandlerMouseUp() depends on this function.
+
+### function connectionHandlerMouseUp()
+
+ - Avoids any connections for gestures within tolerance except when in wire-mode or when over a port.
+ - Responsible for the removal of self connections over an mxCell (edges or vertices) in wire-mode.
+
+### function updateFixedTerminalPoint()
+
+ - Updates connection points before the routing is called.
+ - Enables connection from any point on an edge.
+ - Without this function, default edge characteristics ( mid-point-specific connections only) come in play.
+
+### function createEdgeState()
+
+ - Overrides methods to preview and create new edges.
+ - Enables horizontal and vertical edges in preview state.
+ - Without this function, any connection from an edge will have it's source point and target point chosen based on the assumed center of a straight edge having source edge's source point and target point.
+
+### function createMarker()
+
+ - Adds in-place highlighting for complete cell area (no hotspot).
+ - Uses complete area of cell for new connections.
+ - Adds in-place highlighting when reconnecting existing edges.
+
+### function WireConnector()
+
+ - Creates a custom horizontal and vertical edge style.
+ - Without this function, the source and terminal of a connection from an source edge is assumed as if the source edge were an perpendicular connection.
diff --git a/config/keyhandler-commons.xml b/config/keyhandler-commons.xml
index 3e690cd..9d21f45 100644
--- a/config/keyhandler-commons.xml
+++ b/config/keyhandler-commons.xml
@@ -6,12 +6,7 @@
<add as="34" action="enterGroup"/>
<add as="35" action="refresh"/>
<add as="36" action="home"/>
- <!-- Up, Down, Left, Right arrows perform moving instead of toggling -->
- <!--<add as="37" action="selectPrevious"/>
- <add as="38" action="selectParent"/>
- <add as="40" action="selectChild"/>
- <add as="39" action="selectNext"/> -->
- <add as="46" action="delete"/>
+ <add as="46" action="deleteBlock"/>
<add as="65" control="1" action="selectAll"/>
<add as="90" control="1" action="undo"/>
<add as="89" control="1" action="redo"/>
@@ -20,7 +15,7 @@
<add as="86" control="1" action="paste"/>
<add as="71" control="1" action="group"/>
<add as="85" control="1" action="ungroup"/>
- <add as="113" action="edit"/>
+ <add as="113" action="edit"/>
<add as="123" action="showProperties"/>
<add as="107" action="zoomIn"/>
<add as="109" action="zoomOut"/>
diff --git a/css/common.css b/css/common.css
index fb41533..d6694a5 100644
--- a/css/common.css
+++ b/css/common.css
@@ -172,3 +172,7 @@ td.mxPopupMenuIcon {
margin-left:2pc;
margin-bottom:2pc;
}
+
+.fieldInput {
+ float: right;
+}