I have the functions for moving objects around in a figure. The figure is also populated by lines. I’m trying to attach one vertex to an object (or a position fixed relative to the object) so that when I drag that object, the line extends with it. I wouldn’t have trouble doing this, but the imline(.) function returns a line with no ‘Position’ property. Is there any other way to do this?
Share
You can get and set the position of the underlying line graphic object using the
getPositionandsetPositionmethods of the imline object. These should suffice to update the line as you drag the attached object.