Assume I have a digram 6x6.
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
I insert a Shape 3x3
square into this document in the bottom right.
| | | | | | |
| | | | | | |
| | | | | | |
| | | |o|o|o|
| | | |o|x|o|
| | | |o|o|o|
Problem: When I hover over this shape using mouseHover
, how do I retrieve the center coordinate of the shape relative to the document (the x
), ie. (5,5)?
Currently, if I perform getDocumentPoint(go.Spot.Center)
on the Shape
it returns me the coordinates of the center relative to the shape, (2,2). But I am looking for the coordinates relative to the entire diagram.
e.viewPoint
only returns the center coordinates relative to the entire diagram.