3 lines
170 KiB
JavaScript
3 lines
170 KiB
JavaScript
|
/*! For license information please see 2.3fb278bc.chunk.js.LICENSE */
|
||
|
(this.webpackJsonpreact=this.webpackJsonpreact||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(13)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){return(a="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function i(e,t){return!t||"object"!==a(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,a=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(r=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(u){a=!0,i=u}finally{try{r||null==o.return||o.return()}finally{if(a)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(1),a=n(2),i=n(4),l=n(3),o=n(5),u="undefined"!==typeof self,s=function(){function e(t,n){Object(r.a)(this,e),this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1},this.config=t||{},this.surface=n,this.config.options&&(this.defaultOptions=this._options(this.config.options))}return Object(a.a)(e,[{key:"_options",value:function(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}},{key:"_drawable",value:function(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}},{key:"getCanvasSize",value:function(){var e=function(e){return e&&"object"===typeof e&&e.baseVal&&e.baseVal.value?e.baseVal.value:e||100};return this.surface?[e(this.surface.width),e(this.surface.height)]:[100,100]}},{key:"computePolygonSize",value:function(e){if(e.length){for(var t=e[0][0],n=e[0][0],r=e[0][1],a=e[0][1],i=1;i<e.length;i++)t=Math.min(t,e[i][0]),n=Math.max(n,e[i][0]),r=Math.min(r,e[i][1]),a=Math.max(a,e[i][1]);return[n-t,a-r]}return[0,0]}},{key:"polygonPath",value:function(e){var t="";if(e.length){t="M".concat(e[0][0],",").concat(e[0][1]);for(var n=1;n<e.length;n++)t="".concat(t," L").concat(e[n][0],",").concat(e[n][1])}return t}},{key:"computePathSize",value:function(e){var t=[0,0];if(u&&self.document)try{var n="http://www.w3.org/2000/svg",r=self.document.createElementNS(n,"svg");r.setAttribute("width","0"),r.setAttribute("height","0");var a=self.document.createElementNS(n,"path");a.setAttribute("d",e),r.appendChild(a),self.document.body.appendChild(r)
|
||
|
//# sourceMappingURL=2.3fb278bc.chunk.js.map
|