Hi!
I’m creating a Tool for reshaping a link and I need to create a handle and position it based on the document position.
Right now, the way it’s placing is not based on the document coordinates.
I’m using adornment.position = midPoint.
const adornment = new go.Adornment()
adornment.type = go.Panel.Link
const h = this.makeHandle(pathshape, 0)
this.setReshapingBehavior(h, go.LinkReshapingTool.All)
h.cursor = 'move'
adornment.add(h)
adornment.location = midPoint
adornment.isGeometryPositioned = true
adornment.category = this.name
adornment.adornedObject = pathshape
return adornment
How can solve this?
Thanks!