Leon Sans is a geometric sans-serif typeface made with code in 2019 by Jongmin Kim.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
63 KiB

/*!
* VERSION: 1.6.3
* DATE: 2019-09-13
* 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;e<r.length;e++){var i=r[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}e.r(r);var a=function(){function t(){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.handlers_={update:{listeners:[]}}}var r,e,a;return r=t,(e=[{key:"on",value:function(t,r){return"function"!=typeof r?(console.error("The listener callback must be a function, the given type is ".concat(i(r))),!1):"string"!=typeof t?(console.error("The event name must be a string, the given type is ".concat(i(t))),!1):(void 0===this.handlers_[t]&&(this.handlers_[t]={listeners:[]}),void this.handlers_[t].listeners.push(r))}},{key:"off",value:function(t,r){if(void 0===this.handlers_[t])return console.error("This event: ".concat(t," does not exist")),!1;this.handlers_[t].listeners=this.handlers_[t].listeners.filter(function(t){return t.toString()!==r.toString()})}},{key:"dispatch",value:function(t,r){this.handlers_[t].listeners.forEach(function(t){t(r)})}}])&&n(r.prototype,e),a&&n(r,a),t}(),s=500,o=1,l=900,f=70,y=80,c=1,h=.78,u=.49,d=120,p=2*Math.PI;function v(t,r){return{x:arguments.length>2&&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:c,fr2:h,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 a<n?a=n:a>i&&(a=i),a}function S(t){var r,e,i,n,a,s,o,l,f,y,c,h=t.typo.p.length,u=[];for(r=0;r<h;r++)for(n=(a=t.typo.p[r]).cv.length,e=0;e<n;e++){if(o=(s=a.cv[e]).addRect(t.rect),l=a.d,y=(f=t.pointsLength.lengths[r])/t.pointsLength.max,c=0,r>0)for(i=0;i<r;i++)c+=t.pointsLength.lengths[i]/t.pointsLength.max;y+=c,u.push({pos:o,drawing:t.drawing,direction:l,lengths:f,maxDrawing:y,minDrawing:c,closePath:s.ratio.c,stroke:function(t,r){var e=b(r.drawing.value,r.maxDrawing,r.minDrawing,1,0);if(e>0&&"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 m(t,r){var e,i,n=t.length,a=[];for(e=0;e<n;e++)i=t[e].addRect(r.rect),a.push(i);return a}function O(t,r){var e,i,n,a=r.lines.length;for(e=0;e<a;e++)"a"==(n=(i=r.lines[e]).pos).type?(t.beginPath(),t.arc(n.x,n.y,n.radius*i.drawing.value,0,p),t.fill(),t.closePath()):"m"==n.type?(t.beginPath(),t.moveTo(n.x,n.y)):"l"==n.type?t.lineTo(n.x,n.y):"b"==n.type&&t.bezierCurveTo(n.x,n.y,n.x2,n.y2,n.x3,n.y3),i.stroke(t,i)}function J(t,r){t.save(),t.lineWidth=1;var e,i=r.lines.length;for(e=0;e<i;e++)_(t,r.lines[e]);for(t.restore(),t.save(),t.lineWidth=1,i=r.typo.p.length,e=0;e<i;e++)N(t,r.typo.p[e],r);t.restore()}function N(t,r,e){var i,n,a,s=r.v.length;fo