Sha256: 3aa0a49ad96941ab09b5da64d93e068bcec9025a14187118a6c17dcf7ff18e3e
Contents?: true
Size: 1.5 KB
Versions: 6
Compression:
Stored size: 1.5 KB
Contents
var jspSourceTarget = { dropOptions: { hoverClass:"dragHover" }, anchor: "Continuous" }; var jspDefaults = { Connector: ["Bezier", {curviness: 50}], DragOptions: {cursor: "pointer", zIndex: 2000}, PaintStyle: {strokeStyle: "gray", lineWidth: 2}, Endpoint: ["Dot",{radius: 1}], EndpointStyle: {radius: 1, fillStyle: "gray"}, HoverPaintStyle: {strokeStyle: "#ec9f2e"}, EndpointHoverStyle: {fillStyle: "#ec9f2e"}, Anchors: ["BottomCenter", "TopCenter"] }; var jspReferenceConnection = { overlays: ["Arrow", [ "Label", {label: "?", location: 0.25, id: "myLabel"} ]] } var jspInstanceOfConnection = { overlays: ["Arrow", [ "Label", {label: "?", location: 0.25, id: "myLabel"} ]], paintStyle: { lineWidth: 2, strokeStyle:"#9b59bb", dashstyle:"4 2", joinstyle:"miter" } }; var jspConnection = { "iv": jspReferenceConnection, "hash_key": jspReferenceConnection, "hash_value": jspReferenceConnection, "array_element": jspReferenceConnection, "class": jspInstanceOfConnection } function jsPlumbPrepareWindow(obj) { jsPlumb.draggable(obj); jsPlumb.makeTarget(obj, jspSourceTarget); jsPlumb.makeSource(obj, jspSourceTarget); } ;(function() { window.plumbGraph = { init: function() { jsPlumb.importDefaults(jspDefaults); } }; })(); jsPlumb.bind("ready", function() { // chrome fix (from demo page) document.onselectstart = function() { return false; }; jsPlumb.setRenderMode(jsPlumb.SVG); plumbGraph.init(); });
Version data entries
6 entries across 6 versions & 2 rubygems