MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / getClientRectAsync

Function getClientRectAsync

packages/@stdlib/misc/src/client-rect.ts:24–36  ·  view source on GitHub ↗
(target: Element)

Source from the content-addressed store, hash-verified

22);
23
24export function getClientRectAsync(target: Element) {
25 let resolvable = _getIntersectionResolvables().get(target);
26
27 if (resolvable == null) {
28 resolvable = new Resolvable<DOMRectReadOnly>();
29
30 _getIntersectionResolvables().set(target, resolvable);
31
32 _getIntersectionObserver().observe(target);
33 }
34
35 return resolvable;
36}
37
38export function getClientRectsAsync(targets: Element[]) {
39 return Promise.all(targets.map(getClientRectAsync));

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected