Home > @jsplumbtoolkit/core > JsPlumbToolkit > getObjectInfo
JsPlumbToolkit.getObjectInfo() method
Finds information related to the given object, which may be an existing Toolkit object, a Node/Group/Edge id, or the backing data for some object.
Signature:
getObjectInfo<T>(obj: string | Edge | Node | Port | Group | ObjectData): ObjectInfo<T>;
Parameters
Parameter | Type | Description |
---|---|---|
obj | string | Edge | Node | Port | Group | ObjectData | A Node/Group/Edge id, or Node, Port, Group or Edge |
Returns:
ObjectInfo<T>
A JS object containing obj
(the Toolkit object), id
(the Node/Port/Group/Edge ID), type
("Port", "Node", "Group", "Edge")