@limrun/ui 0.17.0-rc.2 → 0.17.0-rc.3
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/dist/{GLTFLoader-Cami_vza.mjs → GLTFLoader-B4nnixLv.mjs} +1 -1
- package/dist/{GLTFLoader-DeCLxW_q.js → GLTFLoader-GATLvS0U.js} +1 -1
- package/dist/components/duo-view.d.ts +0 -1
- package/dist/{duo-frame-iMtrvx_a.js → duo-frame-CfBILL32.js} +18 -18
- package/dist/{duo-frame-Cmw4p2uN.mjs → duo-frame-F3hwc09B.mjs} +11 -11
- package/dist/duo-view-BsdKpp8d.mjs +662 -0
- package/dist/duo-view-Cy8kBdg9.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2 -2
- package/dist/lite.cjs +1 -1
- package/dist/lite.js +1 -1
- package/dist/remote-control-BAmNHDdv.mjs +2674 -0
- package/dist/remote-control-F3h8U5pg.js +1 -0
- package/package.json +1 -1
- package/dist/components/duo-loading.d.ts +0 -8
- package/dist/duo-view-BAh-w2Kz.js +0 -1
- package/dist/duo-view-D9Ae00rj.mjs +0 -512
- package/dist/remote-control-B2jZpf3c.js +0 -1
- package/dist/remote-control-DiddxS8l.mjs +0 -2883
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as wr, jsx as Jn } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as en, useState as cs, useEffect as Ea } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
3
|
+
import { D as Tu, h as Au, i as Cr, k as wu, p as Cu } from "./remote-control-BAmNHDdv.mjs";
|
|
4
|
+
import { h as Ru, u as Pu, D as Iu, a as Du, f as Lu } from "./duo-view-BsdKpp8d.mjs";
|
|
5
5
|
const To = "183", Nu = 0, ec = 1, Uu = 2, ls = 1, Fu = 2, ir = 3, Xn = 0, Oe = 1, hn = 2, Pn = 0, Li = 1, nc = 2, ic = 3, rc = 4, Ou = 5, ri = 100, Bu = 101, zu = 102, Vu = 103, ku = 104, Gu = 200, Hu = 201, Wu = 202, Xu = 203, Ta = 204, Aa = 205, qu = 206, Yu = 207, Zu = 208, Ju = 209, $u = 210, Ku = 211, ju = 212, Qu = 213, th = 214, wa = 0, Ca = 1, Ra = 2, Ui = 3, Pa = 4, Ia = 5, Da = 6, La = 7, Pl = 0, eh = 1, nh = 2, dn = 0, Il = 1, Dl = 2, Ll = 3, Ao = 4, Nl = 5, Ul = 6, Fl = 7, sc = "attached", ih = "detached", Ol = 300, li = 301, Fi = 302, us = 303, Us = 304, As = 306, Na = 1e3, An = 1001, Ua = 1002, Ce = 1003, rh = 1004, Rr = 1005, ve = 1006, Fs = 1007, oi = 1008, He = 1009, Bl = 1010, zl = 1011, fr = 1012, wo = 1013, mn = 1014, We = 1015, Dn = 1016, Co = 1017, Ro = 1018, dr = 1020, Vl = 35902, kl = 35899, Gl = 1021, Hl = 1022, Xe = 1023, Ln = 1026, ci = 1027, Po = 1028, Io = 1029, Oi = 1030, Do = 1031, Lo = 1033, hs = 33776, fs = 33777, ds = 33778, ps = 33779, Fa = 35840, Oa = 35841, Ba = 35842, za = 35843, Va = 36196, ka = 37492, Ga = 37496, Ha = 37488, Wa = 37489, Xa = 37490, qa = 37491, Ya = 37808, Za = 37809, Ja = 37810, $a = 37811, Ka = 37812, ja = 37813, Qa = 37814, to = 37815, eo = 37816, no = 37817, io = 37818, ro = 37819, so = 37820, ao = 37821, oo = 36492, co = 36494, lo = 36495, uo = 36283, ho = 36284, fo = 36285, po = 36286, gs = 2300, mo = 2301, Os = 2302, ac = 2303, oc = 2400, cc = 2401, lc = 2402, sh = 2500, ah = 0, oh = 1, uc = 2, ch = 3200, Wl = 0, lh = 1, Hn = "", Fe = "srgb", Bi = "srgb-linear", _s = "linear", re = "srgb", mi = 7680, hc = 519, uh = 512, hh = 513, fh = 514, No = 515, dh = 516, ph = 517, Uo = 518, mh = 519, go = 35044, fc = 35048, dc = "300 es", fn = 2e3, pr = 2001;
|
|
6
6
|
function gh(i) {
|
|
7
7
|
for (let t = i.length - 1; t >= 0; --t)
|
|
@@ -26256,7 +26256,7 @@ function T0(i, t, e) {
|
|
|
26256
26256
|
},
|
|
26257
26257
|
// Imported appearances replace the rigid body while live screens and the hinge remain under our control.
|
|
26258
26258
|
loadAppearance: async (mt) => {
|
|
26259
|
-
const { GLTFLoader: st } = await import("./GLTFLoader-
|
|
26259
|
+
const { GLTFLoader: st } = await import("./GLTFLoader-B4nnixLv.mjs"), { scene: F } = await new st().loadAsync(mt), $ = /* @__PURE__ */ new Set();
|
|
26260
26260
|
if (F.traverse((J) => {
|
|
26261
26261
|
if (J instanceof Ee) {
|
|
26262
26262
|
$.add(J.geometry);
|
|
@@ -26375,10 +26375,10 @@ function A0(i, t, e, n, r) {
|
|
|
26375
26375
|
l[0][c] = u - 24, l[1][c] = u + 24;
|
|
26376
26376
|
}
|
|
26377
26377
|
}
|
|
26378
|
-
return { guides: o, rect: a, iconSize:
|
|
26378
|
+
return { guides: o, rect: a, iconSize: Ru(a) };
|
|
26379
26379
|
}
|
|
26380
26380
|
function w0(i, t, e) {
|
|
26381
|
-
const n = en(void 0), r = en(0), [s, a] = cs(), o =
|
|
26381
|
+
const n = en(void 0), r = en(0), [s, a] = cs(), o = Pu(i, t, (f) => {
|
|
26382
26382
|
f !== void 0 && c(), e(f);
|
|
26383
26383
|
}), l = en(o);
|
|
26384
26384
|
l.current = o;
|
|
@@ -26471,7 +26471,7 @@ function C0(i) {
|
|
|
26471
26471
|
X.colorSpace = Fe, X.minFilter = ve, X.magFilter = ve;
|
|
26472
26472
|
const lt = T0(Mt, yt, V.texture), { device: kt } = lt;
|
|
26473
26473
|
i.modelUrl && lt.loadAppearance(i.modelUrl).then(() => J()).catch((X) => s(String(X)));
|
|
26474
|
-
const Wt = new
|
|
26474
|
+
const Wt = new Au(
|
|
26475
26475
|
(X, ot) => n.current.button(X, ot),
|
|
26476
26476
|
(X) => s(String(X))
|
|
26477
26477
|
);
|
|
@@ -26504,11 +26504,11 @@ function C0(i) {
|
|
|
26504
26504
|
($e) => $e.id === Xt.object.userData.display
|
|
26505
26505
|
);
|
|
26506
26506
|
if (Ae)
|
|
26507
|
-
return { screenId: Ae.screenId, ...
|
|
26507
|
+
return { screenId: Ae.screenId, ...Cu(Xt.uv.x, Xt.uv.y) };
|
|
26508
26508
|
}, nt = (X) => {
|
|
26509
26509
|
if (J(), rt || X.button !== 0) return;
|
|
26510
26510
|
_(X.target) || w.focus({ preventScroll: !0 });
|
|
26511
|
-
const ot = Y(X), It = ot && "button" in ot ? ot.button : void 0, Xt =
|
|
26511
|
+
const ot = Y(X), It = ot && "button" in ot ? ot.button : void 0, Xt = wu(b.current, !!ot && !It, X.altKey);
|
|
26512
26512
|
if (Xt === "ignore" && !It) return;
|
|
26513
26513
|
const ie = Xt === "touch" && ot && "screenId" in ot ? ot : void 0;
|
|
26514
26514
|
rt = {
|
|
@@ -26524,7 +26524,7 @@ function C0(i) {
|
|
|
26524
26524
|
if (J(), !rt) {
|
|
26525
26525
|
const ot = Y(X), It = ot && "button" in ot ? ot.button : void 0, Xt = w.getBoundingClientRect();
|
|
26526
26526
|
I(
|
|
26527
|
-
It ? Z?.guides.find((ie) => ie.button === It)?.edge : Z &&
|
|
26527
|
+
It ? Z?.guides.find((ie) => ie.button === It)?.edge : Z && Lu(X.clientX - Xt.left, X.clientY - Xt.top, Z.rect)
|
|
26528
26528
|
), P.domElement.style.cursor = It ? "pointer" : "", P.domElement.title = It ? Cr[It] : "", lt.highlightButton(It);
|
|
26529
26529
|
return;
|
|
26530
26530
|
}
|
|
@@ -26631,14 +26631,14 @@ function C0(i) {
|
|
|
26631
26631
|
"data-visible": "false",
|
|
26632
26632
|
"aria-label": Cr[w],
|
|
26633
26633
|
title: Cr[w],
|
|
26634
|
-
children: /* @__PURE__ */ Jn(
|
|
26634
|
+
children: /* @__PURE__ */ Jn(Iu, { button: w })
|
|
26635
26635
|
},
|
|
26636
26636
|
w
|
|
26637
26637
|
))
|
|
26638
26638
|
}
|
|
26639
26639
|
),
|
|
26640
26640
|
/* @__PURE__ */ wr(
|
|
26641
|
-
|
|
26641
|
+
Du,
|
|
26642
26642
|
{
|
|
26643
26643
|
angle: a,
|
|
26644
26644
|
onFold: f,
|