Browse Source

Merge PR #445 from dolphinxx, Position.Y -> y

RelativePosition.Y => RelativePosition.y
Simon 6 năm trước cách đây
mục cha
commit
819ecf5616
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/MusicalScore/Graphical/GraphicalStaffEntry.ts

+ 1 - 1
src/MusicalScore/Graphical/GraphicalStaffEntry.ts

@@ -277,7 +277,7 @@ export abstract class GraphicalStaffEntry extends GraphicalObject {
     public addGraphicalNoteToListAtCorrectYPosition(gve: GraphicalVoiceEntry, graphicalNote: GraphicalNote): void {
         const graphicalNotes: GraphicalNote[] = gve.notes;
         if (graphicalNotes.length === 0 ||
-            graphicalNote.PositionAndShape.RelativePosition.y < CollectionUtil.last(graphicalNotes).PositionAndShape.RelativePosition.Y) {
+            graphicalNote.PositionAndShape.RelativePosition.y < CollectionUtil.last(graphicalNotes).PositionAndShape.RelativePosition.y) {
             graphicalNotes.push(graphicalNote);
         } else {
             for (let i: number = graphicalNotes.length - 1; i >= 0; i--) {