Lines Matching refs:e

32 …ing.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
36e: function e(_e29) { throw _e29; }, f: F }; } throw new TypeError("Invalid attempt to iterate non…
69 function t(t, e, s) {
71 var _e2 = _slicedToArray(e, 2),
80 e = _t[0],
83 t[0] = (e - _n) * _r - (s - _o) * _h + _n, t[1] = (e - _n) * _h + (s - _o) * _r + _o;
88 function e(t) {
89 var e = t[0],
91 return Math.sqrt(Math.pow(e[0] - s[0], 2) + Math.pow(e[1] - s[1], 2));
94 function s(t, e, s, n) {
95 var o = e[1] - t[1],
96 a = t[0] - e[0],
105 function n(t, e, s) {
109 i = [e, s];
125 function o(t, e, s) {
126 …return e[0] <= Math.max(t[0], s[0]) && e[0] >= Math.min(t[0], s[0]) && e[1] <= Math.max(t[1], s[1]…
129 function a(t, e, s) {
130 var n = (e[1] - t[1]) * (s[0] - e[0]) - (e[0] - t[0]) * (s[1] - e[1]);
134 function r(t, e, s, n) {
135 var r = a(t, e, s),
136 h = a(t, e, n),
138 c = a(s, n, e);
139 … i !== c || !(0 !== r || !o(t, s, e)) || !(0 !== h || !o(t, n, e)) || !(0 !== i || !o(s, t, n)) ||…
142 function h(e, s) {
145 o && t(e, n, o);
147 var a = function (t, e) {
155 var t = e.hachureGap;
156 t < 0 && (t = 4 * e.strokeWidth), t = Math.max(t, .1);
175 if (o.sort(function (t, e) {
176 … t.ymin < e.ymin ? -1 : t.ymin > e.ymin ? 1 : t.x < e.x ? -1 : t.x > e.x ? 1 : t.ymax === e.ymax ?…
201 }), a.sort(function (t, e) {
202 … return t.edge.x === e.edge.x ? 0 : (t.edge.x - e.edge.x) / Math.abs(t.edge.x - e.edge.x);
211 r += t, a.forEach(function (e) {
212 e.edge.x = e.edge.x + t * e.edge.islope;
221 }(e, s);
223 return o && (t(e, n, -o), function (e, s, n) {
225 e.forEach(function (t) {
240 value: function fillPolygon(t, e) {
241 return this._fillPolygon(t, e);
245 value: function _fillPolygon(t, e) {
247 var n = h(t, e);
257 ops: this.renderLines(n, e)
262 value: function renderLines(t, e) {
271 …y(s, _toConsumableArray(this.helper.doubleLineOps(_n3[0][0], _n3[0][1], _n3[1][0], _n3[1][1], e)));
274 _iterator.e(err);
287 if (e(_a2) < 3) continue;
290 if (e(_r2) > 3) {
300 value: function midPointInPolygon(t, e) {
301 return n(t, (e[0][0] + e[1][0]) / 2, (e[0][1] + e[1][1]) / 2);
306 var a = Math.max(5, .1 * e(o)),
317 var _s4 = e([_t6, o[0]]),
318 _n5 = e([_t6, o[1]]);
329 var _e9 = h.sort(function (t, e) {
330 return t.distance - e.distance;
368 value: function fillPolygon(t, e) {
369 return this._fillPolygon(t, e, !0);
389 value: function fillPolygon(t, e) {
390 var s = this._fillPolygon(t, e),
391 n = Object.assign({}, e, {
392 hachureAngle: e.hachureAngle + 90
412 value: function fillPolygon(t, e) {
413 var s = h(t, e = Object.assign({}, e, {
418 return this.dotsOnLines(s, e);
437 var _t7 = e(_h2),
454 _iterator2.e(err);
478 value: function fillPolygon(t, e) {
479 var s = h(t, e);
482 ops: this.dashedLine(s, e)
494 var r = e(t),
526 value: function fillPolygon(t, e) {
527 var s = e.hachureGap < 0 ? 4 * e.strokeWidth : e.hachureGap,
528 n = e.zigzagOffset < 0 ? s : e.zigzagOffset,
529 o = h(t, e = Object.assign({}, e, {
534 ops: this.zigzagLines(o, n, e)
544 var a = e(t),
610 function k(t, e) {
611 return t.type === e;
615 var e = [],
617 var e = new Array();
620 …+)/)) t = t.substr(RegExp.$1.length);else if (t.match(/^([aAcChHlLmMqQsStTvVzZ])/)) e[e.length] = {
625 e[e.length] = {
632 return e[e.length] = {
635 }, e;
665 e.push(_t12), o += _r5, a = s[o], "M" === n && (n = "L"), "m" === n && (n = "l");
669 return e;
675 var e = 0,
695 …}), (_h7 = _h6, _h8 = _slicedToArray(_h7, 2), e = _h8[0], s = _h8[1], _h7), (_h9 = _h6, _h10 = _sl…
699 e += _h6[0], s += _h6[1], a.push({
701 data: [e, s]
702 }), n = e, o = s;
709 }), (_h11 = _h6, _h12 = _slicedToArray(_h11, 2), e = _h12[0], s = _h12[1], _h11);
713 e += _h6[0], s += _h6[1], a.push({
715 data: [e, s]
723 }), e = _h6[4], s = _h6[5];
729 return n % 2 ? t + s : t + e;
735 }), e = _t13[4], s = _t13[5];
743 }), e = _h6[2], s = _h6[3];
749 return n % 2 ? t + s : t + e;
755 }), e = _t14[2], s = _t14[3];
763 }), e = _h6[5], s = _h6[6];
767 e += _h6[5], s += _h6[6], a.push({
769 data: [_h6[0], _h6[1], _h6[2], _h6[3], _h6[4], e, s]
777 }), e = _h6[0];
781 e += _h6[0], a.push({
783 data: [e]
805 }), e = _h6[2], s = _h6[3];
811 return n % 2 ? t + s : t + e;
817 }), e = _t15[2], s = _t15[3];
825 }), e = _h6[0], s = _h6[1];
829 e += _h6[0], s += _h6[1], a.push({
831 data: [e, s]
840 }), e = n, s = o;
844 _iterator3.e(err);
855 var e = [];
875 e.push({
882 e.push({
889 e.push({
896 n = _l5[0], e.push({
903 o = _l5[0], e.push({
913 … "C" === s || "S" === s ? (_t16 = n + (n - h), _a5 = o + (o - i)) : (_t16 = n, _a5 = o), e.push({
935 e.push({
954 e.push({
971 if (0 === _t19 || 0 === _s7) e.push({
976 e.push({
986 e.push({
995 _iterator4.e(err);
1000 return e;
1003 function w(t, e, s) {
1004 return [t * Math.cos(s) - e * Math.sin(s), t * Math.sin(s) + e * Math.cos(s)];
1007 function P(t, e, s, n, o, a, r, h, i, c) {
1026 …(_w = w(t, e, -l), _w2 = _slicedToArray(_w, 2), t = _w2[0], e = _w2[1], _w), (_w3 = w(s, n, -l), _…
1029 _c9 = (e - n) / 2;
1041 … * o * _c9 / a + (t + s) / 2, M = _m * -a * _r10 / o + (e + n) / 2, f = Math.asin(parseFloat(((e -…
1061 L = [t, e],
1062 T = [t + O * y, e - S * b],
1083 randOffset: function randOffset(t, e) {
1084 return W(t, e);
1086 randOffsetWithRange: function randOffsetWithRange(t, e, s) {
1087 return E(t, e, s);
1089 ellipse: function ellipse(t, e, s, n, o) {
1091 return I(t, e, o, a).opset;
1093 doubleLineOps: function doubleLineOps(t, e, s, n, o) {
1094 return z(t, e, s, n, o, !0);
1098 function v(t, e, s, n, o) {
1101 ops: z(t, e, s, n, o)
1105 function O(t, e, s) {
1115 …return e && _o5.push.apply(_o5, _toConsumableArray(z(t[n - 1][0], t[n - 1][1], t[0][0], t[0][1], s…
1127 function S(t, e, s, n, o) {
1128 return function (t, e) {
1129 return O(t, !0, e);
1130 }([[t, e], [t + s, e], [t + s, e + n], [t, e + n]], o);
1133 function L(t, e) {
1134 var s = $(t, 1 * (1 + .2 * e.roughness), e);
1136 if (!e.disableMultiStroke) {
1137 var _n8 = $(t, 1.5 * (1 + .22 * e.roughness), function (t) {
1138 var e = Object.assign({}, t);
1139 e.randomizer = void 0, t.seed && (e.seed = t.seed + 1);
1140 return e;
1141 }(e));
1152 function T(t, e, s) {
1153 var n = Math.sqrt(2 * Math.PI * Math.sqrt((Math.pow(t / 2, 2) + Math.pow(e / 2, 2)) / 2)),
1157 h = Math.abs(e / 2);
1166 function I(t, e, s, n) {
1167 var _q = q(n.increment, t, e, n.rx, n.ry, 1, n.increment * E(.1, E(.4, 1, s), s), s),
1175 var _q3 = q(n.increment, t, e, n.rx, n.ry, 1.5, 0, s),
1192 function A(t, e, s, n, o, a, r, h, i) {
1194 l = e;
1228 function D(t, e) {
1232 var _n9 = e.maxRandomnessOffset || 0,
1238 data: [t[0][0] + W(_n9, e), t[0][1] + W(_n9, e)]
1244 data: [t[_a10][0] + W(_n9, e), t[_a10][1] + W(_n9, e)]
1256 function _(t, e) {
1257 return function (t, e) {
1261 d[s] || (d[s] = new c(e));
1265 d[s] || (d[s] = new l(e));
1269 d[s] || (d[s] = new u(e));
1273 d[s] || (d[s] = new p(e));
1277 d[s] || (d[s] = new f(e));
1282 s = "hachure", d[s] || (d[s] = new i(e));
1285 }(e, x).fillPolygon(t, e);
1292 function E(t, e, s) {
1294 return s.roughness * n * (C(s) * (e - t) + t);
1297 function W(t, e) {
1299 return E(-t, t, e, s);
1302 function z(t, e, s, n, o) {
1305 h = R(t, e, s, n, o, !0, !1);
1307 var i = R(t, e, s, n, o, !0, !0);
1311 function R(t, e, s, n, o, a, r) {
1312 var h = Math.pow(t - s, 2) + Math.pow(e - n, 2),
1320 var f = o.bowing * o.maxRandomnessOffset * (n - e) / 200,
1335 data: [t + (b ? 0 : M()), e + (b ? 0 : M())]
1338 data: [t + (b ? 0 : W(l, o, c)), e + (b ? 0 : W(l, o, c))]
1341 …data: [f + t + (s - t) * p + M(), d + e + (n - e) * p + M(), f + t + 2 * (s - t) * p + M(), d + e
1344 …data: [f + t + (s - t) * p + k(), d + e + (n - e) * p + k(), f + t + 2 * (s - t) * p + k(), d + e
1348 function $(t, e, s) {
1350 n.push([t[0][0] + W(e, s), t[0][1] + W(e, s)]), n.push([t[0][0] + W(e, s), t[0][1] + W(e, s)]);
1353 …n.push([t[_o8][0] + W(e, s), t[_o8][1] + W(e, s)]), _o8 === t.length - 1 && n.push([t[_o8][0] + W(
1359 function G(t, e, s) {
1380 if (e && 2 === e.length) {
1384 data: [e[0] + W(_t23, s), e[1] + W(_t23, s)]
1398 function q(t, e, s, n, o, a, r, h) {
1402 c.push([W(a, h) + e + .9 * n * Math.cos(l - t), W(a, h) + s + .9 * o * Math.sin(l - t)]);
1405 var _t24 = [W(a, h) + e + n * Math.cos(_r12), W(a, h) + s + o * Math.sin(_r12)];
1409e + n * Math.cos(l + 2 * Math.PI + .5 * r), W(a, h) + s + o * Math.sin(l + 2 * Math.PI + .5 * r)])…
1412 function F(t, e, s, n, o, a, r, h, i) {
1415 l.push([W(h, i) + e + .9 * n * Math.cos(c - t), W(h, i) + s + .9 * o * Math.sin(c - t)]);
1418 l.push([W(h, i) + e + n * Math.cos(_a12), W(h, i) + s + o * Math.sin(_a12)]);
1421 …return l.push([e + n * Math.cos(r), s + o * Math.sin(r)]), l.push([e + n * Math.cos(r), s + o * Ma…
1424 function V(t, e, s, n, o, a, r, h) {
1440 data: [t + W(c[_f3], h), e + W(c[_f3], h), s + W(c[_f3], h), n + W(c[_f3], h), l[0], l[1]]
1451 function N(t, e) {
1452 return Math.pow(t[0] - e[0], 2) + Math.pow(t[1] - e[1], 2);
1455 function Z(t, e, s) {
1456 var n = N(e, s);
1457 if (0 === n) return N(t, e);
1458 var o = ((t[0] - e[0]) * (s[0] - e[0]) + (t[1] - e[1]) * (s[1] - e[1])) / n;
1459 return o = Math.max(0, Math.min(1, o)), N(t, Q(e, s, o));
1462 function Q(t, e, s) {
1463 return [t[0] + (e[0] - t[0]) * s, t[1] + (e[1] - t[1]) * s];
1466 function H(t, e, s, n) {
1469 if (function (t, e) {
1470 var s = t[e + 0],
1471 n = t[e + 1],
1472 o = t[e + 2],
1473 a = t[e + 3];
1482 }(t, e) < s) {
1483 var _s10 = t[e + 0];
1489 o.push(t[e + 3]);
1492 _a13 = t[e + 0],
1493 _r13 = t[e + 1],
1494 _h15 = t[e + 2],
1495 _i9 = t[e + 3],
1510 function B(t, e) {
1511 return X(t, 0, t.length, e);
1514 function X(t, e, s, n, o) {
1516 r = t[e],
1521 for (var _n11 = e + 1; _n11 < s - 1; ++_n11) {
1527 …return Math.sqrt(i) > n ? (X(t, e, c + 1, n, a), X(t, c, s, n, a)) : (a.length || a.push(r), a.pus…
1531 var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .15;
1537 H(t, 3 * _s11, e, n);
1580 value: function _d(t, e, s) {
1583 sets: e || [],
1589 value: function line(t, e, s, n, o) {
1592 return this._d("line", [v(t, e, s, n, a)], a);
1596 value: function rectangle(t, e, s, n, o) {
1599 h = S(t, e, s, n, a);
1602 var _o9 = [[t, e], [t + s, e], [t + s, e + n], [t, e + n]];
1610 value: function ellipse(t, e, s, n, o) {
1614 i = I(t, e, a, h);
1617 var _s12 = I(t, e, a, h).opset;
1624 value: function circle(t, e, s, n) {
1625 var o = this.ellipse(t, e, s, s, n);
1630 value: function linearPath(t, e) {
1631 var s = this._o(e);
1637 value: function arc(t, e, s, n, o, a) {
1643 l = A(t, e, s, n, o, a, r, !0, i);
1646 var _r14 = A(t, e, s, n, o, a, !0, !1, i);
1649 } else c.push(function (t, e, s, n, o, a, r) {
1651 i = e;
1671 }(t, e, s, n, o, a, i));
1676 value: function curve(t, e) {
1677 var s = this._o(e),
1683 var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
1697 _a14 = 1 - e;
1716 value: function polygon(t, e) {
1717 var s = this._o(e),
1725 value: function path(t, e) {
1726 var s = this._o(e),
1735 h = function (t, e, s) {
1745 h.length >= 4 && (_a15 = a).push.apply(_a15, _toConsumableArray(J(h, e))), h = [];
1784 _iterator5.e(err);
1805 h.forEach(function (e) {
1806 return _t30.push.apply(_t30, _toConsumableArray(e));
1813 }) : n.push(function (t, e) {
1832 var t = 1 * (e.maxRandomnessOffset || 0),
1833 s = e.preserveVertices;
1837 return n + (s ? 0 : W(t, e));
1847 … n.push.apply(n, _toConsumableArray(z(a[0], a[1], _r15[0], _r15[1], e))), a = [_r15[0], _r15[1]];
1860 …n.push.apply(n, _toConsumableArray(V(_t32, _s14, _o12, _h16, _i11, _c11, a, e))), a = [_i11, _c11];
1865 … n.push.apply(n, _toConsumableArray(z(a[0], a[1], o[0], o[1], e))), a = [o[0], o[1]];
1869 _iterator6.e(err);
1882 value: function opsToPath(t, e) {
1892 var _t33 = "number" == typeof e && e >= 0 ? _n12.data.map(function (t) {
1893 return +t.toFixed(e);
1910 _iterator7.e(err);
1920 var e = t.sets || [],
1924 var _iterator8 = _createForOfIteratorHelper(e),
1958 _iterator8.e(err);
1967 value: function fillSketch(t, e) {
1968 var s = e.fillWeight;
1969 return s < 0 && (s = e.strokeWidth / 2), {
1971 stroke: e.fill || K,
1987 function Y(t, e) {
1990 this.canvas = t, this.ctx = this.canvas.getContext("2d"), this.gen = new U(e);
1996 var e = t.sets || [],
2000 var _iterator9 = _createForOfIteratorHelper(e),
2025 _iterator9.e(err);
2032 value: function fillSketch(t, e, s) {
2034 …DashOffset), t.strokeStyle = s.fill || "", t.lineWidth = n, this._drawToContext(t, e), t.restore();
2038 value: function _drawToContext(t, e) {
2042 var _iterator10 = _createForOfIteratorHelper(e.ops),
2064 _iterator10.e(err);
2069 "fillPath" === e.type ? t.fill(s) : t.stroke();
2078 value: function line(t, e, s, n, o) {
2079 var a = this.gen.line(t, e, s, n, o);
2084 value: function rectangle(t, e, s, n, o) {
2085 var a = this.gen.rectangle(t, e, s, n, o);
2090 value: function ellipse(t, e, s, n, o) {
2091 var a = this.gen.ellipse(t, e, s, n, o);
2096 value: function circle(t, e, s, n) {
2097 var o = this.gen.circle(t, e, s, n);
2102 value: function linearPath(t, e) {
2103 var s = this.gen.linearPath(t, e);
2108 value: function polygon(t, e) {
2109 var s = this.gen.polygon(t, e);
2114 value: function arc(t, e, s, n, o, a) {
2117 var i = this.gen.arc(t, e, s, n, o, a, r, h);
2122 value: function curve(t, e) {
2123 var s = this.gen.curve(t, e);
2128 value: function path(t, e) {
2129 var s = this.gen.path(t, e);
2145 function et(t, e) {
2148 this.svg = t, this.gen = new U(e);
2154 var e = t.sets || [],
2160 var _iterator11 = _createForOfIteratorHelper(e),
2184 _iterator11.e(err);
2193 value: function fillSketch(t, e, s) {
2197 …return o.setAttribute("d", this.opsToPath(e, s.fixedDecimalPlaceDigits)), o.setAttribute("stroke",…
2206 value: function opsToPath(t, e) {
2207 return this.gen.opsToPath(t, e);
2211 value: function line(t, e, s, n, o) {
2212 var a = this.gen.line(t, e, s, n, o);
2217 value: function rectangle(t, e, s, n, o) {
2218 var a = this.gen.rectangle(t, e, s, n, o);
2223 value: function ellipse(t, e, s, n, o) {
2224 var a = this.gen.ellipse(t, e, s, n, o);
2229 value: function circle(t, e, s, n) {
2230 var o = this.gen.circle(t, e, s, n);
2235 value: function linearPath(t, e) {
2236 var s = this.gen.linearPath(t, e);
2241 value: function polygon(t, e) {
2242 var s = this.gen.polygon(t, e);
2247 value: function arc(t, e, s, n, o, a) {
2250 var i = this.gen.arc(t, e, s, n, o, a, r, h);
2255 value: function curve(t, e) {
2256 var s = this.gen.curve(t, e);
2261 value: function path(t, e) {
2262 var s = this.gen.path(t, e);
2276 canvas: function canvas(t, e) {
2277 return new Y(t, e);
2279 svg: function svg(t, e) {
2280 return new et(t, e);