summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiteshjha2016-06-03 22:39:11 +0530
committerjiteshjha2016-06-03 22:39:11 +0530
commit06984e364796201817c8f6ea5ca3fb86dc5eb7ba (patch)
tree643ab83f63d9624f946d55e6ff8ab962d3b84151
parent54f9f5b5b39b3db894db5e95ea1c0e608fcd1c47 (diff)
downloadxcos-on-web-06984e364796201817c8f6ea5ca3fb86dc5eb7ba.tar.gz
xcos-on-web-06984e364796201817c8f6ea5ca3fb86dc5eb7ba.tar.bz2
xcos-on-web-06984e364796201817c8f6ea5ca3fb86dc5eb7ba.zip
Initial wires documentation draft
-rw-r--r--DOCUMENTATION.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md
new file mode 100644
index 0000000..32e1a12
--- /dev/null
+++ b/DOCUMENTATION.md
@@ -0,0 +1,34 @@
+# XCOS Wires Connection
+
+### 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.