MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / fromDOM

Method fromDOM

apps/client/src/code/pages/page/space/rects.ts:28–33  ·  view source on GitHub ↗
(domRect: DOMRect)

Source from the content-addressed store, hash-verified

26 return this.fromDOM(domClientRect);
27 }
28 fromDOM(domRect: DOMRect) {
29 return new Rect(
30 new Vec2(domRect.left, domRect.top),
31 new Vec2(domRect.right, domRect.bottom),
32 );
33 }
34
35 clientToWorld(clientRect: Rect): Rect {
36 return new Rect(

Callers 6

fromDisplayMethod · 0.95
getOriginClientPosMethod · 0.80
getClientRectMethod · 0.80
getClientRectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected