Lines Matching refs:t

30 …if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't bee…
69 function t(t, e, s) {
70 if (t && t.length) {
78 t.forEach(function (t) {
79 var _t = _slicedToArray(t, 2),
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],
90 s = t[1];
94 function s(t, e, s, n) {
95 var o = e[1] - t[1],
96 a = t[0] - e[0],
97 r = o * t[0] + a * t[1],
105 function n(t, e, s) {
106 var n = t.length;
113 var _s2 = t[_e3],
114 _l = t[(_e3 + 1) % n];
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),
137 i = a(s, n, t),
139 …return r !== h && i !== c || !(0 !== r || !o(t, s, e)) || !(0 !== h || !o(t, n, e)) || !(0 !== i |…
145 o && t(e, n, o);
147 var a = function (t, e) {
148 var s = _toConsumableArray(t);
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 …return t.ymin < e.ymin ? -1 : t.ymin > e.ymin ? 1 : t.x < e.x ? -1 : t.x > e.x ? 1 : t.ymax === e.…
191 o.splice(0, _t4 + 1).forEach(function (t) {
194 edge: t
199 if (a = a.filter(function (t) {
200 return !(t.edge.ymax <= r);
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;
223 return o && (t(e, n, -o), function (e, s, n) {
225 e.forEach(function (t) {
226 return o.push.apply(o, _toConsumableArray(t));
227 }), t(o, s, n);
232 function i(t) {
235 this.helper = 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);
250 var _e7 = this.connectingLines(t, n);
262 value: function renderLines(t, e) {
265 var _iterator = _createForOfIteratorHelper(t),
283 value: function connectingLines(t, s) {
291 var _e8 = this.splitOnIntersections(t, _r2);
300 value: function midPointInPolygon(t, e) {
301 return n(t, (e[0][0] + e[1][0]) / 2, (e[0][1] + e[1][1]) / 2);
305 value: function splitOnIntersections(t, o) {
309 for (var _n4 = 0; _n4 < t.length; _n4++) {
310 var _i2 = t[_n4],
311 _c = t[(_n4 + 1) % t.length];
329 var _e9 = h.sort(function (t, e) {
330 return t.distance - e.distance;
331 }).map(function (t) {
332 return t.point;
335t].concat(_toConsumableArray(o[0]))) || _e9.shift(), n.apply(void 0, [t].concat(_toConsumableArray…
342 this.midPointInPolygon(t, _n6) && _a3.push(_n6);
348 return this.midPointInPolygon(t, o) ? [o] : [];
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),
394 o = this._fillPolygon(t, n);
404 function u(t) {
407 this.helper = t;
412 value: function fillPolygon(t, e) {
413 var s = h(t, e = Object.assign({}, e, {
422 value: function dotsOnLines(t, s) {
430 var _iterator2 = _createForOfIteratorHelper(t),
470 function p(t) {
473 this.helper = t;
478 value: function fillPolygon(t, e) {
479 var s = h(t, e);
487 value: function dashedLine(t, s) {
493 return t.forEach(function (t) {
494 var r = e(t),
497 var c = t[0],
498 l = t[1];
499 c[0] > l[0] && (c = t[1], l = t[0]);
518 function f(t) {
521 this.helper = t;
526 value: function fillPolygon(t, e) {
529 o = h(t, e = Object.assign({}, e, {
539 value: function zigzagLines(t, s, n) {
543 return t.forEach(function (t) {
544 var a = e(t),
546 var h = t[0],
547 i = t[1];
548 h[0] > i[0] && (h = t[1], i = t[0]);
571 function g(t) {
574 this.seed = t;
603 t: 2,
610 function k(t, e) {
611 return t.type === e;
614 function b(t) {
616 s = function (t) {
619 for (; "" !== t;) {
620 …if (t.match(/^([ \t\r\n,]+)/)) t = t.substr(RegExp.$1.length);else if (t.match(/^([aAcChHlLmMqQsSt…
623 }, t = t.substr(RegExp.$1.length);else {
624 if (!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/)) return [];
628 }, t = t.substr(RegExp.$1.length);
636 }(t);
647 if ("M" !== a.text && "m" !== a.text) return b("M0,0" + t);
672 function y(t) {
681 var _iterator3 = _createForOfIteratorHelper(t),
728 var _t13 = _h6.map(function (t, n) {
729 return n % 2 ? t + s : t + e;
748 var _t14 = _h6.map(function (t, n) {
749 return n % 2 ? t + s : t + e;
810 var _t15 = _h6.map(function (t, n) {
811 return n % 2 ? t + s : t + e;
828 case "t":
852 function m(t) {
864 var _iterator4 = _createForOfIteratorHelper(t),
975 P(n, o, _i8, _c7, _t19, _s7, _a8, _r9, _h13).forEach(function (t) {
978 data: t
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), _…
1028 var _r10 = (t - s) / 2,
1041t + s) / 2, M = _m * -a * _r10 / o + (e + n) / 2, f = Math.asin(parseFloat(((e - M) / a).toFixed(9…
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) {
1106 var n = (t || []).length;
1112 …_o5.push.apply(_o5, _toConsumableArray(z(t[_e17][0], t[_e17][1], t[_e17 + 1][0], t[_e17 + 1][1], 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…
1121 return 2 === n ? v(t[0][0], t[0][1], t[1][0], t[1][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);
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);
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)),
1156 var r = Math.abs(t / 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) {
1193 var c = t,
1228 function D(t, e) {
1231 if (t.length) {
1233 _o7 = t.length;
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) {
1258 var s = t.fillStyle || "hachure";
1285 }(e, x).fillPolygon(t, e);
1288 function C(t) {
1289 return t.randomizer || (t.randomizer = new g(t.seed || 0)), t.randomizer.next();
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),
1321 d = o.bowing * o.maxRandomnessOffset * (t - s) / 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)]);
1352 for (var _o8 = 1; _o8 < t.length; _o8++) {
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) {
1360 var n = t.length,
1369 data: [t[1][0], t[1][1]]
1373 var _s9 = t[_e18];
1374t[_e18 + 1][0] - _r11 * t[_e18 - 1][0]) / 6, _s9[1] + (_r11 * t[_e18 + 1][1] - _r11 * t[_e18 - 1][…
1389 data: [t[1][0], t[1][1]]
1392 data: [t[1][0], t[1][1], t[2][0], t[2][1], t[2][0], t[2][1]]
1393 })) : 2 === n && o.push.apply(o, _toConsumableArray(z(t[0][0], t[0][1], t[1][0], t[1][1], 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)]);
1404 for (var _r12 = l; _r12 < 2 * Math.PI + l - .01; _r12 += t) {
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)]);
1417 for (var _a12 = c; _a12 <= r; _a12 += t) {
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]]
1447 function j(t) {
1448 return _toConsumableArray(t);
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) {
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],
1517 h = t[s - 1];
1522 var _e19 = Z(t[_n11], r, h);
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…
1530 function J(t) {
1534 o = (t.length - 1) / 3;
1537 H(t, 3 * _s11, e, n);
1546 function U(t) {
1570 …}, this.config = t || {}, this.config.options && (this.defaultOptions = this._o(this.config.option…
1575 value: function _o(t) {
1576 return t ? Object.assign({}, this.defaultOptions, t) : this.defaultOptions;
1580 value: function _d(t, e, s) {
1582 shape: t,
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) {
1633 return this._d("linearPath", [O(t, !1, s)], s);
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) {
1650 var h = t,
1671 }(t, e, s, n, o, a, i));
1676 value: function curve(t, e) {
1679 o = L(t, s);
1681 if (s.fill && s.fill !== K && t.length >= 3) {
1682 var _e20 = J(function (t) {
1684 var s = t.length;
1687 if (3 === s) n.push(j(t[0]), j(t[1]), j(t[2]), j(t[2]));else {
1690 _s13.push(t[0], t[0]);
1692 for (var _e21 = 1; _e21 < t.length; _e21++) {
1693 _s13.push(t[_e21]), _e21 === t.length - 1 && _s13.push(t[_e21]);
1707 }(t), 10, (1 + s.roughness) / 2);
1716 value: function polygon(t, e) {
1719 o = O(t, !0, s);
1721 …return s.fill && ("solid" === s.fillStyle ? n.push(D(t, s)) : n.push(_(t, s))), s.stroke !== K && …
1725 value: function path(t, e) {
1729 if (!t) return this._d("path", n, s);
1730 t = (t || "").replace(/\n/g, " ").replace(/(-\s)/g, "-").replace("/(ss)/g", " ");
1735 h = function (t, e, s) {
1736 var n = m(y(b(t))),
1801 }(t, 1, r ? 4 - 4 * s.simplification : (1 + s.roughness) / 2);
1808 } else h.forEach(function (t) {
1809 "solid" === s.fillStyle ? n.push(D(t, s)) : n.push(_(t, s));
1811 return a && (r ? h.forEach(function (t) {
1812 n.push(O(t, !1, s));
1813 }) : n.push(function (t, e) {
1814 var s = m(y(b(t))),
1832 var t = 1 * (e.maxRandomnessOffset || 0),
1837 return n + (s ? 0 : W(t, e));
1878 }(t, s))), this._d("path", n, s);
1882 value: function opsToPath(t, e) {
1885 var _iterator7 = _createForOfIteratorHelper(t.ops),
1892 var _t33 = "number" == typeof e && e >= 0 ? _n12.data.map(function (t) {
1893 return +t.toFixed(e);
1919 value: function toPaths(t) {
1920 var e = t.sets || [],
1921 s = t.options || this.defaultOptions,
1967 value: function fillSketch(t, e) {
1970 d: this.opsToPath(t),
1987 function Y(t, e) {
1990 this.canvas = t, this.ctx = this.canvas.getContext("2d"), this.gen = new U(e);
1995 value: function draw(t) {
1996 var e = t.sets || [],
1997 s = t.options || this.getDefaultOptions(),
2015 var _e26 = "curve" === t.shape || "polygon" === t.shape ? "evenodd" : "nonzero";
2032 value: function fillSketch(t, e, s) {
2034t.save(), s.fillLineDash && t.setLineDash(s.fillLineDash), s.fillLineDashOffset && (t.lineDashOffs…
2038 value: function _drawToContext(t, e) {
2040 t.beginPath();
2052 t.moveTo(_e27[0], _e27[1]);
2056 t.bezierCurveTo(_e27[0], _e27[1], _e27[2], _e27[3], _e27[4], _e27[5]);
2060 t.lineTo(_e27[0], _e27[1]);
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);
2153 value: function draw(t) {
2154 var e = t.sets || [],
2155 s = t.options || this.getDefaultOptions(),
2158 a = t.options.fixedDecimalPlaceDigits;
2174 …h", "0"), _e28.setAttribute("fill", s.fill || ""), "curve" !== t.shape && "polygon" !== t.shape ||…
2193 value: function fillSketch(t, e, s) {
2196 var o = t.createElementNS(tt, "path");
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);
2282 generator: function generator(t) {
2283 return new U(t);