MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / inside

Function inside

graph-ui/src/galaxy/marker-names.ts:56–56  ·  view source on GitHub ↗
(rect: ScreenRect, bounds: ScreenRect)

Source from the content-addressed store, hash-verified

54const overlapArea = (a: ScreenRect, b: ScreenRect) => Math.max(0, Math.min(a.right, b.right) - Math.max(a.left, b.left))
55 * Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top));
56const inside = (rect: ScreenRect, bounds: ScreenRect) => rect.left >= bounds.left && rect.right <= bounds.right && rect.top >= bounds.top && rect.bottom <= bounds.bottom;
57const CENTRED: ReadonlySet<MarkerNameSlot> = new Set(['below', 'above', 'below-2', 'above-2']);
58/* Ein Name ueber oder unter seinem Ring rueckt seitlich in die Zeichenflaeche, solange er den Ring noch ueberspannt. */
59function nudged(marker: MarkerName, slot: MarkerNameSlot, bounds: ScreenRect): ScreenRect {

Callers 1

placeMarkerNamesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected