MCPcopy Create free account
hub / github.com/microsoft/SandDance / intersectText

Function intersectText

docs/app/js/sanddance-app.js:123015–123018  ·  view source on GitHub ↗
(item, box)

Source from the content-addressed store, hash-verified

123013 return b15.contains(px4, py4);
123014}
123015function intersectText(item, box) {
123016 const p = bound(tempBounds, item, 2);
123017 return intersectBoxLine(box, p[0], p[1], p[2], p[3]) || intersectBoxLine(box, p[0], p[1], p[4], p[5]) || intersectBoxLine(box, p[4], p[5], p[6], p[7]) || intersectBoxLine(box, p[2], p[3], p[6], p[7]);
123018}
123019var text = {
123020 type: "text",
123021 tag: "text",

Callers

nothing calls this directly

Calls 2

boundFunction · 0.70
intersectBoxLineFunction · 0.70

Tested by

no test coverage detected