Skip to content

Function: textLinkAt() ​

ts
function textLinkAt(lines, base, dx, dy, oracle?): TextLink | null;

Experimental

The link under a point, for pointer handling: dx, dy are the point's offset from the label anchor in screen px (+y down), before the label's offset and rotation (angle, degrees clockwise) are undone here. null when no linked run is there.

Parameters ​

ParameterType
linesTextRunLines
baseTextRunBase & object
dxnumber
dynumber
oracle?FontMetricsOracle

Returns ​

TextLink | null

Released under the MIT License.