33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
import { globalThis } from './utils/server-safe-globals.js';
|
|
export declare const Attributes: {
|
|
PLACEHOLDER_SRC: string;
|
|
SRC: string;
|
|
};
|
|
/**
|
|
* @attr {string} placeholdersrc - Placeholder image source URL, often a blurhash data URL.
|
|
* @attr {string} src - Poster image source URL.
|
|
*
|
|
* @cssproperty --media-poster-image-display - `display` property of poster image.
|
|
* @cssproperty --media-poster-image-background-position - `background-position` of poster image.
|
|
* @cssproperty --media-poster-image-background-size - `background-size` of poster image.
|
|
* @cssproperty --media-object-fit - `object-fit` of poster image.
|
|
* @cssproperty --media-object-position - `object-position` of poster image.
|
|
*/
|
|
declare class MediaPosterImage extends globalThis.HTMLElement {
|
|
static get observedAttributes(): string[];
|
|
image: HTMLImageElement;
|
|
constructor();
|
|
attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string | null): void;
|
|
/**
|
|
*
|
|
*/
|
|
get placeholderSrc(): string | undefined;
|
|
set placeholderSrc(value: string | undefined);
|
|
/**
|
|
*
|
|
*/
|
|
get src(): string | undefined;
|
|
set src(value: string | undefined);
|
|
}
|
|
export default MediaPosterImage;
|