UNPKG

@plattar/plattar-web

Version:

Module for interfacing with the Plattar Embeds and Web Viewers (https://www.plattar.com)

33 lines (28 loc) 643 B
const BaseElement = require("./base/base-element.js"); class ViewerElement extends BaseElement { constructor() { super(); } get permissions() { return ["autoplay"]; } get elementType() { return "viewer"; } get optionalAttributes() { return [{ key: "variation-id", map: "variationId" }, { key: "variation-sku", map: "variationSku" }, { key: "product-id", map: "productId" }, { key: "show-ar", map: "show_ar" }]; } } module.exports = ViewerElement;