MCPcopy Create free account
hub / github.com/WhiteSevs/TamperMonkeyScript / getTextBoundingRect

Method getTextBoundingRect

lib/DOMUtils/src/index.ts:1706–1848  ·  view source on GitHub ↗

* 获取文字的位置信息 * @param $input 输入框 * @param selectionStart 起始位置 * @param selectionEnd 结束位置 * @example * DOMUtils.getTextBoundingRect(document.querySelector("input"));

(
    $input: HTMLInputElement,
    selectionStart?: number | string,
    selectionEnd?: number | string
  )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

collapseMethod · 0.80
appendChildMethod · 0.80
removeChildMethod · 0.80
minMethod · 0.45
createElementMethod · 0.45

Tested by

no test coverage detected