positionToolTip method
This is called by #showToolTip to position the part within the viewport. It normally goes just below the cursor. But if the mouse is too close to the right edge or the bottom edge of the viewport, it is positioned left and/or above the cursor.
This method only operates if the tooltip, an Adornment, does not have a Adornment#placeholder. When there is a Placeholder in the tooltip, that Adornment is automatically positioned so that the Placeholder is positioned at the adorned object, the second argument to this method.
This method may be overridden. Please read the Introduction page on Extensions for how to override methods and how to call this base method.
If you override this method to position the tooltip, the tooltip has already been measured but not arranged, so you can use its GraphObject#measuredBounds width and height but not its GraphObject#actualBounds. @expose @param {Adornment} tooltip @param {GraphObject} obj The GraphObject getting the tooltip, or null if the tooltip is for the diagram background.
Implementation
void positionToolTip(
_i3.Adornment tooltip,
_i3.GraphObject obj,
) {
_i4.callMethod(
this,
'positionToolTip',
[
tooltip,
obj,
],
);
}