ville.Connect

ville.Connect

ville.Connect is a Qooxdoo control designed to visually connect widgets on a canvas type layout.

The Big Idea

Create a diagram/workflow/mindmap, tool/widget/capability using 100% Qooxdoo code and objects. No SVG or Canvas HTML tags, if at all possible.

Demos

Demo

Define a connection object

Example of two ui objects connected by a single connector:

"connections" : [
  {
    elementA : widget1,
    elementB : widget2,
    properties : {
      appearance : "connector",
      decorator : "connector-solid"
    },
    options : {
      anchorA: "horizontal",  
      anchorAposition: "center-top",
      anchorB : "horizontal",
      anchorBposition: "center",
      anchorAoffsetTop: 10,
      anchorAoffsetLeft: 10,
      anchorBoffsetTop: 10,
      anchorBoffsetLeft: 10,
      strokeWidth: 8,
      startArrow: "dark-arrow",
      startArrowsize: 32,
      endArrow: "dark-arrow",
      endArrowsize: 32
    }
  }
]

Roadmap

Note: Limitations are due to object creation (elements, connections and arrows) only occuring during the initial loading of the diagrams. The demo application tool can only edit what has been initially created.

License

Distributed under the MIT License. See LICENSE for more information.

Attribution

Inspired by and learned from this project: jqSimpleConnect