Skip to content

Commit

Permalink
Use the Category enum instead of hard coded strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronyeh committed Jan 19, 2022
1 parent 791b620 commit a9dc12b
Show file tree
Hide file tree
Showing 112 changed files with 649 additions and 400 deletions.
2 changes: 1 addition & 1 deletion docs/api/assets/search.js

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/BarNote.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/api/classes/CanvasContext.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/ClefNote.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/Crescendo.html

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions docs/api/classes/Dot.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/api/classes/Flow.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/GhostNote.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/api/classes/Glyph.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/GlyphNote.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/GraceNote.html

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions docs/api/classes/GraceTabNote.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/KeySigNote.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/api/classes/Modifier.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/api/classes/ModifierContext.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/Note.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/NoteHead.html

Large diffs are not rendered by default.

153 changes: 153 additions & 0 deletions docs/api/classes/Parenthesis.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/api/classes/RenderContext.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/RepeatNote.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/api/classes/Repetition.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/api/classes/SVGContext.html

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions docs/api/classes/Stave.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/StaveNote.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/StemmableNote.html

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions docs/api/classes/TabNote.html

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions docs/api/classes/TabStave.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/TextDynamics.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/classes/TextNote.html

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions docs/api/classes/Tickable.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@
<p>Set preformatted status.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-overwrite tsd-is-static"><a id="CATEGORY" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> CATEGORY</h3><ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-overwrite tsd-is-static"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> CATEGORY<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides Element.CATEGORY</p></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="addClass" class="tsd-anchor"></a><h3>add<wbr/>Class</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">add<wbr/>Class<span class="tsd-signature-symbol">(</span>className<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Tickable.html" class="tsd-signature-type" data-tsd-kind="Class">Tickable</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Element.html">Element</a>.<a href="Element.html#addClass">addClass</a></p></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Add a class label (An element can have multiple class labels).</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>className: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="Tickable.html" class="tsd-signature-type" data-tsd-kind="Class">Tickable</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="addModifier" class="tsd-anchor"></a><h3>add<wbr/>Modifier</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">add<wbr/>Modifier<span class="tsd-signature-symbol">(</span>mod<span class="tsd-signature-symbol">: </span><a href="Modifier.html" class="tsd-signature-type" data-tsd-kind="Class">Modifier</a>, <span class="tsd-signature-symbol">...</span>optionalArgs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Tickable.html" class="tsd-signature-type" data-tsd-kind="Class">Tickable</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography"><div class="lead">
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>className: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="Tickable.html" class="tsd-signature-type" data-tsd-kind="Class">Tickable</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="addModifier" class="tsd-anchor"></a><h3>add<wbr/>Modifier</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">add<wbr/>Modifier<span class="tsd-signature-symbol">(</span>index<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, mod<span class="tsd-signature-symbol">: </span><a href="Modifier.html" class="tsd-signature-type" data-tsd-kind="Class">Modifier</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Tickable.html" class="tsd-signature-type" data-tsd-kind="Class">Tickable</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography"><div class="lead">
<p>Optional, if tickable has modifiers, associate a Modifier.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>mod: <a href="Modifier.html" class="tsd-signature-type" data-tsd-kind="Class">Modifier</a></h5></li><li><h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>optionalArgs: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="Tickable.html" class="tsd-signature-type" data-tsd-kind="Class">Tickable</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="addToModifierContext" class="tsd-anchor"></a><h3>add<wbr/>To<wbr/>Modifier<wbr/>Context</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">add<wbr/>To<wbr/>Modifier<wbr/>Context<span class="tsd-signature-symbol">(</span>mc<span class="tsd-signature-symbol">: </span><a href="ModifierContext.html" class="tsd-signature-type" data-tsd-kind="Class">ModifierContext</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Tickable.html" class="tsd-signature-type" data-tsd-kind="Class">Tickable</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography"><div class="lead">
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>index: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>ignored</p>
</div></div></li><li><h5>mod: <a href="Modifier.html" class="tsd-signature-type" data-tsd-kind="Class">Modifier</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>the modifier</p>
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="Tickable.html" class="tsd-signature-type" data-tsd-kind="Class">Tickable</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="addToModifierContext" class="tsd-anchor"></a><h3>add<wbr/>To<wbr/>Modifier<wbr/>Context</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">add<wbr/>To<wbr/>Modifier<wbr/>Context<span class="tsd-signature-symbol">(</span>mc<span class="tsd-signature-symbol">: </span><a href="ModifierContext.html" class="tsd-signature-type" data-tsd-kind="Class">ModifierContext</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Tickable.html" class="tsd-signature-type" data-tsd-kind="Class">Tickable</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography"><div class="lead">
<p>Add self to the provided ModifierContext <code>mc</code>.
If this tickable has modifiers, set modifierContext.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>mc: <a href="ModifierContext.html" class="tsd-signature-type" data-tsd-kind="Class">ModifierContext</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="Tickable.html" class="tsd-signature-type" data-tsd-kind="Class">Tickable</a></h4><div><p>this</p>
Expand Down
20 changes: 10 additions & 10 deletions docs/api/classes/TimeSigNote.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/api/classes/TimeSignatureGlyph.html

Large diffs are not rendered by default.

Loading

0 comments on commit a9dc12b

Please sign in to comment.