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

1 line
No EOL
1.4 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{321:function(t,s,e){},377:function(t,s,e){"use strict";e(321)},400:function(t,s,e){"use strict";e.r(s);var i=e(241),n=e(253),r={props:{config:{type:Object},version:{type:String}},computed:{previewCssClass(){return"preview-str preview-"+(this.version.startsWith("GMSJ")?"JP":"GMSE01"===this.version?"US":"EU")},styles(){const{config:t,version:s}=this,{x:e,y:r,fontSize:c,fgRGB:o,fgA:a,fgRGB2:p,fgA2:l,bgRGB:g,bgA:b,bgLeft:u,bgRight:h,bgTop:f,bgBot:v,text:d}=t,x=Object(i.h)(o,a),{width:y,height:w,chars:k}=Object(n.a)(d,s);return{root:{transform:`translate(${e}px, ${r-c}px) scale(${c/20})`},chars:k.map(({x:t,y:s,u:e,v:n})=>{const r=`${-e}px ${-n}px`;return{ctn:{left:t+"px",top:s+"px"},bg:{"background-position":r},mask:{"mask-position":r,"-webkit-mask-position":r,background:null==p||null==l?x:`linear-gradient(180deg, ${x}, ${Object(i.h)(p,l)})`}}}),bg:{left:e-u+"px",top:r-c-f+"px",width:y*c/20+u+h+"px",height:w*c/20+f+v+"px",background:Object(i.h)(g,b)}}}}},c=(e(377),e(10)),o=Object(c.a)(r,(function(){var t=this,s=t._self._c;return t.config?s("div",[s("div",{style:t.styles.bg}),t._v(" "),s("div",{class:t.previewCssClass,style:t.styles.root},t._l(t.styles.chars,(function(e,i){return s("div",{key:i,staticClass:"char-ctn",style:e.ctn},[s("div",{staticClass:"char-bg",style:e.bg}),t._v(" "),s("div",{staticClass:"char-mask",style:e.mask})])})),0)]):t._e()}),[],!1,null,"a47407c4",null);s.default=o.exports}}]);