You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying the examples provided and changed the code to make a line itself draggable:
svg.addLine({p1: A, p2: B, draggable: true});
But clicking the line does not work.
Full code:
var sgv_width = 300;
var sgv_height = 300;
(function() {
var svg = InteractiveSVG.create('svg-3', sgv_width, sgv_height);
var A = svg.addPoint({ x: 40, y: 75 });
var B = svg.addPoint({ x: 160, y: 75 });
svg.addLine({p1: A, p2: B, draggable: true}); // seems not to work
})();
How to make the line itself draggable?
The text was updated successfully, but these errors were encountered:
I am trying the examples provided and changed the code to make a line itself draggable:
svg.addLine({p1: A, p2: B, draggable: true});
But clicking the line does not work.
Full code:
How to make the line itself draggable?
The text was updated successfully, but these errors were encountered: