Lines Matching refs:s

36s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i…
69 function t(t, e, s) {
74 _a = Math.PI / 180 * s,
81 s = _t[1];
83 t[0] = (e - _n) * _r - (s - _o) * _h + _n, t[1] = (e - _n) * _h + (s - _o) * _r + _o;
90 s = t[1];
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) {
98 h = n[1] - s[1],
99 i = s[0] - n[0],
100 c = h * s[0] + i * s[1],
105 function n(t, e, s) {
108 var h = [Number.MAX_SAFE_INTEGER, s],
109 i = [e, s];
125 function o(t, e, s) {
126 …turn 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),
137 i = a(s, n, t),
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) {
144 o = Math.round(s.hachureAngle + 90);
148 var s = _toConsumableArray(t);
150 s[0].join(",") !== s[s.length - 1].join(",") && s.push([s[0][0], s[0][1]]);
153 if (s && s.length > 2) {
159 for (var _t2 = 0; _t2 < s.length - 1; _t2++) {
160 var _e4 = s[_t2],
161 _n2 = s[_t2 + 1];
193 s: r,
221 }(e, s);
223 return o && (t(e, n, -o), function (e, s, n) {
227 }), t(o, s, n);
246 var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
249 if (s) {
263 var s = [];
269 for (_iterator.s(); !(_step = _iterator.n()).done;) {
271s.push.apply(s, _toConsumableArray(this.helper.doubleLineOps(_n3[0][0], _n3[0][1], _n3[1][0], _n3[…
279 return s;
283 value: function connectingLines(t, s) {
285 if (s.length > 1) for (var _o3 = 1; _o3 < s.length; _o3++) {
286 var _a2 = s[_o3 - 1];
288 var _r2 = [s[_o3][0], _a2[1]];
314 var _t6 = s(_i2, _c, o[0], o[1]);
390 var s = this._fillPolygon(t, e),
396 return s.ops = s.ops.concat(o.ops), s;
413 var s = h(t, e = Object.assign({}, e, {
418 return this.dotsOnLines(s, e);
422 value: function dotsOnLines(t, s) {
424 var o = s.hachureGap;
425 o < 0 && (o = 4 * s.strokeWidth), o = Math.max(o, .1);
426 var a = s.fillWeight;
427 a < 0 && (a = s.strokeWidth / 2);
434 for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
446 _h3 = this.helper.randOffsetWithRange(_u - r, _u + r, s),
447 _i6 = this.helper.randOffsetWithRange(_e11 - r, _e11 + r, s),
448 _c3 = this.helper.ellipse(_h3, _i6, a, a, s);
479 var s = h(t, e);
482 ops: this.dashedLine(s, e)
487 value: function dashedLine(t, s) {
490 … var n = s.dashOffset < 0 ? s.hachureGap < 0 ? 4 * s.strokeWidth : s.hachureGap : s.dashOffset,
491 o = s.dashGap < 0 ? s.hachureGap < 0 ? 4 * s.strokeWidth : s.hachureGap : s.dashGap,
508 …a.push.apply(a, _toConsumableArray(_this.helper.doubleLineOps(_h4[0], _h4[1], _l3[0], _l3[1], s)));
527 var s = e.hachureGap < 0 ? 4 * e.strokeWidth : e.hachureGap,
528 n = e.zigzagOffset < 0 ? s : e.zigzagOffset,
530 hachureGap: s + n
539 value: function zigzagLines(t, s, n) {
545 r = Math.round(a / (2 * s));
552 var _e13 = 2 * _t10 * s,
553 _a4 = 2 * (_t10 + 1) * s,
554 _r4 = Math.sqrt(2 * Math.pow(s, 2)),
601 s: 4,
616 s = function (t) {
640 a = s[o];
651 if (!(o + _r5 < s.length)) throw new Error("Path data ended short");
654 var _e14 = s[_t11];
665 e.push(_t12), o += _r5, a = s[o], "M" === n && (n = "L"), "m" === n && (n = "l");
676 s = 0,
685 for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
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]
791 }), s = _h6[0];
795 s += _h6[0], a.push({
797 data: [s]
805 }), e = _h6[2], s = _h6[3];
808 case "s":
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;
856 var s = "",
868 for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
913 … "C" === s || "S" === s ? (_t16 = n + (n - h), _a5 = o + (o - i)) : (_t16 = n, _a5 = o), e.push({
928 "Q" === s || "T" === s ? (_r7 = n + (n - h), _c5 = o + (o - i)) : (_r7 = n, _c5 = o);
992 s = _c4;
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 …dToArray(_w, 2), t = _w2[0], e = _w2[1], _w), (_w3 = w(s, n, -l), _w4 = _slicedToArray(_w3, 2), s
1028 var _r10 = (t - s) / 2,
1041s) / 2, M = _m * -a * _r10 / o + (e + n) / 2, f = Math.asin(parseFloat(((e - M) / a).toFixed(9))),…
1048 _e15 = s,
1050 …d = i && d > f ? f + 120 * Math.PI / 180 * 1 : f + 120 * Math.PI / 180 * -1, p = P(s = g + o * Mat…
1063 I = [s + O * x, n - S * m],
1064 A = [s, n];
1086 randOffsetWithRange: function randOffsetWithRange(t, e, s) {
1087 return E(t, e, s);
1089 ellipse: function ellipse(t, e, s, n, o) {
1090 var a = T(s, n, o);
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) {
1112 ….push.apply(_o5, _toConsumableArray(z(t[_e17][0], t[_e17][1], t[_e17 + 1][0], t[_e17 + 1][1], s)));
1115 …n 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) {
1130 }([[t, e], [t + s, e], [t + s, e + n], [t, e + n]], o);
1134 var s = $(t, 1 * (1 + .2 * e.roughness), e);
1143 s = s.concat(_n8);
1148 ops: s
1152 function T(t, e, s) {
1154 o = Math.max(s.curveStepCount, s.curveStepCount / Math.sqrt(200) * n),
1158 var i = 1 - s.curveFitting;
1159 return r += W(r * i, s), h += W(h * i, s), {
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),
1172 var r = G(o, null, s);
1174 if (!s.disableMultiStroke) {
1175 var _q3 = q(n.increment, t, e, n.rx, n.ry, 1.5, 0, s),
1178 _a9 = G(_o6, null, s);
1192 function A(t, e, s, n, o, a, r, h, i) {
1195 var u = Math.abs(s / 2),
1229 var s = [];
1236 s.push({
1242 s.push({
1252 ops: s
1258 var s = t.fillStyle || "hachure";
1259 if (!d[s]) switch (s) {
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));
1284 return d[s];
1292 function E(t, e, s) {
1294 return s.roughness * n * (C(s) * (e - t) + t);
1298 var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
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;
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(…
1356 return G(n, null, s);
1359 function G(t, e, s) {
1365 _r11 = 1 - s.curveTightness;
1381 var _t23 = s.maxRandomnessOffset;
1384 data: [e[0] + W(_t23, s), e[1] + W(_t23, s)]
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)]);
1405 var _t24 = [W(a, h) + e + n * Math.cos(_r12), W(a, h) + s + o * Math.sin(_r12)];
1409s + o * Math.sin(l + 2 * Math.PI + .5 * r)]), c.push([W(a, h) + e + .98 * n * Math.cos(l + r), W(a…
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]]
1455 function Z(t, e, s) {
1456 var n = N(e, s);
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) {
1470 var s = t[e + 0],
1474 var r = 3 * n[0] - 2 * s[0] - a[0];
1476 var h = 3 * n[1] - 2 * s[1] - a[1];
1478 var i = 3 * o[0] - 2 * a[0] - s[0];
1480 var c = 3 * o[1] - 2 * a[1] - s[1];
1482 }(t, e) < s) {
1503 H([_a13, _c10, _p5, _d3], 0, s, o), H([_d3, _f4, _u6, _i9], 0, s, o);
1514 function X(t, e, s, n, o) {
1517 h = t[s - 1];
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…
1532 var s = arguments.length > 2 ? arguments[2] : undefined;
1540 return s && s > 0 ? X(n, 0, n.length, s) : n;
1580 value: function _d(t, e, s) {
1584 options: s || this.defaultOptions
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) {
1613 h = T(s, n, a),
1624 value: function circle(t, e, s, n) {
1625 var o = this.ellipse(t, e, s, s, n);
1631 var s = this._o(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) {
1652 var c = Math.abs(s / 2),
1671 }(t, e, s, n, o, a, i));
1677 var s = this._o(e),
1679 o = L(t, s);
1681 if (s.fill && s.fill !== K && t.length >= 3) {
1684 var s = t.length;
1685 if (s < 3) throw new Error("A curve must have at least three points.");
1687 if (3 === s) n.push(j(t[0]), j(t[1]), j(t[2]), j(t[2]));else {
1707 }(t), 10, (1 + s.roughness) / 2);
1709 "solid" === s.fillStyle ? n.push(D(_e20, s)) : n.push(_(_e20, s));
1712 return s.stroke !== K && n.push(o), this._d("curve", n, s);
1717 var s = this._o(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 && …
1726 var s = this._o(e),
1729 if (!t) return this._d("path", n, s);
1730 t = (t || "").replace(/\n/g, " ").replace(/(-\s)/g, "-").replace("/(ss)/g", " ");
1732 var o = s.fill && "transparent" !== s.fill && s.fill !== K,
1733 a = s.stroke !== K,
1734 r = !!(s.simplification && s.simplification < 1),
1735 h = function (t, e, s) {
1755 for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
1789 if (c(), !s) return o;
1795 var _e23 = B(_t27, s);
1801 }(t, 1, r ? 4 - 4 * s.simplification : (1 + s.roughness) / 2);
1803 if (o) if (s.combineNestedSvgPaths) {
1807 }), "solid" === s.fillStyle ? n.push(D(_t30, s)) : n.push(_(_t30, s));
1809 "solid" === s.fillStyle ? n.push(D(t, s)) : n.push(_(t, s));
1812 n.push(O(t, !1, s));
1814 var s = m(y(b(t))),
1819 var _iterator6 = _createForOfIteratorHelper(s),
1823 for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
1833 s = e.preserveVertices;
1837 return n + (s ? 0 : W(t, e));
1878 }(t, s))), this._d("path", n, s);
1883 var s = "";
1889 for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
1898 s += "M".concat(_t33[0], " ").concat(_t33[1], " ");
1902s += "C".concat(_t33[0], " ").concat(_t33[1], ", ").concat(_t33[2], " ").concat(_t33[3], ", ").con…
1906 s += "L".concat(_t33[0], " ").concat(_t33[1], " ");
1915 return s.trim();
1921 s = t.options || this.defaultOptions,
1928 for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
1936 stroke: s.stroke,
1937 strokeWidth: s.strokeWidth,
1947 fill: s.fill || K
1952 _e25 = this.fillSketch(_t34, s);
1968 var s = e.fillWeight;
1969 return s < 0 && (s = e.strokeWidth / 2), {
1972 strokeWidth: s,
1997 s = t.options || this.getDefaultOptions(),
2004 for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
2009s.stroke ? "transparent" : s.stroke, n.lineWidth = s.strokeWidth, s.strokeLineDash && n.setLineDas…
2013 n.save(), n.fillStyle = s.fill || "";
2021 this.fillSketch(n, _o13, s);
2032 value: function fillSketch(t, e, s) {
2033 var n = s.fillWeight;
2034s.strokeWidth / 2), t.save(), s.fillLineDash && t.setLineDash(s.fillLineDash), s.fillLineDashOffse…
2039 var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "nonzero";
2046 for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
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);
2103 var s = this.gen.linearPath(t, e);
2104 return this.draw(s), s;
2109 var s = this.gen.polygon(t, e);
2110 return this.draw(s), s;
2114 value: function arc(t, e, s, n, o, a) {
2117 var i = this.gen.arc(t, e, s, n, o, a, r, h);
2123 var s = this.gen.curve(t, e);
2124 return this.draw(s), s;
2129 var s = this.gen.path(t, e);
2130 return this.draw(s), s;
2155 s = t.options || this.getDefaultOptions(),
2164 for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
2170s.stroke), _e28.setAttribute("stroke-width", s.strokeWidth + ""), _e28.setAttribute("fill", "none"…
2174 … "none"), _e28.setAttribute("stroke-width", "0"), _e28.setAttribute("fill", s.fill || ""), "curve"…
2178 _e28 = this.fillSketch(n, _r17, s);
2193 value: function fillSketch(t, e, s) {
2194 var n = s.fillWeight;
2195 n < 0 && (n = s.strokeWidth / 2);
2197s.fixedDecimalPlaceDigits)), o.setAttribute("stroke", s.fill || ""), o.setAttribute("stroke-width"…
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);
2236 var s = this.gen.linearPath(t, e);
2237 return this.draw(s);
2242 var s = this.gen.polygon(t, e);
2243 return this.draw(s);
2247 value: function arc(t, e, s, n, o, a) {
2250 var i = this.gen.arc(t, e, s, n, o, a, r, h);
2256 var s = this.gen.curve(t, e);
2257 return this.draw(s);
2262 var s = this.gen.path(t, e);
2263 return this.draw(s);