MCPcopy Index your code
hub / github.com/clientIO/joint / getElement

Function getElement

packages/joint-react/src/data/create-store.ts:217–224  ·  view source on GitHub ↗
(id: dia.Cell.ID)

Source from the content-addressed store, hash-verified

215 return data.links;
216 },
217 getElement<E extends GraphElement>(id: dia.Cell.ID) {
218 const item = data.elements.get(id);
219
220 if (!item) {
221 throw new Error(`Element with id ${id} not found`);
222 }
223 return item as E;
224 },
225 getLink(id) {
226 const item = data.links.get(id);
227 if (!item) {

Callers 1

useElementFunction · 0.50

Calls 1

getMethod · 0.45

Tested by

no test coverage detected