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

Method getContainerClientRect

apps/client/src/code/pages/page/page.ts:126–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 readonly arrowCreation: PageArrowCreation;
125
126 getContainerClientRect() {
127 const pageElem = document.querySelector(
128 `.display-page[data-page-id="${this.id}"]`,
129 );
130
131 if (pageElem == null) {
132 return;
133 }
134
135 return this.rects.fromDOM(pageElem.getBoundingClientRect());
136 }
137 getContainerWorldRect() {
138 const containerClientRect = this.getContainerClientRect();
139

Callers 1

getContainerWorldRectMethod · 0.95

Calls 1

fromDOMMethod · 0.80

Tested by

no test coverage detected