wavelovers/docs/js/114.0420a15d.js

2 lines
6.9 KiB
JavaScript
Raw Normal View History

2022-10-30 17:35:34 +03:00
"use strict";(self["webpackChunkwavelovers"]=self["webpackChunkwavelovers"]||[]).push([[114],{1682:function(a,t,e){e.d(t,{Z:function(){return v}});var n=e(3396),s=e(7139);const i={class:"content-item device-list"};function u(a,t,e,u,o,d){const p=(0,n.up)("GamepadItem");return(0,n.wg)(),(0,n.iD)("div",i,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.gamepads,(a=>((0,n.wg)(),(0,n.j4)(p,{key:a.id,textContent:(0,s.zw)(a.unit.id)},null,8,["textContent"])))),128))])}const o={class:"list-item"};function d(a,t,e,s,i,u){return(0,n.wg)(),(0,n.iD)("div",o)}var p=(0,n.aZ)({name:"GamepadItem"}),l=e(89);const m=(0,l.Z)(p,[["render",d]]);var g=m,r=(0,n.aZ)({name:"GamepadList",props:{gamepads:{type:Array}},components:{GamepadItem:g}});const c=(0,l.Z)(r,[["render",u]]);var v=c},322:function(a,t,e){e.d(t,{Z:function(){return p}});var n=e(3396);const s={class:"content-item message"};function i(a,t,e,i,u,o){return(0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("span",null,[(0,n.WI)(a.$slots,"default")])])}var u=(0,n.aZ)({name:"MessageItem"}),o=e(89);const d=(0,o.Z)(u,[["render",i]]);var p=d},9100:function(a,t,e){e.d(t,{Z:function(){return p}});var n=e(3396);const s={class:"content-item navigation-list"};function i(a,t,e,i,u,o){const d=(0,n.up)("router-link");return(0,n.wg)(),(0,n.iD)("div",s,[(0,n.Wm)(d,{to:"/",class:"navigation-list__item"},{default:(0,n.w5)((()=>[(0,n.Uk)("Patterns")])),_:1}),(0,n.Wm)(d,{to:"/custom",class:"navigation-list__item"},{default:(0,n.w5)((()=>[(0,n.Uk)("Custom")])),_:1}),(0,n.Wm)(d,{to:"/manual",class:"navigation-list__item"},{default:(0,n.w5)((()=>[(0,n.Uk)("Manual")])),_:1}),(0,n.Wm)(d,{to:"/diagnostic",class:"navigation-list__item"},{default:(0,n.w5)((()=>[(0,n.Uk)("Diagnostic")])),_:1})])}var u=(0,n.aZ)({name:"NavigationList"}),o=e(89);const d=(0,o.Z)(u,[["render",i]]);var p=d},6259:function(a,t,e){e.d(t,{Z:function(){return o}});var n=e(3396),s=e(1746),i=(0,n.aZ)({name:"ComputedGamepads",data:()=>({timestamp:0,interval:0}),computed:{gamepads:function(){const a=this.timestamp,t=s.Z.getters.gamepads;return t.forEach((t=>{t.interval=a})),t}},methods:{updateComputed:function(){this.timestamp=Date.now()}},mounted(){this.interval=setInterval(this.updateComputed,1)},unmounted(){clearInterval(this.interval)}});const u=i;var o=u},2114:function(a,t,e){e.r(t),e.d(t,{default:function(){return F}});var n=e(3396);const s=(0,n._)("h1",{class:"visually-hidden"},"Wavelovers <20> Diagnostic",-1);function i(a,t,e,i,u,o){const d=(0,n.up)("AppDiagnostic");return(0,n.wg)(),(0,n.iD)(n.HY,null,[s,(0,n.Wm)(d)],64)}const u={key:0,class:"content-item"};function o(a,t,e,s,i,o){const d=(0,n.up)("NavigationList"),p=(0,n.up)("DiagnosticItem"),l=(0,n.up)("GamepadList"),m=(0,n.up)("MessageItem");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n.Wm)(d),a.gamepads.length>0?((0,n.wg)(),(0,n.iD)("div",u,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.gamepads,(t=>((0,n.wg)(),(0,n.j4)(p,{key:t.id,gamepad:t,timestamp:a.timestamp},null,8,["gamepad","timestamp"])))),128))])):(0,n.kq)("",!0),a.gamepads.length>0?((0,n.wg)(),(0,n.j4)(l,{key:1,gamepads:a.gamepads},null,8,["gamepads"])):((0,n.wg)(),(0,n.j4)(m,{key:2},{default:(0,n.w5)((()=>[(0,n.Uk)("Press any gamepad button or connect a new gamepad to vibrate.")])),_:1}))],64)}var d=e(9100),p=e(1682),l=e(322),m=e(7139);const g={class:"output-gamepad"},r={class:"gamepad-group"};function c(a,t,e,s,i,u){return(0,n.wg)(),(0,n.iD)("div",g,[(0,n._)("h3",null,"#"+(0,m.zw)(a.gamepad.unit.index+1)+". "+(0,m.zw)(a.gamepad.unit.id),1),(0,n._)("div",r,[(0,n._)("div",null,[(0,n._)("span",{class:(0,m.C_)([1===a.gamepad.unit.buttons[0].value?"pressed":""])},"A: "+(0,m.zw)(a.gamepad.unit.buttons[0].value.toFixed(2)),3),(0,n._)("span",{class:(0,m.C_)([1===a.gamepad.unit.buttons[1].value?"pressed":""])},"B: "+(0,m.zw)(a.gamepad.unit.buttons[1].value.toFixed(2)),3),(0,n._)("span",{class:(0,m.C_)([1===a.gamepad.unit.buttons[2].value?"pressed":""])},"X: "+(0,m.zw)(a.gamepad.unit.buttons[2].value.toFixed(2)),3),(0,n._)("span",{class:(0,m.C_)([1===a.gamepad.unit.buttons[3].value?"pressed":""])},"Y: "+(0,m.zw)(a.gamepad.unit.buttons[3].value.toFix
2023-02-25 16:50:45 +03:00
//# sourceMappingURL=114.0420a15d.js.map