Skip to content

Commit

Permalink
eslint auto fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronyeh committed Dec 24, 2021
1 parent 6bf26e9 commit 437d802
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/articulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { isGraceNote } from './gracenote';
import { Modifier } from './modifier';
import { ModifierContextState } from './modifiercontext';
import { Note } from './note';
import { isStaveNote, StaveNote } from './stavenote';
import { StemmableNote } from './stemmablenote';
import { Stave } from './stave';
import { isStaveNote, StaveNote } from './stavenote';
import { Stem } from './stem';
import { StemmableNote } from './stemmablenote';
import { Tables } from './tables';
import { isTabNote } from './tabnote';
import { defined, log, RuntimeError } from './util';
Expand Down Expand Up @@ -217,7 +217,7 @@ export class Articulation extends Modifier {
articulations.forEach((articulation) => {
const note = articulation.checkAttachedNote();
let lines = 5;
let stemDirection = note.getStemDirection();
const stemDirection = note.getStemDirection();
let stemHeight = 0;
// Decide if we need to consider beam direction in placement.
if (note instanceof StemmableNote) {
Expand Down
4 changes: 2 additions & 2 deletions src/version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const VERSION: string = '4.0.0';
export const ID: string = 'c3ce10e100663ab480f36c7975736508ef23f4cf';
export const DATE: string = '2021-12-20T11:30:57.852Z';
export const ID: string = '6bf26e9269bd8e5d6b7e621ed6d4391b2038c153';
export const DATE: string = '2021-12-24T07:00:36.553Z';
7 changes: 3 additions & 4 deletions tests/articulation_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import { Articulation } from '../src/articulation';
import { Beam } from '../src/beam';
import { Flow } from '../src/flow';
import { Font } from '../src/font';
import { Stem } from '../src/stem';
import { Formatter } from '../src/formatter';
import { ContextBuilder } from '../src/renderer';
import { ModifierPosition } from '../src/modifier';
import { ContextBuilder } from '../src/renderer';
import { Stave } from '../src/stave';
import { Barline } from '../src/stavebarline';
import { StaveNote, StaveNoteStruct } from '../src/stavenote';
import { Stem } from '../src/stem';
import { TabNote } from '../src/tabnote';
import { TabStave } from '../src/tabstave';
import { Voice } from '../src/voice';
Expand Down Expand Up @@ -232,13 +232,12 @@ function verticalPlacement(options: TestOptions, contextBuilder: ContextBuilder)
.addArticulation(0, new Articulation('a.').setPosition(ModifierPosition.ABOVE))
.addArticulation(0, new Articulation('a-').setPosition(ModifierPosition.ABOVE))
.addArticulation(0, new Articulation('a@a').setPosition(ModifierPosition.ABOVE)),
];
];

Formatter.FormatAndDraw(ctx, stave, notes);
ok(true, ' Annotation Placement');
}


function drawArticulations2(options: TestOptions): void {
expect(0);
const scale = 0.8;
Expand Down

0 comments on commit 437d802

Please sign in to comment.