import * as ko from "knockout"; import template from "./picture.html"; import { Component } from "@paperbits/common/ko/decorators"; import { HyperlinkModel } from "@paperbits/common/permalinks"; import { StyleModel } from "@paperbits/common/styles"; import { MediaVariantModel } from "../mediaVariantModel"; @Component({ selector: "paperbits-picture", template: template, }) export class Picture { public readonly sourceUrl: ko.Observable; public readonly caption: ko.Observable; public readonly hyperlink: ko.Observable; public readonly variants: ko.Observable; public readonly width: ko.Observable; public readonly height: ko.Observable; public readonly styles: ko.Observable; constructor() { this.sourceUrl = ko.observable(); this.caption = ko.observable(); this.hyperlink = ko.observable(); this.variants = ko.observable(); this.width = ko.observable(); this.height = ko.observable(); this.styles = ko.observable(); } }