(e: MouseEvent)
| 397 | const doc = this.contentDocument! |
| 398 | const { detecting, dragon } = this.designer |
| 399 | const hover = (e: MouseEvent) => { |
| 400 | if (!detecting.enable || this.designMode !== 'design') { |
| 401 | return |
| 402 | } |
| 403 | const nodeInstance = this.getNodeInstanceFromElement(e.target as Element) |
| 404 | if (nodeInstance?.node) { |
| 405 | const { node } = nodeInstance |
| 406 | detecting.capture(node) |
| 407 | } else { |
| 408 | detecting.capture(null) |
| 409 | } |
| 410 | if (dragon.dragging) { |
| 411 | e.stopPropagation() |
| 412 | } |
| 413 | } |
| 414 | const leave = () => { |
| 415 | this.project.currentDocument && detecting.leave(this.project.currentDocument) |
| 416 | } |
nothing calls this directly
no test coverage detected