* 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)
| 21 | * This function is used to get the id of a port element. |
| 22 | */ |
| 23 | function 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. |