IPublisherImageSlotV1
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Slot rendering an image.
export interface IPublisherImageSlotV1 extends IPublisherSlotBaseV1
Extends: IPublisherSlotBaseV1
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
string | (ALPHA) (Optional) | ||
(ALPHA) (Optional) How the image fills the slot area. Defaults to “contain”. | |||
(ALPHA) (Optional) Undefined = declared-but-empty slot. | |||
(ALPHA) (Optional) Placement overrides for the drawn image; centered on both axes by default. | |||
“image” | (ALPHA) |
Property details
IPublisherImageSlotV1.altTextpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
altText?: string;
IPublisherImageSlotV1.fitpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
How the image fills the slot area. Defaults to “contain”.
fit?: PublisherImageFitV1;
IPublisherImageSlotV1.sourcepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Undefined = declared-but-empty slot.
source?: PublisherImageSourceV1;
IPublisherImageSlotV1.stylepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Placement overrides for the drawn image; centered on both axes by default.
style?: IPublisherImageStyleV1;
IPublisherImageSlotV1.typepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
type: "image";