epubavocado
Version:
I am an EPUB object model aspiring to be standards compliant.
40 lines (39 loc) • 1.55 kB
JavaScript
;
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.SpineItem = 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 util_js_1 = require("./util.js");
var SpineItem = /** @class */ (function (_super) {
__extends(SpineItem, _super);
function SpineItem() {
return _super !== null && _super.apply(this, arguments) || this;
}
SpineItem.prototype.idref = function () {
var idref = this._resolve('./@idref');
return util_js_1.resolveIdref(this, idref);
};
SpineItem.prototype.linear = function () {
var linear = this._resolve('./@linear');
if (linear === 'no') {
return false;
}
return true;
};
return SpineItem;
}(properties_js_1.Properties(id_js_1.ID(entity_js_1.Entity))));
exports.SpineItem = SpineItem;