UNPKG

epubavocado

Version:

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

18 lines (17 loc) 507 B
import { Entity } from '../mixins/entity.js'; import { ID } from './mixins/id.js'; import { Properties } from './mixins/properties.js'; import { resolveIdref } from './util.js'; export class SpineItem extends Properties(ID(Entity)) { idref() { const idref = this._resolve('./@idref'); return resolveIdref(this, idref); } linear() { const linear = this._resolve('./@linear'); if (linear === 'no') { return false; } return true; } }