@algorisys/yappydraw 0.8.253
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/LICENSE +661 -0
- package/README.md +45 -0
- package/chunks/AllPackages-DNX4gUvL.js +6879 -0
- package/chunks/BaseConfiguration-iE_YypNt.js +4401 -0
- package/chunks/Entities-XwxJEcR3.js +467 -0
- package/chunks/Factory--zguTNZ7.js +2768 -0
- package/chunks/InputJax-BYq2tqUz.js +42 -0
- package/chunks/MathItem-DD5NNBjZ.js +76 -0
- package/chunks/Options-BStFr0zv.js +199 -0
- package/chunks/PrioritizedList-TjDg4i-s.js +39 -0
- package/chunks/Styles-DdTYCumM.js +397 -0
- package/chunks/TeXAtom-Bp5xoo7F.js +2175 -0
- package/chunks/ai-providers-CycU8sO1.js +229 -0
- package/chunks/canva-ai-BREIRXSl.js +285 -0
- package/chunks/design-generator-C89SKTqv.js +149 -0
- package/chunks/drawing-engine-DLFI-cNg.js +903 -0
- package/chunks/drawings-store-C-PoHakg.js +109 -0
- package/chunks/ds-operations-D5B9Z5vO.js +253 -0
- package/chunks/export-game-DOlM1w0F.js +104 -0
- package/chunks/game-runtime-Hn9umSvi.js +346 -0
- package/chunks/gifenc.esm-48qFK9lH.js +278 -0
- package/chunks/html-DxnOvKy4.js +1694 -0
- package/chunks/image-utils-CJQBaGoQ.js +37 -0
- package/chunks/index-Bm3Inzn8.js +62744 -0
- package/chunks/lengths-DNFHULBn.js +70 -0
- package/chunks/liteAdaptor-BZby1Qz2.js +919 -0
- package/chunks/lucide-solid-D_6t_rbY.js +35452 -0
- package/chunks/markdown-to-slides-_1GIcD8M.js +96 -0
- package/chunks/mathjax-CnUrFnFS.js +117 -0
- package/chunks/mathjax-D6cR72fZ.js +26 -0
- package/chunks/morph-animator-7qX2s9j_.js +25 -0
- package/chunks/onboarding-tour-CthiVc3W.js +192 -0
- package/chunks/rocket-settings-CU8w9S9I.js +100 -0
- package/chunks/search-CnWoMV6A.js +384 -0
- package/chunks/slide-generator-BG0Oacui.js +553 -0
- package/chunks/svg-BvVc02XL.js +12498 -0
- package/chunks/tex-Cfi4Kfun.js +442 -0
- package/chunks/tinyfly-engine-Wfa50sVI.js +1804 -0
- package/chunks/turntable-ai-Bfq-oSsD.js +120 -0
- package/chunks/yappy-NspTXSPk.css +1 -0
- package/package.json +21 -0
- package/yappy.d.ts +34 -0
- package/yappy.js +9 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var h = {}, m;
|
|
2
|
+
function S() {
|
|
3
|
+
return m || (m = 1, (function(e) {
|
|
4
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.px = e.emRounded = e.em = e.percent = e.length2em = e.MATHSPACE = e.RELUNITS = e.UNITS = e.BIGDIMEN = void 0, e.BIGDIMEN = 1e6, e.UNITS = {
|
|
5
|
+
px: 1,
|
|
6
|
+
in: 96,
|
|
7
|
+
cm: 96 / 2.54,
|
|
8
|
+
mm: 96 / 25.4
|
|
9
|
+
}, e.RELUNITS = {
|
|
10
|
+
em: 1,
|
|
11
|
+
ex: 0.431,
|
|
12
|
+
pt: 1 / 10,
|
|
13
|
+
pc: 12 / 10,
|
|
14
|
+
mu: 1 / 18
|
|
15
|
+
}, e.MATHSPACE = {
|
|
16
|
+
veryverythinmathspace: 1 / 18,
|
|
17
|
+
verythinmathspace: 2 / 18,
|
|
18
|
+
thinmathspace: 3 / 18,
|
|
19
|
+
mediummathspace: 4 / 18,
|
|
20
|
+
thickmathspace: 5 / 18,
|
|
21
|
+
verythickmathspace: 6 / 18,
|
|
22
|
+
veryverythickmathspace: 7 / 18,
|
|
23
|
+
negativeveryverythinmathspace: -1 / 18,
|
|
24
|
+
negativeverythinmathspace: -2 / 18,
|
|
25
|
+
negativethinmathspace: -3 / 18,
|
|
26
|
+
negativemediummathspace: -4 / 18,
|
|
27
|
+
negativethickmathspace: -5 / 18,
|
|
28
|
+
negativeverythickmathspace: -6 / 18,
|
|
29
|
+
negativeveryverythickmathspace: -7 / 18,
|
|
30
|
+
thin: 0.04,
|
|
31
|
+
medium: 0.06,
|
|
32
|
+
thick: 0.1,
|
|
33
|
+
normal: 1,
|
|
34
|
+
big: 2,
|
|
35
|
+
small: 1 / Math.sqrt(2),
|
|
36
|
+
infinity: e.BIGDIMEN
|
|
37
|
+
};
|
|
38
|
+
function v(i, n, a, c) {
|
|
39
|
+
if (n === void 0 && (n = 0), a === void 0 && (a = 1), c === void 0 && (c = 16), typeof i != "string" && (i = String(i)), i === "" || i == null)
|
|
40
|
+
return n;
|
|
41
|
+
if (e.MATHSPACE[i])
|
|
42
|
+
return e.MATHSPACE[i];
|
|
43
|
+
var u = i.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);
|
|
44
|
+
if (!u)
|
|
45
|
+
return n;
|
|
46
|
+
var r = parseFloat(u[1] || "1"), t = u[2];
|
|
47
|
+
return e.UNITS.hasOwnProperty(t) ? r * e.UNITS[t] / c / a : e.RELUNITS.hasOwnProperty(t) ? r * e.RELUNITS[t] : t === "%" ? r / 100 * n : r * n;
|
|
48
|
+
}
|
|
49
|
+
e.length2em = v;
|
|
50
|
+
function f(i) {
|
|
51
|
+
return (100 * i).toFixed(1).replace(/\.?0+$/, "") + "%";
|
|
52
|
+
}
|
|
53
|
+
e.percent = f;
|
|
54
|
+
function d(i) {
|
|
55
|
+
return Math.abs(i) < 1e-3 ? "0" : i.toFixed(3).replace(/\.?0+$/, "") + "em";
|
|
56
|
+
}
|
|
57
|
+
e.em = d;
|
|
58
|
+
function y(i, n) {
|
|
59
|
+
return n === void 0 && (n = 16), i = (Math.round(i * n) + 0.05) / n, Math.abs(i) < 1e-3 ? "0em" : i.toFixed(3).replace(/\.?0+$/, "") + "em";
|
|
60
|
+
}
|
|
61
|
+
e.emRounded = y;
|
|
62
|
+
function I(i, n, a) {
|
|
63
|
+
return n === void 0 && (n = -e.BIGDIMEN), a === void 0 && (a = 16), i *= a, n && i < n && (i = n), Math.abs(i) < 0.1 ? "0" : i.toFixed(1).replace(/\.0$/, "") + "px";
|
|
64
|
+
}
|
|
65
|
+
e.px = I;
|
|
66
|
+
})(h)), h;
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
S as r
|
|
70
|
+
};
|