Skip to content
Permalink
Browse files

Set arrow style see BT#12861

  • Loading branch information...
jmontoyaa committed Jun 28, 2017
1 parent b480670 commit 7510d11767bb86fd37541dc5047b5a932a79e023
Showing with 32 additions and 3 deletions.
  1. +32 −3 main/inc/lib/career.lib.php
@@ -601,15 +601,44 @@ public static function createConnection($source, $target, $anchor = [])
}
$anchor = implode('","', $anchor);
$html = '<script> jsPlumb.ready(function() { ';
$html = '<script>
var connectorPaintStyle = {
strokeWidth: 2,
stroke: "#a31ed3",
joinstyle: "round",
outlineStroke: "white",
outlineWidth: 2
},
// .. and this is the hover style.
connectorHoverStyle = {
strokeWidth: 3,
stroke: "#216477",
outlineWidth: 5,
outlineStroke: "white"
},
endpointHoverStyle = {
fill: "#E80CAF",
stroke: "#E80CAF"
};
jsPlumb.ready(function() { ';
$html .= 'jsPlumb.connect({
source:"'.$source.'",
target:"'.$target.'",
endpoint:[ "Rectangle", { width:1, height:1 }],
connector: ["Flowchart"],
connector: ["Flowchart"],
paintStyle: connectorPaintStyle,
hoverPaintStyle: endpointHoverStyle,
anchor: ["'.$anchor.'"],
overlays: [
[ "Arrow", { location:0.5 } ],
[
"Arrow",
{
location:1,
width:11,
length:11
}
],
],
});';
$html .= '});</script>'.PHP_EOL;

0 comments on commit 7510d11

Please sign in to comment.
You can’t perform that action at this time.