jnobre / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

Connector gap option for source and target #322

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to set the gap between the endpoint and the connector for both 
the source and target, like we can with the stub.

Original issue reported on code.google.com by codefabr...@gmail.com on 20 Feb 2013 at 10:45

Attachments:

GoogleCodeExporter commented 8 years ago
Something like this:

    jsPlumb.importDefaults({
        Anchors: ["RightMiddle", "LeftMiddle"],
        DragOptions: { cursor: "pointer", zIndex: 99999 },
        EndpointStyles: [{ fillStyle: "#000" }, { fillStyle: "#000" }],
        Endpoints: [["Rectangle", { width: 5, height: 5 }], ["Rectangle", { width: 5, height: 5 }]],
        Connector: ["Flowchart", { stub: [100, 100], gap: [20 ,30] }],
        Overlays: [["Arrow", { location: 1,length:10, width:10 }]],
        PaintStyle: {
            strokeStyle: "#000",
            lineWidth: 2
        }
    });

Original comment by codefabr...@gmail.com on 20 Feb 2013 at 10:47

GoogleCodeExporter commented 8 years ago
yes, it would be nice.  i just pushed a change with support for that.

Original comment by simon.po...@gmail.com on 20 Feb 2013 at 11:00

GoogleCodeExporter commented 8 years ago
Thanks, looking forward to it!

Original comment by codefabr...@gmail.com on 20 Feb 2013 at 11:10

GoogleCodeExporter commented 8 years ago
Is this fix already available for download?

Original comment by codefabr...@gmail.com on 4 Mar 2013 at 2:25