@algorisys/yappydraw 0.8.295 → 0.8.296
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 +2 -2
- package/chunks/{canva-ai-kg789_jz.js → canva-ai-CkUlVY-Y.js} +1 -1
- package/chunks/{choice-dialog-state-ByeMPVwB.js → choice-dialog-state-BUFvjtpq.js} +1 -1
- package/chunks/{custgeom-CEAI2znd.js → custgeom-DThQ1Qnp.js} +1 -1
- package/chunks/{design-generator-zF-F-iCB.js → design-generator-BlrBbMDM.js} +1 -1
- package/chunks/{drawing-engine-U5zBcwtj.js → drawing-engine-KJLwmUE-.js} +1 -1
- package/chunks/{drawings-store-CZSZCNqP.js → drawings-store-CiDEeh5h.js} +1 -1
- package/chunks/{ds-operations-_c-HiYjk.js → ds-operations-C27tW9qb.js} +1 -1
- package/chunks/{export-game-CgMvNkoa.js → export-game-Bcz0A67O.js} +1 -1
- package/chunks/{from-yappy-Dd2p9P6N.js → from-yappy-lL1q0m9y.js} +4 -2
- package/chunks/{game-runtime-CH3yVPDc.js → game-runtime-RZ6Ygr7N.js} +5 -5
- package/chunks/{import-C3P7glRz.js → import-DFZ1uZOp.js} +198 -188
- package/chunks/{index-B_V19zDs.js → index-NbpsufU1.js} +23202 -23027
- package/chunks/{lucide-solid-DfQVDBtM.js → lucide-solid-DL_MnmQm.js} +1 -1
- package/chunks/{markdown-to-slides-B5OASdqg.js → markdown-to-slides-D9CoIzTi.js} +1 -1
- package/chunks/{morph-animator-b1aFWI5O.js → morph-animator-C_rDbafN.js} +1 -1
- package/chunks/{onboarding-tour-j-RhQYNM.js → onboarding-tour-B1fDeTqe.js} +1 -1
- package/chunks/{pdf-vector-CzrRoyPR.js → pdf-vector-ByOSpRwK.js} +1 -1
- package/chunks/{search-B7AUhYCm.js → search-MWY5OrgG.js} +2 -2
- package/chunks/{slide-generator-AO60zi1f.js → slide-generator-8-amet_R.js} +1 -1
- package/chunks/{turntable-ai-DddsPGTo.js → turntable-ai-DgSAtAc8.js} +1 -1
- package/chunks/{write-uweO04Cm.js → write-B1-j7TNq.js} +72 -72
- package/package.json +1 -1
- package/yappy.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a1 as et, a2 as pt, a3 as mt, a4 as xt, a5 as gt, a6 as yt, a7 as kt, a8 as bt, a9 as G, aa as Mt, ab as wt, ac as vt, ad as St, ae as At, af as $t, ag as It, ah as Ct, ai as Tt, aj as Ft, ak as Pt, al as zt } from "./index-
|
|
2
|
-
import { d as z, g as j, t as C, h as Lt } from "./custgeom-
|
|
1
|
+
import { a1 as et, a2 as pt, a3 as mt, a4 as xt, a5 as gt, a6 as yt, a7 as kt, a8 as bt, a9 as G, aa as Mt, ab as wt, ac as vt, ad as St, ae as At, af as $t, ag as It, ah as Ct, ai as Tt, aj as Ft, ak as Pt, al as zt } from "./index-NbpsufU1.js";
|
|
2
|
+
import { d as z, g as j, t as C, h as Lt } from "./custgeom-DThQ1Qnp.js";
|
|
3
3
|
function Et(t) {
|
|
4
4
|
const { l: n, c: e, h: r } = t, i = r * Math.PI / 180, o = e * Math.cos(i), l = e * Math.sin(i), f = n + 0.3963377774 * o + 0.2158037573 * l, s = n - 0.1055613458 * o - 0.0638541728 * l, a = n - 0.0894841775 * o - 1.291485548 * l, c = f * f * f, u = s * s * s, p = a * a * a, d = 1.2270138511 * c - 0.5577999807 * u + 0.2812561489 * p, h = -0.0405801784 * c + 1.1122568696 * u - 0.0716766787 * p, x = -0.0763812845 * c - 0.4214819787 * u + 1.5861632204 * p, g = 2.4039459 * d - 0.9898517 * h - 0.4141151 * x, k = -0.7797967 * d + 1.5445214 * h + 0.0352745 * x, m = 0.0384795 * d - 0.1141381 * h + 1.0756786 * x, y = (b) => {
|
|
5
5
|
const M = Math.abs(b), w = M > 31308e-7 ? 1.055 * Math.pow(M, 1 / 2.4) - 0.055 : 12.92 * M;
|
|
@@ -762,6 +762,8 @@ function dn(t) {
|
|
|
762
762
|
return { kind: "zoom", zoomIn: !0, durationMs: n };
|
|
763
763
|
case "zoom-out":
|
|
764
764
|
return { kind: "zoom", zoomIn: !1, durationMs: n };
|
|
765
|
+
case "morph":
|
|
766
|
+
return { kind: "morph", durationMs: n };
|
|
765
767
|
default:
|
|
766
768
|
return;
|
|
767
769
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as o, b as m, d as b, z as R, h as W, g as a, i as z, j as B } from "./index-
|
|
1
|
+
import { s as o, b as m, d as b, z as R, h as W, g as a, i as z, j as B } from "./index-NbpsufU1.js";
|
|
2
2
|
const h = /* @__PURE__ */ new Set(), x = [], D = {
|
|
3
3
|
ArrowLeft: "left",
|
|
4
4
|
a: "left",
|
|
@@ -240,17 +240,17 @@ function Y() {
|
|
|
240
240
|
t && B(t.id);
|
|
241
241
|
},
|
|
242
242
|
playAnim: (n, t) => {
|
|
243
|
-
n?.alive && import("./index-
|
|
243
|
+
n?.alive && import("./index-NbpsufU1.js").then((r) => r.aT).then((r) => r.sequenceAnimator.playAnimation(n.id, { id: `bhv-${Date.now()}`, type: "preset", name: t, trigger: "programmatic" }, () => {
|
|
244
244
|
}));
|
|
245
245
|
},
|
|
246
246
|
goToPage: (n) => {
|
|
247
247
|
n >= 0 && n < o.slides.length && z(n);
|
|
248
248
|
},
|
|
249
249
|
sound: (n) => {
|
|
250
|
-
import("./index-
|
|
250
|
+
import("./index-NbpsufU1.js").then((t) => t.aU).then((t) => t.playSfx(n));
|
|
251
251
|
},
|
|
252
252
|
music: (n) => {
|
|
253
|
-
import("./index-
|
|
253
|
+
import("./index-NbpsufU1.js").then((t) => t.aU).then((t) => n ? t.startMusic() : t.stopMusic());
|
|
254
254
|
},
|
|
255
255
|
end: (n) => {
|
|
256
256
|
if (P(!0), n) {
|
|
@@ -316,7 +316,7 @@ ${i}`);
|
|
|
316
316
|
return y = requestAnimationFrame(n), !0;
|
|
317
317
|
}
|
|
318
318
|
function p() {
|
|
319
|
-
if (y !== null && (cancelAnimationFrame(y), y = null), window.removeEventListener("keydown", U, !0), window.removeEventListener("keyup", K, !0), import("./index-
|
|
319
|
+
if (y !== null && (cancelAnimationFrame(y), y = null), window.removeEventListener("keydown", U, !0), window.removeEventListener("keyup", K, !0), import("./index-NbpsufU1.js").then((e) => e.aU).then((e) => e.stopMusic()), h.clear(), w = [], x.length = 0, v.length = 0, g) {
|
|
320
320
|
const e = g;
|
|
321
321
|
g = null, b(() => {
|
|
322
322
|
a("elements", JSON.parse(e.elements)), a("selection", e.selection), a("activeSlideIndex", e.activeSlideIndex), a("appMode", e.appMode), a("gameActive", !1);
|