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

Method getOriginClientPos

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

Source from the content-addressed store, hash-verified

145 }
146
147 getOriginClientPos() {
148 const originElem = document.querySelector(
149 `.display-page[data-page-id="${this.id}"] .dom-viewbox`,
150 );
151
152 if (originElem == null) {
153 return;
154 }
155
156 return this.rects.fromDOM(originElem.getBoundingClientRect()).topLeft;
157 }
158 getOriginWorldPos() {
159 return new Vec2();
160 }

Callers

nothing calls this directly

Calls 1

fromDOMMethod · 0.80

Tested by

no test coverage detected