MCPcopy
hub / github.com/neomjs/neo / includes

Method includes

src/util/Rectangle.mjs:140–145  ·  view source on GitHub ↗

* Checks if rect2 is fully contained inside rect1 * @param {Object} rect1 * @param {Object} rect2 * @returns {Boolean}

(rect1, rect2)

Source from the content-addressed store, hash-verified

138 * @returns {Boolean}
139 */
140 static includes(rect1, rect2) {
141 return rect1.bottom >= rect2.bottom
142 && rect1.left <= rect2.left
143 && rect1.right >= rect2.right
144 && rect1.top <= rect2.top;
145 }
146
147 /**
148 * Checks if rect2 is not contained inside rect1.

Callers 15

parseArgsFunction · 0.80
buildReportFunction · 0.80
prepare.mjsFile · 0.80
mainFunction · 0.80
watchThemes.mjsFile · 0.80
checkReactiveTagsFunction · 0.80
parseTokensFunction · 0.80
addReactiveTagsFunction · 0.80
jsdocx.mjsFile · 0.80
generateStructureFunction · 0.80
collectExampleRoutesFunction · 0.80
transformFunction · 0.80

Calls

no outgoing calls

Tested by 12

getFunction · 0.64
matchesWhereFunction · 0.64
getFunction · 0.64
getFunction · 0.64
getFunction · 0.64
stubMemoryCollectionFunction · 0.64
stubSummaryCollectionFunction · 0.64
getFunction · 0.64
getFunction · 0.64
buildSyntheticBundleFunction · 0.64
verifyLivePreviewPopoutFunction · 0.64
getCategoryFunction · 0.64