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

Function getId

packages/joint-react/src/data/create-ports-data.ts:23–25  ·  view source on GitHub ↗

* Helper function to get the id of a port element. * @param cellId - The id of the cell. * @param portId - The id of the port. * @returns The id of the port element. * @group utils * @category Port * @description * This function is used to get the id of a port element.

(cellId: dia.Cell.ID, portId: string)

Source from the content-addressed store, hash-verified

21 * This function is used to get the id of a port element.
22 */
23function getId(cellId: dia.Cell.ID, portId: string) {
24 return `${cellId}-${portId}`;
25}
26/**
27 * Creates a data structure to manage port elements in a JointJS graph.
28 * @returns An object with methods to set, get, clear, and delete port elements.

Callers 2

setFunction · 0.85
getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected