MCPcopy Index your code
hub / github.com/microsoft/SandDance / isInMarkBound

Function isInMarkBound

docs/app/js/sanddance-app.js:139044–139046  ·  view source on GitHub ↗
(x1, y1, x2, y2, boundary)

Source from the content-addressed store, hash-verified

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}
139044function isInMarkBound(x1, y1, x2, y2, boundary) {
139045 return boundary[0] <= x1 && x2 <= boundary[2] && boundary[3] <= y1 && y2 <= boundary[5];
139046}
139047const TOP = 0x0, MIDDLE = 0x4, BOTTOM = 0x8, LEFT = 0x0, CENTER = 0x1, RIGHT = 0x2; // Mapping from text anchor to number representation
139048const anchorCode = {
139049 "top-left": TOP + LEFT,

Callers 1

testFunction · 0.70

Calls

no outgoing calls

Tested by 1

testFunction · 0.56