@layers-app/editor 0.0.22 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +11 -43
- package/dist/index.js +2 -2
- package/dist/layers.07qQUlOx.js +11 -0
- package/dist/layers.0Uws2RMI.js +96 -0
- package/dist/layers.2klZ3piU.js +36 -0
- package/dist/layers.3O2dWJo4.js +1 -0
- package/dist/layers.3VppN-FK.js +423 -0
- package/dist/layers.3cmQBPRD.js +1 -0
- package/dist/layers.5U29QNMz.js +7 -0
- package/dist/layers.5s_bUFw7.js +8 -0
- package/dist/layers.7JqFgE4-.js +15 -0
- package/dist/layers.8dwcxQd3.js +8 -0
- package/dist/layers.9EMwI8Xs.js +425 -0
- package/dist/layers.9QK1wiQj.js +1 -0
- package/dist/layers.9pNaFvaX.js +1 -0
- package/dist/layers.9tX9hjoM.js +11692 -0
- package/dist/layers.B-eOoyQV.js +9128 -0
- package/dist/layers.B-hOwYRy.js +33 -0
- package/dist/layers.B0LHiU6c.js +10 -0
- package/dist/layers.B19hGmey.js +1 -0
- package/dist/layers.B1psjxfg.js +8 -0
- package/dist/layers.B1tTFwlU.js +5 -0
- package/dist/layers.B3NaBxHH.js +11 -0
- package/dist/layers.B43rvwKV.js +790 -0
- package/dist/layers.B7wN1gyM.js +35 -0
- package/dist/layers.B9ocXRVO.js +1 -0
- package/dist/layers.BAWbBe9N.js +42 -0
- package/dist/layers.BAaIrX5p.js +1 -0
- package/dist/layers.BAnc8Y8B.js +118 -0
- package/dist/layers.BAtv1CM7.js +1 -0
- package/dist/layers.BB7ssac6.js +50 -0
- package/dist/layers.BBm66jcD.js +70 -0
- package/dist/layers.BGF0mJI-.js +10 -0
- package/dist/layers.BIDnkNut.js +1510 -0
- package/dist/layers.BIeVwYKL.js +1 -0
- package/dist/layers.BJ2qg5fe.js +39 -0
- package/dist/layers.BK4BzYSQ.js +10 -0
- package/dist/layers.BKoRqbkc.js +4 -0
- package/dist/layers.BLvgQy3M.js +40 -0
- package/dist/layers.BNEX6ffl.js +1 -0
- package/dist/layers.BOEB6DhN.js +202 -0
- package/dist/layers.BOdIgbDK.js +233 -0
- package/dist/layers.BPTiALoi.js +19 -0
- package/dist/layers.BQHgH0c0.js +1 -0
- package/dist/layers.BQUkW6Sr.js +41 -0
- package/dist/layers.BQdiT-Gc.js +6 -0
- package/dist/layers.BSTBZrFn.js +1 -0
- package/dist/layers.BW8tNgnl.js +32 -0
- package/dist/layers.BWBOjwnD.js +9 -0
- package/dist/layers.BWBqFzL5.js +1083 -0
- package/dist/layers.BY_Ddtf_.js +257 -0
- package/dist/layers.BYzN4Zxz.js +7 -0
- package/dist/layers.B_3SG9-n.js +5 -0
- package/dist/layers.Bag9ck5N.js +1 -0
- package/dist/layers.Bgs9DWaM.js +160 -0
- package/dist/layers.BhjPgUp1.js +40 -0
- package/dist/layers.Bjqq928v.js +11 -0
- package/dist/layers.Bk3rEvTi.js +39 -0
- package/dist/layers.BlRFAeMZ.js +501 -0
- package/dist/layers.BlifjyLs.js +2 -0
- package/dist/layers.BlkvO94n.js +41 -0
- package/dist/layers.Bm4nXd83.js +2963 -0
- package/dist/layers.BmU3A8To.js +1 -0
- package/dist/layers.Bn8N2Stv.js +10 -0
- package/dist/layers.BpilXLfW.js +6 -0
- package/dist/layers.BqTvq1WO.js +38 -0
- package/dist/layers.BtP6vWIY.js +1 -0
- package/dist/layers.Bu0Rv7u8.js +9 -0
- package/dist/layers.BuJozguU.js +32 -0
- package/dist/layers.Bw3R-pSG.js +61 -0
- package/dist/layers.BwcyrXEu.js +39 -0
- package/dist/layers.Bwuu3jjm.js +3 -0
- package/dist/layers.BymWa7M3.js +11 -0
- package/dist/layers.BzRmHQQD.js +320 -0
- package/dist/layers.Bzc44mb4.js +36 -0
- package/dist/layers.C2b0BhoA.js +34 -0
- package/dist/layers.C3vT-_5E.js +42 -0
- package/dist/layers.C4L1zUgG.js +39 -0
- package/dist/layers.C6qRV0pD.js +9 -0
- package/dist/layers.C7_Otsyx.js +52 -0
- package/dist/layers.C7lIplJU.js +247 -0
- package/dist/layers.C8r5QjFY.js +2 -0
- package/dist/layers.C9vJr9Fp.js +769 -0
- package/dist/layers.CBAObrHU.js +1 -0
- package/dist/layers.CHZsXQcr.js +1 -0
- package/dist/layers.CHd51QJn.js +8 -0
- package/dist/layers.CI7Z-Sjj.js +9 -0
- package/dist/layers.CJudskXr.js +803 -0
- package/dist/layers.CLPJWTr_.js +1 -0
- package/dist/layers.CM0RbG9c.js +4 -0
- package/dist/layers.CNml1ojC.js +7 -0
- package/dist/layers.COAF7f8g.js +1 -0
- package/dist/{layers.CiSw1oA4.js → layers.CPPtpAVe.js} +1 -1
- package/dist/layers.CPqqkX8Z.js +23 -0
- package/dist/layers.CPtjfATq.js +40 -0
- package/dist/layers.CRVVTbRr.js +39 -0
- package/dist/layers.CRuKN3by.js +84 -0
- package/dist/layers.CSAdHZgs.js +1 -0
- package/dist/layers.CSy8D72I.js +40 -0
- package/dist/layers.CV_r6tXx.js +48146 -0
- package/dist/layers.CVlRuvNG.js +122 -0
- package/dist/layers.CWWJnwM1.js +39 -0
- package/dist/layers.CYPKJ9D_.js +39 -0
- package/dist/layers.CZ9asRxp.js +10 -0
- package/dist/layers.CctQZdRR.js +40 -0
- package/dist/layers.Cdw06C7D.js +2 -0
- package/dist/layers.Ce8BBqO9.js +139 -0
- package/dist/layers.CfVH6j0d.js +9 -0
- package/dist/layers.CfyH4z2e.js +39 -0
- package/dist/layers.CgdtQipl.js +207 -0
- package/dist/layers.CgvOUVzr.js +14 -0
- package/dist/layers.ChkOb4tl.js +960 -0
- package/dist/layers.Cj6cbW8i.js +2235 -0
- package/dist/layers.Cj7ITJ9c.js +1 -0
- package/dist/layers.CjRpPAKZ.js +1580 -0
- package/dist/{layers.C5tfzl26.js → layers.CjfoYqS0.js} +1 -1
- package/dist/layers.Ckd9L1ZQ.js +5 -0
- package/dist/layers.ClpTV2lw.js +1 -0
- package/dist/layers.CmEuIxO4.js +373 -0
- package/dist/layers.CmOPFjvq.js +9 -0
- package/dist/layers.CnlX6j6i.js +40 -0
- package/dist/layers.CqEtGCpU.js +40 -0
- package/dist/layers.CqMLQ0Dp.js +37 -0
- package/dist/layers.CqVTtuYm.js +6 -0
- package/dist/layers.CuxIZWEP.js +5 -0
- package/dist/layers.CvLOVBUw.js +40 -0
- package/dist/layers.Cx6FqSsI.js +11 -0
- package/dist/layers.CyUKOqQM.js +40 -0
- package/dist/layers.CzsxLGGT.js +8 -0
- package/dist/layers.D0yiFcqY.js +37 -0
- package/dist/layers.D0zn4_Mx.js +1 -0
- package/dist/layers.D1fmxxk7.js +1 -0
- package/dist/layers.D39cRqm0.js +8 -0
- package/dist/layers.D4fGb2cV.js +1272 -0
- package/dist/layers.D6ec9SRH.js +41 -0
- package/dist/layers.D71p3EhU.js +10 -0
- package/dist/layers.D7jGxypv.js +8 -0
- package/dist/layers.D8G_zttU.js +795 -0
- package/dist/layers.D8NjLtRn.js +8 -0
- package/dist/layers.DAkVONDW.js +21478 -0
- package/dist/layers.DDE-iai2.js +931 -0
- package/dist/layers.DDGV6wvn.js +10 -0
- package/dist/layers.DDPm1Phd.js +7 -0
- package/dist/layers.DFdD8OE6.js +5 -0
- package/dist/layers.DGC-QZbD.js +904 -0
- package/dist/layers.DH6JhdxT.js +35 -0
- package/dist/layers.DHNgS4o3.js +1 -0
- package/dist/layers.DHYQaKXy.js +35 -0
- package/dist/layers.DKTUd6cG.js +32 -0
- package/dist/layers.DLShWbE3.js +32 -0
- package/dist/layers.DLwuMfdd.js +84 -0
- package/dist/layers.DMkBISW1.js +1 -0
- package/dist/layers.DMnBSepD.js +7 -0
- package/dist/layers.DN2-RoYO.js +6 -0
- package/dist/layers.DN9HoVxI.js +18 -0
- package/dist/layers.DNvn8evO.js +8 -0
- package/dist/layers.DOrgOHBr.js +1 -0
- package/dist/layers.DPpl1Lyy.js +1283 -0
- package/dist/layers.DQevQguw.js +1034 -0
- package/dist/layers.DRGcrPPV.js +1126 -0
- package/dist/layers.DS8xp3z6.js +32 -0
- package/dist/layers.DT2vhESJ.js +4 -0
- package/dist/layers.DTSzGsqB.js +6 -0
- package/dist/layers.DTX-m6B0.js +41 -0
- package/dist/layers.DUgI8Qm6.js +1 -0
- package/dist/layers.DUt_7Rf9.js +261 -0
- package/dist/layers.DX5uxco3.js +6 -0
- package/dist/layers.DYoOWsyB.js +42 -0
- package/dist/layers.DZVs6rl-.js +65 -0
- package/dist/layers.DZxo3Qo-.js +37 -0
- package/dist/layers.DaNHv_tD.js +7 -0
- package/dist/layers.DbSjlXkz.js +10 -0
- package/dist/layers.DbaKVP5e.js +1 -0
- package/dist/layers.Dc_OXuAO.js +38 -0
- package/dist/layers.Dg4aFQbj.js +41 -0
- package/dist/layers.Dh8vVrkJ.js +38 -0
- package/dist/layers.DhaEWWE8.js +32 -0
- package/dist/layers.DhiiM0nu.js +6 -0
- package/dist/layers.Dj1RvABZ.js +9 -0
- package/dist/layers.DjUOC4st.js +16 -0
- package/dist/layers.DnhB9nfo.js +51 -0
- package/dist/layers.Dp_lp9sc.js +164 -0
- package/dist/layers.DpoqH_qu.js +36 -0
- package/dist/layers.Ds95POLS.js +1 -0
- package/dist/{layers.3lVEeOO7.js → layers.DtYpqqY0.js} +92 -92
- package/dist/layers.Dtt8if_X.js +9 -0
- package/dist/layers.Du5-W3Rw.js +186 -0
- package/dist/layers.Dv3wcPBB.js +1 -0
- package/dist/layers.DvVe2_B8.js +116 -0
- package/dist/layers.Dw80oYJ5.js +44 -0
- package/dist/layers.Dx5bTjWn.js +33 -0
- package/dist/layers.DxA6ocdw.js +70 -0
- package/dist/layers.Dy1naDTQ.js +14 -0
- package/dist/layers.DyUhnefH.js +1089 -0
- package/dist/layers.EqE20WDv.js +10 -0
- package/dist/{layers.CgiGa2Ym.js → layers.GO-Mbd7I.js} +38 -38
- package/dist/layers.HRFT_ZjM.js +268 -0
- package/dist/layers.JWCLFILJ.js +1 -0
- package/dist/layers.KCNY5y8z.js +37 -0
- package/dist/layers.KFKejNxr.js +41 -0
- package/dist/layers.LBCOqtdP.js +1 -0
- package/dist/layers.MYNPCNPb.js +1359 -0
- package/dist/layers.Mz6hy1ns.js +804 -0
- package/dist/layers.NnXYAx13.js +2479 -0
- package/dist/layers.O_QfH9Tw.js +55 -0
- package/dist/layers.PrN0U_UM.js +4 -0
- package/dist/layers.Q4CIFfze.js +1 -0
- package/dist/layers.R44OAZRP.js +40 -0
- package/dist/layers.SP95Qof2.js +9 -0
- package/dist/layers.SulLxOdh.js +1 -0
- package/dist/layers.T0eE6tga.js +42 -0
- package/dist/layers.UHP1RD2c.js +21836 -0
- package/dist/layers.UVNd1xGx.js +1265 -0
- package/dist/layers.WoRsWqkn.js +139 -0
- package/dist/layers.Xe8jbEny.js +39 -0
- package/dist/layers.ZN4JdEjx.js +7 -0
- package/dist/layers.ZYL9xgWP.js +6 -0
- package/dist/layers._hbnQs16.js +434 -0
- package/dist/layers.b0h5ZBmD.js +61 -0
- package/dist/layers.dRKtVcxx.js +41 -0
- package/dist/layers.eMCYstYw.js +7 -0
- package/dist/layers.eT0cgnuX.js +84 -0
- package/dist/layers.iE9hmQyV.js +1619 -0
- package/dist/layers.iRxcG0YN.js +9 -0
- package/dist/layers.kyTkLvwr.js +7 -0
- package/dist/layers.lCpg7dOn.js +21 -0
- package/dist/{layers.C9PaWLCY.js → layers.otSGVgrf.js} +10384 -11287
- package/dist/layers.pAr6m-ST.js +41 -0
- package/dist/layers.qxHQ5s48.js +8 -0
- package/dist/layers.qzkyQd0J.js +198 -0
- package/dist/layers.rB_UamkL.js +36 -0
- package/dist/layers.vK-UofJJ.js +8 -0
- package/dist/layers.vfmwTFt7.js +10 -0
- package/dist/layers.vrKjaGL3.js +13 -0
- package/dist/layers.wXI8z3zK.js +1 -0
- package/dist/layers.z_R2M9xA.js +42 -0
- package/dist/layers.zleGKGQR.js +220 -0
- package/dist/layers.zx6fFkwC.js +1 -0
- package/package.json +5 -7
- package/dist/layers.Dq4kf1xY.js +0 -164
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { s as J, d as B, p as Q, D as X, a as H, b as Z, S as F, c as I } from "./layers.ChkOb4tl.js";
|
|
2
|
+
import { G as tt } from "./layers.C7lIplJU.js";
|
|
3
|
+
import { l as E, g, d as x, u as et, e as ot, j as w } from "./layers.B-eOoyQV.js";
|
|
4
|
+
import { r as st } from "./layers.CmEuIxO4.js";
|
|
5
|
+
import "./layers.DAkVONDW.js";
|
|
6
|
+
import "lodash-es";
|
|
7
|
+
import "./layers.D4fGb2cV.js";
|
|
8
|
+
const h = "rect", C = "rectWithTitle", nt = "start", ct = "end", it = "divider", rt = "roundedWithTitle", lt = "note", at = "noteGroup", _ = "statediagram", dt = "state", Et = `${_}-${dt}`, U = "transition", St = "note", Tt = "note-edge", pt = `${U} ${Tt}`, _t = `${_}-${St}`, ut = "cluster", Dt = `${_}-${ut}`, bt = "cluster-alt", ft = `${_}-${bt}`, V = "parent", Y = "note", At = "state", N = "----", ht = `${N}${Y}`, M = `${N}${V}`, W = "fill:none", z = "fill: #333", j = "c", q = "text", K = "normal";
|
|
9
|
+
let y = {}, d = 0;
|
|
10
|
+
const yt = function(t) {
|
|
11
|
+
const n = Object.keys(t);
|
|
12
|
+
for (const e of n)
|
|
13
|
+
t[e];
|
|
14
|
+
}, gt = function(t, n) {
|
|
15
|
+
return n.db.extract(n.db.getRootDocV2()), n.db.getClasses();
|
|
16
|
+
};
|
|
17
|
+
function $t(t) {
|
|
18
|
+
return t == null ? "" : t.classes ? t.classes.join(" ") : "";
|
|
19
|
+
}
|
|
20
|
+
function R(t = "", n = 0, e = "", c = N) {
|
|
21
|
+
const i = e !== null && e.length > 0 ? `${c}${e}` : "";
|
|
22
|
+
return `${At}-${t}${i}-${n}`;
|
|
23
|
+
}
|
|
24
|
+
const A = (t, n, e, c, i, r) => {
|
|
25
|
+
const o = e.id, u = $t(c[o]);
|
|
26
|
+
if (o !== "root") {
|
|
27
|
+
let T = h;
|
|
28
|
+
e.start === !0 && (T = nt), e.start === !1 && (T = ct), e.type !== H && (T = e.type), y[o] || (y[o] = {
|
|
29
|
+
id: o,
|
|
30
|
+
shape: T,
|
|
31
|
+
description: w.sanitizeText(o, g()),
|
|
32
|
+
classes: `${u} ${Et}`
|
|
33
|
+
});
|
|
34
|
+
const s = y[o];
|
|
35
|
+
e.description && (Array.isArray(s.description) ? (s.shape = C, s.description.push(e.description)) : s.description.length > 0 ? (s.shape = C, s.description === o ? s.description = [e.description] : s.description = [s.description, e.description]) : (s.shape = h, s.description = e.description), s.description = w.sanitizeTextOrArray(s.description, g())), s.description.length === 1 && s.shape === C && (s.shape = h), !s.type && e.doc && (E.info("Setting cluster for ", o, G(e)), s.type = "group", s.dir = G(e), s.shape = e.type === Z ? it : rt, s.classes = s.classes + " " + Dt + " " + (r ? ft : ""));
|
|
36
|
+
const p = {
|
|
37
|
+
labelStyle: "",
|
|
38
|
+
shape: s.shape,
|
|
39
|
+
labelText: s.description,
|
|
40
|
+
// typeof newNode.description === 'object'
|
|
41
|
+
// ? newNode.description[0]
|
|
42
|
+
// : newNode.description,
|
|
43
|
+
classes: s.classes,
|
|
44
|
+
style: "",
|
|
45
|
+
//styles.style,
|
|
46
|
+
id: o,
|
|
47
|
+
dir: s.dir,
|
|
48
|
+
domId: R(o, d),
|
|
49
|
+
type: s.type,
|
|
50
|
+
padding: 15
|
|
51
|
+
//getConfig().flowchart.padding
|
|
52
|
+
};
|
|
53
|
+
if (p.centerLabel = !0, e.note) {
|
|
54
|
+
const l = {
|
|
55
|
+
labelStyle: "",
|
|
56
|
+
shape: lt,
|
|
57
|
+
labelText: e.note.text,
|
|
58
|
+
classes: _t,
|
|
59
|
+
// useHtmlLabels: false,
|
|
60
|
+
style: "",
|
|
61
|
+
// styles.style,
|
|
62
|
+
id: o + ht + "-" + d,
|
|
63
|
+
domId: R(o, d, Y),
|
|
64
|
+
type: s.type,
|
|
65
|
+
padding: 15
|
|
66
|
+
//getConfig().flowchart.padding
|
|
67
|
+
}, a = {
|
|
68
|
+
labelStyle: "",
|
|
69
|
+
shape: at,
|
|
70
|
+
labelText: e.note.text,
|
|
71
|
+
classes: s.classes,
|
|
72
|
+
style: "",
|
|
73
|
+
// styles.style,
|
|
74
|
+
id: o + M,
|
|
75
|
+
domId: R(o, d, V),
|
|
76
|
+
type: "group",
|
|
77
|
+
padding: 0
|
|
78
|
+
//getConfig().flowchart.padding
|
|
79
|
+
};
|
|
80
|
+
d++;
|
|
81
|
+
const D = o + M;
|
|
82
|
+
t.setNode(D, a), t.setNode(l.id, l), t.setNode(o, p), t.setParent(o, D), t.setParent(l.id, D);
|
|
83
|
+
let S = o, b = l.id;
|
|
84
|
+
e.note.position === "left of" && (S = l.id, b = o), t.setEdge(S, b, {
|
|
85
|
+
arrowhead: "none",
|
|
86
|
+
arrowType: "",
|
|
87
|
+
style: W,
|
|
88
|
+
labelStyle: "",
|
|
89
|
+
classes: pt,
|
|
90
|
+
arrowheadStyle: z,
|
|
91
|
+
labelpos: j,
|
|
92
|
+
labelType: q,
|
|
93
|
+
thickness: K
|
|
94
|
+
});
|
|
95
|
+
} else
|
|
96
|
+
t.setNode(o, p);
|
|
97
|
+
}
|
|
98
|
+
n && n.id !== "root" && (E.trace("Setting node ", o, " to be child of its parent ", n.id), t.setParent(o, n.id)), e.doc && (E.trace("Adding nodes children "), xt(t, e, e.doc, c, i, !r));
|
|
99
|
+
}, xt = (t, n, e, c, i, r) => {
|
|
100
|
+
E.trace("items", e), e.forEach((o) => {
|
|
101
|
+
switch (o.stmt) {
|
|
102
|
+
case I:
|
|
103
|
+
A(t, n, o, c, i, r);
|
|
104
|
+
break;
|
|
105
|
+
case H:
|
|
106
|
+
A(t, n, o, c, i, r);
|
|
107
|
+
break;
|
|
108
|
+
case F:
|
|
109
|
+
{
|
|
110
|
+
A(t, n, o.state1, c, i, r), A(t, n, o.state2, c, i, r);
|
|
111
|
+
const u = {
|
|
112
|
+
id: "edge" + d,
|
|
113
|
+
arrowhead: "normal",
|
|
114
|
+
arrowTypeEnd: "arrow_barb",
|
|
115
|
+
style: W,
|
|
116
|
+
labelStyle: "",
|
|
117
|
+
label: w.sanitizeText(o.description, g()),
|
|
118
|
+
arrowheadStyle: z,
|
|
119
|
+
labelpos: j,
|
|
120
|
+
labelType: q,
|
|
121
|
+
thickness: K,
|
|
122
|
+
classes: U
|
|
123
|
+
};
|
|
124
|
+
t.setEdge(o.state1.id, o.state2.id, u, d), d++;
|
|
125
|
+
}
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}, G = (t, n = X) => {
|
|
130
|
+
let e = n;
|
|
131
|
+
if (t.doc)
|
|
132
|
+
for (let c = 0; c < t.doc.length; c++) {
|
|
133
|
+
const i = t.doc[c];
|
|
134
|
+
i.stmt === "dir" && (e = i.value);
|
|
135
|
+
}
|
|
136
|
+
return e;
|
|
137
|
+
}, Ct = async function(t, n, e, c) {
|
|
138
|
+
E.info("Drawing state diagram (v2)", n), y = {}, c.db.getDirection();
|
|
139
|
+
const { securityLevel: i, state: r } = g(), o = r.nodeSpacing || 50, u = r.rankSpacing || 50;
|
|
140
|
+
E.info(c.db.getRootDocV2()), c.db.extract(c.db.getRootDocV2()), E.info(c.db.getRootDocV2());
|
|
141
|
+
const T = c.db.getStates(), s = new tt({
|
|
142
|
+
multigraph: !0,
|
|
143
|
+
compound: !0
|
|
144
|
+
}).setGraph({
|
|
145
|
+
rankdir: G(c.db.getRootDocV2()),
|
|
146
|
+
nodesep: o,
|
|
147
|
+
ranksep: u,
|
|
148
|
+
marginx: 8,
|
|
149
|
+
marginy: 8
|
|
150
|
+
}).setDefaultEdgeLabel(function() {
|
|
151
|
+
return {};
|
|
152
|
+
});
|
|
153
|
+
A(s, void 0, c.db.getRootDocV2(), T, c.db, !0);
|
|
154
|
+
let p;
|
|
155
|
+
i === "sandbox" && (p = x("#i" + n));
|
|
156
|
+
const l = i === "sandbox" ? x(p.nodes()[0].contentDocument.body) : x("body"), a = l.select(`[id="${n}"]`), D = l.select("#" + n + " g");
|
|
157
|
+
await st(D, s, ["barb"], _, n);
|
|
158
|
+
const S = 8;
|
|
159
|
+
et.insertTitle(a, "statediagramTitleText", r.titleTopMargin, c.db.getDiagramTitle());
|
|
160
|
+
const b = a.node().getBBox(), L = b.width + S * 2, P = b.height + S * 2;
|
|
161
|
+
a.attr("class", _);
|
|
162
|
+
const O = a.node().getBBox();
|
|
163
|
+
ot(a, P, L, r.useMaxWidth);
|
|
164
|
+
const k = `${O.x - S} ${O.y - S} ${L} ${P}`;
|
|
165
|
+
E.debug(`viewBox ${k}`), a.attr("viewBox", k);
|
|
166
|
+
const m = document.querySelectorAll('[id="' + n + '"] .edgeLabel .label');
|
|
167
|
+
for (const $ of m) {
|
|
168
|
+
const v = $.getBBox(), f = document.createElementNS("http://www.w3.org/2000/svg", h);
|
|
169
|
+
f.setAttribute("rx", 0), f.setAttribute("ry", 0), f.setAttribute("width", v.width), f.setAttribute("height", v.height), $.insertBefore(f, $.firstChild);
|
|
170
|
+
}
|
|
171
|
+
}, Rt = {
|
|
172
|
+
setConf: yt,
|
|
173
|
+
getClasses: gt,
|
|
174
|
+
draw: Ct
|
|
175
|
+
}, vt = {
|
|
176
|
+
parser: Q,
|
|
177
|
+
db: B,
|
|
178
|
+
renderer: Rt,
|
|
179
|
+
styles: J,
|
|
180
|
+
init: (t) => {
|
|
181
|
+
t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, B.clear();
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
export {
|
|
185
|
+
vt as diagram
|
|
186
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.qzkyQd0J.js");var u={paste:"Қою",pasteAsPlaintext:"",pasteCharts:"Диаграммаларды қою",selectAll:"Бәрін таңдау",multiSelect:"",moveCanvas:"",cut:"Қию",copy:"Көшіру",copyAsPng:"",copyAsSvg:"",copyText:"",copySource:"",convertToCode:"",bringForward:"",sendToBack:"",bringToFront:"",sendBackward:"",delete:"Жою",copyStyles:"Стильдерді көшіру",pasteStyles:"Стильдерді қою",stroke:"",background:"",fill:"",strokeWidth:"",strokeStyle:"",strokeStyle_solid:"",strokeStyle_dashed:"",strokeStyle_dotted:"",sloppiness:"",opacity:"",textAlign:"",edges:"",sharp:"",round:"",arrowheads:"Нұсқар ұштары",arrowhead_none:"Жоқ",arrowhead_arrow:"Нұсқар",arrowhead_bar:"Тосқауыл",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Қаріп өлшемі",fontFamily:"Қаріп тобы",addWatermark:"",handDrawn:"",normal:"Қалыпты",code:"",small:"Кіші",medium:"Орта",large:"Үлкен",veryLarge:"Өте үлкен",solid:"",hachure:"",zigzag:"",crossHatch:"",thin:"",bold:"",left:"Солға",center:"Ортаға",right:"Оңға",extraBold:"",architect:"",artist:"",cartoonist:"",fileTitle:"Файл атауы",colorPicker:"",canvasColors:"",canvasBackground:"",drawingCanvas:"",layers:"",actions:"",language:"Тіл",liveCollaboration:"",duplicateSelection:"Көшірме",untitled:"Атауысыз",name:"",yourName:"",madeWithExcalidraw:"",group:"",ungroup:"",collaborators:"",showGrid:"",addToLibrary:"",removeFromLibrary:"",libraryLoadingMessage:"",libraries:"",loadingScene:"",align:"",alignTop:"",alignBottom:"",alignLeft:"",alignRight:"",centerVertically:"",centerHorizontally:"",distributeHorizontally:"",distributeVertically:"",flipHorizontal:"",flipVertical:"",viewMode:"",share:"",showStroke:"",showBackground:"",toggleTheme:"",personalLib:"",excalidrawLib:"",decreaseFontSize:"",increaseFontSize:"",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"",editEmbed:"",create:"",createEmbed:"",label:"",labelEmbed:"",empty:""},lineEditor:{edit:"",exit:""},elementLock:{lock:"",unlock:"",lockAll:"",unlockAll:""},statusPublished:"",sidebarLock:"",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},e={noItems:"",hint_emptyLibrary:"",hint_emptyPrivateLibrary:""},r={clearReset:"",exportJSON:"",exportImage:"",export:"",copyToClipboard:"",save:"",saveAs:"",load:"",getShareableLink:"",close:"Жабу",selectLanguage:"Тілді таңдау",scrollBackToContent:"",zoomIn:"",zoomOut:"",resetZoom:"",menu:"Mәзір",done:"Дайын",edit:"",undo:"",redo:"",resetLibrary:"",createNewRoom:"",fullScreen:"",darkMode:"",lightMode:"",zenMode:"",objectsSnapMode:"",exitZenMode:"",cancel:"",clear:"",remove:"",embed:"",publishLibrary:"",submit:"",confirm:"",embeddableInteractionButton:""},o={clearReset:"",couldNotCreateShareableLink:"",couldNotCreateShareableLinkTooBig:"",couldNotLoadInvalidFile:"",importBackendFailed:"",cannotExportEmptyCanvas:"",couldNotCopyToClipboard:"",decryptFailed:"",uploadedSecurly:"",loadSceneOverridePrompt:"",collabStopOverridePrompt:"",errorAddingToLibrary:"",errorRemovingFromLibrary:"",confirmAddLibrary:"",imageDoesNotContainScene:"",cannotRestoreFromImage:"",invalidSceneUrl:"",resetLibrary:"",removeItemsFromsLibrary:"",invalidEncryptionKey:"",collabOfflineWarning:""},a={unsupportedFileType:"",imageInsertError:"Суретті жүктеу мүмкін болмады. Кейінірек қайталап көріңіз...",fileTooBig:"Файл өте үлкен. Максималды рұқсат етілген көлем {{maxSize}}.",svgImageInsertError:"",failedToFetchImage:"",invalidSVGString:"",cannotResolveCollabServer:"",importLibraryError:"",collabSaveFailed:"",collabSaveFailed_sizeExceeded:"",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},t={selection:"",image:"Суретті қою",rectangle:"",diamond:"",ellipse:"",arrow:"Нұсқар",line:"",freedraw:"",text:"Мәтін",library:"",lock:"",penMode:"",link:"",eraser:"",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},i={canvasActions:"",selectedShapeActions:"",shapes:""},l={canvasPanning:"",linearElement:"",freeDraw:"",text:"",embeddable:"",text_selected:"",text_editing:"",linearElementMulti:"",lockAngle:"",resize:"",resizeImage:"",rotate:"",lineEditor_info:"",lineEditor_pointSelected:"",lineEditor_nothingSelected:"",placeImage:"",publishLibrary:"",bindTextToElement:"",deepBoxSelect:"",eraserRevert:"",firefox_clipboard_write:"",disableSnapping:""},n={cannotShowPreview:"",canvasTooBig:"",canvasTooBigTip:""},s={headingMain:"",clearCanvasMessage:"",clearCanvasCaveat:"",trackedToSentry:"",openIssueMessage:"",sceneContent:""},d={desc_intro:"",desc_privacy:"",button_startSession:"",button_stopSession:"",desc_inProgressIntro:"",desc_shareLink:"",desc_exitSession:"",shareTitle:""},c={title:"Қате"},B={disk_title:"",disk_details:"Сахна деректерін кейін қайта импорттауға болатын файлға экспорттаңыз.",disk_button:"Файлға сақтау",link_title:"Ортақ сілтеме",link_details:"Тек оқуға арналған сілтеме ретінде экспорттау.",link_button:"Сілтемеге экспорттау",excalidrawplus_description:"Сахнаны өзіңіздің Excalidraw+ жұмыс кеңістігінде сақтаңыз.",excalidrawplus_button:"Экспорт",excalidrawplus_exportError:"Қазіргі уақытта Excalidraw+ үшін экспорттау мүмкін емес..."},m={blog:"Біздің блогты оқу",click:"шерту",deepSelect:"",deepBoxSelect:"",curvedArrow:"Майысқан нұсқар",curvedLine:"Майысқан сызық",documentation:"Құжаттама",doubleClick:"қос шерту",drag:"апару",editor:"Өңдеу",editLineArrowPoints:"",editText:"",github:"Қате таптыңыз ба? Жолдаңыз",howto:"Біздің нұсқаулықтарды орындаңыз",or:"немесе",preventBinding:"Нұсқарды байланыстыруға жол бермеу",tools:"",shortcuts:"Пернетақта пәрмендері",textFinish:"Өңдеуді аяқтау (мәтіндік редактор)",textNewLine:"Жаңа жолға көшу (мәтіндік редактор)",title:"Көмек",view:"Көру",zoomToFit:"Барлық элементтердің көлеміне сәйкес үлкейту",zoomToSelection:"Таңдалғанды үлкейту",toggleElementLock:"",movePageUpDown:"",movePageLeftRight:""},p={title:""},g={title:"",itemName:"",authorName:"",githubUsername:"",twitterUsername:"",libraryName:"",libraryDesc:"",website:"",placeholder:{authorName:"",libraryName:"",libraryDesc:"",githubHandle:"",twitterHandle:"",website:""},errors:{required:"",website:""},noteDescription:"",noteGuidelines:"",noteLicense:"",noteItems:"",atleastOneLibItem:"",republishWarning:""},b={title:"",content:""},A={resetLibrary:"",removeItemsFromLib:""},E={header:"",label:{withBackground:"",onlySelected:"",darkMode:"",embedScene:"",scale:"",padding:""},tooltip:{embedScene:""},title:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""},button:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""}},D={tooltip:"Сіздің сызбаларыңыз өтпелі шифрлеу арқылы шифрланған, сондықтан Excalidraw серверлері оларды ешқашан көрмейді.",link:"Excalidraw қолданатын өтпелі шифрлеу туралы блог жазбасы"},h={angle:"Бұрыш",element:"Элемент",elements:"Элементтер",height:"Биіктігі",scene:"Сахна",selected:"Таңдалды",storage:"Сақтау көлемі",title:"",total:"Барлығы",version:"Нұсқа",versionCopy:"Көшіру үшін басыңыз",versionNotAvailable:"Бұл нұсқа қолжетімсіз",width:"Ені"},y={addedToLibrary:"",copyStyles:"Стильдер көшірілді.",copyToClipboard:"",copyToClipboardAsPng:"",fileSaved:"Файл сақталды.",fileSavedToFilename:"{filename} сақталды",canvas:"",selection:"таңдау",pasteAsSingleElement:"",unableToEmbed:"",unrecognizedLinkFormat:""},C={transparent:"",black:"",white:"",red:"",pink:"",grape:"",violet:"",gray:"",blue:"",cyan:"",teal:"",green:"",yellow:"",orange:"",bronze:""},v={app:{center_heading:"",center_heading_plus:"",menuHint:""},defaults:{menuHint:"",center_heading:"",toolbarHint:"",helpHint:""}},S={mostUsedCustomColors:"",colors:"",shades:"",hexCode:"",noShades:""},w={action:{exportToImage:{title:"",button:"",description:""},saveToDisk:{title:"",button:"",description:""},excalidrawPlus:{title:"",button:"",description:""}},modal:{loadFromFile:{title:"",button:"",description:""},shareableLink:{title:"",button:"",description:""}}},F={title:"",button:"",description:"",syntax:"",preview:""},x={labels:u,library:e,buttons:r,alerts:o,errors:a,toolBar:t,headings:i,hints:l,canvasError:n,errorSplash:s,roomDialog:d,errorDialog:c,exportDialog:B,helpDialog:m,clearCanvasDialog:p,publishDialog:g,publishSuccessDialog:b,confirmDialog:A,imageExportDialog:E,encrypted:D,stats:h,toast:y,colors:C,welcomeScreen:v,colorPicker:S,overwriteConfirm:w,mermaid:F};exports.alerts=o;exports.buttons=r;exports.canvasError=n;exports.clearCanvasDialog=p;exports.colorPicker=S;exports.colors=C;exports.confirmDialog=A;exports.default=x;exports.encrypted=D;exports.errorDialog=c;exports.errorSplash=s;exports.errors=a;exports.exportDialog=B;exports.headings=i;exports.helpDialog=m;exports.hints=l;exports.imageExportDialog=E;exports.labels=u;exports.library=e;exports.mermaid=F;exports.overwriteConfirm=w;exports.publishDialog=g;exports.publishSuccessDialog=b;exports.roomDialog=d;exports.stats=h;exports.toast=y;exports.toolBar=t;exports.welcomeScreen=v;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";const G=require("./layers.9QK1wiQj.js"),r=require("./layers.0Uws2RMI.js"),P=require("./layers.3cmQBPRD.js"),V=require("lodash-es"),j=require("./layers.D1fmxxk7.js");function F(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(o,i,a.get?a:{enumerable:!0,get:()=>e[i]})}}return o.default=e,Object.freeze(o)}const E=F(V);function N(e){return new r.Selection([document.querySelectorAll(e)],[document.documentElement])}function M(e,o){return!!e.children(o).length}function R(e){return _(e.v)+":"+_(e.w)+":"+_(e.name)}var H=/:/g;function _(e){return e?String(e).replace(H,"\\:"):""}function B(e,o){o&&e.attr("style",o)}function K(e,o,i){o&&e.attr("class",o).attr("class",i+" "+e.attr("class"))}function O(e,o){var i=o.graph();if(E.isPlainObject(i)){var a=i.transition;if(E.isFunction(a))return a(e)}return e}function D(e,o){var i=e.append("foreignObject").attr("width","100000"),a=i.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var d=o.label;switch(typeof d){case"function":a.insert(d);break;case"object":a.insert(function(){return d});break;default:a.html(d)}B(a,o.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var p=a.node().getBoundingClientRect();return i.attr("width",p.width).attr("height",p.height),i}const I={},U=function(e){const o=Object.keys(e);for(const i of o)I[i]=e[i]},q=async function(e,o,i,a,d,p){const g=a.select(`[id="${i}"]`),s=Object.keys(e);for(const b of s){const l=e[b];let h="default";l.classes.length>0&&(h=l.classes.join(" ")),h=h+" flowchart-label";const w=r.getStylesFromArray(l.styles);let t=l.text!==void 0?l.text:l.id,c;if(r.log$1.info("vertex",l,l.labelType),l.labelType==="markdown")r.log$1.info("vertex",l,l.labelType);else if(r.evaluate(r.getConfig().flowchart.htmlLabels))c=D(g,{label:t}).node(),c.parentNode.removeChild(c);else{const k=d.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const T=t.split(r.common$1.lineBreakRegex);for(const $ of T){const v=d.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=$,k.appendChild(v)}c=k}let f=0,n="";switch(l.type){case"round":f=5,n="rect";break;case"square":n="rect";break;case"diamond":n="question";break;case"hexagon":n="hexagon";break;case"odd":n="rect_left_inv_arrow";break;case"lean_right":n="lean_right";break;case"lean_left":n="lean_left";break;case"trapezoid":n="trapezoid";break;case"inv_trapezoid":n="inv_trapezoid";break;case"odd_right":n="rect_left_inv_arrow";break;case"circle":n="circle";break;case"ellipse":n="ellipse";break;case"stadium":n="stadium";break;case"subroutine":n="subroutine";break;case"cylinder":n="cylinder";break;case"group":n="rect";break;case"doublecircle":n="doublecircle";break;default:n="rect"}const S=await r.renderKatex(t,r.getConfig());o.setNode(l.id,{labelStyle:w.labelStyle,shape:n,labelText:S,labelType:l.labelType,rx:f,ry:f,class:h,style:w.style,id:l.id,link:l.link,linkTarget:l.linkTarget,tooltip:p.db.getTooltip(l.id)||"",domId:p.db.lookUpDomId(l.id),haveCallback:l.haveCallback,width:l.type==="group"?500:void 0,dir:l.dir,type:l.type,props:l.props,padding:r.getConfig().flowchart.padding}),r.log$1.info("setNode",{labelStyle:w.labelStyle,labelType:l.labelType,shape:n,labelText:S,rx:f,ry:f,class:h,style:w.style,id:l.id,domId:p.db.lookUpDomId(l.id),width:l.type==="group"?500:void 0,type:l.type,dir:l.dir,props:l.props,padding:r.getConfig().flowchart.padding})}},z=async function(e,o,i){r.log$1.info("abc78 edges = ",e);let a=0,d={},p,g;if(e.defaultStyle!==void 0){const s=r.getStylesFromArray(e.defaultStyle);p=s.style,g=s.labelStyle}for(const s of e){a++;const b="L-"+s.start+"-"+s.end;d[b]===void 0?(d[b]=0,r.log$1.info("abc78 new entry",b,d[b])):(d[b]++,r.log$1.info("abc78 new entry",b,d[b]));let l=b+"-"+d[b];r.log$1.info("abc78 new link id to be used is",b,l,d[b]);const h="LS-"+s.start,w="LE-"+s.end,t={style:"",labelStyle:""};switch(t.minlen=s.length||1,s.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",s.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let c="",f="";switch(s.stroke){case"normal":c="fill:none;",p!==void 0&&(c=p),g!==void 0&&(f=g),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(s.style!==void 0){const n=r.getStylesFromArray(s.style);c=n.style,f=n.labelStyle}t.style=t.style+=c,t.labelStyle=t.labelStyle+=f,s.interpolate!==void 0?t.curve=r.interpolateToCurve(s.interpolate,r.curveLinear):e.defaultInterpolate!==void 0?t.curve=r.interpolateToCurve(e.defaultInterpolate,r.curveLinear):t.curve=r.interpolateToCurve(I.curve,r.curveLinear),s.text===void 0?s.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=s.labelType,t.label=await r.renderKatex(s.text.replace(r.common$1.lineBreakRegex,`
|
|
2
|
+
`),r.getConfig()),s.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=l,t.classes="flowchart-link "+h+" "+w,o.setEdge(s.start,s.end,t,a)}},W=function(e,o){return o.db.getClasses()},X=async function(e,o,i,a){r.log$1.info("Drawing flowchart");let d=a.db.getDirection();d===void 0&&(d="TD");const{securityLevel:p,flowchart:g}=r.getConfig(),s=g.nodeSpacing||50,b=g.rankSpacing||50;let l;p==="sandbox"&&(l=r.select("#i"+o));const h=p==="sandbox"?r.select(l.nodes()[0].contentDocument.body):r.select("body"),w=p==="sandbox"?l.nodes()[0].contentDocument:document,t=new G.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:s,ranksep:b,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let c;const f=a.db.getSubGraphs();r.log$1.info("Subgraphs - ",f);for(let u=f.length-1;u>=0;u--)c=f[u],r.log$1.info("Subgraph - ",c),a.db.addVertex(c.id,{text:c.title,type:c.labelType},"group",void 0,c.classes,c.dir);const n=a.db.getVertices(),S=a.db.getEdges();r.log$1.info("Edges",S);let k=0;for(k=f.length-1;k>=0;k--){c=f[k],N("cluster").append("text");for(let u=0;u<c.nodes.length;u++)r.log$1.info("Setting up subgraphs",c.nodes[u],c.id),t.setParent(c.nodes[u],c.id)}await q(n,t,o,h,w,a),await z(S,t);const T=h.select(`[id="${o}"]`),$=h.select("#"+o+" g");if(await P.render($,t,["point","circle","cross"],"flowchart",o),r.utils.insertTitle(T,"flowchartTitleText",g.titleTopMargin,a.db.getDiagramTitle()),r.setupGraphViewbox$1(t,T,g.diagramPadding,g.useMaxWidth),a.db.indexNodes("subGraph"+k),!g.htmlLabels){const u=w.querySelectorAll('[id="'+o+'"] .edgeLabel .label');for(const x of u){const m=x.getBBox(),y=w.createElementNS("http://www.w3.org/2000/svg","rect");y.setAttribute("rx",0),y.setAttribute("ry",0),y.setAttribute("width",m.width),y.setAttribute("height",m.height),x.insertBefore(y,x.firstChild)}}Object.keys(n).forEach(function(u){const x=n[u];if(x.link){const m=r.select("#"+o+' [id="'+u+'"]');if(m){const y=w.createElementNS("http://www.w3.org/2000/svg","a");y.setAttributeNS("http://www.w3.org/2000/svg","class",x.classes.join(" ")),y.setAttributeNS("http://www.w3.org/2000/svg","href",x.link),y.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),p==="sandbox"?y.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):x.linkTarget&&y.setAttributeNS("http://www.w3.org/2000/svg","target",x.linkTarget);const C=m.insert(function(){return y},":first-child"),L=m.select(".label-container");L&&C.append(function(){return L.node()});const A=m.select(".label");A&&C.append(function(){return A.node()})}}})},J={setConf:U,addVertices:q,addEdges:z,getClasses:W,draw:X},Q=(e,o)=>{const i=j.channel,a=i(e,"r"),d=i(e,"g"),p=i(e,"b");return r.rgba(a,d,p,o)},Y=e=>`.label {
|
|
3
|
+
font-family: ${e.fontFamily};
|
|
4
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
5
|
+
}
|
|
6
|
+
.cluster-label text {
|
|
7
|
+
fill: ${e.titleColor};
|
|
8
|
+
}
|
|
9
|
+
.cluster-label span,p {
|
|
10
|
+
color: ${e.titleColor};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.label text,span,p {
|
|
14
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
15
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.node rect,
|
|
19
|
+
.node circle,
|
|
20
|
+
.node ellipse,
|
|
21
|
+
.node polygon,
|
|
22
|
+
.node path {
|
|
23
|
+
fill: ${e.mainBkg};
|
|
24
|
+
stroke: ${e.nodeBorder};
|
|
25
|
+
stroke-width: 1px;
|
|
26
|
+
}
|
|
27
|
+
.flowchart-label text {
|
|
28
|
+
text-anchor: middle;
|
|
29
|
+
}
|
|
30
|
+
// .flowchart-label .text-outer-tspan {
|
|
31
|
+
// text-anchor: middle;
|
|
32
|
+
// }
|
|
33
|
+
// .flowchart-label .text-inner-tspan {
|
|
34
|
+
// text-anchor: start;
|
|
35
|
+
// }
|
|
36
|
+
|
|
37
|
+
.node .katex path {
|
|
38
|
+
fill: #000;
|
|
39
|
+
stroke: #000;
|
|
40
|
+
stroke-width: 1px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.node .label {
|
|
44
|
+
text-align: center;
|
|
45
|
+
}
|
|
46
|
+
.node.clickable {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.arrowheadPath {
|
|
51
|
+
fill: ${e.arrowheadColor};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.edgePath .path {
|
|
55
|
+
stroke: ${e.lineColor};
|
|
56
|
+
stroke-width: 2.0px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.flowchart-link {
|
|
60
|
+
stroke: ${e.lineColor};
|
|
61
|
+
fill: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.edgeLabel {
|
|
65
|
+
background-color: ${e.edgeLabelBackground};
|
|
66
|
+
rect {
|
|
67
|
+
opacity: 0.5;
|
|
68
|
+
background-color: ${e.edgeLabelBackground};
|
|
69
|
+
fill: ${e.edgeLabelBackground};
|
|
70
|
+
}
|
|
71
|
+
text-align: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* For html labels only */
|
|
75
|
+
.labelBkg {
|
|
76
|
+
background-color: ${Q(e.edgeLabelBackground,.5)};
|
|
77
|
+
// background-color:
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.cluster rect {
|
|
81
|
+
fill: ${e.clusterBkg};
|
|
82
|
+
stroke: ${e.clusterBorder};
|
|
83
|
+
stroke-width: 1px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.cluster text {
|
|
87
|
+
fill: ${e.titleColor};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.cluster span,p {
|
|
91
|
+
color: ${e.titleColor};
|
|
92
|
+
}
|
|
93
|
+
/* .cluster div {
|
|
94
|
+
color: ${e.titleColor};
|
|
95
|
+
} */
|
|
96
|
+
|
|
97
|
+
div.mermaidTooltip {
|
|
98
|
+
position: absolute;
|
|
99
|
+
text-align: center;
|
|
100
|
+
max-width: 200px;
|
|
101
|
+
padding: 2px;
|
|
102
|
+
font-family: ${e.fontFamily};
|
|
103
|
+
font-size: 12px;
|
|
104
|
+
background: ${e.tertiaryColor};
|
|
105
|
+
border: 1px solid ${e.border2};
|
|
106
|
+
border-radius: 2px;
|
|
107
|
+
pointer-events: none;
|
|
108
|
+
z-index: 100;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.flowchartTitleText {
|
|
112
|
+
text-anchor: middle;
|
|
113
|
+
font-size: 18px;
|
|
114
|
+
fill: ${e.textColor};
|
|
115
|
+
}
|
|
116
|
+
`,Z=Y;exports.addHtmlLabel=D;exports.applyClass=K;exports.applyStyle=B;exports.applyTransition=O;exports.edgeToId=R;exports.flowRendererV2=J;exports.flowStyles=Z;exports.isSubgraph=M;exports.selectAll=N;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import "./layers.DAkVONDW.js";
|
|
2
|
+
var u = { paste: "चिटकवा", pasteAsPlaintext: "साधा मजकूर च्या रुपात पेस्ट करा", pasteCharts: "चार्ट चिकटवा", selectAll: "समस्त निवडा", multiSelect: "निवडित तत्व जोडा", moveCanvas: "पटल हलवा", cut: "कापा", copy: "प्रतिलिपी", copyAsPng: "PNG रूपे फळी वर कॉपी करा", copyAsSvg: "SVG रूपे फळी वर कॉपी करा", copyText: "लिखित रूपे फळी वर कॉपी करा", copySource: "स्त्रोत फळी वर कॉपी करा", convertToCode: "सांकेतिक लिपित रूपांतरित करा", bringForward: "पुढे पुढे आणा", sendToBack: "सर्वात मागे करा", bringToFront: "सर्वात पुढे आणा", sendBackward: "मागे मागे करा", delete: "हटवा", copyStyles: "शैली कॉपी करा", pasteStyles: "कॉपी केलेली शैली वापरा", stroke: "रेघे चा रंग", background: "पार्श्वभूमी", fill: "भरा", strokeWidth: "रेघ रुंदी", strokeStyle: "रेघ शैली", strokeStyle_solid: "भरीव", strokeStyle_dashed: "तुटित तुटित", strokeStyle_dotted: "ठिपके ठिपके", sloppiness: "गबाळेपणा", opacity: "अपारदर्शक्ता", textAlign: "मजकूर संरेखन", edges: "किनारी", sharp: "टोचरं", round: "गोलाकार", arrowheads: "बाण टोक", arrowhead_none: "कुठलाहि नाही", arrowhead_arrow: "बाण", arrowhead_bar: "दांडुक", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "त्रिकोण", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "अक्षर आकार", fontFamily: "अक्षर समूह", addWatermark: '"एक्सकेलीड्रॉ ने बनवलेलं" जोडा', handDrawn: "हातानी बनवलेलं", normal: "सामान्य", code: "सांकेतिक लिपि", small: "छोटे", medium: "मध्यम", large: "मोठं", veryLarge: "फार मोठं", solid: "भरीव", hachure: "हैशूर रेखांकन", zigzag: "वाकडी तिकड़ी", crossHatch: "आडव्या रेघा", thin: "पातळ", bold: "जाड", left: "डावं", center: "मधे", right: "उजवं", extraBold: "जास्त जाड", architect: "वास्तुविद्याविशारद", artist: "कलाकार", cartoonist: "व्यंग्य चित्रकार", fileTitle: "फाईलचे नाव", colorPicker: "रंग निवडक", canvasColors: "कॅनवास वर वापरलेले", canvasBackground: "पटल पार्श्वभूमि", drawingCanvas: "चित्र पटल", layers: "स्तर", actions: "क्रिया", language: "भाषा", liveCollaboration: "ज्वलंत सहयोग...", duplicateSelection: "प्रतिलिपि", untitled: "अशीर्षकांकित", name: "नाव", yourName: "तुमचे नाव", madeWithExcalidraw: "एक्सकेलीड्रॉ ने बनवलेलं", group: "समूह निवड", ungroup: "समूह निवड ला रद्द करा", collaborators: "Sahayog", showGrid: "ग्रिड दाखवा", addToLibrary: "संग्रह मधे सम्मिलित करा", removeFromLibrary: "संग्रहातून काढ़ा", libraryLoadingMessage: "संग्रह लोड होत आहे…", libraries: "संग्रह देखे", loadingScene: "दृश्य लोड होत आहे…", align: "संरेखित करा", alignTop: "वर संरेखित करा", alignBottom: "खाली संरेखित करा", alignLeft: "डावा बाजूला संरेखित करा", alignRight: "उजव्या बाजूला संरेखित करा", centerVertically: "मधल्या मधे उभं संरेखित करा", centerHorizontally: "मधल्या मधे आडवं संरेखित करा", distributeHorizontally: "आडवं वितरित करा", distributeVertically: "उभं वितरित करा", flipHorizontal: "आडवं फ्लिप करा", flipVertical: "उभं फ्लिप करा", viewMode: "पहायची पद्धत", share: "सामायिक करा", showStroke: "रेघ रंग निवड यंत्र दाखवा", showBackground: "पार्श्वभूमि: रंग निवड यंत्र दाखवा", toggleTheme: "शैली बदला", personalLib: "वैयक्तिक संग्रह", excalidrawLib: "एक्सकेलीड्रॉ संग्रह", decreaseFontSize: "अक्षर आकार छोटा करा", increaseFontSize: "अक्षर आकार मोठा करा", unbindText: "लेखन संबंध संपवा", bindText: "शब्द समूह ला पात्रात घ्या", createContainerFromText: "मजकूर कंटेनर मधे मोडून दाखवा", link: { edit: "दुवा संपादन", editEmbed: "कड़ी सम्पादित करा आणि रुतवा", create: "दुवा तयार करा", createEmbed: "नवीन कड़ी बनवा आणि रुतवा", label: "दुवा", labelEmbed: "कड़ी आणि रूतवणे", empty: "कुठलिही कड़ी दिली नाही" }, lineEditor: { edit: "रेघ संपादन", exit: "रेघ संपादकाबाहेर" }, elementLock: { lock: "कुलूपात ठेवा", unlock: "कुलूपातून बाहेर", lockAll: "सर्व कुलूपात ठेवा", unlockAll: "सर्व कुलूपातून बाहेर" }, statusPublished: "प्रकाशित करा", sidebarLock: "साइडबार उघडं ठेवा", selectAllElementsInFrame: "चौकटीतले सर्व तत्वांचे चयन करा", removeAllElementsFromFrame: "चौकटीतून सर्व काढून टाका", eyeDropper: "चित्रफलकातून रंग निवडा", textToDiagram: "", prompt: "" }, E = { noItems: "अजून कोणतेही आइटम जोडलेले नाही...", hint_emptyLibrary: "पटल वर एक वस्तु निवडुन एथे जोडा, किव्हा एक संग्रह जन कोष कडुन खाली स्थापित करा.", hint_emptyPrivateLibrary: "ईथे जोडण्या साठी पटल वरून एक वस्तु निवडा." }, F = { clearReset: "पटल पुसा", exportJSON: "फ़ाइलमधे बाहेर ठेवा", exportImage: "प्रतिमा निर्यात करा...", export: "येथे सुरक्षित करा...", copyToClipboard: "फळी वर कॉपी करा", save: "वर्तमान फ़ाइल मधे जतन करा", saveAs: "ह्या नावाने जतन करा", load: "उघडा", getShareableLink: "सामायिके साठी दुवा प्राप्त करा", close: "बंद करा", selectLanguage: "भाषा निवड करा", scrollBackToContent: "पहलेचा मजकुर वर मागे स्क्रॉल करा", zoomIn: "मोठं करून पहा", zoomOut: "छोटं करून पहा", resetZoom: "छोटं मोठं करणं बंद करा", menu: "यादि", done: "झालं", edit: "संपादित करा", undo: "पूर्ववत करा", redo: "पुन्हा करा(&R)", resetLibrary: "संग्रह पुनर्स्थित करा", createNewRoom: "एक नवी खोली बनवा", fullScreen: "पूर्ण दृश्यपटल", darkMode: "अंधार स्थिथि", lightMode: "उजेड स्थिति", zenMode: "ध्यानग्र स्थिति", objectsSnapMode: "वस्तूंपासून पकड़ा", exitZenMode: "ध्यानग्र स्थितितून बाहेर", cancel: "रद्द", clear: "स्वछ", remove: "हटवा", embed: "रुतवणे उलटे करा", publishLibrary: "प्रकाशित करा", submit: "जमा करा", confirm: "पुष्टि करा", embeddableInteractionButton: "संवादा साठी क्लिक करा" }, D = { clearReset: "पटल स्वच्छ होणार, तुम्हाला खात्री आहे का?", couldNotCreateShareableLink: "सामायी करण करण्या योग्य दुवा नाही बनवता आला.", couldNotCreateShareableLinkTooBig: "सामायी करण करण्या योग्य दुवा नाही बनवता आला: दृश्य फार मोठं आहे", couldNotLoadInvalidFile: "अवैध फ़ाइल लोड करता आली नाही", importBackendFailed: "बैकएंड हून मागवणे विफल झाले.", cannotExportEmptyCanvas: "रिकामा पटल जतन करता येत नाही.", couldNotCopyToClipboard: "पटल वर कॉपी नाही झाली.", decryptFailed: "डीक्रिप्ट करता आले नाही.", uploadedSecurly: "अपलोड या टोकापासून त्या टोकापर्यंत कूटबद्धित करून सुरक्षित केले गेले आहे, हयाचा अर्थ असा की एक्सकेलीड्रॉ सर्व्हर आणि तृतीय पक्ष मजकूर वाचू शकत नाहीत.", loadSceneOverridePrompt: "बाह्य रेखाचित्र लोड केल्याने तुमची तुमचा विद्यमान मजकूर बदलेल. हे काम तुम्हाला चालू ठेवायचे आहे का?", collabStopOverridePrompt: `सत्र थांबवल्याने तुमचे पूर्वीचे, स्थानिकरित्या संग्रहित रेखाचित्र अधिलिखित होईल. तुला खात्री आहे?
|
|
3
|
+
|
|
4
|
+
(तुम्हाला तुमचे स्थानिक रेखाचित्र ठेवायचे असल्यास, त्याऐवजी फक्त ब्राउझर टॅब बंद करा.)`, errorAddingToLibrary: "संग्रहात तत्व जोडू शकलो नाही", errorRemovingFromLibrary: "संग्रहातून तत्व काढू शकलो नाही", confirmAddLibrary: "हे तुमच्या संग्राहात {{numShapes}} आकार (एक किव्हा अनेक) जोडेल. तुला खात्री आहे?", imageDoesNotContainScene: "या प्रतिमेमध्ये कोणताही दृश्य डेटा असल्याचे दिसत नाही. बाहेर जतन करताना तुम्ही दृश्य रुतवले होते का?", cannotRestoreFromImage: "प्रतिमा फ़ाइल पासून दृश्य पुनः रचित नाही झाला", invalidSceneUrl: "दिलेल्या यू-आर-एल पासून दृश्य आणू शकलो नाही. तो एकतर बरोबार नाही आहे किंवा त्यात वैध एक्सकेलीड्रॉ जेसन डेटा नाही.", resetLibrary: "पटल स्वच्छ होणार, तुम्हाला खात्री आहे का?", removeItemsFromsLibrary: "संग्रहातून {{count}} तत्व (एक किव्हा अनेक) काढू?", invalidEncryptionKey: "कूटबद्धन कुंजी 22 अक्षरांची असणे आवश्यक आहे. थेट सहयोग अक्षम केले आहे.", collabOfflineWarning: `इंटरनेट कनेक्शन उपलब्ध नाही.
|
|
5
|
+
तुमचे बदल जतन केले जाणार नाहीत!` }, e = { unsupportedFileType: "असमर्थित फाइल प्रकार.", imageInsertError: "प्रतिमा आत घालता येत नाही. नंतर पुन्हा प्रयत्न करा...", fileTooBig: "फाइल फार मोठी आहे. आकाराची कमाल परवानगी {{maxSize}} आहे.", svgImageInsertError: "एस-वी-जी प्रतिमा आत घालवू शकलो नाही. एस-वी-जी-मार्क-अप यंत्र अयोग्य आहे.", failedToFetchImage: "प्रतिमा आणणे नाही जमले.", invalidSVGString: "अयोग्य एस-वी-जी.", cannotResolveCollabServer: "कॉलेब-सर्वर हे पोहोचत नाही आहे. पान परत लोड करायचा प्रयत्न करावे.", importLibraryError: "संग्रह प्रतिस्थापित नाही करता आला", collabSaveFailed: "काही कारणा निमित्त आतल्या डेटाबेसमध्ये जतन करू शकत नाही। समस्या तशिस राहिल्यास, तुम्ही तुमचे काम गमावणार नाही याची खात्री करण्यासाठी तुम्ही तुमची फाइल स्थानिक जतन करावी.", collabSaveFailed_sizeExceeded: `लगता है कि पृष्ठ तल काफ़ी बड़ा है, इस्कारण अंदरूनी डेटाबेस में सहेजा नहीं जा सका। किये काम को खोने न देने के लिये अपनी फ़ाइल को स्थानीय रूप से सहेजे।
|
|
6
|
+
|
|
7
|
+
बॅकएंड डेटाबेसमध्ये जतन करू शकत नाही, कॅनव्हास खूप मोठा असल्याचे दिसते. तुम्ही तुमचे काम गमावणार नाही याची खात्री करण्यासाठी तुम्ही फाइल स्थानिक पातळीवर जतन करावी.`, imageToolNotSupported: "प्रतिमां अक्षम केली गेली आहेत.", brave_measure_text_error: { line1: "असं वाटते की तुम्हीं Brave ब्राउज़र वापरतात आहात आणि त्या बरोबार <bold>आक्रामक पद्धति चें बोटांचे ठसे </bold> हां सेटिंग्स चा विकल्प चयन केलेला आहे.", line2: "हे तुमच्या चित्रांच्या <bold>पाठ तत्वांनां </bold> खंडित करू शकतात.", line3: "तुम्हाला आमच्या कड़ून खूप आग्रह आहे की हे सेटिंग्स मधले चयन नका करु. <link>हे अनुक्रम </link> हे कसे करावे हे दाखवु शकते.", line4: "ही सेटिंग अक्षम करूनही पृष्ठ योग्यरित्या प्रदर्शित होत नसल्यास, आमच्या GitHub वर <issueLink>समस्या</issueLink> सबमिट करा, किव्हा <discordLink>डिस्कॉर्ड</discordLink> वर आम्हाला लिहा" }, libraryElementTypeError: { embeddable: "रुतलेले तत्व समूह कोषात जोडले जाऊ शकत नाही.", iframe: "आयफ़्रेम तत्व समूहकोषात जोडला जाऊ शकत नाही.", image: "प्रतिमा समूह कोषात जोड़ायचे लवकरच येत आहेत!" }, asyncPasteFailedOnRead: "चिटकवता नाही जमले ( सिस्टम क्लिप्बॉर्ड पासून वाचणे नाही जमले).", asyncPasteFailedOnParse: "चिटकवता नाही जमले.", copyToSystemClipboardFailed: "क्लिपबोर्ड वर प्रतिलिपि करणे नाही जमले." }, A = { selection: "निवड", image: "प्रतिमा आत घाला", rectangle: "आयत", diamond: "चौकोन आकाराचा", ellipse: "अंडाकार", arrow: "बाण", line: "रेखा", freedraw: "रेखांकित करा", text: "टेक्स्ट", library: "संग्रह", lock: "निवडलेले यंत्र चित्रकरण झाल्या नंतर ही सक्रिय ठेवा", penMode: "पेन चा मोड - स्पर्श टाळा", link: "निवडलेल्या आकारासाठी दुवा जोडा/बदल करा", eraser: "खोड रबर", frame: "चौकट यंत्र", magicframe: "वायरफ़्रेम पासून सांकेतिक लिपि", embeddable: "वेब रुतवा", laser: "लेसर टॉर्च", hand: "हात ( सरकवण्या चे उपकरण)", extraTools: "आणिक यंत्रे", mermaidToExcalidraw: "मर्मेड पासून एक्सकाली मधे", magicSettings: "कृतिम बुद्दिवत्ता सेटिंग्स" }, o = { canvasActions: "पटल क्रिया", selectedShapeActions: "निवडित आकार क्रिया", shapes: "आकार" }, r = { canvasPanning: "कॅनव्हास सरकवण्या साठी, ड्रॅग करताना माउस व्हील धरा किंवा स्पेसबार दाबून ठेवा अथवा हात वालं उपकरण वापरा", linearElement: "अनेक बिंदु साठी क्लिक करा, रेघे साठी ड्रैग करा", freeDraw: "क्लिक आणि ड्रैग करा, झालं तेव्हा सोडा", text: "टीप: तुम्हीं निवड यंत्रानी कोठेही दुहेरी क्लिक करून टेक्स्ट जोडू शकता", embeddable: "वेबसाइट रुतोण्या साठी दाबून-खेचा (क्लिक-ड्रैग करा)", text_selected: "लेखन संपादन साठी दुहेरी क्लिक करा किव्हा एंटर दाबा", text_editing: "संपादन संपवायचं असल्यास एस्केप दाबा किव्हा कंट्रोल या कम्मांड बरोबार एंटर दाबा", linearElementMulti: "शेवटच्या बिंदु वर क्लिक करा किव्हा एस्केप या एंटर दाबा", lockAngle: "शिफ्ट धरून तुम्ही कोन मर्यादित करू शकता", resize: `आकार छोटा मोठा करताना SHIFT धरून तुम्ही प्रमाण मर्यादित करू शकता,
|
|
8
|
+
केंद्रापासून आकार छोटा मोठा करण्यासाठी ALT धरून ठेवा`, resizeImage: `SHIFT धरून तुम्ही मुक्तपणे आकार मोठा छोटा करु शकता,
|
|
9
|
+
केंद्रापासून आकार मोठा छोटा करण्यासाठी ALT धरून ठेवा`, rotate: "फिरवत असताना शिफ्ट धरून तुम्ही कोन मर्यादित करू शकता", lineEditor_info: "पॉइंट संपादित करण्यासाठी CtrlOrCmd दाबून ठेवुन डबल-क्लिक करा किंवा CtrlOrCmd + Enter बरोबर दाबा", lineEditor_pointSelected: `बिंदु (एक किव्हा अनेक) काढ़ण्या साठी डिलीट की दाबा,
|
|
10
|
+
CtrlOrCmd बरोबार D प्रति साठी,
|
|
11
|
+
किव्हा ड्रेग हलवण्या साठी`, lineEditor_nothingSelected: `संपादित करण्यासाठी एक बिंदू निवडा (अनेक निवडण्यासाठी SHIFT धरून ठेवा),
|
|
12
|
+
किंवा Alt धरून ठेवा आणि नवीन बिंदू जोडण्यासाठी क्लिक करा`, placeImage: "प्रतिमा ठेवण्यासाठी क्लिक करा, किंवा त्याचा आकार बदलण्या साठी क्लिक करा आणि ड्रॅग करा", publishLibrary: "आपला खाजगी संग्रह प्रकाशित करा", bindTextToElement: "मजकूर जोडण्यासाठी एंटर की दाबा", deepBoxSelect: "खोल निवड ह्या साठी कंट्रोल किव्हा कमांड दाबून ठेवा, आणि बाहेर खेचणे वाचवण्या साठी पण", eraserRevert: "खोडण्या साठी घेतलेल्या वस्तु ना घेण्या साठी Alt दाबून ठेवावे", firefox_clipboard_write: 'हे वैशिष्ट्य "dom.events.asyncClipboard.clipboardItem" फ्लॅग "सत्य" वर सेट करून शक्यतो सक्षम केले जाऊ शकते. Firefox मध्ये ब्राउझर फ्लॅग बदलण्यासाठी, "about:config" पृष्ठावर जा.', disableSnapping: "स्नैपिंग अक्षम करण्या साठी CtrlOrCmd दाबून ठेवा" }, a = { cannotShowPreview: "पूर्वावलोकन दाखवू शकत नाही", canvasTooBig: "पटल खूप जास्त मोठा असू शकतो.", canvasTooBigTip: "टीप: दूर चा तत्व थोडं जवळ आणण्याचा प्रयत्न करावा." }, t = { headingMain: "त्रुटि आली. परत प्रयत्न करा <button>ह्या पानाला पुनः लोड करा.</button>", clearCanvasMessage: "रीलोडिंग होत नसल्यास, परत प्रयत्न करा <button>पटल स्वच्छ करित आहे.</button>", clearCanvasCaveat: " त्यामुळे केलेल्या कामाचे नुकसान होईल ", trackedToSentry: "त्रुटि क्रमांक के साथ त्रुटि {{eventId}} आमच्या प्रणाली नी निरीक्षण केले होते.", openIssueMessage: "त्रुटीत तुमची दृश्य माहिती समाविष्ट न करण्यासाठी आम्ही खूप सावध होतो. तुमचा सीन खाजगी नसल्यास, कृपया आम्हाला पुढ च्या कारवाई साठी सम्पर्क साधा <button>त्रुटि व्यवस्थापन.</button> कृपया गिटहब समस्येमध्ये कॉपी आणि पेस्ट करून खालिल माहिती समाविष्ट करा.", sceneContent: "दृश्य विषय:" }, i = { desc_intro: "तुम्ही तुमच्या सध्याच्या दृश्यासाठी लोकांना आपल्यासह सहयोग करण्यासाठी आमंत्रित करू शकता.", desc_privacy: "काळजी करू नका, सत्र या टोकापासून त्या टोकापर्यंत कूटबद्धता वापरते, त्यामुळे तुम्ही जे काही काढाल ते खाजगी राहील. तुम्ही काय घेऊन आला आहात हे आमचा सर्व्हर ही देखील पाहू शकत नाही.", button_startSession: "सत्र सुरु करा", button_stopSession: "सत्र थाम्बवा", desc_inProgressIntro: "थेट सहयोग सत्र चालू आहे.", desc_shareLink: "तुम्ही ज्यांच्याशी सहयोग करू इच्छिता त्यांच्याशी ही दुवा सामायिक करा:", desc_exitSession: "सत्र थांबवल्याने तुम्हीं खोली तून बाहेर याल, तरिही तुम्ही स्थानिक पातळीवर दृश्यासह काम करु शकाल. लक्षात ठेवा की याचा इतर लोकांवर परिणाम होणार नाही आणि ते त्यांच्या आवृत्तीवर सहयोग करित राहातील.", shareTitle: "एक्सकेलीड्रॉ वर थेट सहयोग सत्रात सामील व्हा" }, l = { title: "त्रुटि" }, C = { disk_title: "डिस्क मधे जतन करा", disk_details: "सीन डेटा बाहेर एक फ़ाइल मधे जतन करा, त्या फ़ाइल मधुम तो डेटा नंतर परत आणु शकता.", disk_button: "फ़ाइल मधे जतन करा", link_title: "सामायिके साठी दुवा", link_details: "नुसतं वाचु देणारा दुवा चा स्वरूपे बाहेर ठेवा.", link_button: "दुवा स्वरूपे बाहेर ठेवा", excalidrawplus_description: "दृश्य तुमच्या एक्सकेलीड्रॉ कार्यक्षेत्र मधे जतन करा.", excalidrawplus_button: "बाहेर ठेवा", excalidrawplus_exportError: "एक्सकेलीड्रॉ मधे बाहेर ठेवता नाही येत..." }, n = { blog: "आमचा ब्लॉग वाचा", click: "क्लिक करा", deepSelect: "खोल निवड", deepBoxSelect: "चौकट मधे खोल निवड करा आणि बाहेर ओढणे वाचवा", curvedArrow: "वक्र बाण", curvedLine: "वक्र रेघ", documentation: "कागदपत्रे", doubleClick: "दुहेरी क्लिक", drag: "ओढा", editor: "संपादक", editLineArrowPoints: "रेघ/तीर बिंदु सम्पादित करा", editText: "पाठ्य सम्पादित करा/ लेबल जोडा", github: "समस्या मिळाली? प्रस्तुत करा", howto: "आमच्या मार्गदर्शकाचे अनुसरण करा", or: "किंवा", preventBinding: "बाण बंधन होणं टाळा", tools: "अवजार", shortcuts: "कीबोर्ड शॉर्टकट", textFinish: "संपादन संपले (मजकूर संपादन)", textNewLine: "नवी ओळ जोडा (मजकूर संपादक)", title: "मदत", view: "दृश्य", zoomToFit: "सर्व तत्व दिसतील असे दृश्यरूप आकार करा", zoomToSelection: "निवडी प्रयंत दृश्यरूप आकार करा", toggleElementLock: "कुलूपातून आत/बाहेर निवड", movePageUpDown: "पान वर/खाली करा", movePageLeftRight: "पान डावी/उजवी कडे करा" }, s = { title: "पटल स्वच्छ करा" }, B = { title: "संग्रह प्रकाशित करा", itemName: "वस्तु चे नाव", authorName: "लेखक चे नाव", githubUsername: "गिटहब वापरकर्तानाव", twitterUsername: "ट्विटर वापरकर्तानाव", libraryName: "संग्रहाचे नाव", libraryDesc: "संग्रहाचे वर्णन", website: "वेबसाइट", placeholder: { authorName: "तुमचे नाव किव्हा वापरकर्तानाव", libraryName: "तुमचा संग्रहाचे नाव", libraryDesc: "तुमचा संग्रहाचे वर्णन लोकांना संग्रहा बद्दल जाणकारी देतील", githubHandle: "गिटहब हैंडल (वैकल्पिक), एकदा संग्रह पुनरावलोकना साठी जमा केल्या नंतर ही तुम्हीं सम्पादित करु शकता", twitterHandle: "ट्विटर वापरकार्यक नाव (वैकल्पिक), त्यामुळे ट्विटर वर ज़हीरांति साठी कोणाला गुण द्यायचे हे आम्हाला समजेल", website: "दुवा तुमच्या वैयक्तिक वेब-साइट किव्हा कुठे दूसरिकडे (ऐच्छिक) करावा" }, errors: { required: "आवश्यक आहे", website: "वैध यू-आर-एल द्या" }, noteDescription: "समाविष्ट करण्या साठी तुमचा संग्रह ह्याचात जमा करा <link>सार्वजनिक संग्रहाचे कोठार</link>इतर लोकांना त्यांच्या रेखाचित्रांमधे वापरण्यासाठी.", noteGuidelines: "संग्रहाला आधी स्वहस्ते स्वीकृती मिळणे आवश्यक आहे. कृपया हे वाचा <link>मार्गदर्शक तत्त्वे</link> जमा करण्या पूर्वी, तुमच्या जवळ एक गिटहब खाते असणे आवश्यक आहे जे संवादा साठी आणिक बदल करण्या साठी लागेल, तरी हे सर्व अगदी आवश्यक नाही आहे.", noteLicense: "जमा करताना तुम्हीं सहमति दाखवतात आहे की संग्रह ह्याचा खाली प्रकाशित होईल <link>एम-आइ-टी परवाना, </link>ज्याचा थोडक्यात अर्थ कोणीही निर्बंधांशिवाय वापरू शकतो.", noteItems: "प्रतैक संग्रहाचे नाव, नीट शोधनासाठी, असणे आवश्यक आहे. खाली दिलेल्या वस्तु समाविष्ट केल्या जातील:", atleastOneLibItem: "सुरु करण्यासाठी, कृपया करून, कमित कमी एक वस्तु तरी निवडा", republishWarning: "टीप: काही निवडक आयटम आधीच प्रकाशित/प्रस्तुत केलेले आहेत. विद्यमान लायब्ररी किंवा प्रस्तुतित आयटम अद्यावित करताना तुम्ही फक्त तो पुन्हा प्रस्तुत करा." }, d = { title: "संग्रह जमा केला", content: "धन्यवाद {{authorName}}. आपला संग्रह पुनरावलोकना साठी जमा झाला आहे. तुम्हीं स्थिति सारखी तपासू सकता<link>इकडे</link>" }, c = { resetLibrary: "संग्रह पुनर्स्थित करा", removeItemsFromLib: "निवडलेले आयटम्स संग्रहातून काढा" }, m = { header: "प्रतिमा निर्यात करा", label: { withBackground: "पार्श्वभूमि", onlySelected: "फक्त चयन केलेले", darkMode: "अंधारमय स्थिति", embedScene: "दृश्य रुतवा", scale: "क़िती पट", padding: "ग़ादी" }, tooltip: { embedScene: "दृश्य डेटा निर्यात केलेल्या पी-एन-जी किव्हा एस-वी-जी फ़ाईल मधे सुरक्षीत केला जाईल, त्याने दृश्य पुनः परत आणता येईल. निर्यात केलेली फ़ाईल चा आकार त्याने वाढेल." }, title: { exportToPng: "पी-एन-जी स्वरूपात बाहेर ठेवा", exportToSvg: "एस-वी-जी स्वरूपात बाहेर ठेवा", copyPngToClipboard: "पी-एन-जी रूपे फळी वर कॉपी करा" }, button: { exportToPng: "पीएनजी", exportToSvg: "एसविज़ी", copyPngToClipboard: "फळी वर कॉपी करा" } }, b = { tooltip: "तुमचे चित्रे या टोकापासून त्या टोकापर्यंत कूटबद्धतित आहेत, त्या कारणांनी ऐक्सकैलिड्रॉ सर्वर्स ह्यानां ते पहाणं कधीच जमणार नाही.", link: "ब्लॉग पोस्ट ऐक्सकैलिड्रॉ मधे या टोकापासून त्या टोकापर्यंत कूटबद्धतित आहेत" }, p = { angle: "कोण", element: "वस्तु", elements: "वस्तु", height: "उंची", scene: "दृश्य", selected: "निवडलेले", storage: "साठवण", title: "अभ्यासू लोगो के लिये आंकडे", total: "योग", version: "आवृत्ती", versionCopy: "कॉपी करायला क्लिक करा", versionNotAvailable: "आवृति उपलब्ध नाही", width: "रुंदी" }, g = { addedToLibrary: "संग्रह मधे सम्मिलित", copyStyles: "कॉपी केलेली शैली.", copyToClipboard: "फळी वर कॉपी झाली.", copyToClipboardAsPng: `{{exportSelection}} फळी वर पी-एन-जी स्वरूपात कॉपी झाली
|
|
13
|
+
({{exportColorScheme}})`, fileSaved: "फ़ाइल जतन झाली.", fileSavedToFilename: "{filename} मधे जतन झाली", canvas: "पटल", selection: "निवड", pasteAsSingleElement: `एक घटक म्हणून चिपकावण्या साठी {{shortcut}} वापरा,
|
|
14
|
+
किंवा विद्यमान मजकूर संपादकात चिपकवा`, unableToEmbed: "युआरेल रूतवणे प्रतिबंधित आहेत. आपली युआरेल श्वेतसूचित आणण्या साठी कृपया एक मुद्दा ग़िटहब वर उठवा", unrecognizedLinkFormat: "जी युआरेल तुम्हीं रतवली आहे, ती आपेक्षित प्रकारे नाही आहे. कृपया स्त्रोत साइट नी 'रूतवण्या साठी दिलेलि लिपि' चिपकावण्याचा प्रयास करा" }, h = { transparent: "पारदर्शक", black: "काळा", white: "पांढरा", red: "लाल", pink: "गुलाबी", grape: "अंगूरी", violet: "जांभळा", gray: "राखाडी", blue: "निळा", cyan: "आकाशी", teal: "हिरवट निळा", green: "हिरवा", yellow: "पिवळा", orange: "केशरी", bronze: "कांस्य" }, y = { app: { center_heading: "तुमचा सर्व डेटा तुमच्या ब्राउझरमध्ये स्थानिक पातळीवर जतन केला जातो.", center_heading_plus: "त्याऐवजी तुम्हाला Excalidraw+ वर जायचे आहे का?", menuHint: "निर्यात, आवड़ी-निवडी, भाषा, ..." }, defaults: { menuHint: "निर्यात, आवड़ी निवडी आणि आणकिही...", center_heading: "आकृत्या. काढणे. सोपे.", toolbarHint: "एक साधन निवडा आणि चित्रीकरण सुरु करा!", helpHint: "शॉर्टकट आणि सहाय्य" } }, S = { mostUsedCustomColors: "सर्वात जास्त वापरणीस रंग", colors: "रंग", shades: "रंगछटा", hexCode: "हेक्स कोड", noShades: "ह्या रंगाच्या छटा उपलब्ध नाहित" }, v = { action: { exportToImage: { title: "छवि स्वरूपे निर्यात करा", button: "छवि स्वरूपे निर्यात करा", description: "सीन डेटा बाहेर एक फ़ाइल मधे जतन करा, त्या फ़ाइल मधुन तो डेटा नंतर परत आणु शकता." }, saveToDisk: { title: "डिस्क मधे जतन करा", button: "डिस्क मधे जतन करा", description: "सीन डेटा बाहेर एक फ़ाइल मधे जतन करा, त्या फ़ाइल मधुन तो डेटा नंतर परत आणु शकता." }, excalidrawPlus: { title: "एक्षकालीड्रॉ +", button: "एक्षकाली ड्रॉ+ मधे निर्यात करा", description: "दृष्य तुमच्या एक्षकालीड्रॉ+ चा कार्यस्थल मधे जतन करा." } }, modal: { loadFromFile: { title: "फ़ाइल मधुन लोड करा", button: "फ़ाइल मधुन लोड करा", description: "फ़ाइल मधुन लोड केल्या वर ते <bold>तुमचा सध्याचा कामा ठिकाणि एईल </bold><br></br> तुम्हीं तुमचं चित्र एकाधं खाली दिलेलं विकल्प निवडुन पहले सुरक्षीत करु शकता." }, shareableLink: { title: "लिंक पासून लोड करा", button: "माझ सध्याचे कार्य बदला", description: "बाहरी चित्र लोड केल्या वर ते <bold>तुमचा सध्याचा कामा ठिकाणि एईल </bold><br></br> तुम्हीं तुमचं चित्र एकाधं खाली दिलेलं विकल्प निवडुन पहले सुरक्षीत करु शकता." } } }, k = { title: "मर्मेड पासून एक्सकाली मधे", button: "शिरवा", description: "", syntax: "मर्मेड संरचना नियम", preview: "पूर्वावलोकन" }, x = { labels: u, library: E, buttons: F, alerts: D, errors: e, toolBar: A, headings: o, hints: r, canvasError: a, errorSplash: t, roomDialog: i, errorDialog: l, exportDialog: C, helpDialog: n, clearCanvasDialog: s, publishDialog: B, publishSuccessDialog: d, confirmDialog: c, imageExportDialog: m, encrypted: b, stats: p, toast: g, colors: h, welcomeScreen: y, colorPicker: S, overwriteConfirm: v, mermaid: k };
|
|
15
|
+
export {
|
|
16
|
+
D as alerts,
|
|
17
|
+
F as buttons,
|
|
18
|
+
a as canvasError,
|
|
19
|
+
s as clearCanvasDialog,
|
|
20
|
+
S as colorPicker,
|
|
21
|
+
h as colors,
|
|
22
|
+
c as confirmDialog,
|
|
23
|
+
x as default,
|
|
24
|
+
b as encrypted,
|
|
25
|
+
l as errorDialog,
|
|
26
|
+
t as errorSplash,
|
|
27
|
+
e as errors,
|
|
28
|
+
C as exportDialog,
|
|
29
|
+
o as headings,
|
|
30
|
+
n as helpDialog,
|
|
31
|
+
r as hints,
|
|
32
|
+
m as imageExportDialog,
|
|
33
|
+
u as labels,
|
|
34
|
+
E as library,
|
|
35
|
+
k as mermaid,
|
|
36
|
+
v as overwriteConfirm,
|
|
37
|
+
B as publishDialog,
|
|
38
|
+
d as publishSuccessDialog,
|
|
39
|
+
i as roomDialog,
|
|
40
|
+
p as stats,
|
|
41
|
+
g as toast,
|
|
42
|
+
A as toolBar,
|
|
43
|
+
y as welcomeScreen
|
|
44
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { a as h } from "./layers.CqVTtuYm.js";
|
|
2
|
+
import { w as d, c as o } from "./layers.DLwuMfdd.js";
|
|
3
|
+
import { a0 as v } from "./layers.B-eOoyQV.js";
|
|
4
|
+
function w(t) {
|
|
5
|
+
return t[0];
|
|
6
|
+
}
|
|
7
|
+
function b(t) {
|
|
8
|
+
return t[1];
|
|
9
|
+
}
|
|
10
|
+
function P(t, u) {
|
|
11
|
+
var s = o(!0), i = null, l = v, r = null, m = d(e);
|
|
12
|
+
t = typeof t == "function" ? t : t === void 0 ? w : o(t), u = typeof u == "function" ? u : u === void 0 ? b : o(u);
|
|
13
|
+
function e(n) {
|
|
14
|
+
var f, g = (n = h(n)).length, a, c = !1, p;
|
|
15
|
+
for (i == null && (r = l(p = m())), f = 0; f <= g; ++f)
|
|
16
|
+
!(f < g && s(a = n[f], f, n)) === c && ((c = !c) ? r.lineStart() : r.lineEnd()), c && r.point(+t(a, f, n), +u(a, f, n));
|
|
17
|
+
if (p) return r = null, p + "" || null;
|
|
18
|
+
}
|
|
19
|
+
return e.x = function(n) {
|
|
20
|
+
return arguments.length ? (t = typeof n == "function" ? n : o(+n), e) : t;
|
|
21
|
+
}, e.y = function(n) {
|
|
22
|
+
return arguments.length ? (u = typeof n == "function" ? n : o(+n), e) : u;
|
|
23
|
+
}, e.defined = function(n) {
|
|
24
|
+
return arguments.length ? (s = typeof n == "function" ? n : o(!!n), e) : s;
|
|
25
|
+
}, e.curve = function(n) {
|
|
26
|
+
return arguments.length ? (l = n, i != null && (r = l(i)), e) : l;
|
|
27
|
+
}, e.context = function(n) {
|
|
28
|
+
return arguments.length ? (n == null ? i = r = null : r = l(i = n), e) : i;
|
|
29
|
+
}, e;
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
P as l
|
|
33
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
var R, m, C;
|
|
3
|
+
(R = Path2D.prototype).roundRect ?? (R.roundRect = P), globalThis.CanvasRenderingContext2D && ((m = globalThis.CanvasRenderingContext2D.prototype).roundRect ?? (m.roundRect = P)), globalThis.OffscreenCanvasRenderingContext2D && ((C = globalThis.OffscreenCanvasRenderingContext2D.prototype).roundRect ?? (C.roundRect = P));
|
|
4
|
+
function P(t, s, u, a, o) {
|
|
5
|
+
if (![t, s, u, a].every((n) => Number.isFinite(n)))
|
|
6
|
+
return;
|
|
7
|
+
o = O(o);
|
|
8
|
+
let e, r, i, h;
|
|
9
|
+
if (o.length === 4)
|
|
10
|
+
e = l(o[0]), r = l(o[1]), i = l(o[2]), h = l(o[3]);
|
|
11
|
+
else if (o.length === 3)
|
|
12
|
+
e = l(o[0]), r = l(o[1]), h = l(o[1]), i = l(o[2]);
|
|
13
|
+
else if (o.length === 2)
|
|
14
|
+
e = l(o[0]), i = l(o[0]), r = l(o[1]), h = l(o[1]);
|
|
15
|
+
else if (o.length === 1)
|
|
16
|
+
e = l(o[0]), r = l(o[0]), i = l(o[0]), h = l(o[0]);
|
|
17
|
+
else
|
|
18
|
+
throw new RangeError(`${b(this)} ${o.length} is not a valid size for radii sequence.`);
|
|
19
|
+
const g = [e, r, i, h], p = g.find(({ x: n, y: f }) => n < 0 || f < 0);
|
|
20
|
+
if ((p == null ? void 0 : p.x) < 0 ? p.x : p == null || p.y, g.some(({ x: n, y: f }) => !Number.isFinite(n) || !Number.isFinite(f)))
|
|
21
|
+
return;
|
|
22
|
+
if (p)
|
|
23
|
+
throw new RangeError(`${b(this)} Radius value ${p} is negative.`);
|
|
24
|
+
v(g), u < 0 && a < 0 ? (this.moveTo(t - e.x, s), this.ellipse(t + u + r.x, s - r.y, r.x, r.y, 0, -Math.PI * 1.5, -Math.PI), this.ellipse(t + u + i.x, s + a + i.y, i.x, i.y, 0, -Math.PI, -Math.PI / 2), this.ellipse(t - h.x, s + a + h.y, h.x, h.y, 0, -Math.PI / 2, 0), this.ellipse(t - e.x, s - e.y, e.x, e.y, 0, 0, -Math.PI / 2)) : u < 0 ? (this.moveTo(t - e.x, s), this.ellipse(t + u + r.x, s + r.y, r.x, r.y, 0, -Math.PI / 2, -Math.PI, 1), this.ellipse(t + u + i.x, s + a - i.y, i.x, i.y, 0, -Math.PI, -Math.PI * 1.5, 1), this.ellipse(t - h.x, s + a - h.y, h.x, h.y, 0, Math.PI / 2, 0, 1), this.ellipse(t - e.x, s + e.y, e.x, e.y, 0, 0, -Math.PI / 2, 1)) : a < 0 ? (this.moveTo(t + e.x, s), this.ellipse(t + u - r.x, s - r.y, r.x, r.y, 0, Math.PI / 2, 0, 1), this.ellipse(t + u - i.x, s + a + i.y, i.x, i.y, 0, 0, -Math.PI / 2, 1), this.ellipse(t + h.x, s + a + h.y, h.x, h.y, 0, -Math.PI / 2, -Math.PI, 1), this.ellipse(t + e.x, s - e.y, e.x, e.y, 0, -Math.PI, -Math.PI * 1.5, 1)) : (this.moveTo(t + e.x, s), this.ellipse(t + u - r.x, s + r.y, r.x, r.y, 0, -Math.PI / 2, 0), this.ellipse(t + u - i.x, s + a - i.y, i.x, i.y, 0, 0, Math.PI / 2), this.ellipse(t + h.x, s + a - h.y, h.x, h.y, 0, Math.PI / 2, Math.PI), this.ellipse(t + e.x, s + e.y, e.x, e.y, 0, Math.PI, Math.PI * 1.5)), this.closePath(), this.moveTo(t, s);
|
|
25
|
+
function N(n) {
|
|
26
|
+
const { x: f, y: x, z: c, w: M } = n;
|
|
27
|
+
return { x: f, y: x, z: c, w: M };
|
|
28
|
+
}
|
|
29
|
+
function O(n) {
|
|
30
|
+
const f = typeof n;
|
|
31
|
+
return f === "undefined" || n === null ? [0] : f === "function" ? [NaN] : f === "object" ? typeof n[Symbol.iterator] == "function" ? [...n].map((x) => {
|
|
32
|
+
const c = typeof x;
|
|
33
|
+
return c === "undefined" || x === null ? 0 : c === "function" ? NaN : c === "object" ? N(x) : y(x);
|
|
34
|
+
}) : [N(n)] : [y(n)];
|
|
35
|
+
}
|
|
36
|
+
function y(n) {
|
|
37
|
+
return +n;
|
|
38
|
+
}
|
|
39
|
+
function l(n) {
|
|
40
|
+
const f = y(n);
|
|
41
|
+
return Number.isFinite(f) ? {
|
|
42
|
+
x: f,
|
|
43
|
+
y: f
|
|
44
|
+
} : Object(n) === n ? {
|
|
45
|
+
x: y(n.x ?? 0),
|
|
46
|
+
y: y(n.y ?? 0)
|
|
47
|
+
} : {
|
|
48
|
+
x: NaN,
|
|
49
|
+
y: NaN
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function v(n) {
|
|
53
|
+
const [f, x, c, M] = n, F = [
|
|
54
|
+
Math.abs(u) / (f.x + x.x),
|
|
55
|
+
Math.abs(a) / (x.y + c.y),
|
|
56
|
+
Math.abs(u) / (c.x + M.x),
|
|
57
|
+
Math.abs(a) / (f.y + M.y)
|
|
58
|
+
], I = Math.min(...F);
|
|
59
|
+
if (I <= 1)
|
|
60
|
+
for (const D of n)
|
|
61
|
+
D.x *= I, D.y *= I;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function b(t) {
|
|
65
|
+
return `Failed to execute 'roundRect' on '${T(t)}':`;
|
|
66
|
+
}
|
|
67
|
+
function T(t) {
|
|
68
|
+
return Object(t) === t && t instanceof Path2D ? "Path2D" : t instanceof (globalThis == null ? void 0 : globalThis.CanvasRenderingContext2D) ? "CanvasRenderingContext2D" : t instanceof (globalThis == null ? void 0 : globalThis.OffscreenCanvasRenderingContext2D) ? "OffscreenCanvasRenderingContext2D" : (t == null ? void 0 : t.constructor.name) || t;
|
|
69
|
+
}
|
|
70
|
+
})();
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var y = async (e = [{}]) => (Array.isArray(e) || (e = [e]), e[0].recursive = e[0].recursive || !1, new Promise((s, l) => {
|
|
2
|
+
const r = document.createElement("input");
|
|
3
|
+
r.type = "file", r.webkitdirectory = !0;
|
|
4
|
+
const a = (t) => {
|
|
5
|
+
typeof i == "function" && i(), s(t);
|
|
6
|
+
}, i = e[0].legacySetup && e[0].legacySetup(a, () => i(l), r);
|
|
7
|
+
r.addEventListener("change", () => {
|
|
8
|
+
let t = Array.from(r.files);
|
|
9
|
+
e[0].recursive ? e[0].recursive && e[0].skipDirectory && (t = t.filter((c) => c.webkitRelativePath.split("/").every((n) => !e[0].skipDirectory({ name: n, kind: "directory" })))) : t = t.filter((c) => c.webkitRelativePath.split("/").length === 2), a(t);
|
|
10
|
+
}), r.click();
|
|
11
|
+
}));
|
|
12
|
+
export {
|
|
13
|
+
y as default
|
|
14
|
+
};
|