README
asset-view (OperationClassification ui-cjs)
AssetView
shows an asset. Every file-format has a different way to be rendered.
Input | ||
---|---|---|
asset | Asset | |
Output | { src?: string, downloadUrl?: string, } |
Get remote url for a BackendAsset in an AugmentedAnyModelType
database model item.
If you provide an array it'll take the first asset.
Input | ||
---|---|---|
config | { item: AugmentedAnyModelType , backendAsset?: { }, isDownload?: boolean, } | |
Output | string |
<ModelItemAssetView />
Input | ||
---|---|---|
- | ||
Output | JSX.Element |
Get remote url for a BackendAsset in an AugmentedAnyModelType
database model item.
If you provide an array it'll take the first asset.
<AssetView />
Input | ||
---|---|---|
props | { asset: Asset, className?: string, projectRelativeReferencingFilePath?: string, hideDownloadLink?: boolean, } | |
Output | JSX.Element |
<InteractiveAsset />
shows an Asset with interactivity
- Any file shows the name of the file, the size, and a link to open it in a new tab in the browser
- Images show thumbnail
- Audio show duration and amplitude
- Video/screen show thumbnail and duration
Input | ||
---|---|---|
- | ||
Output | JSX.Element |
Input | ||
---|---|---|
asset (optional) | Asset | |
Output | { rawText?: { }, type?: video / audio / image / text / other, downloadUrl?: string, src?: string, extension?: string, } |
shows an Asset with interactivity
- Any file shows the name of the file, the size, and a link to open it in a new tab in the browser
- Images show thumbnail
- Audio show duration and amplitude
- Video/screen show thumbnail and duration
Show internal (3)
Input | ||
---|---|---|
url (optional) | string | |
Output | { rawText?: { }, type: video / audio / image / text / other, } |
README
asset-view (OperationClassification ui-cjs)
AssetView
shows an asset. Every file-format has a different way to be rendered.
Input | ||
---|---|---|
asset | Asset | |
Output | { src?: string, downloadUrl?: string, } |
Get remote url for a BackendAsset in an AugmentedAnyModelType
database model item.
If you provide an array it'll take the first asset.
Input | ||
---|---|---|
config | { item: AugmentedAnyModelType , backendAsset?: { }, isDownload?: boolean, } | |
Output | string |
<ModelItemAssetView />
Input | ||
---|---|---|
- | ||
Output | JSX.Element |
Get remote url for a BackendAsset in an AugmentedAnyModelType
database model item.
If you provide an array it'll take the first asset.
<AssetView />
Input | ||
---|---|---|
props | { asset: Asset, className?: string, projectRelativeReferencingFilePath?: string, hideDownloadLink?: boolean, } | |
Output | JSX.Element |
<InteractiveAsset />
shows an Asset with interactivity
- Any file shows the name of the file, the size, and a link to open it in a new tab in the browser
- Images show thumbnail
- Audio show duration and amplitude
- Video/screen show thumbnail and duration
Input | ||
---|---|---|
- | ||
Output | JSX.Element |
Input | ||
---|---|---|
asset (optional) | Asset | |
Output | { rawText?: { }, type?: video / audio / image / text / other, downloadUrl?: string, src?: string, extension?: string, } |
shows an Asset with interactivity
- Any file shows the name of the file, the size, and a link to open it in a new tab in the browser
- Images show thumbnail
- Audio show duration and amplitude
- Video/screen show thumbnail and duration
Show internal (3)
Input | ||
---|---|---|
url (optional) | string | |
Output | { rawText?: { }, type: video / audio / image / text / other, } |