@vincentt-xr/sdk 2.0.0-alpha.17 → 2.0.0-alpha.18
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/GROUNDING.md +181 -0
- package/components.json +144 -0
- package/dist/{CanonicalHeadFrame-vn-jM9fG.js → CanonicalHeadFrame-CQe2YX9a.js} +3 -3
- package/dist/{DebuggerUI-DDpU-nBF.js → DebuggerUI-CKYrYmod.js} +1 -1
- package/dist/{FaceRetouch-D2xH5OpW.js → FaceRetouch-l7y4oZBu.js} +4 -4
- package/dist/Scenes-BX0bR1j4.js +44 -0
- package/dist/Scenes-Dtt8UGE8.cjs +1 -0
- package/dist/audio/AudioPlayer.d.ts +2 -1
- package/dist/{bodyMaskMaterial-C3aXItLo.js → bodyMaskMaterial-BOdSJUEM.js} +1 -1
- package/dist/{cache-C85JjyZA.js → cache-Mu-VO_6E.js} +2 -2
- package/dist/components/Button/index.d.ts +23 -0
- package/dist/components/Button/safeLink.d.ts +6 -0
- package/dist/components/HtmlRegion/index.d.ts +8 -0
- package/dist/components/Model/index.d.ts +16 -0
- package/dist/components/Object3D/index.d.ts +13 -0
- package/dist/components/ScreenImage/types.d.ts +2 -2
- package/dist/components/ScreenText/types.d.ts +2 -1
- package/dist/components/ThemeProvider/index.d.ts +24 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/{contexts-B5GODwuV.js → contexts-Cl-4dUOI.js} +2 -2
- package/dist/debug-ui/media-source.js +1 -1
- package/dist/debug-ui.cjs +1 -1
- package/dist/debug-ui.js +11 -11
- package/dist/{drawNormalizedCrop-BLfB484W.js → drawNormalizedCrop-D606u5-F.js} +5 -5
- package/dist/editor-defs/definitions.d.ts +2 -0
- package/dist/editor-defs/index.d.ts +3 -0
- package/dist/editor-defs/types.d.ts +54 -0
- package/dist/editor-sample/sample.d.ts +15 -0
- package/dist/editor-scenes.cjs +1 -1
- package/dist/editor-scenes.js +39 -25
- package/dist/entries/core.d.ts +11 -1
- package/dist/face-effects.js +17 -17
- package/dist/{getFaceInfo-D_tCSQC7.js → getFaceInfo-Mt44zlej.js} +1 -1
- package/dist/{index-B9DdHE4u.js → index-B0EYdofX.js} +1 -1
- package/dist/{index-D_pgrgJg.cjs → index-B5X4N2tc.cjs} +3 -3
- package/dist/{index-CTqQJj5p.js → index-BDxJWWyy.js} +85 -85
- package/dist/{index-DlP4xxaT.js → index-Bn72laBn.js} +4 -4
- package/dist/{index-D10O6vqR.js → index-CbBCl2ZU.js} +2 -2
- package/dist/{index-CNt8esFO.js → index-CicO_Tnw.js} +1 -1
- package/dist/{index-Z5eKEUdE.js → index-D5NbXaCn.js} +4 -4
- package/dist/{index-Otoo-rph.js → index-DN_eHnag.js} +201 -195
- package/dist/instructions.js +7 -7
- package/dist/{internal-TD4QhIry.js → internal-BoFDq5hC.js} +3 -3
- package/dist/internal.js +2 -2
- package/dist/{landmarks-vLy5QKt6.js → landmarks-C3LvDhMt.js} +1 -1
- package/dist/low-level.js +17 -17
- package/dist/main.cjs +1 -1
- package/dist/main.js +932 -749
- package/dist/particles.js +5 -5
- package/dist/product.js +2 -2
- package/dist/{providers-DmJlgrDD.js → providers-Bxt_MfPK.js} +3 -3
- package/dist/{renderGroups-BcQYy_J2.js → renderGroups-uYPzUa66.js} +1 -1
- package/dist/{renderPasses-DIPTIU_x.js → renderPasses-C0wu5Cwg.js} +4 -4
- package/dist/scene-object.js +2 -2
- package/dist/scenes/Scenes.d.ts +17 -0
- package/dist/scenes/edit.d.ts +9 -1
- package/dist/{segmentation-CZs5aVvY.js → segmentation-DccvYBBO.js} +9 -9
- package/dist/{selectors-K5JKCWxw.js → selectors-J06V0eDb.js} +1 -1
- package/dist/{session-DHBNTyJJ.js → session-CYiWfcvz.js} +1 -1
- package/dist/tracking.js +25 -25
- package/dist/{trigger-BwZ81ENx.js → trigger-CQviD4xp.js} +155 -155
- package/dist/{useBodies-BMKHXAOL.js → useBodies-DOuwRuew.js} +2 -2
- package/dist/{useFaceInfo-BNVdnprN.js → useFaceInfo-XUGYTdfN.js} +4 -4
- package/dist/{useFaceResultReader-B15wn6RB.js → useFaceResultReader-D8wXbF1L.js} +1 -1
- package/dist/{useIrisTracking-CYm-KDIZ.js → useIrisTracking-B0uLWgNE.js} +10 -10
- package/dist/{useXRCapabilities-ClWlG5_Y.js → useXRCapabilities-DPUOvpdf.js} +1 -1
- package/package.json +6 -2
- package/settings.json +1 -1
- package/dist/Scenes-B30XZfTq.js +0 -29
- package/dist/Scenes-BLL7YvLw.cjs +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
var Pe = Object.defineProperty;
|
|
2
2
|
var ze = (e, n, t) => n in e ? Pe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var $ = (e, n, t) => ze(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
-
import { jsx as i, jsxs as
|
|
4
|
+
import { jsx as i, jsxs as b, Fragment as ee } from "react/jsx-runtime";
|
|
5
5
|
import { useFrame as O, useThree as re } from "@react-three/fiber";
|
|
6
|
-
import { useRef as x, Component as Se, useState as Be, useEffect as Z, useCallback as oe, useMemo as
|
|
7
|
-
import * as
|
|
6
|
+
import { useRef as x, Component as Se, useState as Be, useEffect as Z, useCallback as oe, useMemo as y, useLayoutEffect as Ke } from "react";
|
|
7
|
+
import * as v from "three";
|
|
8
8
|
import { Quaternion as ge, Vector3 as P, Euler as Oe } from "three";
|
|
9
|
-
import { M as Ve } from "./index-
|
|
10
|
-
import { u as fe, T as U, m as Ne, r as He } from "./renderPasses-
|
|
11
|
-
import { N as Qe, s as Ue, t as Ze, b as he, P as je, I as qe, M as _e, C as $e } from "./index-
|
|
9
|
+
import { M as Ve } from "./index-Bn72laBn.js";
|
|
10
|
+
import { u as fe, T as U, m as Ne, r as He } from "./renderPasses-C0wu5Cwg.js";
|
|
11
|
+
import { N as Qe, s as Ue, t as Ze, b as he, P as je, I as qe, M as _e, C as $e } from "./index-D5NbXaCn.js";
|
|
12
12
|
import { u as Ee, T as en, S as nn } from "./TextLabel-fEF1o3wE.js";
|
|
13
13
|
import { a as Te, u as Ae, S as tn } from "./context-DTxSQvp4.js";
|
|
14
14
|
import { u as be } from "./useEditOverrides-BBkK8cN2.js";
|
|
15
|
-
import { d as rn, j as on, k as An, f as sn, c as an, S as cn } from "./contexts-
|
|
16
|
-
import { O as ye, bb as ln, N as dn,
|
|
17
|
-
import { F as fn } from "./index-
|
|
18
|
-
import { T as hn, s as En } from "./index-
|
|
19
|
-
import { r as vn } from "./landmarks-
|
|
20
|
-
import { a as mn } from "./useFaceInfo-
|
|
15
|
+
import { d as rn, j as on, k as An, f as sn, c as an, S as cn } from "./contexts-Cl-4dUOI.js";
|
|
16
|
+
import { O as ye, bb as ln, N as dn, aD as un, K as ke, u as gn } from "./index-BDxJWWyy.js";
|
|
17
|
+
import { F as fn } from "./index-CbBCl2ZU.js";
|
|
18
|
+
import { T as hn, s as En } from "./index-CicO_Tnw.js";
|
|
19
|
+
import { r as vn } from "./landmarks-C3LvDhMt.js";
|
|
20
|
+
import { a as mn } from "./useFaceInfo-XUGYTdfN.js";
|
|
21
21
|
import { useTexture as In } from "@react-three/drei";
|
|
22
22
|
const z = {
|
|
23
23
|
width: 720,
|
|
@@ -79,11 +79,11 @@ const Bn = (e, n) => e || (n === "cover" ? "fill" : n === "stretch" ? "stretch"
|
|
|
79
79
|
break;
|
|
80
80
|
case "fillAndCut":
|
|
81
81
|
if (d = ve(n, t), t > n) {
|
|
82
|
-
const
|
|
83
|
-
a = [
|
|
82
|
+
const f = n / t;
|
|
83
|
+
a = [f, 1], g = [(1 - f) / 2, 0];
|
|
84
84
|
} else if (t < n) {
|
|
85
|
-
const
|
|
86
|
-
a = [1,
|
|
85
|
+
const f = t / n;
|
|
86
|
+
a = [1, f], g = [0, (1 - f) / 2];
|
|
87
87
|
}
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
@@ -121,34 +121,34 @@ const Bn = (e, n) => e || (n === "cover" ? "fill" : n === "stretch" ? "stretch"
|
|
|
121
121
|
}, Mn = (e) => {
|
|
122
122
|
switch (e) {
|
|
123
123
|
case "add":
|
|
124
|
-
return { blending:
|
|
124
|
+
return { blending: v.AdditiveBlending };
|
|
125
125
|
case "subtract":
|
|
126
|
-
return { blending:
|
|
126
|
+
return { blending: v.SubtractiveBlending };
|
|
127
127
|
case "multiply":
|
|
128
|
-
return { blending:
|
|
128
|
+
return { blending: v.MultiplyBlending };
|
|
129
129
|
case "screen":
|
|
130
130
|
return {
|
|
131
|
-
blending:
|
|
132
|
-
blendSrc:
|
|
133
|
-
blendDst:
|
|
134
|
-
blendEquation:
|
|
131
|
+
blending: v.CustomBlending,
|
|
132
|
+
blendSrc: v.OneFactor,
|
|
133
|
+
blendDst: v.OneMinusSrcColorFactor,
|
|
134
|
+
blendEquation: v.AddEquation
|
|
135
135
|
};
|
|
136
136
|
case "lighten":
|
|
137
137
|
return {
|
|
138
|
-
blending:
|
|
139
|
-
blendSrc:
|
|
140
|
-
blendDst:
|
|
141
|
-
blendEquation:
|
|
138
|
+
blending: v.CustomBlending,
|
|
139
|
+
blendSrc: v.OneFactor,
|
|
140
|
+
blendDst: v.OneFactor,
|
|
141
|
+
blendEquation: v.MaxEquation
|
|
142
142
|
};
|
|
143
143
|
case "darken":
|
|
144
144
|
return {
|
|
145
|
-
blending:
|
|
146
|
-
blendSrc:
|
|
147
|
-
blendDst:
|
|
148
|
-
blendEquation:
|
|
145
|
+
blending: v.CustomBlending,
|
|
146
|
+
blendSrc: v.OneFactor,
|
|
147
|
+
blendDst: v.OneFactor,
|
|
148
|
+
blendEquation: v.MinEquation
|
|
149
149
|
};
|
|
150
150
|
default:
|
|
151
|
-
return { blending:
|
|
151
|
+
return { blending: v.NormalBlending };
|
|
152
152
|
}
|
|
153
153
|
}, Ln = `
|
|
154
154
|
varying vec2 vUv;
|
|
@@ -171,10 +171,10 @@ vec3 mixed=applyAdvancedBlend(base,image.rgb);gl_FragColor=vec4(mix(base,mixed,i
|
|
|
171
171
|
const e = document.createElement("canvas");
|
|
172
172
|
e.width = 256, e.height = 256;
|
|
173
173
|
const n = e.getContext("2d");
|
|
174
|
-
if (!n) return new
|
|
174
|
+
if (!n) return new v.CanvasTexture(e);
|
|
175
175
|
const t = n.createRadialGradient(96, 80, 10, 128, 128, 128);
|
|
176
176
|
t.addColorStop(0, "#ffffff"), t.addColorStop(0.18, "#f8fafc"), t.addColorStop(0.44, "#cbd5e1"), t.addColorStop(0.72, "#475569"), t.addColorStop(1, "#0f172a"), n.fillStyle = t, n.fillRect(0, 0, e.width, e.height);
|
|
177
|
-
const o = new
|
|
177
|
+
const o = new v.CanvasTexture(e);
|
|
178
178
|
return o.needsUpdate = !0, o;
|
|
179
179
|
}, wn = ["alpha", "red", "green", "luminance"], Fn = (e) => {
|
|
180
180
|
const n = wn.indexOf(e ?? "alpha");
|
|
@@ -292,23 +292,23 @@ function Ie({
|
|
|
292
292
|
rotation: d = 0,
|
|
293
293
|
opacity: a = 1,
|
|
294
294
|
color: g = "#ffffff",
|
|
295
|
-
maskTexture:
|
|
296
|
-
maskChannel:
|
|
297
|
-
maskInvert:
|
|
298
|
-
maskFeather:
|
|
299
|
-
maskErode:
|
|
300
|
-
flipX:
|
|
301
|
-
flipY:
|
|
295
|
+
maskTexture: f = null,
|
|
296
|
+
maskChannel: I,
|
|
297
|
+
maskInvert: u = !1,
|
|
298
|
+
maskFeather: h = 0,
|
|
299
|
+
maskErode: Q = 0,
|
|
300
|
+
flipX: S = !1,
|
|
301
|
+
flipY: m = !1,
|
|
302
302
|
renderOrder: L = Jn,
|
|
303
303
|
transparent: M = !0,
|
|
304
|
-
alphaTest:
|
|
305
|
-
overlay:
|
|
304
|
+
alphaTest: B = 0,
|
|
305
|
+
overlay: E = !0,
|
|
306
306
|
visible: W,
|
|
307
307
|
layoutSize: X
|
|
308
308
|
}) {
|
|
309
|
-
const { size: C } = re(), s = rn(),
|
|
310
|
-
|
|
311
|
-
), w =
|
|
309
|
+
const { size: C } = re(), s = rn(), T = Le(n, t), j = T.kind === "image" ? T.src : Sn, Y = In(j), q = Kn(
|
|
310
|
+
T.kind === "gif" ? T.src : void 0
|
|
311
|
+
), w = T.kind === "texture" ? T.texture : T.kind === "gif" ? (q == null ? void 0 : q.texture) ?? Y : Y, ie = Te(), se = Bn(A, o), [we, ae] = Be(
|
|
312
312
|
() => R(w)
|
|
313
313
|
);
|
|
314
314
|
Z(() => {
|
|
@@ -317,84 +317,84 @@ function Ie({
|
|
|
317
317
|
const ce = Tn(w), J = ce ? we : R(w), Fe = oe(
|
|
318
318
|
(F) => ae(F),
|
|
319
319
|
[]
|
|
320
|
-
), le = J.width > 0 && J.height > 0 ? J.width / J.height : bn(w), de =
|
|
320
|
+
), le = J.width > 0 && J.height > 0 ? J.width / J.height : bn(w), de = y(() => xn(), []), G = y(
|
|
321
321
|
() => Qn(
|
|
322
322
|
se,
|
|
323
323
|
ie,
|
|
324
324
|
le,
|
|
325
|
-
|
|
326
|
-
|
|
325
|
+
S,
|
|
326
|
+
m,
|
|
327
327
|
X,
|
|
328
328
|
J
|
|
329
329
|
),
|
|
330
|
-
[se, ie, le,
|
|
331
|
-
),
|
|
330
|
+
[se, ie, le, S, m, X, J]
|
|
331
|
+
), k = y(() => {
|
|
332
332
|
const F = w.clone();
|
|
333
333
|
return F.needsUpdate = !0, F.repeat.set(G.repeat[0], G.repeat[1]), F.offset.set(G.offset[0], G.offset[1]), F;
|
|
334
334
|
}, [w, G.repeat, G.offset]);
|
|
335
|
-
Ee(
|
|
336
|
-
const V =
|
|
335
|
+
Ee(k), Ee(de);
|
|
336
|
+
const V = y(() => Mn(l), [l]), N = yn.has(l) ? l : null, _ = c ?? (s == null ? void 0 : s.finalColorTexture) ?? (s == null ? void 0 : s.sceneColorTexture) ?? null, Xe = N !== null && _ !== null, Ge = y(
|
|
337
337
|
() => ({
|
|
338
|
-
imageMap:
|
|
338
|
+
imageMap: k,
|
|
339
339
|
backdropMap: _,
|
|
340
|
-
resolution: new
|
|
341
|
-
tint: new
|
|
340
|
+
resolution: new v.Vector2(C.width, C.height),
|
|
341
|
+
tint: new v.Color(g),
|
|
342
342
|
opacity: a,
|
|
343
|
-
alphaTest:
|
|
343
|
+
alphaTest: B,
|
|
344
344
|
blendMode: N === null ? 0 : kn[N]
|
|
345
345
|
}),
|
|
346
346
|
[
|
|
347
347
|
N,
|
|
348
|
-
|
|
348
|
+
B,
|
|
349
349
|
_,
|
|
350
350
|
C.height,
|
|
351
351
|
C.width,
|
|
352
352
|
g,
|
|
353
|
-
|
|
353
|
+
k,
|
|
354
354
|
a
|
|
355
355
|
]
|
|
356
|
-
), Re = fe(Ge), ue =
|
|
356
|
+
), Re = fe(Ge), ue = y(() => (k.updateMatrix(), k.matrix.clone()), [k]), We = y(
|
|
357
357
|
() => ({
|
|
358
|
-
imageMap:
|
|
359
|
-
maskMap:
|
|
358
|
+
imageMap: k,
|
|
359
|
+
maskMap: f,
|
|
360
360
|
mapTransform: ue,
|
|
361
|
-
tint: new
|
|
361
|
+
tint: new v.Color(g),
|
|
362
362
|
opacity: a,
|
|
363
|
-
alphaTest:
|
|
364
|
-
maskChannel: Fn(
|
|
365
|
-
maskInvert:
|
|
366
|
-
maskFeather:
|
|
367
|
-
maskErode:
|
|
363
|
+
alphaTest: B,
|
|
364
|
+
maskChannel: Fn(I),
|
|
365
|
+
maskInvert: u ? 1 : 0,
|
|
366
|
+
maskFeather: h,
|
|
367
|
+
maskErode: Q,
|
|
368
368
|
// Feather radius is expressed in mask texels so it stays the same
|
|
369
369
|
// on-screen width whatever resolution the mask arrives at.
|
|
370
370
|
maskTexel: (() => {
|
|
371
|
-
const { width: F, height: Je } = R(
|
|
372
|
-
return new
|
|
371
|
+
const { width: F, height: Je } = R(f ?? k);
|
|
372
|
+
return new v.Vector2(1 / Math.max(F, 1), 1 / Math.max(Je, 1));
|
|
373
373
|
})()
|
|
374
374
|
}),
|
|
375
375
|
[
|
|
376
|
-
|
|
376
|
+
B,
|
|
377
377
|
g,
|
|
378
378
|
ue,
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
u,
|
|
382
|
-
E,
|
|
379
|
+
I,
|
|
380
|
+
Q,
|
|
383
381
|
h,
|
|
384
|
-
|
|
382
|
+
u,
|
|
383
|
+
f,
|
|
384
|
+
k,
|
|
385
385
|
a
|
|
386
386
|
]
|
|
387
387
|
), Ye = fe(We);
|
|
388
|
-
return /* @__PURE__ */
|
|
388
|
+
return /* @__PURE__ */ b("group", { visible: W, children: [
|
|
389
389
|
ce ? /* @__PURE__ */ i(
|
|
390
390
|
Rn,
|
|
391
391
|
{
|
|
392
|
-
materialTexture:
|
|
392
|
+
materialTexture: k,
|
|
393
393
|
sourceTexture: w,
|
|
394
394
|
onSourceSizeChange: Fe
|
|
395
395
|
}
|
|
396
396
|
) : null,
|
|
397
|
-
/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ b(
|
|
398
398
|
"mesh",
|
|
399
399
|
{
|
|
400
400
|
name: e,
|
|
@@ -403,15 +403,15 @@ function Ie({
|
|
|
403
403
|
renderOrder: L,
|
|
404
404
|
children: [
|
|
405
405
|
/* @__PURE__ */ i("planeGeometry", { args: [1, 1] }),
|
|
406
|
-
|
|
406
|
+
f ? /* @__PURE__ */ i(
|
|
407
407
|
"shaderMaterial",
|
|
408
408
|
{
|
|
409
409
|
uniforms: Ye,
|
|
410
410
|
vertexShader: Xn,
|
|
411
411
|
fragmentShader: Gn,
|
|
412
412
|
transparent: !0,
|
|
413
|
-
depthTest: !
|
|
414
|
-
depthWrite: !
|
|
413
|
+
depthTest: !E,
|
|
414
|
+
depthWrite: !E,
|
|
415
415
|
toneMapped: !1,
|
|
416
416
|
...V
|
|
417
417
|
}
|
|
@@ -422,20 +422,20 @@ function Ie({
|
|
|
422
422
|
vertexShader: Ln,
|
|
423
423
|
fragmentShader: Dn,
|
|
424
424
|
transparent: !1,
|
|
425
|
-
depthTest: !
|
|
426
|
-
depthWrite: !
|
|
425
|
+
depthTest: !E,
|
|
426
|
+
depthWrite: !E,
|
|
427
427
|
toneMapped: !1
|
|
428
428
|
}
|
|
429
429
|
) : r === "standardPBR" ? /* @__PURE__ */ i(
|
|
430
430
|
"meshStandardMaterial",
|
|
431
431
|
{
|
|
432
|
-
map:
|
|
432
|
+
map: k,
|
|
433
433
|
transparent: M || a < 1,
|
|
434
434
|
opacity: a,
|
|
435
435
|
color: g,
|
|
436
|
-
alphaTest:
|
|
437
|
-
depthTest: !
|
|
438
|
-
depthWrite: !
|
|
436
|
+
alphaTest: B,
|
|
437
|
+
depthTest: !E,
|
|
438
|
+
depthWrite: !E,
|
|
439
439
|
toneMapped: !1,
|
|
440
440
|
roughness: 0.72,
|
|
441
441
|
metalness: 0.08,
|
|
@@ -446,27 +446,27 @@ function Ie({
|
|
|
446
446
|
) : r === "matcap" ? /* @__PURE__ */ i(
|
|
447
447
|
"meshMatcapMaterial",
|
|
448
448
|
{
|
|
449
|
-
map:
|
|
449
|
+
map: k,
|
|
450
450
|
matcap: de,
|
|
451
451
|
transparent: M || a < 1,
|
|
452
452
|
opacity: a,
|
|
453
453
|
color: g,
|
|
454
|
-
alphaTest:
|
|
455
|
-
depthTest: !
|
|
456
|
-
depthWrite: !
|
|
454
|
+
alphaTest: B,
|
|
455
|
+
depthTest: !E,
|
|
456
|
+
depthWrite: !E,
|
|
457
457
|
toneMapped: !1,
|
|
458
458
|
...V
|
|
459
459
|
}
|
|
460
460
|
) : /* @__PURE__ */ i(
|
|
461
461
|
"meshBasicMaterial",
|
|
462
462
|
{
|
|
463
|
-
map:
|
|
463
|
+
map: k,
|
|
464
464
|
transparent: M || a < 1,
|
|
465
465
|
opacity: a,
|
|
466
466
|
color: g,
|
|
467
|
-
alphaTest:
|
|
468
|
-
depthTest: !
|
|
469
|
-
depthWrite: !
|
|
467
|
+
alphaTest: B,
|
|
468
|
+
depthTest: !E,
|
|
469
|
+
depthWrite: !E,
|
|
470
470
|
toneMapped: !1,
|
|
471
471
|
...V
|
|
472
472
|
}
|
|
@@ -484,10 +484,10 @@ function Nn({
|
|
|
484
484
|
rotation: o,
|
|
485
485
|
children: A
|
|
486
486
|
}) {
|
|
487
|
-
const { width: r, height: l } = Ae(), c =
|
|
487
|
+
const { width: r, height: l } = Ae(), c = y(
|
|
488
488
|
() => ({ left: -1, right: 1, top: 1, bottom: -1, ...e }),
|
|
489
489
|
[e]
|
|
490
|
-
), d =
|
|
490
|
+
), d = y(() => ({ ...On, ...n }), [n]), a = y(
|
|
491
491
|
() => an(r, l, c, d, t),
|
|
492
492
|
[l, t, c, d, r]
|
|
493
493
|
), g = a.width > 0 && a.height > 0 ? a.width / a.height : null;
|
|
@@ -581,28 +581,31 @@ function it(e) {
|
|
|
581
581
|
rotation: d = 0,
|
|
582
582
|
transform: a,
|
|
583
583
|
onScreenTransformChange: g,
|
|
584
|
-
transformGuideLayer:
|
|
585
|
-
|
|
586
|
-
|
|
584
|
+
transformGuideLayer: f = "scene",
|
|
585
|
+
// `locked` is editor metadata; keep it out of the body props.
|
|
586
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
587
|
+
locked: I,
|
|
588
|
+
...u
|
|
589
|
+
} = et(e), h = y(
|
|
587
590
|
() => At(n, t, o, A, r),
|
|
588
591
|
[n, o, t, A, r]
|
|
589
|
-
),
|
|
592
|
+
), Q = y(() => ot(c), [c]);
|
|
590
593
|
if (a) {
|
|
591
594
|
const S = ye(a);
|
|
592
595
|
return S.enabled ? /* @__PURE__ */ i(
|
|
593
596
|
Hn,
|
|
594
597
|
{
|
|
595
|
-
guideLayer:
|
|
598
|
+
guideLayer: f,
|
|
596
599
|
transform: S,
|
|
597
600
|
onChange: g,
|
|
598
601
|
children: /* @__PURE__ */ i(
|
|
599
602
|
me,
|
|
600
603
|
{
|
|
601
|
-
...
|
|
604
|
+
...u,
|
|
602
605
|
layoutSize: S.size,
|
|
603
|
-
renderOrder:
|
|
604
|
-
overlay:
|
|
605
|
-
visible:
|
|
606
|
+
renderOrder: u.renderOrder ?? S.renderOrder,
|
|
607
|
+
overlay: u.overlay ?? S.overlay,
|
|
608
|
+
visible: u.visible ?? S.visible,
|
|
606
609
|
rotation: 0
|
|
607
610
|
}
|
|
608
611
|
)
|
|
@@ -612,14 +615,14 @@ function it(e) {
|
|
|
612
615
|
return /* @__PURE__ */ i(
|
|
613
616
|
Nn,
|
|
614
617
|
{
|
|
615
|
-
anchors:
|
|
618
|
+
anchors: h,
|
|
616
619
|
offsets: l,
|
|
617
|
-
pivot:
|
|
620
|
+
pivot: Q,
|
|
618
621
|
rotation: d,
|
|
619
622
|
children: /* @__PURE__ */ i(
|
|
620
623
|
me,
|
|
621
624
|
{
|
|
622
|
-
...
|
|
625
|
+
...u,
|
|
623
626
|
layoutSize: r ? { width: r[0], height: r[1] } : void 0,
|
|
624
627
|
rotation: 0
|
|
625
628
|
}
|
|
@@ -738,11 +741,14 @@ function mt(e) {
|
|
|
738
741
|
size: d,
|
|
739
742
|
transform: a,
|
|
740
743
|
screenTransform: g,
|
|
741
|
-
onScreenTransformChange:
|
|
742
|
-
transformGuideLayer:
|
|
743
|
-
verticalAlign:
|
|
744
|
-
|
|
745
|
-
|
|
744
|
+
onScreenTransformChange: f,
|
|
745
|
+
transformGuideLayer: I = "scene",
|
|
746
|
+
verticalAlign: u = "center",
|
|
747
|
+
// `locked` is editor metadata; keep it out of the TextLabel props.
|
|
748
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
749
|
+
locked: h,
|
|
750
|
+
...Q
|
|
751
|
+
} = ht(e), { resolvedAnchors: S, resolvedOffsets: m, resolvedPivot: L } = y(
|
|
746
752
|
() => vt({
|
|
747
753
|
anchors: n,
|
|
748
754
|
coordinateSpace: t,
|
|
@@ -751,49 +757,49 @@ function mt(e) {
|
|
|
751
757
|
size: d,
|
|
752
758
|
transform: a,
|
|
753
759
|
pivot: r,
|
|
754
|
-
verticalAlign:
|
|
760
|
+
verticalAlign: u
|
|
755
761
|
}),
|
|
756
|
-
[n, o, t, r, l, d, a,
|
|
757
|
-
),
|
|
762
|
+
[n, o, t, r, l, d, a, u]
|
|
763
|
+
), M = (a == null ? void 0 : a.offsets) ?? A ?? m, B = (a == null ? void 0 : a.rotation) ?? c;
|
|
758
764
|
if (g) {
|
|
759
|
-
const
|
|
760
|
-
return
|
|
765
|
+
const E = ye(g);
|
|
766
|
+
return E.enabled ? /* @__PURE__ */ i(
|
|
761
767
|
ut,
|
|
762
768
|
{
|
|
763
|
-
guideLayer:
|
|
764
|
-
transform:
|
|
765
|
-
onChange:
|
|
769
|
+
guideLayer: I,
|
|
770
|
+
transform: E,
|
|
771
|
+
onChange: f,
|
|
766
772
|
children: /* @__PURE__ */ i(
|
|
767
773
|
pe,
|
|
768
774
|
{
|
|
769
|
-
...
|
|
770
|
-
layoutSize:
|
|
771
|
-
verticalAlign:
|
|
772
|
-
renderOrder:
|
|
773
|
-
overlay:
|
|
774
|
-
visible:
|
|
775
|
+
...Q,
|
|
776
|
+
layoutSize: E.size,
|
|
777
|
+
verticalAlign: u,
|
|
778
|
+
renderOrder: Q.renderOrder ?? E.renderOrder,
|
|
779
|
+
overlay: Q.overlay ?? E.overlay,
|
|
780
|
+
visible: Q.visible ?? E.visible
|
|
775
781
|
}
|
|
776
782
|
)
|
|
777
783
|
}
|
|
778
784
|
) : null;
|
|
779
785
|
}
|
|
780
|
-
return /* @__PURE__ */ i(cn, { anchors: S, offsets:
|
|
786
|
+
return /* @__PURE__ */ i(cn, { anchors: S, offsets: M, pivot: L, children: /* @__PURE__ */ i("group", { rotation: [0, 0, B * Math.PI / 180], children: /* @__PURE__ */ i(pe, { ...Q, verticalAlign: u }) }) });
|
|
781
787
|
}
|
|
782
788
|
const It = ({ settings: e, transform: n }) => {
|
|
783
|
-
const t =
|
|
784
|
-
() => /* @__PURE__ */
|
|
785
|
-
/* @__PURE__ */
|
|
789
|
+
const t = y(
|
|
790
|
+
() => /* @__PURE__ */ b("group", { name: "LightEditorGizmo", visible: e.showHelper, children: [
|
|
791
|
+
/* @__PURE__ */ b("mesh", { renderOrder: 1e3, children: [
|
|
786
792
|
/* @__PURE__ */ i("sphereGeometry", { args: [0.12, 12, 8] }),
|
|
787
793
|
/* @__PURE__ */ i("meshBasicMaterial", { color: "#facc15", wireframe: !0, depthTest: !1, depthWrite: !1 })
|
|
788
794
|
] }),
|
|
789
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ b("mesh", { position: [0, 0, -0.35], rotation: [Math.PI / 2, 0, 0], renderOrder: 1e3, children: [
|
|
790
796
|
/* @__PURE__ */ i("coneGeometry", { args: [0.08, 0.45, 12] }),
|
|
791
797
|
/* @__PURE__ */ i("meshBasicMaterial", { color: "#fde047", wireframe: !0, depthTest: !1, depthWrite: !1 })
|
|
792
798
|
] })
|
|
793
799
|
] }),
|
|
794
800
|
[e.showHelper]
|
|
795
801
|
);
|
|
796
|
-
return e.enabled ? /* @__PURE__ */
|
|
802
|
+
return e.enabled ? /* @__PURE__ */ b(U, { value: n, children: [
|
|
797
803
|
t,
|
|
798
804
|
e.type === "ambient" ? /* @__PURE__ */ i("ambientLight", { color: e.color, intensity: e.intensity }) : null,
|
|
799
805
|
e.type === "directional" ? /* @__PURE__ */ i(
|
|
@@ -924,39 +930,39 @@ const It = ({ settings: e, transform: n }) => {
|
|
|
924
930
|
prevRaw: new P(),
|
|
925
931
|
dxHat: new P(),
|
|
926
932
|
initialized: !1
|
|
927
|
-
}),
|
|
933
|
+
}), f = x(!1), I = x({ x: 0, y: 0, z: 0, visibility: 0 }), u = x({ x: 0, y: 0 }), h = r ? vn(
|
|
928
934
|
e.target,
|
|
929
935
|
r.landmarks,
|
|
930
936
|
e.customAnchorPoint,
|
|
931
|
-
|
|
937
|
+
I.current,
|
|
932
938
|
r.mirrored
|
|
933
|
-
) : null,
|
|
934
|
-
point:
|
|
939
|
+
) : null, Q = r ? r.mirrored ? r.pose.rotation.z : -r.pose.rotation.z : 0, S = h ? un({
|
|
940
|
+
point: h,
|
|
935
941
|
viewportSize: l,
|
|
936
|
-
target:
|
|
937
|
-
}) : null,
|
|
942
|
+
target: u.current
|
|
943
|
+
}) : null, m = S ? ke({
|
|
938
944
|
transform: {
|
|
939
945
|
...A,
|
|
940
946
|
position: {
|
|
941
|
-
x:
|
|
942
|
-
y:
|
|
947
|
+
x: S.x + A.position.x + e.offset.x,
|
|
948
|
+
y: S.y + A.position.y + e.offset.y
|
|
943
949
|
}
|
|
944
950
|
},
|
|
945
951
|
parentSize: c
|
|
946
952
|
}) : null;
|
|
947
953
|
return O((L, M) => {
|
|
948
|
-
const
|
|
949
|
-
if (
|
|
950
|
-
if (
|
|
951
|
-
|
|
954
|
+
const B = d.current;
|
|
955
|
+
if (B) {
|
|
956
|
+
if (B.visible = !!(m && A.enabled && A.visible), !m) {
|
|
957
|
+
f.current = !1, g.current.initialized = !1;
|
|
952
958
|
return;
|
|
953
959
|
}
|
|
954
|
-
a.current.set(
|
|
960
|
+
a.current.set(m.center[0], m.center[1], e.offset.z), e.smoothing > 0 ? (En(
|
|
955
961
|
g.current,
|
|
956
962
|
a.current,
|
|
957
|
-
|
|
963
|
+
f.current ? M : 0,
|
|
958
964
|
e.smoothing
|
|
959
|
-
),
|
|
965
|
+
), B.position.copy(g.current.pos)) : B.position.copy(a.current), f.current = !0;
|
|
960
966
|
}
|
|
961
967
|
}), /* @__PURE__ */ i(
|
|
962
968
|
"group",
|
|
@@ -965,9 +971,9 @@ const It = ({ settings: e, transform: n }) => {
|
|
|
965
971
|
d.current = L, t == null || t(L);
|
|
966
972
|
},
|
|
967
973
|
rotation: [
|
|
968
|
-
(
|
|
969
|
-
(
|
|
970
|
-
((
|
|
974
|
+
(m == null ? void 0 : m.rotation[0]) ?? 0,
|
|
975
|
+
(m == null ? void 0 : m.rotation[1]) ?? 0,
|
|
976
|
+
((m == null ? void 0 : m.rotation[2]) ?? 0) + (e.followFaceRoll ? Q : 0)
|
|
971
977
|
],
|
|
972
978
|
scale: [
|
|
973
979
|
A.size.width / 100 * A.scale2D.x,
|
|
@@ -989,9 +995,9 @@ const It = ({ settings: e, transform: n }) => {
|
|
|
989
995
|
renderOrder: c,
|
|
990
996
|
store: d
|
|
991
997
|
}) => {
|
|
992
|
-
const a = ln(), g = dn(),
|
|
993
|
-
if (!
|
|
994
|
-
const
|
|
998
|
+
const a = ln(), g = dn(), f = d.objects[A];
|
|
999
|
+
if (!f || !f.enabled) return null;
|
|
1000
|
+
const I = Ue(d, A).filter((s) => s.enabled), u = I.find((s) => s.type === "Transform"), h = I.find((s) => s.type === "ScreenTransform"), Q = I.find((s) => s.type === "ScreenImage"), S = I.find((s) => s.type === "ScreenText"), m = I.find((s) => s.type === "ScreenShape"), L = I.find((s) => s.type === "MeshRenderer"), M = I.find((s) => s.type === "FaceMeshRenderer"), B = I.find((s) => s.type === "Light"), E = I.find((s) => s.type === "LookAt"), W = I.find((s) => s.type === "PinToMesh"), X = I.find((s) => s.type === "TrackingAnchor"), C = Ze(d, A).map((s) => /* @__PURE__ */ i(
|
|
995
1001
|
kt,
|
|
996
1002
|
{
|
|
997
1003
|
objectId: s.id,
|
|
@@ -1002,36 +1008,36 @@ const It = ({ settings: e, transform: n }) => {
|
|
|
1002
1008
|
onComponentChange: r,
|
|
1003
1009
|
fallback: t,
|
|
1004
1010
|
faceMeshMaterialOverrides: n,
|
|
1005
|
-
insideScreenSpaceUI: o || !!
|
|
1011
|
+
insideScreenSpaceUI: o || !!h
|
|
1006
1012
|
},
|
|
1007
1013
|
s.id
|
|
1008
1014
|
));
|
|
1009
|
-
if (p(
|
|
1010
|
-
return /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */
|
|
1011
|
-
/* @__PURE__ */ i(It, { settings:
|
|
1015
|
+
if (p(u, "Transform") && p(B, "Light"))
|
|
1016
|
+
return /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ b("group", { ref: (s) => a(A, s), children: [
|
|
1017
|
+
/* @__PURE__ */ i(It, { settings: B.settings, transform: u.settings }),
|
|
1012
1018
|
C
|
|
1013
1019
|
] }) });
|
|
1014
|
-
if (p(
|
|
1015
|
-
const s = p(
|
|
1020
|
+
if (p(u, "Transform") && p(L, "MeshRenderer")) {
|
|
1021
|
+
const s = p(E, "LookAt") ? E.settings : he("LookAt", A).settings, T = s.inheritChildren ? C : null, j = s.inheritChildren ? null : C;
|
|
1016
1022
|
return /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { ref: (Y) => a(A, Y), children: /* @__PURE__ */ i(
|
|
1017
1023
|
je,
|
|
1018
1024
|
{
|
|
1019
1025
|
target: p(W, "PinToMesh") ? g(W.settings.targetObjectId) : null,
|
|
1020
1026
|
settings: p(W, "PinToMesh") ? W.settings : he("PinToMesh", A).settings,
|
|
1021
|
-
children: /* @__PURE__ */
|
|
1027
|
+
children: /* @__PURE__ */ b(
|
|
1022
1028
|
U,
|
|
1023
1029
|
{
|
|
1024
|
-
value:
|
|
1025
|
-
onChange: r ? (Y) => r({ ...
|
|
1030
|
+
value: u.settings,
|
|
1031
|
+
onChange: r ? (Y) => r({ ...u, settings: Y }) : void 0,
|
|
1026
1032
|
children: [
|
|
1027
|
-
/* @__PURE__ */
|
|
1033
|
+
/* @__PURE__ */ b(
|
|
1028
1034
|
Ct,
|
|
1029
1035
|
{
|
|
1030
|
-
target: p(
|
|
1036
|
+
target: p(E, "LookAt") ? g(E.settings.targetObjectId) : null,
|
|
1031
1037
|
settings: s,
|
|
1032
1038
|
children: [
|
|
1033
1039
|
/* @__PURE__ */ i(Ve, { value: L.settings, renderOrder: c }),
|
|
1034
|
-
|
|
1040
|
+
T
|
|
1035
1041
|
]
|
|
1036
1042
|
}
|
|
1037
1043
|
),
|
|
@@ -1043,18 +1049,18 @@ const It = ({ settings: e, transform: n }) => {
|
|
|
1043
1049
|
) }) });
|
|
1044
1050
|
}
|
|
1045
1051
|
if (p(M, "FaceMeshRenderer"))
|
|
1046
|
-
return /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */
|
|
1052
|
+
return /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ b("group", { ref: (s) => a(A, s), children: [
|
|
1047
1053
|
/* @__PURE__ */ i(
|
|
1048
1054
|
Ne,
|
|
1049
1055
|
{
|
|
1050
1056
|
value: M.settings,
|
|
1051
1057
|
materialOverride: n == null ? void 0 : n[M.id],
|
|
1052
|
-
transform: p(
|
|
1058
|
+
transform: p(u, "Transform") ? u.settings : void 0
|
|
1053
1059
|
}
|
|
1054
1060
|
),
|
|
1055
1061
|
C
|
|
1056
1062
|
] }) });
|
|
1057
|
-
if (p(
|
|
1063
|
+
if (p(u, "Transform")) {
|
|
1058
1064
|
if (p(X, "TrackingAnchor")) {
|
|
1059
1065
|
const s = X.settings;
|
|
1060
1066
|
return /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i(fn, { followFaceRoll: s.followFaceRoll, children: /* @__PURE__ */ i(
|
|
@@ -1067,8 +1073,8 @@ const It = ({ settings: e, transform: n }) => {
|
|
|
1067
1073
|
children: /* @__PURE__ */ i(
|
|
1068
1074
|
U,
|
|
1069
1075
|
{
|
|
1070
|
-
objectRef: (
|
|
1071
|
-
value:
|
|
1076
|
+
objectRef: (T) => a(A, T),
|
|
1077
|
+
value: u.settings,
|
|
1072
1078
|
children: C
|
|
1073
1079
|
}
|
|
1074
1080
|
)
|
|
@@ -1079,69 +1085,69 @@ const It = ({ settings: e, transform: n }) => {
|
|
|
1079
1085
|
U,
|
|
1080
1086
|
{
|
|
1081
1087
|
objectRef: (s) => a(A, s),
|
|
1082
|
-
value:
|
|
1083
|
-
onChange: r ? (s) => r({ ...
|
|
1088
|
+
value: u.settings,
|
|
1089
|
+
onChange: r ? (s) => r({ ...u, settings: s }) : void 0,
|
|
1084
1090
|
children: C
|
|
1085
1091
|
}
|
|
1086
1092
|
) }) });
|
|
1087
1093
|
}
|
|
1088
|
-
if (p(
|
|
1094
|
+
if (p(h, "ScreenTransform") && p(Q, "ScreenImage")) {
|
|
1089
1095
|
const s = qe({
|
|
1090
1096
|
screenSpaceUI: { enabled: !0 },
|
|
1091
1097
|
screenImage: {
|
|
1092
|
-
...
|
|
1093
|
-
screenTransform:
|
|
1098
|
+
...Q.settings,
|
|
1099
|
+
screenTransform: h.settings
|
|
1094
1100
|
}
|
|
1095
1101
|
});
|
|
1096
|
-
return s.shouldRender ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { renderOrder: c, children: /* @__PURE__ */
|
|
1102
|
+
return s.shouldRender ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { renderOrder: c, children: /* @__PURE__ */ b(K, { inside: o, children: [
|
|
1097
1103
|
/* @__PURE__ */ i(
|
|
1098
1104
|
it,
|
|
1099
1105
|
{
|
|
1100
1106
|
...s.props,
|
|
1101
1107
|
renderOrder: c ?? s.props.renderOrder,
|
|
1102
|
-
onScreenTransformChange: r ? (
|
|
1108
|
+
onScreenTransformChange: r ? (T) => r({ ...h, settings: T }) : void 0
|
|
1103
1109
|
}
|
|
1104
1110
|
),
|
|
1105
1111
|
C
|
|
1106
1112
|
] }) }) }) : null;
|
|
1107
1113
|
}
|
|
1108
|
-
if (p(
|
|
1114
|
+
if (p(h, "ScreenTransform") && p(S, "ScreenText")) {
|
|
1109
1115
|
const s = _e({
|
|
1110
1116
|
screenSpaceUI: { enabled: !0 },
|
|
1111
1117
|
screenText: {
|
|
1112
|
-
...
|
|
1113
|
-
screenTransform:
|
|
1118
|
+
...S.settings,
|
|
1119
|
+
screenTransform: h.settings
|
|
1114
1120
|
}
|
|
1115
1121
|
});
|
|
1116
|
-
return s.shouldRender ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { renderOrder: c, children: /* @__PURE__ */
|
|
1122
|
+
return s.shouldRender ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { renderOrder: c, children: /* @__PURE__ */ b(K, { inside: o, children: [
|
|
1117
1123
|
/* @__PURE__ */ i(
|
|
1118
1124
|
mt,
|
|
1119
1125
|
{
|
|
1120
1126
|
...s.props,
|
|
1121
1127
|
renderOrder: c ?? s.props.renderOrder,
|
|
1122
|
-
onScreenTransformChange: r ? (
|
|
1128
|
+
onScreenTransformChange: r ? (T) => r({ ...h, settings: T }) : void 0
|
|
1123
1129
|
}
|
|
1124
1130
|
),
|
|
1125
1131
|
C
|
|
1126
1132
|
] }) }) }) : null;
|
|
1127
1133
|
}
|
|
1128
|
-
return p(
|
|
1134
|
+
return p(h, "ScreenTransform") && p(m, "ScreenShape") ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { ref: (s) => a(A, s), renderOrder: c, children: /* @__PURE__ */ b(K, { inside: o, children: [
|
|
1129
1135
|
/* @__PURE__ */ i(
|
|
1130
1136
|
$e,
|
|
1131
1137
|
{
|
|
1132
|
-
name:
|
|
1133
|
-
settings:
|
|
1134
|
-
transform:
|
|
1138
|
+
name: f.name,
|
|
1139
|
+
settings: m.settings,
|
|
1140
|
+
transform: h.settings,
|
|
1135
1141
|
renderOrder: c,
|
|
1136
|
-
onScreenTransformChange: r ? (s) => r({ ...
|
|
1142
|
+
onScreenTransformChange: r ? (s) => r({ ...h, settings: s }) : void 0
|
|
1137
1143
|
}
|
|
1138
1144
|
),
|
|
1139
1145
|
C
|
|
1140
|
-
] }) }) }) : p(
|
|
1146
|
+
] }) }) }) : p(h, "ScreenTransform") ? p(X, "TrackingAnchor") ? /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { children: /* @__PURE__ */ i(
|
|
1141
1147
|
bt,
|
|
1142
1148
|
{
|
|
1143
1149
|
anchor: X.settings,
|
|
1144
|
-
settings:
|
|
1150
|
+
settings: h.settings,
|
|
1145
1151
|
renderOrder: c,
|
|
1146
1152
|
insideScreenSpaceUI: o,
|
|
1147
1153
|
objectRef: (s) => a(A, s),
|
|
@@ -1150,16 +1156,16 @@ const It = ({ settings: e, transform: n }) => {
|
|
|
1150
1156
|
) }) }) : /* @__PURE__ */ i(D, { layer: l, children: /* @__PURE__ */ i("group", { children: /* @__PURE__ */ i(
|
|
1151
1157
|
Qt,
|
|
1152
1158
|
{
|
|
1153
|
-
settings:
|
|
1159
|
+
settings: h.settings,
|
|
1154
1160
|
renderOrder: c,
|
|
1155
1161
|
insideScreenSpaceUI: o,
|
|
1156
1162
|
objectRef: (s) => a(A, s),
|
|
1157
1163
|
children: C
|
|
1158
1164
|
}
|
|
1159
|
-
) }) }) : e ? /* @__PURE__ */
|
|
1165
|
+
) }) }) : e ? /* @__PURE__ */ b(ee, { children: [
|
|
1160
1166
|
C,
|
|
1161
1167
|
t(
|
|
1162
|
-
`Object "${
|
|
1168
|
+
`Object "${f.name}" has unsupported components: ${I.map((s) => s.type).join(", ")}`
|
|
1163
1169
|
)
|
|
1164
1170
|
] }) : C.length ? /* @__PURE__ */ i(ee, { children: C }) : null;
|
|
1165
1171
|
}, Ht = ({ layers: e }) => {
|