MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isCapId

Function isCapId

ui/src/lib/flow-model.ts:304–304  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

302/** The layout id of the cap hanging off `anchorId`, and the way back. */
303export const capId = (anchorId: string): string => `cap:${anchorId}`;
304export const isCapId = (id: string): boolean => id.startsWith('cap:');
305export const anchorOf = (id: string): string => (isCapId(id) ? id.slice(4) : id);
306
307/** Longest a connector label line may be before it is cut. */

Callers 2

anchorOfFunction · 0.85
buildFlowLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected