@paperbits/core
Version:
Paperbits core components.
41 lines (34 loc) • 796 B
text/typescript
import { HyperlinkModel } from "@paperbits/common/permalinks";
import { LocalStyles } from "@paperbits/common/styles";
/**
* Picture widget model.
*/
export class PictureModel {
/**
* Key of the permalink referencing the source of the picture.
*/
public sourceKey: string;
/**
* Caption on the picture, used also as alternative text.
*/
public caption: string;
/**
* Hyperlink attached to the picture.
*/
public hyperlink: HyperlinkModel;
/**
* Picture width.
*/
public width: number;
/**
* Picture height.
*/
public height: number;
/**
* Picture styles.
*/
public styles: LocalStyles;
constructor() {
this.styles = {};
}
}