Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@forbetterorworse/shapes-and-lines

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forbetterorworse/shapes-and-lines - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

252

dist/index.js

@@ -16,11 +16,11 @@ import A from "react";

*/
var Ye;
function zr() {
if (Ye)
var Ve;
function qr() {
if (Ve)
return N;
Ye = 1;
Ve = 1;
var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
function b(y, v, h) {
var j, S = {}, P = null, k = null;
h !== void 0 && (P = "" + h), v.key !== void 0 && (P = "" + v.key), v.ref !== void 0 && (k = v.ref);
function p(y, v, h) {
var j, S = {}, w = null, k = null;
h !== void 0 && (w = "" + h), v.key !== void 0 && (w = "" + v.key), v.ref !== void 0 && (k = v.ref);
for (j in v)

@@ -31,5 +31,5 @@ o.call(v, j) && !f.hasOwnProperty(j) && (S[j] = v[j]);

S[j] === void 0 && (S[j] = v[j]);
return { $$typeof: t, type: y, key: P, ref: k, props: S, _owner: s.current };
return { $$typeof: t, type: y, key: w, ref: k, props: S, _owner: s.current };
}
return N.Fragment = n, N.jsx = b, N.jsxs = b, N;
return N.Fragment = n, N.jsx = p, N.jsxs = p, N;
}

@@ -46,10 +46,10 @@ var U = {};

*/
var Ve;
var Ye;
function Xr() {
return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), y = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), V = Symbol.iterator, re = "@@iterator";
return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), y = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), Y = Symbol.iterator, re = "@@iterator";
function te(r) {
if (r === null || typeof r != "object")
return null;
var a = V && r[V] || r[re];
var a = Y && r[Y] || r[re];
return typeof a == "function" ? a : null;

@@ -69,6 +69,6 @@ }

d !== "" && (a += "%s", i = i.concat([d]));
var p = i.map(function(l) {
var g = i.map(function(l) {
return String(l);
});
p.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, p);
g.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, g);
}

@@ -79,3 +79,3 @@ }

function jr(r) {
return !!(typeof r == "string" || typeof r == "function" || r === o || r === f || _r || r === s || r === h || r === j || mr || r === k || br || yr || hr || typeof r == "object" && r !== null && (r.$$typeof === P || r.$$typeof === S || r.$$typeof === b || r.$$typeof === y || r.$$typeof === v || // This needs to include all possible module reference object
return !!(typeof r == "string" || typeof r == "function" || r === o || r === f || _r || r === s || r === h || r === j || mr || r === k || br || yr || hr || typeof r == "object" && r !== null && (r.$$typeof === w || r.$$typeof === S || r.$$typeof === p || r.$$typeof === y || r.$$typeof === v || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since

@@ -122,3 +122,3 @@ // we don't know which Flight build this will end up being used

return me(a) + ".Consumer";
case b:
case p:
var i = r;

@@ -131,6 +131,6 @@ return me(i._context) + ".Provider";

return u !== null ? u : $(r.type) || "Memo";
case P: {
var d = r, p = d._payload, l = d._init;
case w: {
var d = r, g = d._payload, l = d._init;
try {
return $(l(p));
return $(l(g));
} catch {

@@ -144,5 +144,5 @@ return null;

var C = Object.assign, M = 0, _e, je, Te, Ee, Oe, Re, Se;
function we() {
function Pe() {
}
we.__reactDisabledLog = !0;
Pe.__reactDisabledLog = !0;
function Er() {

@@ -155,3 +155,3 @@ {

enumerable: !0,
value: we,
value: Pe,
writable: !0

@@ -226,3 +226,3 @@ };

}
function Pe(r, a) {
function we(r, a) {
if (!r || oe)

@@ -239,4 +239,4 @@ return "";

Error.prepareStackTrace = void 0;
var p;
p = ne.current, ne.current = null, Er();
var g;
g = ne.current, ne.current = null, Er();
try {

@@ -294,3 +294,3 @@ if (a) {

} finally {
oe = !1, ne.current = p, Or(), Error.prepareStackTrace = d;
oe = !1, ne.current = g, Or(), Error.prepareStackTrace = d;
}

@@ -301,5 +301,5 @@ var L = r ? r.displayName || r.name : "", We = L ? B(L) : "";

function Sr(r, a, i) {
return Pe(r, !1);
return we(r, !1);
}
function wr(r) {
function Pr(r) {
var a = r.prototype;

@@ -312,3 +312,3 @@ return !!(a && a.isReactComponent);

if (typeof r == "function")
return Pe(r, wr(r));
return we(r, Pr(r));
if (typeof r == "string")

@@ -328,6 +328,6 @@ return B(r);

return K(r.type, a, i);
case P: {
var u = r, d = u._payload, p = u._init;
case w: {
var u = r, d = u._payload, g = u._init;
try {
return K(p(d), a, i);
return K(g(d), a, i);
} catch {

@@ -339,4 +339,4 @@ }

}
var q = Object.prototype.hasOwnProperty, $e = {}, xe = I.ReactDebugCurrentFrame;
function z(r) {
var z = Object.prototype.hasOwnProperty, $e = {}, xe = I.ReactDebugCurrentFrame;
function q(r) {
if (r) {

@@ -348,7 +348,7 @@ var a = r._owner, i = K(r.type, r._source, a ? a.type : null);

}
function Pr(r, a, i, u, d) {
function wr(r, a, i, u, d) {
{
var p = Function.call.bind(q);
var g = Function.call.bind(z);
for (var l in r)
if (p(r, l)) {
if (g(r, l)) {
var c = void 0;

@@ -364,3 +364,3 @@ try {

}
c && !(c instanceof Error) && (z(d), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", i, l, typeof c), z(null)), c instanceof Error && !(c.message in $e) && ($e[c.message] = !0, z(d), T("Failed %s type: %s", i, c.message), z(null));
c && !(c instanceof Error) && (q(d), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", i, l, typeof c), q(null)), c instanceof Error && !(c.message in $e) && ($e[c.message] = !0, q(d), T("Failed %s type: %s", i, c.message), q(null));
}

@@ -401,3 +401,3 @@ }

function kr(r) {
if (q.call(r, "ref")) {
if (z.call(r, "ref")) {
var a = Object.getOwnPropertyDescriptor(r, "ref").get;

@@ -410,3 +410,3 @@ if (a && a.isReactWarning)

function Ir(r) {
if (q.call(r, "key")) {
if (z.call(r, "key")) {
var a = Object.getOwnPropertyDescriptor(r, "key").get;

@@ -446,3 +446,3 @@ if (a && a.isReactWarning)

}
var Dr = function(r, a, i, u, d, p, l) {
var Dr = function(r, a, i, u, d, g, l) {
var c = {

@@ -457,3 +457,3 @@ // This tag allows us to uniquely identify this as a React Element

// Record the component responsible for creating this element.
_owner: p
_owner: g
};

@@ -479,10 +479,10 @@ return c._store = {}, Object.defineProperty(c._store, "validated", {

{
var p, l = {}, c = null, E = null;
var g, l = {}, c = null, E = null;
i !== void 0 && (Ce(i), c = "" + i), Ir(a) && (Ce(a.key), c = "" + a.key), kr(a) && (E = a.ref, Fr(a, d));
for (p in a)
q.call(a, p) && !Cr.hasOwnProperty(p) && (l[p] = a[p]);
for (g in a)
z.call(a, g) && !Cr.hasOwnProperty(g) && (l[g] = a[g]);
if (r && r.defaultProps) {
var m = r.defaultProps;
for (p in m)
l[p] === void 0 && (l[p] = m[p]);
for (g in m)
l[g] === void 0 && (l[g] = m[g]);
}

@@ -564,3 +564,3 @@ if (c || E) {

if (typeof d == "function" && d !== r.entries)
for (var p = d.call(r), l; !(l = p.next()).done; )
for (var g = d.call(r), l; !(l = g.next()).done; )
le(l.value) && De(l.value, a);

@@ -570,3 +570,3 @@ }

}
function Yr(r) {
function Vr(r) {
{

@@ -587,3 +587,3 @@ var a = r.type;

var u = $(a);
Pr(i, r.props, "prop", u, r);
wr(i, r.props, "prop", u, r);
} else if (a.PropTypes !== void 0 && !ce) {

@@ -597,3 +597,3 @@ ce = !0;

}
function Vr(r) {
function Yr(r) {
{

@@ -610,3 +610,3 @@ for (var a = Object.keys(r.props), i = 0; i < a.length; i++) {

}
function Ue(r, a, i, u, d, p) {
function Ue(r, a, i, u, d, g) {
{

@@ -622,3 +622,3 @@ var l = jr(r);

}
var _ = Nr(r, a, i, d, p);
var _ = Nr(r, a, i, d, g);
if (_ == null)

@@ -639,3 +639,3 @@ return _;

}
return r === o ? Vr(_) : Yr(_), _;
return r === o ? Yr(_) : Vr(_), _;
}

@@ -649,8 +649,8 @@ }

}
var Kr = Gr, qr = Br;
U.Fragment = o, U.jsx = Kr, U.jsxs = qr;
var Kr = Gr, zr = Br;
U.Fragment = o, U.jsx = Kr, U.jsxs = zr;
}()), U;
}
process.env.NODE_ENV === "production" ? de.exports = zr() : de.exports = Xr();
var w = de.exports, tr = {
process.env.NODE_ENV === "production" ? de.exports = qr() : de.exports = Xr();
var P = de.exports, tr = {
color: void 0,

@@ -751,3 +751,3 @@ size: void 0,

title: f
} = e, b = Hr(e, Jr), y = s || n.size || "1em", v;
} = e, p = Hr(e, Jr), y = s || n.size || "1em", v;
return n.className && (v = n.className), e.className && (v = (v ? v + " " : "") + e.className), /* @__PURE__ */ A.createElement("svg", H({

@@ -757,3 +757,3 @@ stroke: "currentColor",

strokeWidth: "0"
}, n.attr, o, b, {
}, n.attr, o, p, {
className: v,

@@ -784,11 +784,11 @@ style: Z(Z({

"#187498"
], ut = 30, Y = 200, Ke = 2, ct = 10, lt = ({ type: e, margin: t, color: n, rotation: o }) => {
], ut = 30, V = 200, Ke = 2, ct = 10, lt = ({ type: e, margin: t, color: n, rotation: o }) => {
const s = { ...t, transform: `rotate(${o}deg)` };
switch (e) {
case "circle":
return /* @__PURE__ */ w.jsx(nt, { style: s, size: fe, color: n });
return /* @__PURE__ */ P.jsx(nt, { style: s, size: fe, color: n });
case "square":
return /* @__PURE__ */ w.jsx(at, { style: s, size: fe, color: n });
return /* @__PURE__ */ P.jsx(at, { style: s, size: fe, color: n });
case "triangle":
return /* @__PURE__ */ w.jsx(ot, { style: s, size: fe, color: n });
return /* @__PURE__ */ P.jsx(ot, { style: s, size: fe, color: n });
}

@@ -823,3 +823,3 @@ };

}
var Tt = jt, Et = typeof X == "object" && X && X.Object === Object && X, ir = Et, Ot = ir, Rt = typeof self == "object" && self && self.Object === Object && self, St = Ot || Rt || Function("return this")(), sr = St, wt = sr, Pt = wt.Symbol, ur = Pt, qe = ur, cr = Object.prototype, $t = cr.hasOwnProperty, xt = cr.toString, W = qe ? qe.toStringTag : void 0;
var Tt = jt, Et = typeof X == "object" && X && X.Object === Object && X, ir = Et, Ot = ir, Rt = typeof self == "object" && self && self.Object === Object && self, St = Ot || Rt || Function("return this")(), sr = St, Pt = sr, wt = Pt.Symbol, ur = wt, ze = ur, cr = Object.prototype, $t = cr.hasOwnProperty, xt = cr.toString, W = ze ? ze.toStringTag : void 0;
function At(e) {

@@ -839,3 +839,3 @@ var t = $t.call(e, W), n = e[W];

}
var Lt = Ft, ze = ur, Mt = Ct, Dt = Lt, Nt = "[object Null]", Ut = "[object Undefined]", Xe = ze ? ze.toStringTag : void 0;
var Lt = Ft, qe = ur, Mt = Ct, Dt = Lt, Nt = "[object Null]", Ut = "[object Undefined]", Xe = qe ? qe.toStringTag : void 0;
function Wt(e) {

@@ -845,13 +845,13 @@ return e == null ? e === void 0 ? Ut : Nt : Xe && Xe in Object(e) ? Mt(e) : Dt(e);

var ge = Wt;
function Yt(e) {
function Vt(e) {
return e != null && typeof e == "object";
}
var be = Yt, Vt = ge, Bt = be, Gt = "[object Arguments]";
var be = Vt, Yt = ge, Bt = be, Gt = "[object Arguments]";
function Kt(e) {
return Bt(e) && Vt(e) == Gt;
return Bt(e) && Yt(e) == Gt;
}
var qt = Kt, Je = qt, zt = be, lr = Object.prototype, Xt = lr.hasOwnProperty, Jt = lr.propertyIsEnumerable, Ht = Je(/* @__PURE__ */ function() {
var zt = Kt, Je = zt, qt = be, lr = Object.prototype, Xt = lr.hasOwnProperty, Jt = lr.propertyIsEnumerable, Ht = Je(/* @__PURE__ */ function() {
return arguments;
}()) ? Je : function(e) {
return zt(e) && Xt.call(e, "callee") && !Jt.call(e, "callee");
return qt(e) && Xt.call(e, "callee") && !Jt.call(e, "callee");
}, Zt = Ht, Qt = Array.isArray, ye = Qt, Q = { exports: {} };

@@ -864,3 +864,3 @@ function en() {

(function(e, t) {
var n = sr, o = rn, s = t && !t.nodeType && t, f = s && !0 && e && !e.nodeType && e, b = f && f.exports === s, y = b ? n.Buffer : void 0, v = y ? y.isBuffer : void 0, h = v || o;
var n = sr, o = rn, s = t && !t.nodeType && t, f = s && !0 && e && !e.nodeType && e, p = f && f.exports === s, y = p ? n.Buffer : void 0, v = y ? y.isBuffer : void 0, h = v || o;
e.exports = h;

@@ -877,7 +877,7 @@ })(Q, Q.exports);

}
var fr = cn, ln = ge, fn = fr, vn = be, dn = "[object Arguments]", pn = "[object Array]", gn = "[object Boolean]", bn = "[object Date]", yn = "[object Error]", hn = "[object Function]", mn = "[object Map]", _n = "[object Number]", jn = "[object Object]", Tn = "[object RegExp]", En = "[object Set]", On = "[object String]", Rn = "[object WeakMap]", Sn = "[object ArrayBuffer]", wn = "[object DataView]", Pn = "[object Float32Array]", $n = "[object Float64Array]", xn = "[object Int8Array]", An = "[object Int16Array]", Cn = "[object Int32Array]", kn = "[object Uint8Array]", In = "[object Uint8ClampedArray]", Fn = "[object Uint16Array]", Ln = "[object Uint32Array]", g = {};
g[Pn] = g[$n] = g[xn] = g[An] = g[Cn] = g[kn] = g[In] = g[Fn] = g[Ln] = !0;
g[dn] = g[pn] = g[Sn] = g[gn] = g[wn] = g[bn] = g[yn] = g[hn] = g[mn] = g[_n] = g[jn] = g[Tn] = g[En] = g[On] = g[Rn] = !1;
var fr = cn, ln = ge, fn = fr, vn = be, dn = "[object Arguments]", pn = "[object Array]", gn = "[object Boolean]", bn = "[object Date]", yn = "[object Error]", hn = "[object Function]", mn = "[object Map]", _n = "[object Number]", jn = "[object Object]", Tn = "[object RegExp]", En = "[object Set]", On = "[object String]", Rn = "[object WeakMap]", Sn = "[object ArrayBuffer]", Pn = "[object DataView]", wn = "[object Float32Array]", $n = "[object Float64Array]", xn = "[object Int8Array]", An = "[object Int16Array]", Cn = "[object Int32Array]", kn = "[object Uint8Array]", In = "[object Uint8ClampedArray]", Fn = "[object Uint16Array]", Ln = "[object Uint32Array]", b = {};
b[wn] = b[$n] = b[xn] = b[An] = b[Cn] = b[kn] = b[In] = b[Fn] = b[Ln] = !0;
b[dn] = b[pn] = b[Sn] = b[gn] = b[Pn] = b[bn] = b[yn] = b[hn] = b[mn] = b[_n] = b[jn] = b[Tn] = b[En] = b[On] = b[Rn] = !1;
function Mn(e) {
return vn(e) && fn(e.length) && !!g[ln(e)];
return vn(e) && fn(e.length) && !!b[ln(e)];
}

@@ -893,6 +893,6 @@ var Dn = Mn;

(function(e, t) {
var n = ir, o = t && !t.nodeType && t, s = o && !0 && e && !e.nodeType && e, f = s && s.exports === o, b = f && n.process, y = function() {
var n = ir, o = t && !t.nodeType && t, s = o && !0 && e && !e.nodeType && e, f = s && s.exports === o, p = f && n.process, y = function() {
try {
var v = s && s.require && s.require("util").types;
return v || b && b.binding && b.binding("util");
return v || p && p.binding && p.binding("util");
} catch {

@@ -903,7 +903,7 @@ }

})(ee, ee.exports);
var Wn = ee.exports, Yn = Dn, Vn = Un, He = Wn, Ze = He && He.isTypedArray, Bn = Ze ? Vn(Ze) : Yn, Gn = Bn, Kn = Tt, qn = Zt, zn = ye, Xn = tn, Jn = sn, Hn = Gn, Zn = Object.prototype, Qn = Zn.hasOwnProperty;
var Wn = ee.exports, Vn = Dn, Yn = Un, He = Wn, Ze = He && He.isTypedArray, Bn = Ze ? Yn(Ze) : Vn, Gn = Bn, Kn = Tt, zn = Zt, qn = ye, Xn = tn, Jn = sn, Hn = Gn, Zn = Object.prototype, Qn = Zn.hasOwnProperty;
function ea(e, t) {
var n = zn(e), o = !n && qn(e), s = !n && !o && Xn(e), f = !n && !o && !s && Hn(e), b = n || o || s || f, y = b ? Kn(e.length, String) : [], v = y.length;
var n = qn(e), o = !n && zn(e), s = !n && !o && Xn(e), f = !n && !o && !s && Hn(e), p = n || o || s || f, y = p ? Kn(e.length, String) : [], v = y.length;
for (var h in e)
(t || Qn.call(e, h)) && !(b && // Safari 9 has enumerable `arguments.length` in strict mode.
(t || Qn.call(e, h)) && !(p && // Safari 9 has enumerable `arguments.length` in strict mode.
(h == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.

@@ -947,7 +947,7 @@ s && (h == "offset" || h == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.

}
var Ra = Oa, Sa = Ra, wa = fr;
function Pa(e) {
return e != null && wa(e.length) && !Sa(e);
var Ra = Oa, Sa = Ra, Pa = fr;
function wa(e) {
return e != null && Pa(e.length) && !Sa(e);
}
var $a = Pa, xa = ra, Aa = ga, Ca = $a;
var $a = wa, xa = ra, Aa = ga, Ca = $a;
function ka(e) {

@@ -964,10 +964,10 @@ return Ca(e) ? xa(e) : Aa(e);

}
var Wa = Ua, Ya = or, Va = Wa, Ba = ye;
var Wa = Ua, Va = or, Ya = Wa, Ba = ye;
function Ga(e) {
var t = Ba(e) ? Ya : Va;
var t = Ba(e) ? Va : Ya;
return t(e);
}
var Ka = Ga;
const qa = /* @__PURE__ */ rr(Ka);
function za(e, t) {
const za = /* @__PURE__ */ rr(Ka);
function qa(e, t) {
var n = -1, o = e.length;

@@ -978,8 +978,8 @@ for (t || (t = Array(o)); ++n < o; )

}
var Xa = za, Ja = ar;
var Xa = qa, Ja = ar;
function Ha(e, t) {
var n = -1, o = e.length, s = o - 1;
for (t = t === void 0 ? o : t; ++n < t; ) {
var f = Ja(n, s), b = e[f];
e[f] = e[n], e[n] = b;
var f = Ja(n, s), p = e[f];
e[f] = e[n], e[n] = p;
}

@@ -1017,5 +1017,5 @@ return e.length = t, e;

for (n = ve(t); n.length < e; )
n.push(qa(t));
n.push(za(t));
return n;
}, O = (e = Y) => Math.floor(Math.random() * (e / 1)), po = (e) => ({
}, O = (e = V) => Math.floor(Math.random() * (e / 1)), po = (e) => ({
mx: O(e),

@@ -1038,7 +1038,10 @@ my: O(e)

y: O(e)
}), yo = (e) => {
const t = [];
for (; t.length < e; )
t.push(bo());
return t;
}), yo = ({
pointCount: e,
max: t
}) => {
const n = [];
for (; n.length < e; )
n.push(bo(t));
return n;
}, ho = (e) => {

@@ -1061,3 +1064,3 @@ const t = e;

o.push(
/* @__PURE__ */ w.jsx(
/* @__PURE__ */ P.jsx(
lt,

@@ -1073,14 +1076,14 @@ {

);
return /* @__PURE__ */ w.jsx("div", { className: _o.container, children: o });
return /* @__PURE__ */ P.jsx("div", { className: _o.container, children: o });
}, jo = ({
move: { mx: e, my: t },
curve: { cx1: n, cy1: o, cx2: s, cy2: f, cx: b, cy: y },
curve: { cx1: n, cy1: o, cx2: s, cy2: f, cx: p, cy: y },
extensions: v,
strokeOpacity: h = 1
}) => {
const j = `M ${e} ${t}`, S = `C ${n} ${o}, ${s} ${f}, ${b} ${y}`, P = v.map(({ sx2: k, sy2: V, sx: re, sy: te }) => `S ${k} ${V}, ${re} ${te}`).join(" ");
return /* @__PURE__ */ w.jsx(
const j = `M ${e} ${t}`, S = `C ${n} ${o}, ${s} ${f}, ${p} ${y}`, w = v.map(({ sx2: k, sy2: Y, sx: re, sy: te }) => `S ${k} ${Y}, ${re} ${te}`).join(" ");
return /* @__PURE__ */ P.jsx(
"path",
{
d: `${j} ${S} ${P}`,
d: `${j} ${S} ${w}`,
stroke: "black",

@@ -1092,4 +1095,4 @@ strokeOpacity: h,

}, Ro = ({
viewBoxWidth: e = Y,
viewBoxHeight: t = Y,
viewBoxWidth: e = V,
viewBoxHeight: t = V,
lineCount: n = 2,

@@ -1099,5 +1102,5 @@ hasRandomStrokeOpacity: o

const s = e, f = [];
for (let b = 0; b < n; b++)
for (let p = 0; p < n; p++)
f.push(
/* @__PURE__ */ w.jsx(
/* @__PURE__ */ P.jsx(
jo,

@@ -1113,6 +1116,6 @@ {

},
b
p
)
);
return /* @__PURE__ */ w.jsx(
return /* @__PURE__ */ P.jsx(
"svg",

@@ -1132,3 +1135,3 @@ {

const n = e.reduce((o, s) => (o += `${s.x} ${s.y} `, o), "").trim();
return /* @__PURE__ */ w.jsx(
return /* @__PURE__ */ P.jsx(
"polyline",

@@ -1143,20 +1146,23 @@ {

}, So = ({
viewBoxWidth: e = Y,
viewBoxHeight: t = Y,
viewBoxWidth: e = V,
viewBoxHeight: t = V,
lineCount: n = 2,
hasRandomStrokeOpacity: o
}) => {
const s = [];
for (let f = 0; f < n; f++)
s.push(
/* @__PURE__ */ w.jsx(
const s = e, f = [];
for (let p = 0; p < n; p++)
f.push(
/* @__PURE__ */ P.jsx(
To,
{
points: yo(ho(ct)),
points: yo({
pointCount: ho(ct),
max: s
}),
strokeOpacity: o ? pr() : 1
},
f
p
)
);
return /* @__PURE__ */ w.jsx(
return /* @__PURE__ */ P.jsx(
"svg",

@@ -1168,3 +1174,3 @@ {

xmlns: "http://www.w3.org/2000/svg",
children: s
children: f
}

@@ -1171,0 +1177,0 @@ );

{
"name": "@forbetterorworse/shapes-and-lines",
"description": "A React library that randomly generates shapes and lines.",
"version": "0.2.4",
"version": "0.2.5",
"license": "MIT",

@@ -6,0 +6,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc