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

Function getCell

packages/joint-react/src/utils/cell/get-cell.ts:93–100  ·  view source on GitHub ↗
(
  cell: dia.Cell<dia.Cell.Attributes>
)

Source from the content-addressed store, hash-verified

91 * ```
92 */
93export function getCell<Element extends GraphElement = GraphElement>(
94 cell: dia.Cell<dia.Cell.Attributes>
95): GraphCell<Element> {
96 if (cell.isElement()) {
97 return getElement<Element>(cell);
98 }
99 return getLink(cell);
100}

Callers 1

get-cell.test.tsFile · 0.90

Calls 2

getElementFunction · 0.70
getLinkFunction · 0.70

Tested by

no test coverage detected