-2

https://github.com/a115/HTML-SVG-connect I am using this plugin for draw draggable line. But this plugin don't give me the permission to recreate line after load svg. I want create line when click on two element.

mnjroy
  • 1
  • 4

2 Answers2

0
/*css*/
svg {
    width: 100% !important;
    height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}
mnjroy
  • 1
  • 4
-1
    addSvgInHere = function(_this, $element, $svg, defs, markerObjCircleS, circleObjS, markerObj, arrowObj) {
  timerId = setInterval(function(argument) {
    $element.append($svg);
              if ( $(_this).attr('data-trigger') != "true") { 
                $(defs).appendTo($svg);                        
                }       

              },500);
    setInterval(function (argument) {
                markerObjCircleS.appendChild(circleObjS);
                markerObj.appendChild(arrowObj);
                $(defs).append(markerObjCircleS);
                $(defs).append(markerObj);         
    },1000);
};
mnjroy
  • 1
  • 4