| 139042 | return !(bm0.outOfBounds(_x1, _y1, _x2, _y2) || (isInside && bm1 ? bm1.getRange(_x1, _y1, _x2, _y2) || !isInMarkBound(x1, y1, x2, y2, boundary) : bm0.getRange(_x1, _y1, _x2, _y2))); |
| 139043 | } |
| 139044 | function isInMarkBound(x1, y1, x2, y2, boundary) { |
| 139045 | return boundary[0] <= x1 && x2 <= boundary[2] && boundary[3] <= y1 && y2 <= boundary[5]; |
| 139046 | } |
| 139047 | const TOP = 0x0, MIDDLE = 0x4, BOTTOM = 0x8, LEFT = 0x0, CENTER = 0x1, RIGHT = 0x2; // Mapping from text anchor to number representation |
| 139048 | const anchorCode = { |
| 139049 | "top-left": TOP + LEFT, |