mirror of
https://github.com/eugene-serb/wavelovers.git
synced 2023-09-09 23:41:16 +03:00
2 lines
2.6 KiB
JavaScript
2 lines
2.6 KiB
JavaScript
|
"use strict";(self["webpackChunkwavelovers"]=self["webpackChunkwavelovers"]||[]).push([[441],{3913:function(t,n,a){var e=a(2482);class s{constructor(t,n,a,s){(0,e.Z)(this,"startDelay",void 0),(0,e.Z)(this,"duration",void 0),(0,e.Z)(this,"weakMagnitude",void 0),(0,e.Z)(this,"strongMagnitude",void 0),this.startDelay=t,this.duration=n,this.weakMagnitude=a,this.strongMagnitude=s}}n["Z"]=s},441:function(t,n,a){a.r(n),a.d(n,{default:function(){return C}});var e=a(3396);function s(t,n,a,s,u,o){const r=(0,e.up)("AppCustom");return(0,e.wg)(),(0,e.j4)(r)}var u=a(9242);const o={class:"content-item app-custom"},r={class:"custom-form"},i={class:"custom-form__input"},l=(0,e._)("span",null,"Start Delay (ms)",-1),d={class:"custom-form__input"},p=(0,e._)("span",null,"Duration (ms)",-1),c={class:"custom-form__input"},m=(0,e._)("span",null,"Weak Magnitude",-1),_={class:"custom-form__input"},g=(0,e._)("span",null,"Strong Magnitude",-1),h={class:"custom-form__buttons"};function f(t,n,a,s,f,w){return(0,e.wg)(),(0,e.iD)("div",o,[(0,e._)("fieldset",r,[(0,e._)("label",i,[l,(0,e.wy)((0,e._)("input",{"onUpdate:modelValue":n[0]||(n[0]=n=>t.startDelay=n),type:"number",placeholder:"Start Delay",min:"0",max:"1000",step:"25",required:""},null,512),[[u.nr,t.startDelay]])]),(0,e._)("label",d,[p,(0,e.wy)((0,e._)("input",{"onUpdate:modelValue":n[1]||(n[1]=n=>t.duration=n),type:"number",placeholder:"Duration",min:"0",max:"1000",step:"25",required:""},null,512),[[u.nr,t.duration]])]),(0,e._)("label",c,[m,(0,e.wy)((0,e._)("input",{"onUpdate:modelValue":n[2]||(n[2]=n=>t.weakMagnitude=n),type:"range",required:"",min:"0.0",max:"1.0",step:"0.01"},null,512),[[u.nr,t.weakMagnitude]])]),(0,e._)("label",_,[g,(0,e.wy)((0,e._)("input",{"onUpdate:modelValue":n[3]||(n[3]=n=>t.strongMagnitude=n),type:"range",required:"",min:"0.0",max:"1.0",step:"0.01"},null,512),[[u.nr,t.strongMagnitude]])]),(0,e._)("div",h,[(0,e._)("button",{onClick:n[4]||(n[4]=(...n)=>t.start&&t.start(...n)),class:"custom-form__button"},"Start"),(0,e._)("button",{onClick:n[5]||(n[5]=(...n)=>t.stop&&t.stop(...n)),class:"custom-form__button"},"Stop")])])])}var w=a(1746),v=a(3913),y=(0,e.aZ)({name:"AppCustom",data:()=>({startDelay:250,duration:250,weakMagnitude:1,strongMagnitude:1}),methods:{start:function(){const t=[new v.Z(this.startDelay,this.duration,this.weakMagnitude,this.strongMagnitude)];w.Z.dispatch("startCustom",t)},stop:function(){w.Z.dispatch("reset")}}}),M=a(89);const b=(0,M.Z)(y,[["render",f]]);var k=b,Z=(0,e.aZ)({name:"CustomView",components:{AppCustom:k}});const D=(0,M.Z)(Z,[["render",s]]);var C=D}}]);
|
||
|
//# sourceMappingURL=441.be7aaf75.js.map
|