Przeglądaj źródła

生成图片使用自适应尺寸

TIANYONG 4 miesięcy temu
rodzic
commit
bdd473364c
1 zmienionych plików z 3 dodań i 3 usunięć
  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)