!function(){function n(n,e,t,o,r,u,i){try{var l=n[u](i),a=l.value}catch(s){return void t(s)}l.done?e(a):Promise.resolve(a).then(o,r)}function e(e){return function(){var t=this,o=arguments;return new Promise((function(r,u){var i=e.apply(t,o);function l(e){n(i,r,u,l,a,"next",e)}function a(e){n(i,r,u,l,a,"throw",e)}l(void 0)}))}}System.register(["./TransposeCalculator-legacy.f07a233b.js","./runtime-core.esm-bundler-legacy.203f7120.js","./_commonjsHelpers-legacy.1db667c6.js"],(function(n,t){"use strict";var o,r,u,i,l,a;return{setters:[function(n){o=n.O,r=n.V},function(n){u=n.d,i=n.A,l=n.c,a=n.M},null],execute:function(){var t=i({}),s=null;n("default",u({name:"VelFlowTest",data:function(){return{xml:"https://ks3-cn-beijing.ksyuncs.com/cloud-coach/1661242248370尤克里里-测试-音阶.xml"}},computed:{isHidden:function(){return t&&t.cursor&&t.cursor.Hidden}},mounted:function(){var n=this;return e(regeneratorRuntime.mark((function e(){var u,i,l,a,s,c,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a in(t=new o(document.querySelector("#container1"),{backend:"svg",drawTitle:!0,coloringSetCustom:["#00ff00"],cursorsOptions:[{type:0,color:"green",alpha:1,follow:!0}]})).EngravingRules.StaffLineColor="rgba(238,128,196,1)",t.EngravingRules.DefaultColorCursor="rgba(238,128,196,1)",n.handleJianpu(n.xml),u=document.getElementById("glyphs"),i=0,l=0,r.Flow.Font.glyphs)r.Flow.Font.glyphs[a]=r.Flow.Font.glyphs[a],l++;for(a in s=(l+1)/(800/240)*60,u.height=s,u.width=800,(c=u.getContext("2d")).font="14pt Courier",f=60,r.Flow.Font.glyphs)c.fillStyle="#222",c.fillText(a,i,f),i+=60,c.fillStyle="green",r.Flow.Font.glyphs[a].o&&((d=new r.Flow.Glyph(a,45)).render(c,i,f),c.save(),c.font="6pt Arial",d.getMetrics(),c.restore()),(i+=60)>=800&&(i=0,f+=120);case 15:case"end":return e.stop()}}),e)})))()},methods:{handleJianpu:function(){var n=arguments,o=this;return e(regeneratorRuntime.mark((function e(){var r,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:"",u=n.length>1&&void 0!==n[1]?n[1]:"staff",t.EngravingRules.DYMusicScoreType=u,e.next=5,t.load(r);case 5:t.render(),console.log(t),o.getAllNote(),t.cursor.reset();case 9:case"end":return e.stop()}}),e)})))()},getAllNote:function(){var n=[];t.cursor.reset();for(var e=t.cursor.Iterator;!e.EndReached;){for(var o,r,u,i=null!==(o=e.CurrentVoiceEntries)&&void 0!==o&&o[0]?[null===(r=e.CurrentVoiceEntries)||void 0===r?void 0:r[0]]:[],l=null===(u=e.CurrentVoiceEntries)||void 0===u?void 0:u[1],a=0;a2e3&&t.cursor.next(),n=(new Date).getTime(),console.log(t.cursor.cursorElement.style.display)}),1e3)}},render:function(){var n=this;return l("div",null,[l("button",{onClick:function(){return n.handleJianpu(n.xml,"jianpu")}},[a("简谱")]),l("button",{onClick:function(){return n.handleJianpu("/jianpu/四二拍-案例0629.xml","jianpu")}},[a("四二")]),l("button",{onClick:function(){return n.handleJianpu("/jianpu/四三拍-案例0629.xml","jianpu")}},[a("四三")]),l("button",{onClick:function(){return n.handleJianpu("/jianpu/四四拍-案例0629.xml","jianpu")}},[a("四四")]),l("button",{onClick:function(){return n.handleJianpu("/jianpu/八三拍-案例0629_jp.xml","jianpu")}},[a("八三")]),l("button",{onClick:function(){return n.handleJianpu("/jianpu/八六拍-案例0629.xml","jianpu")}},[a("八六")]),l("div",null,[l("button",{onClick:this.onNext},[a("next")]),l("button",{onClick:this.onReset},[a("reset")]),l("button",{onClick:this.onToggle},[a("隐藏cursor")]),l("button",{onClick:this.onToggle},[a("显示cursorsh")]),l("button",{onClick:this.autoPlay},[a("自动")])]),l("div",{id:"container1"},null),l("canvas",{id:"glyphs",width:"800",height:"1600"},[a("HTML5 Canvas not supported on this browser.")])])}}))}}}))}();