Browse Source

feat: 生成的图片尺寸修改

TIANYONG 4 months ago
parent
commit
2fe87154a8
2 changed files with 3 additions and 3 deletions
  1. 1 1
      osmd-extended
  2. 2 2
      src/view/music-score/index.tsx

+ 1 - 1
osmd-extended

@@ -1 +1 @@
-Subproject commit 31363bdaf7a29647b1561e1ac1d01d8be64d4b69
+Subproject commit 0eb177f216cead288330588bc281a2d60aa0bcfc

+ 2 - 2
src/view/music-score/index.tsx

@@ -172,9 +172,9 @@ export default defineComponent({
 					osmd.Sheet.Instruments[i].Visible = state.canSelectTracks.includes(trackName)
 				  }
 			}
-			// 下载图片改为A4纸尺寸
+			// 下载图片改为A4纸尺寸,因为会和曲谱标题合成一张图片,所以尺寸的高度需要缩小,1123-1065
 			if (props.isDownXml) {
-				osmd.setPageFormat('794x1123')
+				osmd.setPageFormat('794x1065')
 			}
 			osmd.zoom = state.zoom;
 			osmd.render();