소스 검색

生成图片使用自适应尺寸

TIANYONG 8 달 전
부모
커밋
bdd473364c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/view/music-score/index.tsx

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

@@ -173,9 +173,9 @@ export default defineComponent({
 				  }
 			}
 			// 下载图片改为A4纸尺寸,因为会和曲谱标题合成一张图片,所以尺寸的高度需要缩小,1123-1065
-			if (props.isDownXml) {
-				osmd.setPageFormat('794x1065')
-			}
+			// if (props.isDownXml) {
+			// 	osmd.setPageFormat('794x1065')
+			// }
 			osmd.zoom = state.zoom;
 			osmd.render();
 			console.log("🚀 ~ osmd:", osmd)