@barmark/render 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +104 -0
- package/LICENSE +21 -0
- package/README.md +158 -1
- package/dist/chord.d.ts +18 -0
- package/dist/chord.js +24 -0
- package/dist/element.d.ts +16 -0
- package/dist/element.js +162 -0
- package/dist/escape.d.ts +2 -0
- package/dist/escape.js +9 -0
- package/dist/font.d.ts +8 -0
- package/dist/font.js +11 -0
- package/dist/html.d.ts +16 -0
- package/dist/html.js +200 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +4 -0
- package/dist/model.d.ts +2 -0
- package/dist/model.js +248 -0
- package/dist/speech.d.ts +10 -0
- package/dist/speech.js +113 -0
- package/dist/styles.d.ts +16 -0
- package/dist/styles.js +130 -0
- package/dist/types.d.ts +56 -0
- package/dist/types.js +1 -0
- package/fonts/Edwin-Roman.otf +0 -0
- package/fonts/OFL.txt +93 -0
- package/fonts/README.md +16 -0
- package/package.json +56 -1
package/dist/styles.js
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { FONT_FAMILY } from "./font.js";
|
|
2
|
+
/**
|
|
3
|
+
* The chart's styles. Everything is sized in em from `--barmark-size`, so
|
|
4
|
+
* text size and zoom scale the chart; colours come from the palettes below
|
|
5
|
+
* unless the page sets the `--barmark-*` custom properties.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Text sizes as fractions of the chord size, `--barmark-size` (1rem unless
|
|
9
|
+
* the page sets it). Chosen on barmark.dev, 2026-11-01: at the default size
|
|
10
|
+
* nothing a reader needs is under 12px. The superscript is a fraction of its
|
|
11
|
+
* chord and the octave of its note name; everything else of the chord size.
|
|
12
|
+
*/
|
|
13
|
+
const SIZES = {
|
|
14
|
+
title: 1.16,
|
|
15
|
+
meta: 1,
|
|
16
|
+
directive: 0.97,
|
|
17
|
+
heading: 0.77,
|
|
18
|
+
text: 0.9,
|
|
19
|
+
noChord: 1.03,
|
|
20
|
+
noteNames: 0.9,
|
|
21
|
+
superscript: 0.84,
|
|
22
|
+
octave: 0.79,
|
|
23
|
+
tuplet: 0.84,
|
|
24
|
+
repeat: 0.97,
|
|
25
|
+
diagnostics: 0.97,
|
|
26
|
+
barNumber: 0.84,
|
|
27
|
+
meter: 0.77,
|
|
28
|
+
cut: 0.77,
|
|
29
|
+
};
|
|
30
|
+
/** Lengths, in chord sizes: the bar-number gutter, the narrowest bar (a D7sus4 bar), the gap under a heading. */
|
|
31
|
+
const GUTTER = 2.06;
|
|
32
|
+
export const MIN_BAR = 4.68;
|
|
33
|
+
const HEADING_GAP = 0.645;
|
|
34
|
+
/** The single note's ring, in its own em: padding, and the border it spills past. */
|
|
35
|
+
const RING = { y: 0.21, x: 0.5, border: 0.07 };
|
|
36
|
+
const em = (n) => `${Number(n.toFixed(3))}em`;
|
|
37
|
+
/** A length in chord sizes, in the em of text at `size`. */
|
|
38
|
+
const at = (size, length) => em(length / size);
|
|
39
|
+
/** Both pass WCAG AA on their paper (tests/contrast.test.ts). */
|
|
40
|
+
export const PALETTES = {
|
|
41
|
+
light: { ink: "#1d1d1f", paper: "#fffdf8", muted: "#6a6052", rule: "#4a4a4a", accent: "#9a4a12" },
|
|
42
|
+
dark: { ink: "#ece8e0", paper: "#1b1a18", muted: "#a8a092", rule: "#8f897f", accent: "#e8a56a" },
|
|
43
|
+
};
|
|
44
|
+
/** Section widths, in em, at which a section stops aligning columns and wraps its rows. */
|
|
45
|
+
export const FIT_STEPS = Array.from({ length: 23 }, (_, i) => 8 + i * 4);
|
|
46
|
+
const colours = (p) => Object.keys(p)
|
|
47
|
+
.map((k) => `--bm-${k}:var(--barmark-${k},${p[k]});`)
|
|
48
|
+
.join("");
|
|
49
|
+
const SANS = `system-ui,-apple-system,"Segoe UI",sans-serif`;
|
|
50
|
+
/** The meta line, directives, headings and diagnostics. */
|
|
51
|
+
const LABEL = `var(--barmark-label-font,${SANS})`;
|
|
52
|
+
/** Lyrics and note lines: a serif every system has, with a true italic (Edwin has none). */
|
|
53
|
+
const TEXT = "var(--barmark-text-font,Georgia,serif)";
|
|
54
|
+
const CHART_FONT = `var(--barmark-font,"${FONT_FAMILY}","Edwin",Georgia,serif)`;
|
|
55
|
+
const css = `
|
|
56
|
+
:host{all:initial;display:block}
|
|
57
|
+
.bm-chart{${colours(PALETTES.light)}
|
|
58
|
+
container:bm/inline-size;
|
|
59
|
+
font-family:${CHART_FONT};
|
|
60
|
+
font-size:var(--barmark-size,1rem);
|
|
61
|
+
line-height:1.3;color:var(--bm-ink);background:var(--bm-paper);
|
|
62
|
+
padding:1em 1.2em;box-sizing:border-box;text-align:start}
|
|
63
|
+
.bm-chart *{box-sizing:border-box}
|
|
64
|
+
.bm-chart[data-theme="dark"]{${colours(PALETTES.dark)}color-scheme:dark}
|
|
65
|
+
@media (prefers-color-scheme:dark){.bm-chart[data-theme="auto"]{${colours(PALETTES.dark)}color-scheme:dark}}
|
|
66
|
+
@media print{.bm-chart[data-theme]{${colours(PALETTES.light)}color-scheme:light}}
|
|
67
|
+
.bm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
|
|
68
|
+
.bm-header{margin-bottom:.8em}
|
|
69
|
+
.bm-title{font-size:${em(SIZES.title)};font-weight:normal;margin:0 0 .15em}
|
|
70
|
+
.bm-meta{font-family:${LABEL};font-size:${em(SIZES.meta)};color:var(--bm-muted);margin:0}
|
|
71
|
+
.bm-directive{grid-column:1/-1;display:flex;align-items:baseline;gap:.4em;margin:.9em 0 .3em ${at(SIZES.directive, GUTTER)};font-family:${LABEL};font-size:${em(SIZES.directive)};color:var(--barmark-directive,var(--bm-muted))}
|
|
72
|
+
.bm-directive::after{content:"";flex:1;align-self:center;margin-left:.4em;border-top:.06em solid var(--bm-rule);opacity:.6}
|
|
73
|
+
.bm-section{margin-top:.9em}
|
|
74
|
+
.bm-heading{display:flex;align-items:center;gap:.5em;margin:0 0 ${at(SIZES.heading, HEADING_GAP)} ${at(SIZES.heading, GUTTER)};font:600 ${em(SIZES.heading)}/1 ${LABEL};letter-spacing:.08em;text-transform:uppercase;color:var(--bm-ink)}
|
|
75
|
+
.bm-rehearsal{border:.12em solid currentColor;padding:.15em .35em;border-radius:.15em;letter-spacing:0}
|
|
76
|
+
.bm-times{font:italic 1.2em/1 Georgia,serif;text-transform:none;letter-spacing:0;color:var(--bm-muted)}
|
|
77
|
+
.bm-grid{display:grid;grid-template-columns:${em(GUTTER)} repeat(var(--bm-cols),auto) auto;width:max-content;max-width:100%}
|
|
78
|
+
.bm-chart[data-bar-numbers="off"] .bm-grid{grid-template-columns:repeat(var(--bm-cols),auto) auto}
|
|
79
|
+
.bm-row{display:contents}
|
|
80
|
+
.bm-bar-number{display:flex;flex:none;align-items:baseline;width:${at(SIZES.barNumber, GUTTER)};padding-top:${at(SIZES.barNumber, 0.65)};font:${em(SIZES.barNumber)}/1 ${SANS};color:var(--bm-muted)}
|
|
81
|
+
.bm-bar-number::before{content:"\\200b";font:${em(1 / SIZES.barNumber)}/1.3 ${CHART_FONT}}
|
|
82
|
+
.bm-chart[data-bar-numbers="off"] :is(.bm-heading,.bm-text,.bm-directive){margin-left:0}
|
|
83
|
+
.bm-bar{position:relative;display:flex;align-items:baseline;min-width:${em(MIN_BAR)};min-height:2.2em;padding:.65em .7em .25em;border-right:.075em solid var(--bm-rule)}
|
|
84
|
+
.bm-row>div.bm-bar:first-of-type{border-left:.075em solid var(--bm-rule)}
|
|
85
|
+
.bm-row>div.bm-bar[data-repeat-start]{border-left:.25em double var(--bm-rule)}
|
|
86
|
+
.bm-row>div.bm-bar[data-repeat-end]{border-right:.25em double var(--bm-rule)}
|
|
87
|
+
.bm-bar-body{display:flex;flex:1;align-items:baseline;gap:.6em}
|
|
88
|
+
.bm-bar-body>:not(.bm-meter,.bm-cut){flex:1 1 0;min-width:max-content}
|
|
89
|
+
.bm-repeat{display:flex;align-items:center;padding-left:.4em;white-space:nowrap}
|
|
90
|
+
.bm-repeat .bm-times{font-size:${em(SIZES.repeat)}}
|
|
91
|
+
.bm-chord{white-space:nowrap}
|
|
92
|
+
.bm-chord sup{font-size:${em(SIZES.superscript)};vertical-align:.55em;line-height:0}
|
|
93
|
+
.bm-chord sub{font-size:${em(SIZES.octave)};line-height:0}
|
|
94
|
+
.bm-hold,.bm-unknown,.bm-brace{color:var(--bm-muted)}
|
|
95
|
+
.bm-nc{font-size:${em(SIZES.noChord)};letter-spacing:.06em}
|
|
96
|
+
.bm-silence{display:inline-block;width:.9em;height:.32em;background:var(--bm-ink);vertical-align:.25em}
|
|
97
|
+
.bm-ring,.bm-notes{font-size:${em(SIZES.noteNames)}}
|
|
98
|
+
.bm-ring{display:inline-block;min-width:1.4em;padding:${em(RING.y)} ${em(RING.x)};margin:${em(-(RING.y + RING.border))} 0;border:${em(RING.border)} solid currentColor;border-radius:1em;text-align:center}
|
|
99
|
+
.bm-notes{display:inline-flex;gap:.3em;align-items:baseline}
|
|
100
|
+
.bm-notes u{text-decoration-thickness:.08em;text-underline-offset:.15em}
|
|
101
|
+
.bm-group{position:relative;display:inline-flex;gap:.45em;align-items:baseline}
|
|
102
|
+
.bm-group::before{content:"";position:absolute;left:0;right:0;top:-.45em;height:.3em;border:.06em solid var(--bm-muted);border-bottom:none}
|
|
103
|
+
.bm-tuplet{position:absolute;left:50%;top:-1.25em;transform:translateX(-50%);font:italic 600 ${em(SIZES.tuplet)}/1 Georgia,serif;color:var(--bm-muted);background:var(--bm-paper);padding:0 .3em}
|
|
104
|
+
.bm-meter{display:inline-flex;flex-direction:column;align-items:center;align-self:center;font:700 ${em(SIZES.meter)}/.95 ${SANS};color:var(--bm-muted)}
|
|
105
|
+
.bm-fermata-glyph{display:block;color:var(--bm-ink)}
|
|
106
|
+
.bm-bar[data-cut]{outline:.08em dashed var(--bm-muted);outline-offset:-.25em}
|
|
107
|
+
.bm-cut{position:absolute;top:.3em;right:.45em;font:${em(SIZES.cut)}/1 ${SANS};color:var(--bm-muted)}
|
|
108
|
+
.bm-text{grid-column:1/-1;margin:.2em 0 .5em ${at(SIZES.text, GUTTER)};font-family:${TEXT};font-size:${em(SIZES.text)}}
|
|
109
|
+
.bm-note{font-style:italic;color:var(--barmark-note,var(--bm-ink))}
|
|
110
|
+
.bm-error{grid-column:1/-1;margin:.3em 0}
|
|
111
|
+
.bm-error code{font:.7em/1.4 ui-monospace,Menlo,Consolas,monospace;text-decoration:underline wavy var(--bm-accent);text-decoration-thickness:.08em;text-underline-offset:.25em;white-space:pre-wrap}
|
|
112
|
+
.bm-diagnostics{margin:1em 0 0;padding-left:1.2em;font:${em(SIZES.diagnostics)}/1.5 ${LABEL};color:var(--bm-muted)}
|
|
113
|
+
.bm-diagnostics .bm-error{color:var(--bm-accent)}
|
|
114
|
+
@media (forced-colors:active){
|
|
115
|
+
.bm-bar,.bm-row>div.bm-bar:first-of-type,.bm-row>div.bm-bar[data-repeat-start],.bm-row>div.bm-bar[data-repeat-end]{border-color:CanvasText}
|
|
116
|
+
.bm-ring,.bm-group::before{border-color:CanvasText}
|
|
117
|
+
.bm-silence{background:CanvasText;forced-color-adjust:none}
|
|
118
|
+
.bm-bar[data-cut]{outline-color:CanvasText}
|
|
119
|
+
}
|
|
120
|
+
${FIT_STEPS.map((w) => {
|
|
121
|
+
const g = `.bm-grid[data-fit="${w}"]`;
|
|
122
|
+
return `@container bm (max-width:${w}em){${g}{display:block}${g}>.bm-row{display:flex;flex-wrap:wrap}${g} .bm-empty{display:none}${g} .bm-bar{flex:0 1 auto;max-width:100%;border-left:.075em solid var(--bm-rule);margin-left:-.075em}${g} :is(.bm-bar-body,.bm-group,.bm-notes){flex-wrap:wrap}${g} .bm-bar-body>*{flex:1 1 auto;min-width:auto}}`;
|
|
123
|
+
}).join("\n")}
|
|
124
|
+
`;
|
|
125
|
+
/** Collapse the readable source above: whitespace around punctuation and between rules. */
|
|
126
|
+
const minify = (text) => text
|
|
127
|
+
.replace(/\n\s*/g, "")
|
|
128
|
+
.replace(/\s*([{};,>])\s*/g, "$1")
|
|
129
|
+
.replace(/:\s+/g, ":");
|
|
130
|
+
export const stylesheet = minify(css);
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { ChartDiagnostic, Directives, Meter, Repeat, Slot } from "barmark";
|
|
2
|
+
export type LayoutOptions = {
|
|
3
|
+
rehearsalLetters?: boolean;
|
|
4
|
+
};
|
|
5
|
+
/** What to draw, with every musical decision already made. */
|
|
6
|
+
export type ChartModel = {
|
|
7
|
+
title: string | null;
|
|
8
|
+
/** Directives before the first heading, bar line or text line. */
|
|
9
|
+
header: Directives;
|
|
10
|
+
blocks: SectionBlock[];
|
|
11
|
+
diagnostics: ChartDiagnostic[];
|
|
12
|
+
};
|
|
13
|
+
export type SectionBlock = {
|
|
14
|
+
/** The heading as written; null for content before the first heading. */
|
|
15
|
+
heading: string | null;
|
|
16
|
+
/** `## Chorus x2` */
|
|
17
|
+
repeat: Repeat;
|
|
18
|
+
form: number | null;
|
|
19
|
+
/** "A", "B", … when rehearsal letters are on. */
|
|
20
|
+
rehearsal: string | null;
|
|
21
|
+
/** The widest row's cell count. */
|
|
22
|
+
columns: number;
|
|
23
|
+
items: BlockItem[];
|
|
24
|
+
};
|
|
25
|
+
export type BlockItem = {
|
|
26
|
+
kind: "row";
|
|
27
|
+
line: number;
|
|
28
|
+
/** The play-order number of the row's first bar on its first pass. */
|
|
29
|
+
barNumber: number | null;
|
|
30
|
+
opens: boolean;
|
|
31
|
+
closes: boolean;
|
|
32
|
+
repeat: Repeat;
|
|
33
|
+
cells: CellModel[];
|
|
34
|
+
}
|
|
35
|
+
/** `note` marks a `###` line, whose text is given without the marks. */
|
|
36
|
+
| {
|
|
37
|
+
kind: "text";
|
|
38
|
+
text: string;
|
|
39
|
+
note: boolean;
|
|
40
|
+
} | {
|
|
41
|
+
kind: "directive";
|
|
42
|
+
set: Directives;
|
|
43
|
+
} | {
|
|
44
|
+
kind: "error";
|
|
45
|
+
line: number;
|
|
46
|
+
source: string;
|
|
47
|
+
messages: string[];
|
|
48
|
+
};
|
|
49
|
+
export type CellModel = {
|
|
50
|
+
kind: "slots";
|
|
51
|
+
meter: Meter | null;
|
|
52
|
+
slots: Slot[];
|
|
53
|
+
cut: boolean;
|
|
54
|
+
} | {
|
|
55
|
+
kind: "fermata";
|
|
56
|
+
};
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
Binary file
|
package/fonts/OFL.txt
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright (c) 2021, MuseScore Limited (http://www.musescore.org/),
|
|
2
|
+
with Reserved Font Name "Edwin".
|
|
3
|
+
|
|
4
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
5
|
+
This license is copied below, and is also available with a FAQ at:
|
|
6
|
+
http://scripts.sil.org/OFL
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/fonts/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Edwin
|
|
2
|
+
|
|
3
|
+
`Edwin-Roman.otf` is the roman of **Edwin**, MuseScore's text font for
|
|
4
|
+
music, shipped here **unmodified** (byte for byte; `tests/font.test.ts`
|
|
5
|
+
checks its SHA-256).
|
|
6
|
+
|
|
7
|
+
- Source: <https://github.com/musescore/MuseScore/tree/c66993b7c9674ad35a05a30b685b04edb3471c07/fonts/edwin>
|
|
8
|
+
- Copyright (c) 2021, MuseScore Limited, with Reserved Font Name "Edwin".
|
|
9
|
+
- Licence: SIL Open Font License 1.1, in `OFL.txt` (MuseScore's
|
|
10
|
+
`LICENSE.txt`).
|
|
11
|
+
|
|
12
|
+
The Reserved Font Name means a modified version, including a subset or a
|
|
13
|
+
format conversion, may not be called Edwin, so this package never alters
|
|
14
|
+
the file. `@barmark/render` registers it under the CSS family name
|
|
15
|
+
"barmark Edwin" so it cannot collide with a page's own fonts; the font
|
|
16
|
+
itself is unchanged.
|
package/package.json
CHANGED
|
@@ -1 +1,56 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@barmark/render",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Render barmark chord charts as a clean, accessible bar grid: HTML with Declarative Shadow DOM, or the <barmark-chart> web component.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"import": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./element": {
|
|
12
|
+
"types": "./dist/element.d.ts",
|
|
13
|
+
"import": "./dist/element.js"
|
|
14
|
+
},
|
|
15
|
+
"./fonts/*": "./fonts/*"
|
|
16
|
+
},
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"./dist/element.js"
|
|
20
|
+
],
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"fonts",
|
|
24
|
+
"CHANGELOG.md"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=20"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"barmark",
|
|
31
|
+
"chord-chart",
|
|
32
|
+
"chords",
|
|
33
|
+
"music",
|
|
34
|
+
"lead-sheet",
|
|
35
|
+
"web-component",
|
|
36
|
+
"renderer"
|
|
37
|
+
],
|
|
38
|
+
"author": "Kevin Peckham",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"homepage": "https://github.com/kevinpeckham/barmark/tree/main/packages/render#readme",
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "git+https://github.com/kevinpeckham/barmark.git",
|
|
44
|
+
"directory": "packages/render"
|
|
45
|
+
},
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/kevinpeckham/barmark/issues"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"barmark": "^0.2.0"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
54
|
+
"prepack": "bun run build"
|
|
55
|
+
}
|
|
56
|
+
}
|