UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

24 lines (23 loc) 824 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Rootfile = void 0; /** * The `<rootfile>` element describes each top-level file in the MusicXML container. * * See https://www.w3.org/2021/06/musicxml40/container-reference/elements/rootfile/. */ class Rootfile { element; constructor(element) { this.element = element; } /** Returns the full path of the root file. Defaults to empty string. */ getFullPath() { return this.element.attr('full-path').withDefault('').str(); } /** Returns the media type of the root file. Defaults to 'application/vnd.recordare.musicxml+xml'. */ getMediaType() { return this.element.attr('media-type').withDefault('application/vnd.recordare.musicxml+xml').str(); } } exports.Rootfile = Rootfile;