SDK
API Documentation
asset-core
namespaces
AssetCoreMapper
classes
Assetdetailmapper

Class: AssetDetailMapper

Constructors

new AssetDetailMapper()

new AssetDetailMapper(config): AssetDetailMapper

Parameters

ParameterType
configConfigInterface

Returns

AssetDetailMapper

Defined in

api/mapper/AssetDetailMapper.ts:18 (opens in a new tab)

Methods

fromApi()

fromApi(groupedAsset, lifecycle): RenderableAssetArtifacts

Parameters

ParameterType
groupedAssetAssetFragment
lifecycleAssetProcessLifecycle

Returns

RenderableAssetArtifacts

Defined in

api/mapper/AssetDetailMapper.ts:20 (opens in a new tab)


getFirstRenderableAddressInArtifact()

getFirstRenderableAddressInArtifact(artifact): undefined | RenderableAddress3DTiles | RenderableAddress

For a given artifact, find the first containing a streamable address that we can use to render it.

Parameters

ParameterType
artifactAssetArtifactFragment

Returns

undefined | RenderableAddress3DTiles | RenderableAddress

Defined in

api/mapper/AssetDetailMapper.ts:87 (opens in a new tab)