Browse Source

Merge branch 'feature-tianyong-newVersion' of http://git.dayaedu.com/liushengqiang/music-score into ktyq-test-new

tianyong 2 weeks ago
parent
commit
6e159554f2

+ 10 - 0
dist/instrument.html

@@ -41,9 +41,15 @@
       })
     }
   </script>
+<<<<<<< HEAD
   <script type="module" crossorigin src="./js/instrument-b6c0b1b6.js"></script>
   <link rel="modulepreload" crossorigin href="./js/node_modules-9ee1ee1c.js">
   <link rel="modulepreload" crossorigin href="./js/src-1f05c278.js">
+=======
+  <script type="module" crossorigin src="./js/instrument-3e8ef92e.js"></script>
+  <link rel="modulepreload" crossorigin href="./js/node_modules-e1c50b11.js">
+  <link rel="modulepreload" crossorigin href="./js/src-8da9d832.js">
+>>>>>>> 5593dde7035f1c9a967a4f307c6443404d550156
   <link rel="stylesheet" href="./css/instrument-44543d61.css">
   <script type="module">import.meta.url;import("_").catch(()=>1);async function* g(){};window.__vite_is_modern_browser=true;</script>
   <script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
@@ -68,7 +74,11 @@
   </script>   -->
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
   <script nomodule crossorigin id="vite-legacy-polyfill" src="./js/polyfills-legacy-4f2cc9ae.js"></script>
+<<<<<<< HEAD
   <script nomodule crossorigin id="vite-legacy-entry" data-src="./js/instrument-legacy-90d47efe.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+=======
+  <script nomodule crossorigin id="vite-legacy-entry" data-src="./js/instrument-legacy-cbf7a793.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+>>>>>>> 5593dde7035f1c9a967a4f307c6443404d550156
 </body>
 
 </html>

File diff suppressed because it is too large
+ 1 - 0
dist/js/index-28860619.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/index-8e4140c1.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/index-abcbd3c8.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/index-b2f2df26.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/index-b320a5a8.js


+ 5 - 0
dist/js/index-d7c9c7f9.js

@@ -0,0 +1,5 @@
+<<<<<<<< HEAD:dist/js/index-f4235d1a.js
+import{d as s,g as a,r as e,E as t,o,s as n,c as i,M as r}from"./instrument-b6c0b1b6.js";import"./node_modules-9ee1ee1c.js";import"./src-1f05c278.js";const d="_detail_vtlsh_12",l="_container_vtlsh_20",c=s({name:"music-list",setup(){const s=a(),c=e({isLoading:!0,isProductLoading:!1,product:[{state:!1,name:"五线谱",type:t.staff,base64:""},{state:!1,name:"首调",type:t.firstTone,base64:""},{state:!1,name:"固定调",type:t.fixedTone,base64:""}]});o((()=>{window.appName="colexiu",n.xmlUrl=s.xmlUrl,c.isLoading=!1}));const m=async()=>{console.log("渲染完成")};return()=>i("div",{class:d},[i("div",{id:"scrollContainer",class:[l,"hideCursor"]},[!c.isLoading&&i(r,{onRendered:m},null)])])}});export{c as default};
+========
+import{d as s,g as a,r as e,E as t,o,s as n,c as i,M as r}from"./instrument-3e8ef92e.js";import"./node_modules-e1c50b11.js";import"./src-8da9d832.js";const d="_detail_vtlsh_12",l="_container_vtlsh_20",c=s({name:"music-list",setup(){const s=a(),c=e({isLoading:!0,isProductLoading:!1,product:[{state:!1,name:"五线谱",type:t.staff,base64:""},{state:!1,name:"首调",type:t.firstTone,base64:""},{state:!1,name:"固定调",type:t.fixedTone,base64:""}]});o((()=>{window.appName="colexiu",n.xmlUrl=s.xmlUrl,c.isLoading=!1}));const m=async()=>{console.log("渲染完成")};return()=>i("div",{class:d},[i("div",{id:"scrollContainer",class:[l,"hideCursor"]},[!c.isLoading&&i(r,{onRendered:m},null)])])}});export{c as default};
+>>>>>>>> 5593dde7035f1c9a967a4f307c6443404d550156:dist/js/index-d7c9c7f9.js

File diff suppressed because it is too large
+ 1 - 0
dist/js/index-e143557b.js


+ 4 - 0
dist/js/index-f4235d1a.js

@@ -1 +1,5 @@
+<<<<<<<< HEAD:dist/js/index-f4235d1a.js
 import{d as s,g as a,r as e,E as t,o,s as n,c as i,M as r}from"./instrument-b6c0b1b6.js";import"./node_modules-9ee1ee1c.js";import"./src-1f05c278.js";const d="_detail_vtlsh_12",l="_container_vtlsh_20",c=s({name:"music-list",setup(){const s=a(),c=e({isLoading:!0,isProductLoading:!1,product:[{state:!1,name:"五线谱",type:t.staff,base64:""},{state:!1,name:"首调",type:t.firstTone,base64:""},{state:!1,name:"固定调",type:t.fixedTone,base64:""}]});o((()=>{window.appName="colexiu",n.xmlUrl=s.xmlUrl,c.isLoading=!1}));const m=async()=>{console.log("渲染完成")};return()=>i("div",{class:d},[i("div",{id:"scrollContainer",class:[l,"hideCursor"]},[!c.isLoading&&i(r,{onRendered:m},null)])])}});export{c as default};
+========
+import{d as s,g as a,r as e,E as t,o,s as n,c as i,M as r}from"./instrument-3e8ef92e.js";import"./node_modules-e1c50b11.js";import"./src-8da9d832.js";const d="_detail_vtlsh_12",l="_container_vtlsh_20",c=s({name:"music-list",setup(){const s=a(),c=e({isLoading:!0,isProductLoading:!1,product:[{state:!1,name:"五线谱",type:t.staff,base64:""},{state:!1,name:"首调",type:t.firstTone,base64:""},{state:!1,name:"固定调",type:t.fixedTone,base64:""}]});o((()=>{window.appName="colexiu",n.xmlUrl=s.xmlUrl,c.isLoading=!1}));const m=async()=>{console.log("渲染完成")};return()=>i("div",{class:d},[i("div",{id:"scrollContainer",class:[l,"hideCursor"]},[!c.isLoading&&i(r,{onRendered:m},null)])])}});export{c as default};
+>>>>>>>> 5593dde7035f1c9a967a4f307c6443404d550156:dist/js/index-d7c9c7f9.js

File diff suppressed because it is too large
+ 1 - 0
dist/js/index-legacy-032073d8.js


+ 4 - 0
dist/js/index-legacy-3f341b9b.js

@@ -1 +1,5 @@
+<<<<<<<< HEAD:dist/js/index-legacy-3f341b9b.js
 System.register(["./instrument-legacy-90d47efe.js","./node_modules-legacy-72651b10.js","./src-legacy-a8d74808.js"],(function(e,t){"use strict";var n,i,a,o,s,r,l,d,c=document.createElement("style");return c.textContent="._skeleton_vtlsh_1{position:fixed;left:0;top:0;width:100vw;height:100vh;padding:.53333rem .8rem;background-color:#fff;z-index:1000;--van-skeleton-paragraph-height: .8rem}._detail_vtlsh_12{width:100vw;height:100vh;overflow:hidden;overflow-y:auto;--header-height: 1.65333rem;background:var(--container-background)}._detail_vtlsh_12 ._container_vtlsh_20{margin:0 .26667rem;border-radius:.26667rem}._detail_vtlsh_12 #musicAndSelection{overflow:initial!important;height:initial!important;max-height:initial!important}\n",document.head.appendChild(c),{setters:[e=>{n=e.d,i=e.g,a=e.r,o=e.E,s=e.o,r=e.s,l=e.c,d=e.M},null,null],execute:function(){const t="_detail_vtlsh_12",c="_container_vtlsh_20";e("default",n({name:"music-list",setup(){const e=i(),n=a({isLoading:!0,isProductLoading:!1,product:[{state:!1,name:"五线谱",type:o.staff,base64:""},{state:!1,name:"首调",type:o.firstTone,base64:""},{state:!1,name:"固定调",type:o.fixedTone,base64:""}]});s((()=>{window.appName="colexiu",r.xmlUrl=e.xmlUrl,n.isLoading=!1}));const h=async()=>{console.log("渲染完成")};return()=>l("div",{class:t},[l("div",{id:"scrollContainer",class:[c,"hideCursor"]},[!n.isLoading&&l(d,{onRendered:h},null)])])}}))}}}));
+========
+System.register(["./instrument-legacy-cbf7a793.js","./node_modules-legacy-5e4d60f3.js","./src-legacy-1978d56e.js"],(function(e,t){"use strict";var n,i,a,o,s,r,l,d,c=document.createElement("style");return c.textContent="._skeleton_vtlsh_1{position:fixed;left:0;top:0;width:100vw;height:100vh;padding:.53333rem .8rem;background-color:#fff;z-index:1000;--van-skeleton-paragraph-height: .8rem}._detail_vtlsh_12{width:100vw;height:100vh;overflow:hidden;overflow-y:auto;--header-height: 1.65333rem;background:var(--container-background)}._detail_vtlsh_12 ._container_vtlsh_20{margin:0 .26667rem;border-radius:.26667rem}._detail_vtlsh_12 #musicAndSelection{overflow:initial!important;height:initial!important;max-height:initial!important}\n",document.head.appendChild(c),{setters:[e=>{n=e.d,i=e.g,a=e.r,o=e.E,s=e.o,r=e.s,l=e.c,d=e.M},null,null],execute:function(){const t="_detail_vtlsh_12",c="_container_vtlsh_20";e("default",n({name:"music-list",setup(){const e=i(),n=a({isLoading:!0,isProductLoading:!1,product:[{state:!1,name:"五线谱",type:o.staff,base64:""},{state:!1,name:"首调",type:o.firstTone,base64:""},{state:!1,name:"固定调",type:o.fixedTone,base64:""}]});s((()=>{window.appName="colexiu",r.xmlUrl=e.xmlUrl,n.isLoading=!1}));const h=async()=>{console.log("渲染完成")};return()=>l("div",{class:t},[l("div",{id:"scrollContainer",class:[c,"hideCursor"]},[!n.isLoading&&l(d,{onRendered:h},null)])])}}))}}}));
+>>>>>>>> 5593dde7035f1c9a967a4f307c6443404d550156:dist/js/index-legacy-78a8b9e8.js

File diff suppressed because it is too large
+ 1 - 0
dist/js/index-legacy-549bbb5c.js


+ 5 - 0
dist/js/index-legacy-78a8b9e8.js

@@ -0,0 +1,5 @@
+<<<<<<<< HEAD:dist/js/index-legacy-3f341b9b.js
+System.register(["./instrument-legacy-90d47efe.js","./node_modules-legacy-72651b10.js","./src-legacy-a8d74808.js"],(function(e,t){"use strict";var n,i,a,o,s,r,l,d,c=document.createElement("style");return c.textContent="._skeleton_vtlsh_1{position:fixed;left:0;top:0;width:100vw;height:100vh;padding:.53333rem .8rem;background-color:#fff;z-index:1000;--van-skeleton-paragraph-height: .8rem}._detail_vtlsh_12{width:100vw;height:100vh;overflow:hidden;overflow-y:auto;--header-height: 1.65333rem;background:var(--container-background)}._detail_vtlsh_12 ._container_vtlsh_20{margin:0 .26667rem;border-radius:.26667rem}._detail_vtlsh_12 #musicAndSelection{overflow:initial!important;height:initial!important;max-height:initial!important}\n",document.head.appendChild(c),{setters:[e=>{n=e.d,i=e.g,a=e.r,o=e.E,s=e.o,r=e.s,l=e.c,d=e.M},null,null],execute:function(){const t="_detail_vtlsh_12",c="_container_vtlsh_20";e("default",n({name:"music-list",setup(){const e=i(),n=a({isLoading:!0,isProductLoading:!1,product:[{state:!1,name:"五线谱",type:o.staff,base64:""},{state:!1,name:"首调",type:o.firstTone,base64:""},{state:!1,name:"固定调",type:o.fixedTone,base64:""}]});s((()=>{window.appName="colexiu",r.xmlUrl=e.xmlUrl,n.isLoading=!1}));const h=async()=>{console.log("渲染完成")};return()=>l("div",{class:t},[l("div",{id:"scrollContainer",class:[c,"hideCursor"]},[!n.isLoading&&l(d,{onRendered:h},null)])])}}))}}}));
+========
+System.register(["./instrument-legacy-cbf7a793.js","./node_modules-legacy-5e4d60f3.js","./src-legacy-1978d56e.js"],(function(e,t){"use strict";var n,i,a,o,s,r,l,d,c=document.createElement("style");return c.textContent="._skeleton_vtlsh_1{position:fixed;left:0;top:0;width:100vw;height:100vh;padding:.53333rem .8rem;background-color:#fff;z-index:1000;--van-skeleton-paragraph-height: .8rem}._detail_vtlsh_12{width:100vw;height:100vh;overflow:hidden;overflow-y:auto;--header-height: 1.65333rem;background:var(--container-background)}._detail_vtlsh_12 ._container_vtlsh_20{margin:0 .26667rem;border-radius:.26667rem}._detail_vtlsh_12 #musicAndSelection{overflow:initial!important;height:initial!important;max-height:initial!important}\n",document.head.appendChild(c),{setters:[e=>{n=e.d,i=e.g,a=e.r,o=e.E,s=e.o,r=e.s,l=e.c,d=e.M},null,null],execute:function(){const t="_detail_vtlsh_12",c="_container_vtlsh_20";e("default",n({name:"music-list",setup(){const e=i(),n=a({isLoading:!0,isProductLoading:!1,product:[{state:!1,name:"五线谱",type:o.staff,base64:""},{state:!1,name:"首调",type:o.firstTone,base64:""},{state:!1,name:"固定调",type:o.fixedTone,base64:""}]});s((()=>{window.appName="colexiu",r.xmlUrl=e.xmlUrl,n.isLoading=!1}));const h=async()=>{console.log("渲染完成")};return()=>l("div",{class:t},[l("div",{id:"scrollContainer",class:[c,"hideCursor"]},[!n.isLoading&&l(d,{onRendered:h},null)])])}}))}}}));
+>>>>>>>> 5593dde7035f1c9a967a4f307c6443404d550156:dist/js/index-legacy-78a8b9e8.js

File diff suppressed because it is too large
+ 1 - 0
dist/js/index-legacy-7d07d173.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/index-legacy-a7ade09f.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/index-legacy-b3f037f7.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/index-legacy-f3f18ca4.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/instrument-3e8ef92e.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/instrument-b6c0b1b6.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/instrument-legacy-90d47efe.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/instrument-legacy-cbf7a793.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/modeView-0d7aeffa.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/modeView-96209d9f.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/modeView-legacy-0845ac61.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/modeView-legacy-952a8a7d.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/node_modules-e1c50b11.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/node_modules-legacy-5e4d60f3.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/src-8da9d832.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/src-legacy-1978d56e.js


+ 10 - 0
src/state.ts

@@ -1203,7 +1203,11 @@ export const scrollViewNote = (resetTop?: boolean) => {
   //   scrollTarget,
   //   MeasureNumberXML: currentNote?.MeasureNumberXML
   // })
+<<<<<<< HEAD
   
+=======
+
+>>>>>>> 5593dde7035f1c9a967a4f307c6443404d550156
   if (Math.abs(musicAndSelection?.scrollTop - musicScrollTop) > 30) {
     // 手动滑动谱面,重新播放需要滚动到对应位置
     lastLineTop = currentTop; // 更新行位置记录
@@ -1213,11 +1217,17 @@ export const scrollViewNote = (resetTop?: boolean) => {
       return;
     }
   }
+<<<<<<< HEAD
   
   // 换行了,更新 offsetTop 和行位置记录
   lastLineTop = currentTop;
   offsetTop = scrollTarget; // 使用计算好的滚动目标值
   
+=======
+  // 换行了,更新 offsetTop 和行位置记录
+  lastLineTop = currentTop;
+  offsetTop = scrollTarget; // 使用计算好的滚动目标值
+>>>>>>> 5593dde7035f1c9a967a4f307c6443404d550156
   const animateType = browser().android ? "instant" : "smooth"
   if (offsetTop > (state.headTopHeight + 30)) {
     musicScrollTop = (offsetTop - state.headTopHeight - 30) * state.musicZoom

+ 6 - 0
src/view/music-score/index.tsx

@@ -125,6 +125,12 @@ export default defineComponent({
 				// ...this.opotions,
 				colorStemsLikeNoteheads: true, // 是否将音符柄的颜色设置为与它们的音符头相同,默认false
 				// drawingParameters: "compact" // 使用紧凑布局
+				
+				// 固定时间比例渲染配置(默认关闭,可通过 URL 参数 fixedTempo=1 启用)
+				// fixedTemporalSpacing: query.fixedTempo === '1', // 启用固定时间比例渲染
+				fixedTemporalSpacing: true,
+				quarterNoteSpacing: Number(query.quarterSpacing) || 50, // 四分音符间距(像素)
+				measurePadding: Number(query.measurePadding) || 20, // 小节padding(像素)
 			});
 			// osmd.EngravingRules.CompactMode = true // 紧凑模式
 			// osmd.EngravingRules.PageRightMargin = state.isSingleLine ? (window.innerWidth+200)/10 : 2;

File diff suppressed because it is too large
+ 1 - 0
stats.html


Some files were not shown because too many files changed in this diff