A slot that can display a 2D try-on. See: SlotLayout.

Hierarchy

Constructors

Properties

avatarUrl?: string | Blob

The url from which the avatar should be downloaded from.

backgroundHidden: boolean = true

A boolean indicating if the avatar's background should be visible.

frame?: Rectangle

Define the frame in which a slot is rendered.

garmentUrls: (string | Blob)[] = []

An array of urls that point to the garments used for the try-on. The order of the garment dictates the layering, while the last one in the list will be rendered on the outer most. These are only rendered if an avatar was set.

padding: number = 0

A normalized float defining the padding of the avatar to the border. Default value is 0.

scalingMode?: ScalingMode

Define the scaling mode of the slot.

sizeVisualization?: SizeVisualisationRequestSlot

Size visualisation request for a given garment. If enabled the visualisation is done for the last garment in the array.

type: SlotType

Used internally to communicate the the slot type with the compute server.

zoomToAvatar: boolean = true

A boolean indicating if the avatar is zoomed or not. Default value is true.

Generated using TypeDoc