diff --git a/dist/leon.js b/dist/leon.js index 2d1c57b..addc31e 100644 --- a/dist/leon.js +++ b/dist/leon.js @@ -1 +1,15 @@ -var LeonSans=function(t){var r={};function e(i){if(r[i])return r[i].exports;var n=r[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}return e.m=t,e.c=r,e.d=function(t,r,i){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:i})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var n in t)e.d(i,n,function(r){return t[r]}.bind(null,n));return i},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=0)}([function(t,r,e){var i=e(1).default;t.exports=i},function(t,r,e){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,r){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:0,y:arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,w:t.rect.w*d*r,h:(t.rect.h+220)*d*r}}function x(t,r,e){return{x:t/2,y:(r-130*d*e)/2}}function b(t,r,e){var i=t.ratio.x1,n=t.ratio.x2,a=t.ratio.y1,l=t.ratio.y2;return{r:r,cr:e,fr1:u,fr2:y,gx1:i,gx2:n,gy1:a,gy2:l}}function g(t,r,e,i,n){var a=(i-n)/(r-e)*(t-e)+n;return ai&&(a=i),a}function m(t){var r,e,i,n,a,l,o,s,f,h,u,y=t.typo.p.length,d=[];for(r=0;r0)for(i=0;i0&&"a"!=r.pos.type){var i=r.lengths*e;t.setLineDash([r.lengths]),t.lineDashOffset=r.direction*(i+r.lengths),t.stroke()}}})}return d}function _(t,r){var e,i,n=t.length,a=[];for(e=0;e0){var s=e*o;t.setLineDash([e]),t.lineDashOffset=r.direction*(s+e),t.stroke()}return l}function H(t,r,e,i){var n,a;if(1==r.drawing.value)for(n=r.lines.length,a=0;a0&&(c[0].start=1,Array.prototype.push.apply(d,c))}return d}function et(t,r,e){var i,n,a,l,o,s,f,h=t.length,u=[],y=1,d=1;for(r>-1&&(d=g(r,1,0,80,10)*e),i=0;i0&&null!=(f=it(o,tt,l,s))&&(y&&(f.type="m",y=0),u.push(f)),tt=new V(o);return u}function it(t,r,e,i){if(t.type=e.type,t.distance=e.distance,t.num=i,r&&null==t.rotation){var n=t.x-r.x,a=t.y-r.y,l=Math.atan2(n,a);t.rotation=-l}else t.rotation=t.rotation;return t.rotation==ft?null:t}function nt(t,r){var e=at(t.x1,t.x2,t.x3,t.x4,r),i=at(t.y1,t.y2,t.y3,t.y4,r),n=lt(t.x1,t.x2,t.x3,t.x4,r),a=lt(t.y1,t.y2,t.y3,t.y4,r);return new V({x:e,y:i,rotation:-Math.atan2(n,a)})}function at(t,r,e,i,n){var a=n*n;return t+(3*-t+n*(3*t-t*n))*n+(3*r+n*(-6*r+3*r*n))*n+(3*e-3*e*n)*a+i*(a*n)}function lt(t,r,e,i,n){return 3*n*n*(3*r-t-3*e+i)+6*n*(t-2*r+e)+3*(-t+r)}var ot=Math.PI/180*180,st=Math.PI/180*90,ft=-100,ht="tofu",ut=824;function yt(t,r,e,i,n,a,l,o){var s,f=[],h=o.length;for(s=0;s":yt(423,90,352,0,0,0,0,[{d:-1,v:[["m",0,0,{x:-1,y:.3,r:ct(0,0,90,176)}],["l",90,176,{r:ot,f:1}],["l",0,352,{x:-1,y:.3,f:1}]]}]),"/":yt(433,130,352,0,0,0,0,[{d:1,v:[["m",0,352,{r:ct(0,352,130,0),f:1,y:0}],["l",130,0,{y:0}]]}])},mt=Object.assign({},pt,xt,bt,gt);function _t(t){var r=mt[t]||mt[ht];return r.v=t,r}function wt(t,r,e,i){var n;return n=t.indexOf("\n")>0?t.split("\n"):t.indexOf("\\n")>0?t.split("\\n"):[t],0==e?function(t){var r,e=[],i=t.length;for(r=0;r=e&&(y+=1,u=s.w,d[y]=[]);y+=1}var c=[];for(a=d.length,n=0;n0&&(" "==i[0]&&i.shift()," "==i[i.length-1]&&i.pop(),i.length>0&&c.push(i));return c}(n,r,e):function(t,r,e){var i,n,a,l,o,s,f,h,u,y,d=0,c=0,v=0,x=[];for(h=t.length,o=0;oe&&(d=c,x[v+=1]=[]),x[v].push(n)}v+=1,d=0}h=x.length;var b=[];for(o=0;o0&&b.push(a);return b}(n,r,e)}function Pt(t,r){return{c:(t-r)/2,r:t-r,l:0}}function kt(t,r){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{},i=e.text,n=void 0===i?"":i,a=e.size,l=void 0===a?500:a,s=e.weight,f=void 0===s?o:s,h=e.color,u=void 0===h?["#000000"]:h,y=e.colorful,d=void 0===y?["#c5d73f","#9d529c","#49a9db","#fec330","#5eb96e","#fc5356","#f38f31"]:y,c=e.tracking,v=void 0===c?0:c,p=e.leading,x=void 0===p?0:p,b=e.align,g=void 0===b?"left":b,m=e.pathGap,_=void 0===m?.5:m,w=e.amplitude,P=void 0===w?.5:w,k=e.width,S=void 0===k?0:k,W=e.breakWord,D=void 0!==W&&W,T=e.fps,I=void 0===T?30:T,O=e.isPath,R=void 0!==O&&O,F=e.isWave,M=void 0!==F&&F;return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),(t=Tt(this,Ot(r).call(this))).size_=l,t.weight_=f,t.color_=u,t.colorful_=function(t){for(var r,e,i=t.slice(),n=i.length,a=n;a--;)r=Math.random()*n|0,e=i[a],i[a]=i[r],i[r]=e;return i}(d),t.tracking_=v,t.leading_=x,t.pathGap_=_,t.amplitude_=P,t.width_=S,t.breakWord_=D,t.fps_=I,t.fpsTime_=1e3/t.fps_,t.isPath_=R,t.isWave_=M,t.model=new St,t.str_=null,t.time_=null,t.isFps_=!1,t.isForceRander_=!1,t.updateID_=0,t.dPathsID_=null,t.pPathsID_=null,t.wPathsID_=null,t.guideID_=null,t.text=n,t.model.align=g,t}var e,i,n;return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&Rt(t,r)}(r,a),e=r,(i=[{key:"on",value:function(t,e){It(Ot(r.prototype),"on",this).call(this,t,e),this.update()}},{key:"off",value:function(t,e){It(Ot(r.prototype),"off",this).call(this,t,e)}},{key:"position",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.model.position(t,r)&&(this.updateID_++,this.updateSignal())}},{key:"update",value:function(){this.updateID_++,this.model.update(this.str_,this.width_,this.breakWord_,this.weight_,this.size_,this.tracking_,this.leading_),this.isPath_||this.isWave_?(this.updatePatternPaths(),this.updateWavePaths()):this.updateSignal()}},{key:"updateGuide",value:function(){this.guideID_!=this.updateID_&&(this.guideID_=this.updateID_,this.model.updateGuide())}},{key:"updateDrawingPaths",value:function(){this.dPathsID_!=this.updateID_&&(this.dPathsID_=this.updateID_,this.model.updateDrawingPaths())}},{key:"updatePatternPaths",value:function(t){this.isPath_&&(t||this.pPathsID_!=this.updateID_)&&(this.pPathsID_=this.updateID_,this.model.updatePatternPaths(this.pathGap_),this.isForceRander_=!0,this.updateSignal())}},{key:"updateWavePaths",value:function(t){this.isWave_&&(t||this.wPathsID_!=this.updateID_)&&(this.wPathsID_=this.updateID_,this.model.updateWavePaths(this.pathGap_),this.isForceRander_=!0,this.updateSignal())}},{key:"updateSignal",value:function(){this.model.updateLinesForRect(),this.model.updatePathsForRect(),this.dispatch("update",this.model)}},{key:"reset",value:function(){this.size_=500,this.weight_=o,this.color_=["#000000"],this.tracking_=0,this.leading_=0,this.pathGap_=.5,this.amplitude_=.5,this.width_=0,this.breakWord_=!1,this.fps_=30,this.fpsTime_=1e3/this.fps_,this.isPath_=!1,this.isWave_=!1,this.str_=null,this.time_=null,this.isFps_=!1,this.isForceRander_=!1,this.updateID_=0,this.dPathsID_=null,this.pPathsID_=null,this.wPathsID_=null,this.guideID_=null,this.model.reset()}},{key:"dispose",value:function(){this.reset(),this.model=null}},{key:"drawPixi",value:function(t){var r,e,i,n=this.model.data.length;for(r=0;rq&&(X(t),t.beginPath(),f&&t.moveTo(f.x,f.y),t.lineTo(s.x,s.y),y+=B(t,o,u,h,n,y)),f=s):"b"==s.type&&((u=C(f.x,f.y,s.x,s.y,s.x2,s.y2,s.x3,s.y3))/r.scale>q&&(X(t),t.beginPath(),f&&t.moveTo(f.x,f.y),t.bezierCurveTo(s.x,s.y,s.x2,s.y2,s.x3,s.y3),y+=B(t,o,u,h,n,y)),f={x:s.x3,y:s.y3})}(t,this.model,this.colorful_)}},{key:"wave",value:function(t,r){t.lineWidth=this.lineWidth,r&&(this.time_||(this.time_=r),r-this.time_>this.fpsTime_||this.isForceRander_?(this.time_=r,this.isFps_=!0):this.isFps_=!1),this.isForceRander_=!1;var e,i,n=this.model.data.length;for(e=0;es&&(t=s),this.weight_!=t&&(this.weight_=t,this.update(),this.isForceRander_=!0)}},{key:"color",get:function(){return this.color_},set:function(t){this.color_!=t&&(this.color_=t)}},{key:"tracking",get:function(){return this.tracking_},set:function(t){this.tracking_!=t&&(this.tracking_=t,this.update(),this.isForceRander_=!0)}},{key:"leading",get:function(){return this.leading_},set:function(t){this.leading_!=t&&(this.leading_=t,this.update(),this.isForceRander_=!0)}},{key:"align",get:function(){return this.model.align},set:function(t){this.model.align!=t&&(this.model.align=t,this.updateID_++,this.updateSignal())}},{key:"pathGap",get:function(){return this.pathGap_},set:function(t){this.pathGap_!=t&&(this.pathGap_=t,this.updatePatternPaths(!0),this.updateWavePaths(!0),this.isForceRander_=!0)}},{key:"amplitude",get:function(){return this.amplitude_},set:function(t){this.amplitude_=t}},{key:"rect",get:function(){return this.model.rect}},{key:"maxWidth",set:function(t){this.width_!=t&&(this.width_=t,this.update())},get:function(){return this.width_}},{key:"breakWord",set:function(t){this.breakWord_!=t&&(this.breakWord_=t,this.update())},get:function(){return this.breakWord_}},{key:"isPath",get:function(){return this.isPath_},set:function(t){this.isPath_=t,this.updatePatternPaths(!0)}},{key:"isWave",get:function(){return this.isWave_},set:function(t){this.isWave_=t,this.updateWavePaths(!0)}},{key:"fps",get:function(){return this.fps_},set:function(t){this.fps_=t,this.fpsTime_=1e3/this.fps_}},{key:"lineWidth",get:function(){return this.model.lineWidth}},{key:"scale",get:function(){return this.model.scale}},{key:"drawing",get:function(){return this.model.drawing}},{key:"data",get:function(){return this.model.data}},{key:"paths",get:function(){return this.model.paths}},{key:"drawingPaths",get:function(){return this.model.drawingPaths}},{key:"wavePaths",get:function(){return this.model.wavePaths}}])&&Dt(e.prototype,i),n&&Dt(e,n),r}()}]); \ No newline at end of file +/*! + * VERSION: 1.6.1 + * DATE: 2019-09-05 + * https://leon-sans.com + * + * @license Copyright (c) 2019, Jongmin Kim. All rights reserved. + **/ +var LeonSans=function(t){var r={};function e(i){if(r[i])return r[i].exports;var n=r[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}return e.m=t,e.c=r,e.d=function(t,r,i){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:i})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var n in t)e.d(i,n,function(r){return t[r]}.bind(null,n));return i},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=0)}([function(t,r,e){var i=e(1).default;t.exports=i},function(t,r,e){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,r){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:0,y:arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,w:t.rect.w*u*r,h:(t.rect.h+220)*u*r}}function x(t,r,e){return{x:t/2,y:(r-130*u*e)/2}}function g(t,r,e){var i=t.ratio.x1,n=t.ratio.x2,a=t.ratio.y1,s=t.ratio.y2;return{r:r,cr:e,fr1:h,fr2:c,gx1:i,gx2:n,gy1:a,gy2:s}}function b(t,r,e,i,n){var a=(i-n)/(r-e)*(t-e)+n;return ai&&(a=i),a}function m(t){var r,e,i,n,a,s,o,l,f,y,h,c=t.typo.p.length,u=[];for(r=0;r0)for(i=0;i0&&"a"!=r.pos.type){var i=r.lengths*e;t.setLineDash([r.lengths]),t.lineDashOffset=r.direction*(i+r.lengths),t.stroke()}}})}return u}function S(t,r){var e,i,n=t.length,a=[];for(e=0;e0){var l=e*o;t.setLineDash([e]),t.lineDashOffset=r.direction*(l+e),t.stroke()}return s}function X(t,r,e,i){var n,a;if(1==r.drawing.value)for(n=r.lines.length,a=0;a0&&(d[0].start=1,Array.prototype.push.apply(u,d))}return u}function et(t,r,e){var i,n,a,s,o,l,f,y=t.length,h=[],c=1,u=1;for(r>-1&&(u=b(r,1,0,80,10)*e),i=0;i0&&null!=(f=it(o,tt,s,l))&&(c&&(f.type="m",c=0),h.push(f)),tt=new V(o);return h}function it(t,r,e,i){if(t.type=e.type,t.distance=e.distance,t.num=i,r&&null==t.rotation){var n=t.x-r.x,a=t.y-r.y,s=Math.atan2(n,a);t.rotation=-s}else t.rotation=t.rotation;return t.rotation==ft?null:t}function nt(t,r){var e=at(t.x1,t.x2,t.x3,t.x4,r),i=at(t.y1,t.y2,t.y3,t.y4,r),n=st(t.x1,t.x2,t.x3,t.x4,r),a=st(t.y1,t.y2,t.y3,t.y4,r);return new V({x:e,y:i,rotation:-Math.atan2(n,a)})}function at(t,r,e,i,n){var a=n*n;return t+(3*-t+n*(3*t-t*n))*n+(3*r+n*(-6*r+3*r*n))*n+(3*e-3*e*n)*a+i*(a*n)}function st(t,r,e,i,n){return 3*n*n*(3*r-t-3*e+i)+6*n*(t-2*r+e)+3*(-t+r)}var ot=Math.PI/180*180,lt=Math.PI/180*90,ft=-100,yt=1.5,ht="tofu",ct=824;function ut(t,r,e,i,n,a,s,o){var l,f=[],y=o.length;for(l=0;l":ut(423,90,352,0,0,0,0,[{d:-1,v:[["m",0,0,{x:-1,y:.3,r:pt(0,0,90,176)}],["l",90,176,{r:ot,f:1}],["l",0,352,{x:-1,y:.3,f:1}]]}]),"/":ut(433,130,352,0,0,0,0,[{d:1,v:[["m",0,352,{r:pt(0,352,130,0),f:1,y:0}],["l",130,0,{y:0}]]}])};function qt(t,r){var e=140+t,i=-468+r;return[{d:-1,v:[["m",-40+e,350+i,{x:0,y:0,r:pt(-40+e,350+i,0+e,410+i)}],["l",0+e,410+i,{x:0,y:0,f:1}]]}]}function Xt(t,r){var e=150+t,i=-468+r;return[{d:-1,v:[["m",40+e,350+i,{x:0,y:0,r:pt(40+e,350+i,0+e,410+i)}],["l",0+e,410+i,{x:0,y:0,f:1}]]}]}function Bt(t,r){var e=77+t,i=-108+r;return[{d:-1,v:[["m",0+e,50+i,{r:pt(0+e,50+i,68-yt+e,0+i),y:0,x:0}],["l",68-yt+e,0+i,{r:pt(0+e,50+i,68-yt+e,0+i),y:0,x:0,f:1}],["l",68+yt+e,0+i,{r:pt(68+yt+e,0+i,136+e,50+i),y:0,x:0,f:1,v:1}],["l",136+e,50+i,{y:0,x:0,f:1}]]}]}function Ht(t,r){var e=65+t,i=-94+r;return[{d:1,v:[["m",159.52+e,16.56+i,{x:-1,y:-.2,r:vt(159.52+e,16.56+i,150.08+e,29.28+i,134.56+e,37.68+i,118.56+e,37.68+i,0),f:1}],["b",150.08+e,29.28+i,134.56+e,37.68+i,118.56+e,37.68+i,{x:-1,y:-.2,r:lt}],["b",103.28+e,37.68+i,89.68+e,29.28+i,76.24+e,25.5*.8+i,{x:-1,y:-.2}],["b",61.44+e,10.56+i,47.28+e,0+i,39.6*.8+e,0+i,{x:-1,y:-.2,r:lt}],["b",17.84+e,0+i,8.72+e,8.9*.8+i,0+e,16+i,{x:-1,y:-.2}]]}]}function Kt(t,r){return[{d:1,v:[["a",95+t,-78+r,{x:0,y:0}]]},{d:1,v:[["a",195+t,-78+r,{x:0,y:0}]]}]}function Qt(t,r){var e=t,i=r;return[{d:1,v:[["m",112.7+e,0+i,{r:vt(112.7+e,0+i+e,10.1+i,110.1+e,19.3+i,105+e,27.7+i,0),x:0,y:0,f:1}],["b",112.7+e,10.1+i,110.1+e,19.3+i,105+e,27.7+i,{x:0,y:0}],["b",99.8+e,36.1+i,92.9+e,42.8+i,84.3+e,47.7+i,{x:0,y:0}],["b",75.7+e,52.6+i,66.7+e,55+i,57.3+e,55+i,{x:0,y:0}],["b",47.5+e,55+i,38.3+e,52.6+i,29.6+e,47.7+i,{x:0,y:0}],["b",20.8+e,42.8+i,13.8+e,36.1+i,8.5+e,27.7+i,{x:0,y:0}],["b",3.2+e,19.3+i,.5+e,10.1+i,.5+e,0+i,{x:0,y:0}]]}]}function Ut(t,r){var e=88+t,i=-116+r;return[{d:1,v:[["m",116+e,58+i,{r:ot,p:1,f:1}],["b",116+e,90.05+i,90.05+e,116+i,58+e,116+i,{r:lt}],["b",25.95+e,116+i,0+e,90.05+i,0+e,58+i,{r:ot}],["b",0+e,25.95+i,25.95+e,0+i,58+e,0+i,{r:lt}],["b",90.05+e,0+i,116+e,25.95+i,116+e,58+i,{r:ot,c:1}]]}]}var Vt=[{d:1,v:[["m",0,352,{y:0,f:1}],["l",0,130,{y:-3}]]}],Yt=[{d:1,v:[["m",-115.9,444,{x:.4,y:.63,r:vt(-115.9,444,12.6-115.9,454.4,29.6-115.9,460.2,-70,461.2,0),f:1}],["b",12.6-115.9,454.4,29.6-115.9,460.2,-70,461.2,{x:.4,y:.63,r:lt}],["b",84.5-115.9,463.5,0,435.1,0,396.4,{x:.4,y:.63,r:ot}],["l",0,130,{y:-3}]]}],Zt={"À":ut(620,290,352,0,0,0,0,JSON.parse(JSON.stringify(xt)).concat(qt(0,20))),"Á":ut(620,290,352,0,0,0,0,JSON.parse(JSON.stringify(xt)).concat(Xt(0,20))),"Â":ut(620,290,352,0,0,0,0,JSON.parse(JSON.stringify(xt)).concat(Bt(0,0))),"Ã":ut(620,290,352,0,0,0,0,JSON.parse(JSON.stringify(xt)).concat(Ht(0,20))),"Ä":ut(620,290,352,0,0,0,0,JSON.parse(JSON.stringify(xt)).concat(Kt(0,20))),"Å":ut(620,290,352,0,0,0,0,JSON.parse(JSON.stringify(xt)).concat(Ut(0,0))),"à":ut(600,232,232,10,2,-64,-64,JSON.parse(JSON.stringify(Dt)).concat(qt(-29,-15))),"á":ut(600,232,232,10,2,-64,-64,JSON.parse(JSON.stringify(Dt)).concat(Xt(-29,-15))),"â":ut(600,232,232,10,2,-64,-64,JSON.parse(JSON.stringify(Dt)).concat(Bt(-29,-15))),"ã":ut(600,232,232,10,2,-64,-64,JSON.parse(JSON.stringify(Dt)).concat(Ht(-29,-15))),"ä":ut(600,232,232,10,2,-64,-64,JSON.parse(JSON.stringify(Dt)).concat(Kt(9,-15))),"å":ut(600,232,232,10,2,-64,-64,JSON.parse(JSON.stringify(Dt)).concat(Ut(-30,0))),"È":ut(520,192,352,-5,-80,0,0,JSON.parse(JSON.stringify(bt)).concat(qt(-40,0))),"É":ut(520,192,352,-5,-80,0,0,JSON.parse(JSON.stringify(bt)).concat(Xt(-40,0))),"Ê":ut(520,192,352,-5,-80,0,0,JSON.parse(JSON.stringify(bt)).concat(Bt(-49,0))),"Ë":ut(520,192,352,-5,-80,0,0,JSON.parse(JSON.stringify(bt)).concat(Kt(-40,0))),"è":ut(570,225.5,233.1,0,0,-64,-64,JSON.parse(JSON.stringify(It)).concat(qt(-28,-14))),"é":ut(570,225.5,233.1,0,0,-64,-64,JSON.parse(JSON.stringify(It)).concat(Xt(-28,-14))),"ê":ut(570,225.5,233.1,0,0,-64,-64,JSON.parse(JSON.stringify(It)).concat(Bt(-28,-14))),"ë":ut(570,225.5,233.1,0,0,-64,-64,JSON.parse(JSON.stringify(It)).concat(Kt(-28,-14))),"Ì":ut(249,0,352,0,0,0,0,JSON.parse(JSON.stringify(_t)).concat(qt(-145,0))),"Í":ut(249,0,352,0,0,0,0,JSON.parse(JSON.stringify(_t)).concat(Xt(-145,0))),"Î":ut(249,0,352,0,0,0,0,JSON.parse(JSON.stringify(_t)).concat(Bt(-145,0))),"Ï":ut(249,0,352,0,0,0,0,JSON.parse(JSON.stringify(_t)).concat(Kt(-145,0))),"ì":ut(200,0,352,0,0,0,0,JSON.parse(JSON.stringify(Vt)).concat(qt(-145,109))),"í":ut(200,0,352,0,0,0,0,JSON.parse(JSON.stringify(Vt)).concat(Xt(-145,109))),"î":ut(200,0,352,0,0,0,0,JSON.parse(JSON.stringify(Vt)).concat(Bt(-145,109))),"ï":ut(200,0,352,0,0,0,0,JSON.parse(JSON.stringify(Vt)).concat(Kt(-145,109))),"Ñ":ut(721,250,352,0,0,0,0,JSON.parse(JSON.stringify(Jt)).concat(Ht(-20,0))),"ñ":ut(520,182,352,0,0,0,0,JSON.parse(JSON.stringify(Mt)).concat(Ht(-54,109))),"Ò":ut(850,360,360,0,0,0,0,JSON.parse(JSON.stringify(Nt)).concat(qt(35,4))),"Ó":ut(850,360,360,0,0,0,0,JSON.parse(JSON.stringify(Nt)).concat(Xt(35,4))),"Ô":ut(850,360,360,0,0,0,0,JSON.parse(JSON.stringify(Nt)).concat(Bt(35,4))),"Õ":ut(850,360,360,0,0,0,0,JSON.parse(JSON.stringify(Nt)).concat(Ht(35,4))),"Ö":ut(850,360,360,0,0,0,0,JSON.parse(JSON.stringify(Nt)).concat(Kt(35,4))),"Ø":ut(850,360,360,0,0,0,0,JSON.parse(JSON.stringify(Nt)).concat([{d:1,v:[["m",0,360,{r:pt(0,360,360,0),f:1,x:0,y:1}],["l",360,0,{x:0,y:1}]]}])),"ò":ut(580,232,232,0,0,-64,-64,JSON.parse(JSON.stringify(jt)).concat(qt(-29,-15))),"ó":ut(580,232,232,0,0,-64,-64,JSON.parse(JSON.stringify(jt)).concat(Xt(-29,-15))),"ô":ut(580,232,232,0,0,-64,-64,JSON.parse(JSON.stringify(jt)).concat(Bt(-29,-15))),"õ":ut(580,232,232,0,0,-64,-64,JSON.parse(JSON.stringify(jt)).concat(Ht(-29,-15))),"ö":ut(580,232,232,0,0,-64,-64,JSON.parse(JSON.stringify(jt)).concat(Kt(-29,-15))),"ø":ut(580,232,232,0,0,-64,-64,JSON.parse(JSON.stringify(jt)).concat([{d:1,v:[["m",0,232,{r:pt(0,232,232,0),f:1,x:0,y:1}],["l",232,0,{x:0,y:1}]]}])),"Ù":ut(712,250,355,0,0,-.5,-.5,JSON.parse(JSON.stringify(Pt)).concat(qt(-20,1))),"Ú":ut(712,250,355,0,0,-.5,-.5,JSON.parse(JSON.stringify(Pt)).concat(Xt(-20,1))),"Û":ut(712,250,355,0,0,-.5,-.5,JSON.parse(JSON.stringify(Pt)).concat(Bt(-20,1))),"Ŭ":ut(712,250,355,0,0,-.5,-.5,JSON.parse(JSON.stringify(Pt)).concat(Qt(69,-107))),"Ü":ut(712,250,355,0,0,-.5,-.5,JSON.parse(JSON.stringify(Pt)).concat(Kt(-20,1))),"ù":ut(520,182,352,0,0,0,0,JSON.parse(JSON.stringify(Ct)).concat(qt(-54,109))),"ú":ut(520,182,352,0,0,0,0,JSON.parse(JSON.stringify(Ct)).concat(Xt(-54,109))),"û":ut(520,182,352,0,0,0,0,JSON.parse(JSON.stringify(Ct)).concat(Bt(-54,109))),"ŭ":ut(520,182,352,0,0,0,0,JSON.parse(JSON.stringify(Ct)).concat(Qt(34,0))),"ü":ut(520,182,352,0,0,0,0,JSON.parse(JSON.stringify(Ct)).concat(Kt(-54,109))),"Ý":ut(673,270,352,0,0,0,0,JSON.parse(JSON.stringify(kt)).concat(Xt(-10,0))),"ý":ut(500,225.5,331.5,10,10,-119,-119,JSON.parse(JSON.stringify(Lt)).concat(Xt(-30,-20))),"ÿ":ut(500,225.5,331.5,10,10,-119,-119,JSON.parse(JSON.stringify(Lt)).concat(Kt(-30,-20))),"Ĉ":ut(700,293.1,360,0,0,0,0,JSON.parse(JSON.stringify(gt)).concat(Bt(20,4))),"Ĝ":ut(840,352,360,0,0,0,0,JSON.parse(JSON.stringify(mt)).concat(Bt(30,4))),"Ĥ":ut(684,232,352,0,0,0,0,JSON.parse(JSON.stringify(St)).concat(Bt(-29,0))),"Ĵ":ut(472,172.5,355.5,10,20,-2,-2,JSON.parse(JSON.stringify(Ot)).concat(Bt(-50,0))),"Ŝ":ut(560,224,360,0,0,0,0,JSON.parse(JSON.stringify(wt)).concat(Bt(-30,4))),"ĉ":ut(520,212.1,233.1,2,-10,-64,-64,JSON.parse(JSON.stringify(Tt)).concat(Bt(-29,-14))),"ĝ":ut(600,232,338,10,2,-117,-117,JSON.parse(JSON.stringify(Rt)).concat(Bt(-29,-15))),"ĥ":ut(520,182,352,0,0,0,0,JSON.parse(JSON.stringify(Ft)).concat(Bt(-52,9))),"ĵ":ut(220,115.9,352,-60,-60,0,0,JSON.parse(JSON.stringify(Yt)).concat(Bt(-155,109))),"ŝ":ut(400,143.808,231.12,0,0,-64,-64,JSON.parse(JSON.stringify(Gt)).concat(Bt(-73,-15)))},$t=Object.assign({},Wt,zt,At,Et,Zt);function tr(t){var r=$t[t]||$t[ht];return r.v=t,r}function rr(t,r,e,i){var n;return n=t.indexOf("\n")>0?t.split("\n"):t.indexOf("\\n")>0?t.split("\\n"):[t],0==e?function(t){var r,e=[],i=t.length;for(r=0;r=e&&(c+=1,h=l.w,u[c]=[]);c+=1}var d=[];for(a=u.length,n=0;n0&&(" "==i[0]&&i.shift()," "==i[i.length-1]&&i.pop(),i.length>0&&d.push(i));return d}(n,r,e):function(t,r,e){var i,n,a,s,o,l,f,y,h,c,u=0,d=0,p=0,x=[];for(y=t.length,o=0;oe&&(u=d,x[p+=1]=[]),x[p].push(n)}p+=1,u=0}y=x.length;var g=[];for(o=0;o0&&g.push(a);return g}(n,r,e)}function er(t,r){return{c:(t-r)/2,r:t-r,l:0}}function ir(t,r){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{},i=e.text,n=void 0===i?"":i,a=e.size,s=void 0===a?500:a,l=e.weight,f=void 0===l?o:l,y=e.color,h=void 0===y?["#000000"]:y,c=e.colorful,u=void 0===c?["#c5d73f","#9d529c","#49a9db","#fec330","#5eb96e","#fc5356","#f38f31"]:c,d=e.tracking,p=void 0===d?0:d,v=e.leading,x=void 0===v?0:v,g=e.align,b=void 0===g?"left":g,m=e.pathGap,S=void 0===m?.5:m,_=e.amplitude,O=void 0===_?.5:_,J=e.width,N=void 0===J?0:J,w=e.breakWord,P=void 0!==w&&w,k=e.fps,W=void 0===k?30:k,D=e.isPath,T=void 0!==D&&D,I=e.isWave,R=void 0!==I&&I;return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),(t=or(this,fr(r).call(this))).size_=s,t.weight_=f,t.color_=h,t.colorful_=function(t){for(var r,e,i=t.slice(),n=i.length,a=n;a--;)r=Math.random()*n|0,e=i[a],i[a]=i[r],i[r]=e;return i}(u),t.tracking_=p,t.leading_=x,t.pathGap_=S,t.amplitude_=O,t.width_=N,t.breakWord_=P,t.fps_=W,t.fpsTime_=1e3/t.fps_,t.isPath_=T,t.isWave_=R,t.model=new nr,t.str_=null,t.time_=null,t.isFps_=!1,t.isForceRander_=!1,t.updateID_=0,t.dPathsID_=null,t.pPathsID_=null,t.wPathsID_=null,t.guideID_=null,t.text=n,t.model.align=b,t}var e,i,n;return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&yr(t,r)}(r,a),e=r,(i=[{key:"on",value:function(t,e){lr(fr(r.prototype),"on",this).call(this,t,e),this.update()}},{key:"off",value:function(t,e){lr(fr(r.prototype),"off",this).call(this,t,e)}},{key:"position",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.model.position(t,r)&&(this.updateID_++,this.updateSignal())}},{key:"update",value:function(){this.updateID_++,this.model.update(this.str_,this.width_,this.breakWord_,this.weight_,this.size_,this.tracking_,this.leading_),this.isPath_||this.isWave_?(this.updatePatternPaths(),this.updateWavePaths()):this.updateSignal()}},{key:"updateGuide",value:function(){this.guideID_!=this.updateID_&&(this.guideID_=this.updateID_,this.model.updateGuide())}},{key:"updateDrawingPaths",value:function(){this.dPathsID_!=this.updateID_&&(this.dPathsID_=this.updateID_,this.model.updateDrawingPaths())}},{key:"updatePatternPaths",value:function(t){this.isPath_&&(t||this.pPathsID_!=this.updateID_)&&(this.pPathsID_=this.updateID_,this.model.updatePatternPaths(this.pathGap_),this.isForceRander_=!0,this.updateSignal())}},{key:"updateWavePaths",value:function(t){this.isWave_&&(t||this.wPathsID_!=this.updateID_)&&(this.wPathsID_=this.updateID_,this.model.updateWavePaths(this.pathGap_),this.isForceRander_=!0,this.updateSignal())}},{key:"updateSignal",value:function(){this.model.updateLinesForRect(),this.model.updatePathsForRect(),this.dispatch("update",this.model)}},{key:"reset",value:function(){this.size_=500,this.weight_=o,this.color_=["#000000"],this.tracking_=0,this.leading_=0,this.pathGap_=.5,this.amplitude_=.5,this.width_=0,this.breakWord_=!1,this.fps_=30,this.fpsTime_=1e3/this.fps_,this.isPath_=!1,this.isWave_=!1,this.str_=null,this.time_=null,this.isFps_=!1,this.isForceRander_=!1,this.updateID_=0,this.dPathsID_=null,this.pPathsID_=null,this.wPathsID_=null,this.guideID_=null,this.model.reset()}},{key:"dispose",value:function(){this.reset(),this.model=null}},{key:"drawPixi",value:function(t){var r,e,i,n=this.model.data.length;for(r=0;rA&&(E(t),t.beginPath(),f&&t.moveTo(f.x,f.y),t.lineTo(l.x,l.y),c+=q(t,o,h,y,n,c)),f=l):"b"==l.type&&((h=j(f.x,f.y,l.x,l.y,l.x2,l.y2,l.x3,l.y3))/r.scale>A&&(E(t),t.beginPath(),f&&t.moveTo(f.x,f.y),t.bezierCurveTo(l.x,l.y,l.x2,l.y2,l.x3,l.y3),c+=q(t,o,h,y,n,c)),f={x:l.x3,y:l.y3})}(t,this.model,this.colorful_)}},{key:"wave",value:function(t,r){t.lineWidth=this.lineWidth,r&&(this.time_||(this.time_=r),r-this.time_>this.fpsTime_||this.isForceRander_?(this.time_=r,this.isFps_=!0):this.isFps_=!1),this.isForceRander_=!1;var e,i,n=this.model.data.length;for(e=0;el&&(t=l),this.weight_!=t&&(this.weight_=t,this.update(),this.isForceRander_=!0)}},{key:"color",get:function(){return this.color_},set:function(t){this.color_!=t&&(this.color_=t)}},{key:"tracking",get:function(){return this.tracking_},set:function(t){this.tracking_!=t&&(this.tracking_=t,this.update(),this.isForceRander_=!0)}},{key:"leading",get:function(){return this.leading_},set:function(t){this.leading_!=t&&(this.leading_=t,this.update(),this.isForceRander_=!0)}},{key:"align",get:function(){return this.model.align},set:function(t){this.model.align!=t&&(this.model.align=t,this.updateID_++,this.updateSignal())}},{key:"pathGap",get:function(){return this.pathGap_},set:function(t){this.pathGap_!=t&&(this.pathGap_=t,this.updatePatternPaths(!0),this.updateWavePaths(!0),this.isForceRander_=!0)}},{key:"amplitude",get:function(){return this.amplitude_},set:function(t){this.amplitude_=t}},{key:"rect",get:function(){return this.model.rect}},{key:"maxWidth",set:function(t){this.width_!=t&&(this.width_=t,this.update())},get:function(){return this.width_}},{key:"breakWord",set:function(t){this.breakWord_!=t&&(this.breakWord_=t,this.update())},get:function(){return this.breakWord_}},{key:"isPath",get:function(){return this.isPath_},set:function(t){this.isPath_=t,this.updatePatternPaths(!0)}},{key:"isWave",get:function(){return this.isWave_},set:function(t){this.isWave_=t,this.updateWavePaths(!0)}},{key:"fps",get:function(){return this.fps_},set:function(t){this.fps_=t,this.fpsTime_=1e3/this.fps_}},{key:"lineWidth",get:function(){return this.model.lineWidth}},{key:"scale",get:function(){return this.model.scale}},{key:"drawing",get:function(){return this.model.drawing}},{key:"data",get:function(){return this.model.data}},{key:"paths",get:function(){return this.model.paths}},{key:"drawingPaths",get:function(){return this.model.drawingPaths}},{key:"wavePaths",get:function(){return this.model.wavePaths}}])&&sr(e.prototype,i),n&&sr(e,n),r}()}]); \ No newline at end of file