gctGenerator/docs/assets/js/9.08c2e3bc.js
2023-10-16 17:40:28 +09:00

1 line
No EOL
9.6 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[9,17],{242:function(e,t,n){},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,n){"use strict";n.r(t);var o=n(243),r=n(241);const i=e=>({get(){return this.$props.value[e]},set(t){this.update({[e]:t})}});var a={props:{value:{type:Object}},computed:{l(){var e;return null!==(e=o[this.$lang])&&void 0!==e?e:o["en-US"]},...Object.fromEntries(["x","y","fontSize","fgRGB","fgA","fgRGB2","fgA2","bgRGB","bgA","bgLeft","bgRight","bgTop","bgBot"].map(e=>[e,i(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=(n(245),n(10)),s=Object(u.a)(a,(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,n){"use strict";n(242)},251:function(e){e.exports=JSON.parse('{"ja-JP":{"format":"フォーマット:","deletionConfirm":"本当に削除しますか?","add":{"PAS":"+ 位置/角度/速度表示","speed":"+ 速度表示","detailed":"+ 欲張りセット","rect":"+ 長方形"}},"en-US":{"format":"Format:","deletionConfirm":"Are you sure to delete?","add":{"PAS":"+ Position/Angle/Speed Display","speed":"+ Speed Display","detailed":"+ Detailed Display","rect":"+ Rectangle"}}}')},261:function(e,t,n){},270:function(e,t,n){"use strict";n.r(t);var o=n(251),r=n(244),i=n(249),a={components:{TextConfig:r.default},props:{value:{type:Object},version:{type:String},rows:{type:Number,default:7},cols:{type:Number,default:40}},data(){const{fmt:e,text:t,...n}=this.value;return{textConfig:n,fmt:e}},computed:{l(){var e;return null!==(e=o[this.$lang])&&void 0!==e?e:o["en-US"]},preview(){return Object(i.format2previewText)(this.fmt,this.version)}},methods:{update(){this.$emit("input",{fmt:this.fmt,text:this.preview,...this.textConfig})}},watch:{textConfig(){this.update()},fmt(){this.update()}}},u=n(10),s=Object(u.a)(a,(function(){var e=this,t=e._self._c;return t("div",[t("TextConfig",{model:{value:e.textConfig,callback:function(t){e.textConfig=t},expression:"textConfig"}}),e._v(" "),t("div",[t("div",[e._v(e._s(e.l.format))]),e._v(" "),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.fmt,expression:"fmt"}],attrs:{rows:e.rows,cols:e.cols},domProps:{value:e.fmt},on:{input:function(t){t.target.composing||(e.fmt=t.target.value)}}})])],1)}),[],!1,null,null,null);t.default=s.exports},280:function(e,t,n){"use strict";n(261)},330:function(e,t,n){"use strict";n.r(t);n(91);var o=n(251),r=n(249),i=n(276),a=n(241),u={components:{Cell:n(270).default},props:{version:{type:String},previewConfig:{type:Object}},computed:{l(){return Object(a.d)(o,this.$lang)},db(){const e=this.version;return Object.fromEntries(Object.entries(i.a).map(([t,n])=>[t,{...n,text:Object(r.format2previewText)(n.fmt,e)}]))}},data(){const e=this.version,t=Object(r.getConfig)(e),n={text:Object(r.format2previewText)(r.defaultConfig[0].fmt,e),...r.defaultConfig[0]},o=t.map((e,t)=>t);return{config:t,defaultConfigCell:n,keys:o,nextKey:o.length}},watch:{config:Object(a.e)(r.lskey,r.defaultConfig)},methods:{deletionConfirm(e){this.config.splice(e,1)},append(e){this.config.push({...e,key:this.nextKey++})}}},s=(n(280),n(10)),l=Object(s.a)(u,(function(){var e=this,t=e._self._c;return t("div",[t("Preview",{attrs:{config:e.previewConfig}}),e._v(" "),e._l(e.config,(function(n,o){return t("div",{key:n.key,staticClass:"textcell"},[t("button",{staticClass:"textcell-remove",on:{click:function(t){return e.deletionConfirm(o)}}},[e._v("×")]),e._v(" "),t("Cell",{attrs:{value:n,version:e.version},on:{input:t=>e.config.splice(o,1,{...t,key:n.key})}})],1)})),e._v(" "),t("div",{staticClass:"btn-ctn"},[t("button",{on:{click:function(t){return e.append(e.db.PAS)}}},[e._v(e._s(e.l("add.PAS")))]),e._v(" "),t("button",{on:{click:function(t){return e.append(e.db.speed)}}},[e._v(e._s(e.l("add.speed")))]),e._v(" "),t("button",{on:{click:function(t){return e.append(e.db.detailed)}}},[e._v(e._s(e.l("add.detailed")))]),e._v(" "),t("button",{on:{click:function(t){return e.append(e.db.rect)}}},[e._v(e._s(e.l("add.rect")))])])],2)}),[],!1,null,"42597328",null);t.default=l.exports}}]);