UNPKG

epubavocado

Version:

I am an EPUB object model aspiring to be standards compliant.

38 lines (37 loc) 1.64 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ManifestItem = void 0; var entity_js_1 = require("../mixins/entity.js"); var id_js_1 = require("./mixins/id.js"); var properties_js_1 = require("./mixins/properties.js"); var resource_js_1 = require("../mixins/resource.js"); var util_js_1 = require("./util.js"); var ManifestItem = /** @class */ (function (_super) { __extends(ManifestItem, _super); function ManifestItem() { return _super !== null && _super.apply(this, arguments) || this; } ManifestItem.prototype.mediaOverlay = function () { var idref = this._resolve('./@media-overlay'); return util_js_1.resolveIdref(this, idref); }; ManifestItem.prototype.fallback = function () { var idref = this._resolve('./@fallback'); return util_js_1.resolveIdref(this, idref); }; return ManifestItem; }(resource_js_1.Resource(properties_js_1.Properties(id_js_1.ID(entity_js_1.Entity))))); exports.ManifestItem = ManifestItem;