1 line
No EOL
7.1 KiB
JavaScript
1 line
No EOL
7.1 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{242:function(e,t,o){},243:function(e){e.exports=JSON.parse('{"ja-JP":{"h3":{"appearance":"見た目"},"location":"位置:","fontSize":"文字サイズ:","fgColor":"文字色:","fgColorGrad":"グラデーション","fgColor1":"文字色(上):","fgColor2":"文字色(下):","alpha":"不透明度=","bgColor":"背景色:","bgOffset":"背景位置:","size":"サイズ:","left":"左","right":"右","top":"上","bottom":"下","display":{"duration":"表示時間:","frame":"(フレーム)","sec":"(秒)"}},"en-US":{"h3":{"appearance":"Appearance"},"location":"Location: ","fontSize":"Font size: ","fgColor":"Font color: ","fgColorGrad":"Gradient","fgColor1":"Font color(Top): ","fgColor2":"Font color(Bottom): ","alpha":"Alpha=","bgColor":"Background color: ","bgOffset":"Background offset: ","size":"Size: ","left":"Left","right":"Right","top":"Top","bottom":"Bottom","display":{"duration":"Display duration: ","frame":"(frame)","sec":"(sec)"}},"fr-FR":{"location":"Position : ","fontSize":"Taille de police : ","fgColor":"Couleur du texte : ","fgColorGrad":"Dégradé","fgColor1":"Couleur du texte (haut) : ","fgColor2":"Couleur du texte (bas) : ","bgColor":"Couleur de fond : ","alpha":"Alpha = "}}')},244:function(e,t,o){"use strict";o.r(t);var n=o(243),r=o(241);const a=e=>({get(){return this.$props.value[e]},set(t){this.update({[e]:t})}});var i={props:{value:{type:Object}},computed:{l(){var e;return null!==(e=n[this.$lang])&&void 0!==e?e:n["en-US"]},...Object.fromEntries(["x","y","fontSize","fgRGB","fgA","fgRGB2","fgA2","bgRGB","bgA","bgLeft","bgRight","bgTop","bgBot"].map(e=>[e,a(e)]))},methods:{update(e){this.$emit("input",{...this.value,...e})},toggleGradient(e){e.target.checked?this.update({fgRGB2:this.fgRGB,fgA2:this.fgA}):this.update({fgRGB2:null,fgA2:null})},rgbI2S:r.f,rgbS2I:r.g,rgbaI2S:r.h}},u=(o(245),o(10)),s=Object(u.a)(i,(function(){var e=this,t=e._self._c;return t("div",[t("div",[t("span",[e._v(e._s(e.l.location)+"(")]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.x,expression:"x",modifiers:{number:!0}}],attrs:{type:"number",min:"0",max:"600"},domProps:{value:e.x},on:{input:function(t){t.target.composing||(e.x=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),t("span",[e._v(", ")]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.y,expression:"y",modifiers:{number:!0}}],attrs:{type:"number",min:"16",max:"464"},domProps:{value:e.y},on:{input:function(t){t.target.composing||(e.y=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),t("span",[e._v(")")])]),e._v(" "),t("div",[t("span",[e._v(e._s(e.l.fontSize))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.fontSize,expression:"fontSize",modifiers:{number:!0}}],attrs:{type:"number",min:"0"},domProps:{value:e.fontSize},on:{input:function(t){t.target.composing||(e.fontSize=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}})]),e._v(" "),t("div",[t("span",[e._v(e._s(null==e.fgRGB2?e.l.fgColor:e.l.fgColor1))]),t("input",{attrs:{type:"color"},domProps:{value:e.rgbI2S(e.fgRGB)},on:{change:function(t){e.fgRGB=e.rgbS2I(t.target.value)}}}),e._v(" "),t("span",[e._v(e._s(e.l.alpha))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.fgA,expression:"fgA",modifiers:{number:!0}}],attrs:{type:"number",min:"0",max:"255"},domProps:{value:e.fgA},on:{input:function(t){t.target.composing||(e.fgA=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),t("span",[e._v("/255="+e._s((e.fgA/2.55).toFixed(1))+"%")]),e._v(" "),t("input",{attrs:{type:"checkbox"},domProps:{checked:null!=e.fgRGB2},on:{change:e.toggleGradient}}),t("span",[e._v(e._s(e.l.fgColorGrad))])]),e._v(" "),null!=e.fgRGB2?t("div",[t("span",[e._v(e._s(e.l.fgColor2))]),t("input",{attrs:{type:"color"},domProps:{value:e.rgbI2S(e.fgRGB2)},on:{change:function(t){e.fgRGB2=e.rgbS2I(t.target.value)}}}),e._v(" "),t("span",[e._v(e._s(e.l.alpha))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.fgA2,expression:"fgA2",modifiers:{number:!0}}],attrs:{type:"number",min:"0",max:"255"},domProps:{value:e.fgA2},on:{input:function(t){t.target.composing||(e.fgA2=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),t("span",[e._v("/255="+e._s((e.fgA2/2.55).toFixed(1))+"%")])]):e._e(),e._v(" "),t("div",[t("div",[t("span",[e._v(e._s(e.l.bgColor))]),t("input",{attrs:{type:"color"},domProps:{value:e.rgbI2S(e.bgRGB)},on:{change:function(t){e.bgRGB=e.rgbS2I(t.target.value)}}}),e._v(" "),t("span",[e._v(e._s(e.l.alpha))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.bgA,expression:"bgA",modifiers:{number:!0}}],attrs:{type:"number",min:"0",max:"254"},domProps:{value:e.bgA},on:{input:function(t){t.target.composing||(e.bgA=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),t("span",[e._v("/255="+e._s((e.bgA/2.55).toFixed(1))+"%")])]),e._v(" "),t("div",[t("span",[e._v(e._s(e.l.bgOffset))]),e._v(" "),t("span",[e._v(e._s(e.l.left))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.bgLeft,expression:"bgLeft",modifiers:{number:!0}}],attrs:{type:"number"},domProps:{value:e.bgLeft},on:{input:function(t){t.target.composing||(e.bgLeft=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),e._v(" "),t("span",[e._v(e._s(e.l.right))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.bgRight,expression:"bgRight",modifiers:{number:!0}}],attrs:{type:"number"},domProps:{value:e.bgRight},on:{input:function(t){t.target.composing||(e.bgRight=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),e._v(" "),t("span",[e._v(e._s(e.l.top))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.bgTop,expression:"bgTop",modifiers:{number:!0}}],attrs:{type:"number"},domProps:{value:e.bgTop},on:{input:function(t){t.target.composing||(e.bgTop=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),e._v(" "),t("span",[e._v(e._s(e.l.bottom))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.bgBot,expression:"bgBot",modifiers:{number:!0}}],attrs:{type:"number"},domProps:{value:e.bgBot},on:{input:function(t){t.target.composing||(e.bgBot=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}})])])])}),[],!1,null,"5f99cba2",null);t.default=s.exports},245:function(e,t,o){"use strict";o(242)},264:function(e,t,o){},285:function(e,t,o){"use strict";o(264)},333:function(e,t,o){"use strict";o.r(t);var n=o(252),r=o(241),a=o(243),i=o(244);const u=Object(r.e)(n.lskey,n.defaultConfig,n.getPreviewText);var s={components:{TextConfig:i.default},props:{version:{type:String}},methods:{updateConfig:u},data:()=>({...Object(n.getConfig)()}),computed:{l(){return Object(r.d)(a,this.$lang)},textConfig:{get(){return this},set(e){Object.assign(this,e),this.updateConfig()}}}},l=(o(285),o(10)),p=Object(l.a)(s,(function(){var e=this,t=e._self._c;return t("div",[t("section",{staticClass:"appearance"},[t("h3",[e._v(e._s(e.l("h3.appearance")))]),e._v(" "),t("TextConfig",{model:{value:e.textConfig,callback:function(t){e.textConfig=t},expression:"textConfig"}})],1)])}),[],!1,null,"4d94b4e4",null);t.default=p.exports}}]); |