Skip to main content

cylindo-external-media

The cylindo-external-media is used to embed a Cylindo hosted external media into your cylindo-viewer. Related example

Attributes

content-id

The content ID for the cylindo external media.

Default valueOptions
""string

alt

Alternative text for the viewer. This is used by screen readers.

Default valueOptions
""string

thumbnail-crop

Configures how the external media thumbnail gets displayed in the thumbnail-bar. The value comprises of 3 to 4 numbers between 0 and 1 separated by a comma, in the following order:

"x, y, width, height (optional)"

  • x, y: the relative position of the top left corner of the crop
  • width: the relative width of the crop
  • height (optional): the relative height of the crop. It will default to width if omitted.
Default valueOptions
"""number, number, number[, number]"

display-mode

Configures how the material swatch is displayed in the content area of the Viewer. Defaults to "fit-inside-viewer".

OptionDescription
"cover-viewer"Fills the viewer's viewport, possibly altering aspect ratio.
"fit-inside-viewer"Maintains the original aspect ratio within the viewport.

original-dimensions

The original dimensions of the uploaded media. This information is used to limit the rendered size of the media, in the case its dimensions are not large enough to cover or fit the full size of the viewer.

If this attribute is omitted, the media will cover or fit the viewer regardless of its original resolution.The value comprises of positive 2 numbers, in the following order:

"width, height"

Default valueOptions
None"number, number"