MCPcopy
hub / github.com/clientIO/joint / useCellId

Function useCellId

packages/joint-react/src/hooks/use-cell-id.ts:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 * ```
19 */
20export function useCellId(): dia.Cell.ID {
21 const id = useContext(CellIdContext);
22 if (id === undefined) {
23 throw new Error('useCellId is not used inside paper context');
24 }
25 return id;
26}

Callers 12

RawComponentFunction · 0.90
ComponentFunction · 0.90
ComponentFunction · 0.90
ComponentFunction · 0.90
useElementFunction · 0.90
HookFunction · 0.90
useMeasureNodeSizeFunction · 0.90
RenderElementFunction · 0.90
MessageComponentFunction · 0.90
TableElementFunction · 0.90
MessageComponentFunction · 0.90
TableElementFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected