Skip to content

Commit

Permalink
Flow.ts added
Browse files Browse the repository at this point in the history
  • Loading branch information
rvilarl committed Jun 26, 2021
1 parent 1d72fa4 commit e843206
Show file tree
Hide file tree
Showing 33 changed files with 257 additions and 247 deletions.
2 changes: 1 addition & 1 deletion src/accidental.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import { RuntimeError, log } from './util';
import { Fraction } from './fraction';
import { Flow } from './tables';
import { Flow } from './flow';
import { Music } from './music';
import { Modifier } from './modifier';
import { Glyph } from './glyph';
Expand Down
2 changes: 1 addition & 1 deletion src/annotation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// See `tests/annotation_tests.js` for usage examples.

import { log } from './util';
import { Flow } from './tables';
import { Flow } from './flow';
import { Modifier } from './modifier';
import { TextFont } from './textfont';
import { FontInfo } from './types/common';
Expand Down
2 changes: 1 addition & 1 deletion src/articulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// See `tests/articulation_tests.js` for usage examples.

import { RuntimeError, log, check } from './util';
import { Flow } from './tables';
import { Flow } from './flow';
import { Modifier } from './modifier';
import { Glyph } from './glyph';
import { Stem } from './stem';
Expand Down
2 changes: 1 addition & 1 deletion src/beam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// This file implements `Beams` that span over a set of `StemmableNotes`.

import { RuntimeError } from './util';
import { Flow } from './tables';
import { Flow } from './flow';
import { Element } from './element';
import { Fraction } from './fraction';
import { Tuplet } from './tuplet';
Expand Down
2 changes: 1 addition & 1 deletion src/bend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// This file implements tablature bends.

import { RuntimeError } from './util';
import { Flow } from './tables';
import { Flow } from './flow';
import { Modifier } from './modifier';
import { ModifierContextState } from './modifiercontext';

Expand Down
2 changes: 1 addition & 1 deletion src/chordsymbol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// See `tests/chordsymbol_tests.js` for usage examples.

import { log } from './util';
import { Flow } from './tables';
import { Flow } from './flow';
import { Glyph } from './glyph';
import { TextFont } from './textfont';
import { Modifier } from './modifier';
Expand Down
2 changes: 1 addition & 1 deletion src/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Registry } from './registry';
import { BoundingBox } from './boundingbox';
import { Font } from './font';
import { RenderContext } from './types/common';
import { Flow } from './tables';
import { Flow } from './flow';

/** Element attributes. */
export interface ElementAttributes {
Expand Down
162 changes: 162 additions & 0 deletions src/flow.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
import { Element } from './element';
import { Fraction } from './fraction';
import { Renderer } from './renderer';
import { Formatter } from './formatter';
import { Music } from './music';
import { Glyph } from './glyph';
import { Stave } from './stave';
import { StaveNote } from './stavenote';
import { StaveModifier } from './stavemodifier';
import { StaveTempo } from './stavetempo';
import { Voice } from './voice';
import { Accidental } from './accidental';
import { Beam } from './beam';
import { StaveTie } from './stavetie';
import { TabStave } from './tabstave';
import { TabNote } from './tabnote';
import { Bend } from './bend';
import { Vibrato } from './vibrato';
import { VibratoBracket } from './vibratobracket';
import { Note } from './note';
import { ModifierContext } from './modifiercontext';
import { MultiMeasureRest } from './multimeasurerest';
import { TickContext } from './tickcontext';
import { Articulation, ArticulationStruct } from './articulation';
import { Annotation } from './annotation';
import { ChordSymbol } from './chordsymbol';
import { Barline } from './stavebarline';
import { NoteHead } from './notehead';
import { StaveConnector } from './staveconnector';
import { ClefNote } from './clefnote';
import { KeySignature } from './keysignature';
import { KeySigNote } from './keysignote';
import { TimeSignature } from './timesignature';
import { TimeSigNote } from './timesignote';
import { Stem } from './stem';
import { TabTie } from './tabtie';
import { Clef } from './clef';
import { Dot } from './dot';
import { Modifier } from './modifier';
import { TabSlide } from './tabslide';
import { Tuplet } from './tuplet';
import { GraceNote } from './gracenote';
import { GraceTabNote } from './gracetabnote';
import { Tuning } from './tuning';
import { KeyManager } from './keymanager';
import { StaveHairpin } from './stavehairpin';
import { BoundingBox } from './boundingbox';
import { Stroke } from './strokes';
import { TextNote } from './textnote';
import { Curve } from './curve';
import { TextDynamics } from './textdynamics';
import { StaveLine } from './staveline';
import { Ornament } from './ornament';
import { PedalMarking } from './pedalmarking';
import { TextBracket } from './textbracket';
import { FretHandFinger } from './frethandfinger';
import { Repetition } from './staverepetition';
import { BarNote } from './barnote';
import { GhostNote } from './ghostnote';
import { NoteSubGroup } from './notesubgroup';
import { GraceNoteGroup } from './gracenotegroup';
import { Tremolo } from './tremolo';
import { StringNumber } from './stringnumber';
import { Crescendo } from './crescendo';
import { Volta } from './stavevolta';
import { System } from './system';
import { Factory } from './factory';
import { Parser } from './parser';
import { EasyScore } from './easyscore';
import { Registry } from './registry';
import { StaveText } from './stavetext';
import { GlyphNote } from './glyphnote';
import { RepeatNote } from './repeatnote';
import { TextFont } from './textfont';
import { PetalumaScriptTextMetrics } from './fonts/petalumascript_textmetrics';
import { RobotoSlabTextMetrics } from './fonts/robotoslab_textmetrics';

import { Font, Fonts } from './font';
import { Tables } from './tables';

export const Flow = {
...Tables,
Element: Element,
Fraction: Fraction,
Renderer: Renderer,
Formatter: Formatter,
Music: Music,
Glyph: Glyph,
Stave: Stave,
StaveNote: StaveNote,
StaveModifier: StaveModifier,
StaveTempo: StaveTempo,
Voice: Voice,
Accidental: Accidental,
Beam: Beam,
StaveTie: StaveTie,
TabStave: TabStave,
TabNote: TabNote,
Bend: Bend,
Vibrato: Vibrato,
VibratoBracket: VibratoBracket,
Note: Note,
ModifierContext: ModifierContext,
MultiMeasureRest: MultiMeasureRest,
TickContext: TickContext,
Articulation: Articulation,
Annotation: Annotation,
ChordSymbol: ChordSymbol,
Barline: Barline,
NoteHead: NoteHead,
StaveConnector: StaveConnector,
ClefNote: ClefNote,
KeySignature: KeySignature,
KeySigNote: KeySigNote,
TimeSignature: TimeSignature,
TimeSigNote: TimeSigNote,
Stem: Stem,
TabTie: TabTie,
Clef: Clef,
Dot: Dot,
Modifier: Modifier,
TabSlide: TabSlide,
Tuplet: Tuplet,
GraceNote: GraceNote,
GraceTabNote: GraceTabNote,
Tuning: Tuning,
KeyManager: KeyManager,
StaveHairpin: StaveHairpin,
BoundingBox: BoundingBox,
Stroke: Stroke,
TextNote: TextNote,
Curve: Curve,
TextDynamics: TextDynamics,
StaveLine: StaveLine,
Ornament: Ornament,
PedalMarking: PedalMarking,
TextBracket: TextBracket,
FretHandFinger: FretHandFinger,
Repetition: Repetition,
BarNote: BarNote,
GhostNote: GhostNote,
NoteSubGroup: NoteSubGroup,
GraceNoteGroup: GraceNoteGroup,
Tremolo: Tremolo,
StringNumber: StringNumber,
Crescendo: Crescendo,
Volta: Volta,
System: System,
Factory: Factory,
Parser: Parser,
EasyScore: EasyScore,
Registry: Registry,
StaveText: StaveText,
GlyphNote: GlyphNote,
RepeatNote: RepeatNote,

Font: Font,
Fonts: Fonts,
TextFont: TextFont,
PetalumaScriptTextMetrics: PetalumaScriptTextMetrics,
RobotoSlabTextMetrics: RobotoSlabTextMetrics,
};
2 changes: 1 addition & 1 deletion src/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import { RuntimeError, midLine, log, check } from './util';
import { Beam } from './beam';
import { Flow } from './tables';
import { Flow } from './flow';
import { Fraction } from './fraction';
import { Voice } from './voice';
import { StaveConnector } from './staveconnector';
Expand Down
2 changes: 1 addition & 1 deletion src/glyph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Font, FontGlyph } from './font';
import { RenderContext, TypeProps } from './types/common';
import { Stave } from './stave';
import { Stem } from './stem';
import { Flow } from './tables';
import { Flow } from './flow';

export interface DurationCode {
common: TypeProps;
Expand Down
2 changes: 1 addition & 1 deletion src/gracenote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { RuntimeError } from './util';
import { StaveNote, StaveNoteStruct } from './stavenote';
import { Stem } from './stem';
import { Flow } from './tables';
import { Flow } from './flow';

export interface GraceNoteStruct extends StaveNoteStruct {
slash: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/gracenotegroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// render grace notes.

import { log } from './util';
import { Flow } from './tables';
import { Flow } from './flow';
import { Modifier } from './modifier';
import { Formatter } from './formatter';
import { Voice } from './voice';
Expand Down
2 changes: 1 addition & 1 deletion src/keysignature.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// and indicates the notes with implicit accidentals.

import { RuntimeError } from './util';
import { Flow } from './tables';
import { Flow } from './flow';
import { StaveModifier } from './stavemodifier';
import { Glyph } from './glyph';

Expand Down
2 changes: 1 addition & 1 deletion src/multimeasurerest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// This class implements multiple measure rests

import { RuntimeError } from './util';
import { Flow } from './tables';
import { Flow } from './flow';
import { Element } from './element';
import { Glyph } from './glyph';
import { NoteHead } from './notehead';
Expand Down
2 changes: 1 addition & 1 deletion src/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// array of them. All notes also have a rendering context and belong to a stave.

import { RuntimeError, drawDot } from './util';
import { Flow } from './tables';
import { Flow } from './flow';
import { Tickable } from './tickable';
import { Stroke } from './strokes';
import { Stave } from './stave';
Expand Down
2 changes: 1 addition & 1 deletion src/notehead.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// See `tests/notehead_tests.js` for usage examples.

import { RuntimeError, log } from './util';
import { Flow } from './tables';
import { Flow } from './flow';
import { Note, NoteStruct } from './note';
import { Stem } from './stem';
import { StaveNote } from './stavenote';
Expand Down
2 changes: 1 addition & 1 deletion src/notesubgroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// render notes as a `Modifier`
// ex) ClefNote, TimeSigNote and BarNote.

import { Flow } from './tables';
import { Flow } from './flow';
import { Modifier } from './modifier';
import { Formatter } from './formatter';
import { Voice } from './voice';
Expand Down
2 changes: 1 addition & 1 deletion src/ornament.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// See `tests/ornament_tests.js` for usage examples.

import { RuntimeError, log } from './util';
import { Flow } from './tables';
import { Flow } from './flow';
import { Modifier } from './modifier';
import { TickContext } from './tickcontext';
import { StaveNote } from './stavenote';
Expand Down
2 changes: 1 addition & 1 deletion src/stave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { RuntimeError } from './util';
import { Element, ElementStyle } from './element';
import { Flow } from './tables';
import { Flow } from './flow';
import { Barline, BarlineType } from './stavebarline';
import { StaveModifier } from './stavemodifier';
import { Repetition } from './staverepetition';
Expand Down
2 changes: 1 addition & 1 deletion src/stavebarline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Author Larry Kuhns 2011

import { Flow } from './tables';
import { Flow } from './flow';
import { LayoutMetrics, StaveModifier } from './stavemodifier';
import { Stave } from './stave';

Expand Down
2 changes: 1 addition & 1 deletion src/staveconnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { RuntimeError } from './util';
import { Element } from './element';
import { Flow } from './tables';
import { Flow } from './flow';
import { Glyph } from './glyph';
import { FontInfo, RenderContext } from './types/common';
import { Stave } from './stave';
Expand Down
2 changes: 1 addition & 1 deletion src/staveline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// purposes, such as diagrams.
import { RuntimeError } from './util';
import { Element } from './element';
import { Flow } from './tables';
import { Flow } from './flow';
import { FontInfo, RenderContext } from './types/common';
import { StaveNote } from './stavenote';

Expand Down
2 changes: 1 addition & 1 deletion src/stavenote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// See `tests/stavenote_tests.js` for usage examples.

import { RuntimeError, log, midLine, warn } from './util';
import { Flow } from './tables';
import { Flow } from './flow';
import { BoundingBox } from './boundingbox';
import { Stem } from './stem';
import { NoteHead } from './notehead';
Expand Down
2 changes: 1 addition & 1 deletion src/stavetempo.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// [VexFlow](http://vexflow.com) - Copyright (c) Mohit Muthanna 2010.
// Author Radosaw Eichler 2012

import { Flow } from './tables';
import { Flow } from './flow';
import { StaveModifier } from './stavemodifier';
import { Glyph } from './glyph';
import { FontInfo } from './types/common';
Expand Down
2 changes: 1 addition & 1 deletion src/stem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { RuntimeError, log } from './util';
import { Element } from './element';
import { Flow } from './tables';
import { Flow } from './flow';
import { BoundingBox } from './boundingbox';

// To enable logging for this class. Set `Vex.Flow.Stem.DEBUG` to `true`.
Expand Down
2 changes: 1 addition & 1 deletion src/stemmablenote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Examples of stemmable notes are `StaveNote` and `TabNote`

import { RuntimeError } from './util';
import { Flow } from './tables';
import { Flow } from './flow';
import { Stem, StemOptions } from './stem';
import { Glyph } from './glyph';
import { Note, NoteStruct } from './note';
Expand Down
Loading

0 comments on commit e843206

Please sign in to comment.