Skip to main content

Function: getEnabledElementByIds()

getEnabledElementByIds(viewportId, renderingEngineId): IEnabledElement

Similar to getEnabledElement, but takes the IDs of the renderingEngine and viewport as parameters to return the associated EnabledElement.

Parameters

viewportId: string

The Id of the viewport

renderingEngineId: string

The Id of the rendering engine.

Returns

IEnabledElement

The enabled element which is an object that contains the viewport, rendering engine, viewport Id, rendering engine Id, and the Frame of Reference UID.

Defined in

packages/core/src/getEnabledElement.ts:56