MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / getRect

Method getRect

packages/core/src/document/node/node.ts:602–607  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

600 }
601
602 getRect() {
603 if (this.isRoot) {
604 return this.document.simulator?.viewport.contentBounds || null
605 }
606 return this.document.simulator?.computeRect(this) || null
607 }
608
609 getDOMNode() {
610 return this.document.simulator?.getComponentInstances(this)

Callers

nothing calls this directly

Calls 1

computeRectMethod · 0.45

Tested by

no test coverage detected