()
| 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 | } |