(
pointerCheckerEl: Group
)
| 127 | } |
| 128 | |
| 129 | export function createIsInSelfByPointerCheckerEl( |
| 130 | pointerCheckerEl: Group |
| 131 | ): RoamOption['triggerInfo']['isInSelf'] { |
| 132 | return function (e, x, y) { |
| 133 | tmpRectCII.copy(pointerCheckerEl.getBoundingRect()); |
| 134 | tmpRectCII.applyTransform(pointerCheckerEl.getComputedTransform()); |
| 135 | return tmpRectCII.contain(x, y); |
| 136 | }; |
| 137 | } |
| 138 | const tmpRectCII = new BoundingRect(0, 0, 0, 0); |
| 139 | |
| 140 | export function registerRoamActionSimply( |
no test coverage detected
searching dependent graphs…