MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / box

Function box

dashboard/test/graph-logic.test.mjs:13–15  ·  view source on GitHub ↗
(id, { priority = 4, degree = 0, left = 0, top = 0, width = 60, height = 12, sticky } = {})

Source from the content-addressed store, hash-verified

11const labels = await importBundledModule(labelPath);
12
13function box(id, { priority = 4, degree = 0, left = 0, top = 0, width = 60, height = 12, sticky } = {}) {
14 return { id, priority, degree, left, top, right: left + width, bottom: top + height, sticky };
15}
16
17test("default view limits stay within the canvas budget", () => {
18 const { limit_nodes, limit_edges } = view.DEFAULT_VIEW_LIMITS;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected