@tomorrowevening/hermes 0.0.16 → 0.0.17
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/hermes.js +187 -188
- package/dist/hermes.umd.cjs +11 -11
- package/package.json +1 -1
- package/src/core/remote/RemoteTheatre.ts +3 -3
package/dist/hermes.js
CHANGED
@@ -195,13 +195,13 @@ class Ut extends Ct {
|
|
195
195
|
u = f.object(e, r), this.sheetObjects.set(l, u), this.sheetObjectCBs.set(l, s !== void 0 ? s : vn);
|
196
196
|
const p = u.onValuesChange((v) => {
|
197
197
|
if (this.app.editor) {
|
198
|
-
for (const
|
199
|
-
const
|
200
|
-
typeof
|
201
|
-
r:
|
202
|
-
g:
|
203
|
-
b:
|
204
|
-
a:
|
198
|
+
for (const x in v) {
|
199
|
+
const C = v[x];
|
200
|
+
typeof C == "object" && na(C) && (v[x] = {
|
201
|
+
r: C.r,
|
202
|
+
g: C.g,
|
203
|
+
b: C.b,
|
204
|
+
a: C.a
|
205
205
|
});
|
206
206
|
}
|
207
207
|
this.app.send({
|
@@ -212,10 +212,9 @@ class Ut extends Ct {
|
|
212
212
|
values: v
|
213
213
|
}
|
214
214
|
});
|
215
|
-
} else {
|
216
|
-
const E = this.sheetObjectCBs.get(l);
|
217
|
-
E !== void 0 && E(v);
|
218
215
|
}
|
216
|
+
const E = this.sheetObjectCBs.get(l);
|
217
|
+
E !== void 0 && E(v);
|
219
218
|
});
|
220
219
|
return this.sheetObjectUnsubscribe.set(l, p), u;
|
221
220
|
}
|
@@ -715,14 +714,14 @@ function va() {
|
|
715
714
|
Xt = 1;
|
716
715
|
var t = hn, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), e = Object.prototype.hasOwnProperty, r = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
717
716
|
function f(l, u, p) {
|
718
|
-
var v, E = {},
|
719
|
-
p !== void 0 && (
|
717
|
+
var v, E = {}, x = null, C = null;
|
718
|
+
p !== void 0 && (x = "" + p), u.key !== void 0 && (x = "" + u.key), u.ref !== void 0 && (C = u.ref);
|
720
719
|
for (v in u)
|
721
720
|
e.call(u, v) && !s.hasOwnProperty(v) && (E[v] = u[v]);
|
722
721
|
if (l && l.defaultProps)
|
723
722
|
for (v in u = l.defaultProps, u)
|
724
723
|
E[v] === void 0 && (E[v] = u[v]);
|
725
|
-
return { $$typeof: n, type: l, key:
|
724
|
+
return { $$typeof: n, type: l, key: x, ref: C, props: E, _owner: r.current };
|
726
725
|
}
|
727
726
|
return nt.Fragment = a, nt.jsx = f, nt.jsxs = f, nt;
|
728
727
|
}
|
@@ -739,24 +738,24 @@ var at = {};
|
|
739
738
|
var qt;
|
740
739
|
function ba() {
|
741
740
|
return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
|
742
|
-
var t = hn, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), e = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"),
|
741
|
+
var t = hn, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), e = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), M = Symbol.iterator, G = "@@iterator";
|
743
742
|
function se(i) {
|
744
743
|
if (i === null || typeof i != "object")
|
745
744
|
return null;
|
746
|
-
var h =
|
745
|
+
var h = M && i[M] || i[G];
|
747
746
|
return typeof h == "function" ? h : null;
|
748
747
|
}
|
749
748
|
var H = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
750
|
-
function
|
749
|
+
function S(i) {
|
751
750
|
{
|
752
|
-
for (var h = arguments.length, g = new Array(h > 1 ? h - 1 : 0),
|
753
|
-
g[
|
751
|
+
for (var h = arguments.length, g = new Array(h > 1 ? h - 1 : 0), w = 1; w < h; w++)
|
752
|
+
g[w - 1] = arguments[w];
|
754
753
|
K("error", i, g);
|
755
754
|
}
|
756
755
|
}
|
757
756
|
function K(i, h, g) {
|
758
757
|
{
|
759
|
-
var
|
758
|
+
var w = H.ReactDebugCurrentFrame, k = w.getStackAddendum();
|
760
759
|
k !== "" && (h += "%s", g = g.concat([k]));
|
761
760
|
var L = g.map(function(P) {
|
762
761
|
return String(P);
|
@@ -766,17 +765,17 @@ function ba() {
|
|
766
765
|
}
|
767
766
|
var fe = !1, le = !1, ee = !1, d = !1, m = !1, b;
|
768
767
|
b = Symbol.for("react.module.reference");
|
769
|
-
function
|
770
|
-
return !!(typeof i == "string" || typeof i == "function" || i === e || i === s || m || i === r || i === p || i === v || d || i ===
|
768
|
+
function O(i) {
|
769
|
+
return !!(typeof i == "string" || typeof i == "function" || i === e || i === s || m || i === r || i === p || i === v || d || i === C || fe || le || ee || typeof i == "object" && i !== null && (i.$$typeof === x || i.$$typeof === E || i.$$typeof === f || i.$$typeof === l || i.$$typeof === u || // This needs to include all possible module reference object
|
771
770
|
// types supported by any Flight configuration anywhere since
|
772
771
|
// we don't know which Flight build this will end up being used
|
773
772
|
// with.
|
774
773
|
i.$$typeof === b || i.getModuleId !== void 0));
|
775
774
|
}
|
776
775
|
function B(i, h, g) {
|
777
|
-
var
|
778
|
-
if (
|
779
|
-
return
|
776
|
+
var w = i.displayName;
|
777
|
+
if (w)
|
778
|
+
return w;
|
780
779
|
var k = h.displayName || h.name || "";
|
781
780
|
return k !== "" ? g + "(" + k + ")" : g;
|
782
781
|
}
|
@@ -786,7 +785,7 @@ function ba() {
|
|
786
785
|
function F(i) {
|
787
786
|
if (i == null)
|
788
787
|
return null;
|
789
|
-
if (typeof i.tag == "number" &&
|
788
|
+
if (typeof i.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
|
790
789
|
return i.displayName || i.name || null;
|
791
790
|
if (typeof i == "string")
|
792
791
|
return i;
|
@@ -815,9 +814,9 @@ function ba() {
|
|
815
814
|
case u:
|
816
815
|
return B(i, i.render, "ForwardRef");
|
817
816
|
case E:
|
818
|
-
var
|
819
|
-
return
|
820
|
-
case
|
817
|
+
var w = i.displayName || null;
|
818
|
+
return w !== null ? w : F(i.type) || "Memo";
|
819
|
+
case x: {
|
821
820
|
var k = i, L = k._payload, P = k._init;
|
822
821
|
try {
|
823
822
|
return F(P(L));
|
@@ -828,14 +827,14 @@ function ba() {
|
|
828
827
|
}
|
829
828
|
return null;
|
830
829
|
}
|
831
|
-
var D = Object.assign, U = 0, J,
|
830
|
+
var D = Object.assign, U = 0, J, R, I, X, me, Re, Xe;
|
832
831
|
function ct() {
|
833
832
|
}
|
834
833
|
ct.__reactDisabledLog = !0;
|
835
834
|
function Ot() {
|
836
835
|
{
|
837
836
|
if (U === 0) {
|
838
|
-
J = console.log,
|
837
|
+
J = console.log, R = console.info, I = console.warn, X = console.error, me = console.group, Re = console.groupCollapsed, Xe = console.groupEnd;
|
839
838
|
var i = {
|
840
839
|
configurable: !0,
|
841
840
|
enumerable: !0,
|
@@ -868,7 +867,7 @@ function ba() {
|
|
868
867
|
value: J
|
869
868
|
}),
|
870
869
|
info: D({}, i, {
|
871
|
-
value:
|
870
|
+
value: R
|
872
871
|
}),
|
873
872
|
warn: D({}, i, {
|
874
873
|
value: I
|
@@ -887,7 +886,7 @@ function ba() {
|
|
887
886
|
})
|
888
887
|
});
|
889
888
|
}
|
890
|
-
U < 0 &&
|
889
|
+
U < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
891
890
|
}
|
892
891
|
}
|
893
892
|
var qe = H.ReactCurrentDispatcher, Ze;
|
@@ -897,8 +896,8 @@ function ba() {
|
|
897
896
|
try {
|
898
897
|
throw Error();
|
899
898
|
} catch (k) {
|
900
|
-
var
|
901
|
-
Ze =
|
899
|
+
var w = k.stack.trim().match(/\n( *(at )?)/);
|
900
|
+
Ze = w && w[1] || "";
|
902
901
|
}
|
903
902
|
return `
|
904
903
|
` + Ze + i;
|
@@ -917,7 +916,7 @@ function ba() {
|
|
917
916
|
if (g !== void 0)
|
918
917
|
return g;
|
919
918
|
}
|
920
|
-
var
|
919
|
+
var w;
|
921
920
|
$e = !0;
|
922
921
|
var k = Error.prepareStackTrace;
|
923
922
|
Error.prepareStackTrace = void 0;
|
@@ -936,14 +935,14 @@ function ba() {
|
|
936
935
|
try {
|
937
936
|
Reflect.construct(P, []);
|
938
937
|
} catch (Ee) {
|
939
|
-
|
938
|
+
w = Ee;
|
940
939
|
}
|
941
940
|
Reflect.construct(i, [], P);
|
942
941
|
} else {
|
943
942
|
try {
|
944
943
|
P.call();
|
945
944
|
} catch (Ee) {
|
946
|
-
|
945
|
+
w = Ee;
|
947
946
|
}
|
948
947
|
i.call(P.prototype);
|
949
948
|
}
|
@@ -951,23 +950,23 @@ function ba() {
|
|
951
950
|
try {
|
952
951
|
throw Error();
|
953
952
|
} catch (Ee) {
|
954
|
-
|
953
|
+
w = Ee;
|
955
954
|
}
|
956
955
|
i();
|
957
956
|
}
|
958
957
|
} catch (Ee) {
|
959
|
-
if (Ee &&
|
960
|
-
for (var
|
961
|
-
`), ce =
|
962
|
-
`), W =
|
958
|
+
if (Ee && w && typeof Ee.stack == "string") {
|
959
|
+
for (var T = Ee.stack.split(`
|
960
|
+
`), ce = w.stack.split(`
|
961
|
+
`), W = T.length - 1, q = ce.length - 1; W >= 1 && q >= 0 && T[W] !== ce[q]; )
|
963
962
|
q--;
|
964
963
|
for (; W >= 1 && q >= 0; W--, q--)
|
965
|
-
if (
|
964
|
+
if (T[W] !== ce[q]) {
|
966
965
|
if (W !== 1 || q !== 1)
|
967
966
|
do
|
968
|
-
if (W--, q--, q < 0 ||
|
967
|
+
if (W--, q--, q < 0 || T[W] !== ce[q]) {
|
969
968
|
var ge = `
|
970
|
-
` +
|
969
|
+
` + T[W].replace(" at new ", " at ");
|
971
970
|
return i.displayName && ge.includes("<anonymous>") && (ge = ge.replace("<anonymous>", i.displayName)), typeof i == "function" && _e.set(i, ge), ge;
|
972
971
|
}
|
973
972
|
while (W >= 1 && q >= 0);
|
@@ -1006,8 +1005,8 @@ function ba() {
|
|
1006
1005
|
return ut(i.render);
|
1007
1006
|
case E:
|
1008
1007
|
return je(i.type, h, g);
|
1009
|
-
case
|
1010
|
-
var
|
1008
|
+
case x: {
|
1009
|
+
var w = i, k = w._payload, L = w._init;
|
1011
1010
|
try {
|
1012
1011
|
return je(L(k), h, g);
|
1013
1012
|
} catch {
|
@@ -1024,22 +1023,22 @@ function ba() {
|
|
1024
1023
|
} else
|
1025
1024
|
Je.setExtraStackFrame(null);
|
1026
1025
|
}
|
1027
|
-
function ke(i, h, g,
|
1026
|
+
function ke(i, h, g, w, k) {
|
1028
1027
|
{
|
1029
1028
|
var L = Function.call.bind(Ge);
|
1030
1029
|
for (var P in i)
|
1031
1030
|
if (L(i, P)) {
|
1032
|
-
var
|
1031
|
+
var T = void 0;
|
1033
1032
|
try {
|
1034
1033
|
if (typeof i[P] != "function") {
|
1035
|
-
var ce = Error((
|
1034
|
+
var ce = Error((w || "React class") + ": " + g + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
1036
1035
|
throw ce.name = "Invariant Violation", ce;
|
1037
1036
|
}
|
1038
|
-
|
1037
|
+
T = i[P](h, P, w, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
1039
1038
|
} catch (W) {
|
1040
|
-
|
1039
|
+
T = W;
|
1041
1040
|
}
|
1042
|
-
|
1041
|
+
T && !(T instanceof Error) && (Se(k), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", g, P, typeof T), Se(null)), T instanceof Error && !(T.message in ft) && (ft[T.message] = !0, Se(k), S("Failed %s type: %s", g, T.message), Se(null));
|
1043
1042
|
}
|
1044
1043
|
}
|
1045
1044
|
}
|
@@ -1065,7 +1064,7 @@ function ba() {
|
|
1065
1064
|
}
|
1066
1065
|
function mt(i) {
|
1067
1066
|
if (et(i))
|
1068
|
-
return
|
1067
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ht(i)), pt(i);
|
1069
1068
|
}
|
1070
1069
|
var Oe = H.ReactCurrentOwner, Pt = {
|
1071
1070
|
key: !0,
|
@@ -1093,13 +1092,13 @@ function ba() {
|
|
1093
1092
|
function A(i, h) {
|
1094
1093
|
if (typeof i.ref == "string" && Oe.current && h && Oe.current.stateNode !== h) {
|
1095
1094
|
var g = F(Oe.current.type);
|
1096
|
-
ve[g] || (
|
1095
|
+
ve[g] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Oe.current.type), i.ref), ve[g] = !0);
|
1097
1096
|
}
|
1098
1097
|
}
|
1099
1098
|
function N(i, h) {
|
1100
1099
|
{
|
1101
1100
|
var g = function() {
|
1102
|
-
gt || (gt = !0,
|
1101
|
+
gt || (gt = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
1103
1102
|
};
|
1104
1103
|
g.isReactWarning = !0, Object.defineProperty(i, "key", {
|
1105
1104
|
get: g,
|
@@ -1110,7 +1109,7 @@ function ba() {
|
|
1110
1109
|
function te(i, h) {
|
1111
1110
|
{
|
1112
1111
|
var g = function() {
|
1113
|
-
tt || (tt = !0,
|
1112
|
+
tt || (tt = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
1114
1113
|
};
|
1115
1114
|
g.isReactWarning = !0, Object.defineProperty(i, "ref", {
|
1116
1115
|
get: g,
|
@@ -1118,8 +1117,8 @@ function ba() {
|
|
1118
1117
|
});
|
1119
1118
|
}
|
1120
1119
|
}
|
1121
|
-
var be = function(i, h, g,
|
1122
|
-
var
|
1120
|
+
var be = function(i, h, g, w, k, L, P) {
|
1121
|
+
var T = {
|
1123
1122
|
// This tag allows us to uniquely identify this as a React Element
|
1124
1123
|
$$typeof: n,
|
1125
1124
|
// Built-in properties that belong on the element
|
@@ -1130,27 +1129,27 @@ function ba() {
|
|
1130
1129
|
// Record the component responsible for creating this element.
|
1131
1130
|
_owner: L
|
1132
1131
|
};
|
1133
|
-
return
|
1132
|
+
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
1134
1133
|
configurable: !1,
|
1135
1134
|
enumerable: !1,
|
1136
1135
|
writable: !0,
|
1137
1136
|
value: !1
|
1138
|
-
}), Object.defineProperty(
|
1137
|
+
}), Object.defineProperty(T, "_self", {
|
1139
1138
|
configurable: !1,
|
1140
1139
|
enumerable: !1,
|
1141
1140
|
writable: !1,
|
1142
|
-
value:
|
1143
|
-
}), Object.defineProperty(
|
1141
|
+
value: w
|
1142
|
+
}), Object.defineProperty(T, "_source", {
|
1144
1143
|
configurable: !1,
|
1145
1144
|
enumerable: !1,
|
1146
1145
|
writable: !1,
|
1147
1146
|
value: k
|
1148
|
-
}), Object.freeze && (Object.freeze(
|
1147
|
+
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
1149
1148
|
};
|
1150
|
-
function ue(i, h, g,
|
1149
|
+
function ue(i, h, g, w, k) {
|
1151
1150
|
{
|
1152
|
-
var L, P = {},
|
1153
|
-
g !== void 0 && (mt(g),
|
1151
|
+
var L, P = {}, T = null, ce = null;
|
1152
|
+
g !== void 0 && (mt(g), T = "" + g), y(h) && (mt(h.key), T = "" + h.key), o(h) && (ce = h.ref, A(h, k));
|
1154
1153
|
for (L in h)
|
1155
1154
|
Ge.call(h, L) && !Pt.hasOwnProperty(L) && (P[L] = h[L]);
|
1156
1155
|
if (i && i.defaultProps) {
|
@@ -1158,11 +1157,11 @@ function ba() {
|
|
1158
1157
|
for (L in W)
|
1159
1158
|
P[L] === void 0 && (P[L] = W[L]);
|
1160
1159
|
}
|
1161
|
-
if (
|
1160
|
+
if (T || ce) {
|
1162
1161
|
var q = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
|
1163
|
-
|
1162
|
+
T && N(P, q), ce && te(P, q);
|
1164
1163
|
}
|
1165
|
-
return be(i,
|
1164
|
+
return be(i, T, ce, k, w, Oe.current, P);
|
1166
1165
|
}
|
1167
1166
|
}
|
1168
1167
|
var vt = H.ReactCurrentOwner, bt = H.ReactDebugCurrentFrame;
|
@@ -1223,8 +1222,8 @@ Check the top-level render call using <` + g + ">.");
|
|
1223
1222
|
if (Te[g])
|
1224
1223
|
return;
|
1225
1224
|
Te[g] = !0;
|
1226
|
-
var
|
1227
|
-
i && i._owner && i._owner !== vt.current && (
|
1225
|
+
var w = "";
|
1226
|
+
i && i._owner && i._owner !== vt.current && (w = " It was passed a child from " + F(i._owner.type) + "."), ye(i), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, w), ye(null);
|
1228
1227
|
}
|
1229
1228
|
}
|
1230
1229
|
function Gt(i, h) {
|
@@ -1233,8 +1232,8 @@ Check the top-level render call using <` + g + ">.");
|
|
1233
1232
|
return;
|
1234
1233
|
if (Qe(i))
|
1235
1234
|
for (var g = 0; g < i.length; g++) {
|
1236
|
-
var
|
1237
|
-
pe(
|
1235
|
+
var w = i[g];
|
1236
|
+
pe(w) && $t(w, h);
|
1238
1237
|
}
|
1239
1238
|
else if (pe(i))
|
1240
1239
|
i._store && (i._store.validated = !0);
|
@@ -1261,38 +1260,38 @@ Check the top-level render call using <` + g + ">.");
|
|
1261
1260
|
else
|
1262
1261
|
return;
|
1263
1262
|
if (g) {
|
1264
|
-
var
|
1265
|
-
ke(g, i.props, "prop",
|
1263
|
+
var w = F(h);
|
1264
|
+
ke(g, i.props, "prop", w, i);
|
1266
1265
|
} else if (h.PropTypes !== void 0 && !he) {
|
1267
1266
|
he = !0;
|
1268
1267
|
var k = F(h);
|
1269
|
-
|
1268
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
|
1270
1269
|
}
|
1271
|
-
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved &&
|
1270
|
+
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
1272
1271
|
}
|
1273
1272
|
}
|
1274
1273
|
function On(i) {
|
1275
1274
|
{
|
1276
1275
|
for (var h = Object.keys(i.props), g = 0; g < h.length; g++) {
|
1277
|
-
var
|
1278
|
-
if (
|
1279
|
-
ye(i),
|
1276
|
+
var w = h[g];
|
1277
|
+
if (w !== "children" && w !== "key") {
|
1278
|
+
ye(i), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), ye(null);
|
1280
1279
|
break;
|
1281
1280
|
}
|
1282
1281
|
}
|
1283
|
-
i.ref !== null && (ye(i),
|
1282
|
+
i.ref !== null && (ye(i), S("Invalid attribute `ref` supplied to `React.Fragment`."), ye(null));
|
1284
1283
|
}
|
1285
1284
|
}
|
1286
|
-
function Vt(i, h, g,
|
1285
|
+
function Vt(i, h, g, w, k, L) {
|
1287
1286
|
{
|
1288
|
-
var P =
|
1287
|
+
var P = O(i);
|
1289
1288
|
if (!P) {
|
1290
|
-
var
|
1291
|
-
(i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (
|
1289
|
+
var T = "";
|
1290
|
+
(i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
1292
1291
|
var ce = Ae(k);
|
1293
|
-
ce ?
|
1292
|
+
ce ? T += ce : T += Ve();
|
1294
1293
|
var W;
|
1295
|
-
i === null ? W = "null" : Qe(i) ? W = "array" : i !== void 0 && i.$$typeof === n ? (W = "<" + (F(i.type) || "Unknown") + " />",
|
1294
|
+
i === null ? W = "null" : Qe(i) ? W = "array" : i !== void 0 && i.$$typeof === n ? (W = "<" + (F(i.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : W = typeof i, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, T);
|
1296
1295
|
}
|
1297
1296
|
var q = ue(i, h, g, k, L);
|
1298
1297
|
if (q == null)
|
@@ -1300,13 +1299,13 @@ Check the top-level render call using <` + g + ">.");
|
|
1300
1299
|
if (P) {
|
1301
1300
|
var ge = h.children;
|
1302
1301
|
if (ge !== void 0)
|
1303
|
-
if (
|
1302
|
+
if (w)
|
1304
1303
|
if (Qe(ge)) {
|
1305
1304
|
for (var Ye = 0; Ye < ge.length; Ye++)
|
1306
1305
|
Gt(ge[Ye], i);
|
1307
1306
|
Object.freeze && Object.freeze(ge);
|
1308
1307
|
} else
|
1309
|
-
|
1308
|
+
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
1310
1309
|
else
|
1311
1310
|
Gt(ge, i);
|
1312
1311
|
}
|
@@ -1943,9 +1942,9 @@ function Zt(t, n, a) {
|
|
1943
1942
|
type: `${typeof f[u]}`,
|
1944
1943
|
value: f[u],
|
1945
1944
|
onChange: (p, v) => {
|
1946
|
-
var
|
1945
|
+
var x;
|
1947
1946
|
a.updateObject(n.uuid, `material.${r}`, v);
|
1948
|
-
const E = (
|
1947
|
+
const E = (x = a.scene) == null ? void 0 : x.getObjectByProperty("uuid", n.uuid);
|
1949
1948
|
E !== void 0 && Q(E, `material.${r}`, v);
|
1950
1949
|
}
|
1951
1950
|
});
|
@@ -1965,12 +1964,12 @@ function Zt(t, n, a) {
|
|
1965
1964
|
title: De(r),
|
1966
1965
|
type: "image",
|
1967
1966
|
value: p,
|
1968
|
-
onChange: (E,
|
1969
|
-
var
|
1970
|
-
a.createTexture(n.uuid, `material.${r}`,
|
1971
|
-
const
|
1972
|
-
|
1973
|
-
Q(
|
1967
|
+
onChange: (E, x) => {
|
1968
|
+
var M;
|
1969
|
+
a.createTexture(n.uuid, `material.${r}`, x);
|
1970
|
+
const C = (M = a.scene) == null ? void 0 : M.getObjectByProperty("uuid", n.uuid);
|
1971
|
+
C !== void 0 && Nt(x).then((G) => {
|
1972
|
+
Q(C, `material.${r}`, G), Q(C, "material.needsUpdate", !0);
|
1974
1973
|
});
|
1975
1974
|
}
|
1976
1975
|
}) : l.push({
|
@@ -1978,11 +1977,11 @@ function Zt(t, n, a) {
|
|
1978
1977
|
prop: `material.${r}.${u}`,
|
1979
1978
|
type: `${typeof t[r][u]}`,
|
1980
1979
|
value: f[u],
|
1981
|
-
onChange: (E,
|
1982
|
-
var
|
1983
|
-
a.updateObject(n.uuid, `material.${r}.${u}`,
|
1984
|
-
const
|
1985
|
-
|
1980
|
+
onChange: (E, x) => {
|
1981
|
+
var M;
|
1982
|
+
a.updateObject(n.uuid, `material.${r}.${u}`, x);
|
1983
|
+
const C = (M = a.scene) == null ? void 0 : M.getObjectByProperty("uuid", n.uuid);
|
1984
|
+
C !== void 0 && Q(C, `material.${r}.${u}`, x);
|
1986
1985
|
}
|
1987
1986
|
});
|
1988
1987
|
break;
|
@@ -1991,23 +1990,23 @@ function Zt(t, n, a) {
|
|
1991
1990
|
title: De(u),
|
1992
1991
|
type: "image",
|
1993
1992
|
value: p.value.src,
|
1994
|
-
onChange: (E,
|
1995
|
-
var
|
1996
|
-
a.createTexture(n.uuid, `material.${r}.${u}.value`,
|
1997
|
-
const
|
1998
|
-
|
1999
|
-
Q(
|
1993
|
+
onChange: (E, x) => {
|
1994
|
+
var M;
|
1995
|
+
a.createTexture(n.uuid, `material.${r}.${u}.value`, x);
|
1996
|
+
const C = (M = a.scene) == null ? void 0 : M.getObjectByProperty("uuid", n.uuid);
|
1997
|
+
C !== void 0 && Nt(x).then((G) => {
|
1998
|
+
Q(C, `material.${r}.${u}.value`, G);
|
2000
1999
|
});
|
2001
2000
|
}
|
2002
2001
|
}) : l.push({
|
2003
2002
|
title: u,
|
2004
2003
|
type: `${typeof p.value}`,
|
2005
2004
|
value: p.value,
|
2006
|
-
onChange: (E,
|
2007
|
-
var
|
2008
|
-
a.updateObject(n.uuid, `material.${r}.${u}.value`,
|
2009
|
-
const
|
2010
|
-
|
2005
|
+
onChange: (E, x) => {
|
2006
|
+
var M;
|
2007
|
+
a.updateObject(n.uuid, `material.${r}.${u}.value`, x);
|
2008
|
+
const C = (M = a.scene) == null ? void 0 : M.getObjectByProperty("uuid", n.uuid);
|
2009
|
+
C !== void 0 && Q(C, `material.${r}.${u}.value`, x);
|
2011
2010
|
}
|
2012
2011
|
});
|
2013
2012
|
break;
|
@@ -2060,22 +2059,22 @@ function it(t) {
|
|
2060
2059
|
const [a, e] = oe(n), r = Ce(null), s = Ce(null), f = Ce(null);
|
2061
2060
|
Fe(() => {
|
2062
2061
|
var K;
|
2063
|
-
let v = !1, E = -1,
|
2064
|
-
const
|
2065
|
-
v = !0,
|
2062
|
+
let v = !1, E = -1, x = 0, C = Number(a);
|
2063
|
+
const M = (fe) => {
|
2064
|
+
v = !0, x = C, E = fe.clientX;
|
2066
2065
|
}, G = (fe) => {
|
2067
2066
|
if (!v)
|
2068
2067
|
return;
|
2069
2068
|
const le = t.step !== void 0 ? t.step : 1, ee = (fe.clientX - E) * le;
|
2070
|
-
|
2069
|
+
C = Number((x + ee).toFixed(4)), s.current !== null && (s.current.value = C.toString()), t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, C);
|
2071
2070
|
}, se = () => {
|
2072
2071
|
v = !1;
|
2073
2072
|
}, H = () => {
|
2074
2073
|
v = !1;
|
2075
|
-
},
|
2076
|
-
return
|
2074
|
+
}, S = t.type === "number";
|
2075
|
+
return S && ((K = r.current) == null || K.addEventListener("mousedown", M, !1), document.addEventListener("mouseup", se, !1), document.addEventListener("mousemove", G, !1), document.addEventListener("contextmenu", H, !1)), () => {
|
2077
2076
|
var fe;
|
2078
|
-
|
2077
|
+
S && ((fe = r.current) == null || fe.removeEventListener("mousedown", M), document.removeEventListener("mouseup", se), document.removeEventListener("mousemove", G), document.removeEventListener("contextmenu", H));
|
2079
2078
|
};
|
2080
2079
|
}, [a]);
|
2081
2080
|
const l = t.type === "string" && (a.length > 100 || a.search(`
|
@@ -2579,15 +2578,15 @@ function hi(t) {
|
|
2579
2578
|
e(u.uuid, u.key, p), e(u.uuid, "material.needsUpdate", !0);
|
2580
2579
|
});
|
2581
2580
|
}, f = (l) => {
|
2582
|
-
var
|
2581
|
+
var x;
|
2583
2582
|
if (!n())
|
2584
2583
|
return;
|
2585
|
-
const { key: u, uuid: p, value: v } = l.value, E = (
|
2584
|
+
const { key: u, uuid: p, value: v } = l.value, E = (x = t.three.scene) == null ? void 0 : x.getObjectByProperty("uuid", p);
|
2586
2585
|
if (E !== void 0)
|
2587
2586
|
try {
|
2588
2587
|
E[u](v);
|
2589
|
-
} catch (
|
2590
|
-
console.log("Error requesting method:"), console.log(
|
2588
|
+
} catch (C) {
|
2589
|
+
console.log("Error requesting method:"), console.log(C), console.log(u), console.log(v);
|
2591
2590
|
}
|
2592
2591
|
};
|
2593
2592
|
return Fe(() => (_.addEventListener(j.GET_OBJECT, a), _.addEventListener(j.UPDATE_OBJECT, r), _.addEventListener(j.CREATE_TEXTURE, s), _.addEventListener(j.REQUEST_METHOD, f), () => {
|
@@ -2654,13 +2653,13 @@ class Ka extends sn {
|
|
2654
2653
|
let s = r.NONE;
|
2655
2654
|
const f = 1e-6, l = new Ht(), u = new Ht();
|
2656
2655
|
let p = 1;
|
2657
|
-
const v = new Y(), E = new de(),
|
2656
|
+
const v = new Y(), E = new de(), x = new de(), C = new de(), M = new de(), G = new de(), se = new de(), H = new de(), S = new de(), K = new de(), fe = new Y(), le = new de();
|
2658
2657
|
let ee = !1;
|
2659
2658
|
const d = [], m = {};
|
2660
2659
|
function b(o) {
|
2661
2660
|
return o !== null ? 2 * Math.PI / 60 * e.autoRotateSpeed * o : 2 * Math.PI / 60 / 60 * e.autoRotateSpeed;
|
2662
2661
|
}
|
2663
|
-
function
|
2662
|
+
function O(o) {
|
2664
2663
|
const y = Math.abs(o) / (100 * (window.devicePixelRatio | 0));
|
2665
2664
|
return Math.pow(0.95, e.zoomSpeed * y);
|
2666
2665
|
}
|
@@ -2696,7 +2695,7 @@ class Ka extends sn {
|
|
2696
2695
|
function J(o) {
|
2697
2696
|
e.object.isPerspectiveCamera || e.object.isOrthographicCamera ? p /= o : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
|
2698
2697
|
}
|
2699
|
-
function
|
2698
|
+
function R(o) {
|
2700
2699
|
e.object.isPerspectiveCamera || e.object.isOrthographicCamera ? p *= o : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
|
2701
2700
|
}
|
2702
2701
|
function I(o, y) {
|
@@ -2716,21 +2715,21 @@ class Ka extends sn {
|
|
2716
2715
|
I(o.clientX, o.clientX), H.set(o.clientX, o.clientY);
|
2717
2716
|
}
|
2718
2717
|
function Xe(o) {
|
2719
|
-
|
2718
|
+
M.set(o.clientX, o.clientY);
|
2720
2719
|
}
|
2721
2720
|
function ct(o) {
|
2722
|
-
|
2721
|
+
x.set(o.clientX, o.clientY), C.subVectors(x, E).multiplyScalar(e.rotateSpeed);
|
2723
2722
|
const y = e.domElement;
|
2724
|
-
B(2 * Math.PI *
|
2723
|
+
B(2 * Math.PI * C.x / y.clientHeight), $(2 * Math.PI * C.y / y.clientHeight), E.copy(x), e.update();
|
2725
2724
|
}
|
2726
2725
|
function Ot(o) {
|
2727
|
-
|
2726
|
+
S.set(o.clientX, o.clientY), K.subVectors(S, H), K.y > 0 ? J(O(K.y)) : K.y < 0 && R(O(K.y)), H.copy(S), e.update();
|
2728
2727
|
}
|
2729
2728
|
function Tt(o) {
|
2730
|
-
G.set(o.clientX, o.clientY), se.subVectors(G,
|
2729
|
+
G.set(o.clientX, o.clientY), se.subVectors(G, M).multiplyScalar(e.panSpeed), U(se.x, se.y), M.copy(G), e.update();
|
2731
2730
|
}
|
2732
2731
|
function qe(o) {
|
2733
|
-
I(o.clientX, o.clientY), o.deltaY < 0 ?
|
2732
|
+
I(o.clientX, o.clientY), o.deltaY < 0 ? R(O(o.deltaY)) : o.deltaY > 0 && J(O(o.deltaY)), e.update();
|
2734
2733
|
}
|
2735
2734
|
function Ze(o) {
|
2736
2735
|
let y = !1;
|
@@ -2760,10 +2759,10 @@ class Ka extends sn {
|
|
2760
2759
|
}
|
2761
2760
|
function $e(o) {
|
2762
2761
|
if (d.length === 1)
|
2763
|
-
|
2762
|
+
M.set(o.pageX, o.pageY);
|
2764
2763
|
else {
|
2765
2764
|
const y = ve(o), A = 0.5 * (o.pageX + y.x), N = 0.5 * (o.pageY + y.y);
|
2766
|
-
|
2765
|
+
M.set(A, N);
|
2767
2766
|
}
|
2768
2767
|
}
|
2769
2768
|
function _e(o) {
|
@@ -2778,14 +2777,14 @@ class Ka extends sn {
|
|
2778
2777
|
}
|
2779
2778
|
function ut(o) {
|
2780
2779
|
if (d.length == 1)
|
2781
|
-
|
2780
|
+
x.set(o.pageX, o.pageY);
|
2782
2781
|
else {
|
2783
2782
|
const A = ve(o), N = 0.5 * (o.pageX + A.x), te = 0.5 * (o.pageY + A.y);
|
2784
|
-
|
2783
|
+
x.set(N, te);
|
2785
2784
|
}
|
2786
|
-
|
2785
|
+
C.subVectors(x, E).multiplyScalar(e.rotateSpeed);
|
2787
2786
|
const y = e.domElement;
|
2788
|
-
B(2 * Math.PI *
|
2787
|
+
B(2 * Math.PI * C.x / y.clientHeight), $(2 * Math.PI * C.y / y.clientHeight), E.copy(x);
|
2789
2788
|
}
|
2790
2789
|
function dt(o) {
|
2791
2790
|
if (d.length === 1)
|
@@ -2794,11 +2793,11 @@ class Ka extends sn {
|
|
2794
2793
|
const y = ve(o), A = 0.5 * (o.pageX + y.x), N = 0.5 * (o.pageY + y.y);
|
2795
2794
|
G.set(A, N);
|
2796
2795
|
}
|
2797
|
-
se.subVectors(G,
|
2796
|
+
se.subVectors(G, M).multiplyScalar(e.panSpeed), U(se.x, se.y), M.copy(G);
|
2798
2797
|
}
|
2799
2798
|
function je(o) {
|
2800
2799
|
const y = ve(o), A = o.pageX - y.x, N = o.pageY - y.y, te = Math.sqrt(A * A + N * N);
|
2801
|
-
|
2800
|
+
S.set(0, te), K.set(0, Math.pow(S.y / H.y, e.zoomSpeed)), J(K.y), H.copy(S);
|
2802
2801
|
const be = (o.pageX + y.x) * 0.5, ue = (o.pageY + y.y) * 0.5;
|
2803
2802
|
I(be, ue);
|
2804
2803
|
}
|
@@ -3062,11 +3061,11 @@ st.add(ot);
|
|
3062
3061
|
ot.visible = !1;
|
3063
3062
|
let wt = !1, V = ne.get("Debug"), re = ne.get("Orthographic"), Ne = ne.get("Front"), Le = ne.get("Top"), on = !1;
|
3064
3063
|
function pi(t) {
|
3065
|
-
const [n, a] = oe(t.mode !== void 0 ? t.mode : "Single"), [e, r] = oe(null), [s, f] = oe(!1), [l, u] = oe(!1), [p, v] = oe(!1), [, E] = oe(Date.now()),
|
3064
|
+
const [n, a] = oe(t.mode !== void 0 ? t.mode : "Single"), [e, r] = oe(null), [s, f] = oe(!1), [l, u] = oe(!1), [p, v] = oe(!1), [, E] = oe(Date.now()), x = Ce(null), C = Ce(null), M = Ce(null), G = Ce(null), se = Ce(null), H = Ce(null), S = (d, m) => {
|
3066
3065
|
const b = ie.get(d.name);
|
3067
3066
|
b !== void 0 && b.dispose(), ie.delete(d.name);
|
3068
|
-
const
|
3069
|
-
|
3067
|
+
const O = we.get(d.name);
|
3068
|
+
O !== void 0 && (z.remove(O), O.dispose()), we.delete(d.name);
|
3070
3069
|
const B = new Ka(d, m);
|
3071
3070
|
switch (B.enableDamping = !0, B.dampingFactor = 0.05, d.name) {
|
3072
3071
|
case "Top":
|
@@ -3096,37 +3095,37 @@ function pi(t) {
|
|
3096
3095
|
}, le = () => {
|
3097
3096
|
switch (n) {
|
3098
3097
|
case "Single":
|
3099
|
-
|
3098
|
+
S(V, M.current);
|
3100
3099
|
break;
|
3101
3100
|
case "Side by Side":
|
3102
3101
|
case "Stacked":
|
3103
|
-
|
3102
|
+
S(V, M.current), S(re, G.current);
|
3104
3103
|
break;
|
3105
3104
|
case "Quad":
|
3106
|
-
|
3105
|
+
S(V, M.current), S(re, G.current), S(Ne, se.current), S(Le, H.current);
|
3107
3106
|
break;
|
3108
3107
|
}
|
3109
3108
|
};
|
3110
3109
|
Fe(() => {
|
3111
3110
|
const d = new Hn({
|
3112
|
-
canvas:
|
3111
|
+
canvas: x.current,
|
3113
3112
|
stencil: !1
|
3114
3113
|
});
|
3115
3114
|
d.autoClear = !1, d.shadowMap.enabled = !0, d.setPixelRatio(devicePixelRatio), d.setClearColor(0), r(d);
|
3116
3115
|
}, []), Fe(() => {
|
3117
|
-
const d = (
|
3116
|
+
const d = (O) => {
|
3118
3117
|
gn(xe), z.remove(xe);
|
3119
|
-
const B = t.scenes.get(
|
3118
|
+
const B = t.scenes.get(O.value.name);
|
3120
3119
|
if (B !== void 0) {
|
3121
3120
|
const $ = new B();
|
3122
3121
|
t.onSceneSet !== void 0 && t.onSceneSet($), xe = $, t.three.scene = xe, z.add(xe), on = !0;
|
3123
3122
|
}
|
3124
|
-
}, m = (
|
3123
|
+
}, m = (O) => {
|
3125
3124
|
var F;
|
3126
|
-
const B =
|
3125
|
+
const B = O.value, $ = (F = t.three.scene) == null ? void 0 : F.getObjectByProperty("uuid", B.uuid);
|
3127
3126
|
$ !== void 0 && ne.set(B.name, $), E(Date.now());
|
3128
|
-
}, b = (
|
3129
|
-
ne.delete(
|
3127
|
+
}, b = (O) => {
|
3128
|
+
ne.delete(O.value.name), E(Date.now());
|
3130
3129
|
};
|
3131
3130
|
return _.addEventListener(j.SET_SCENE, d), _.addEventListener(j.ADD_CAMERA, m), _.addEventListener(j.REMOVE_CAMERA, b), () => {
|
3132
3131
|
_.removeEventListener(j.SET_SCENE, d), _.removeEventListener(j.ADD_CAMERA, m), _.removeEventListener(j.REMOVE_CAMERA, b);
|
@@ -3134,24 +3133,24 @@ function pi(t) {
|
|
3134
3133
|
}, []), Fe(() => {
|
3135
3134
|
if (e === null)
|
3136
3135
|
return;
|
3137
|
-
let d = window.innerWidth, m = window.innerHeight, b = Math.floor(d / 2),
|
3136
|
+
let d = window.innerWidth, m = window.innerHeight, b = Math.floor(d / 2), O = Math.floor(m / 2), B = -1;
|
3138
3137
|
const $ = () => {
|
3139
|
-
d = window.innerWidth - 300, m = window.innerHeight, b = Math.floor(d / 2),
|
3140
|
-
let
|
3138
|
+
d = window.innerWidth - 300, m = window.innerHeight, b = Math.floor(d / 2), O = Math.floor(m / 2), e.setSize(d, m);
|
3139
|
+
let R = d, I = m;
|
3141
3140
|
switch (n) {
|
3142
3141
|
case "Side by Side":
|
3143
|
-
|
3142
|
+
R = b, I = m;
|
3144
3143
|
break;
|
3145
3144
|
case "Stacked":
|
3146
|
-
|
3145
|
+
R = d, I = O;
|
3147
3146
|
break;
|
3148
3147
|
case "Quad":
|
3149
|
-
|
3148
|
+
R = b, I = O;
|
3150
3149
|
break;
|
3151
3150
|
}
|
3152
3151
|
ne.forEach((X) => {
|
3153
3152
|
var me;
|
3154
|
-
X instanceof un ? (X.left =
|
3153
|
+
X instanceof un ? (X.left = R / -2, X.right = R / 2, X.top = I / 2, X.bottom = I / -2, X.updateProjectionMatrix()) : X instanceof Dt && (X.aspect = R / I, X.updateProjectionMatrix(), (me = we.get(X.name)) == null || me.update());
|
3155
3154
|
});
|
3156
3155
|
}, F = () => {
|
3157
3156
|
e.setViewport(0, 0, d, m), e.setScissor(0, 0, d, m), e.render(z, V);
|
@@ -3159,15 +3158,15 @@ function pi(t) {
|
|
3159
3158
|
if (n === "Side by Side")
|
3160
3159
|
e.setViewport(0, 0, b, m), e.setScissor(0, 0, b, m), e.render(z, V), e.setViewport(b, 0, b, m), e.setScissor(b, 0, b, m), e.render(z, re);
|
3161
3160
|
else {
|
3162
|
-
const
|
3163
|
-
e.setViewport(0,
|
3161
|
+
const R = m - O;
|
3162
|
+
e.setViewport(0, R, d, O), e.setScissor(0, R, d, O), e.render(z, V), e.setViewport(0, 0, d, O), e.setScissor(0, 0, d, O), e.render(z, re);
|
3164
3163
|
}
|
3165
3164
|
}, U = () => {
|
3166
|
-
let
|
3167
|
-
I = m -
|
3165
|
+
let R = 0, I = 0;
|
3166
|
+
I = m - O, R = 0, e.setViewport(R, I, b, O), e.setScissor(R, I, b, O), e.render(z, V), R = b, e.setViewport(R, I, b, O), e.setScissor(R, I, b, O), e.render(z, re), I = 0, R = 0, e.setViewport(R, I, b, O), e.setScissor(R, I, b, O), e.render(z, Ne), R = b, e.setViewport(R, I, b, O), e.setScissor(R, I, b, O), e.render(z, Le);
|
3168
3167
|
}, J = () => {
|
3169
|
-
switch (ie.forEach((
|
3170
|
-
|
3168
|
+
switch (ie.forEach((R) => {
|
3169
|
+
R.update();
|
3171
3170
|
}), t.onSceneUpdate !== void 0 && on && t.onSceneUpdate(xe), e.clear(), n) {
|
3172
3171
|
case "Single":
|
3173
3172
|
F();
|
@@ -3202,15 +3201,15 @@ function pi(t) {
|
|
3202
3201
|
D < J ? d.setFromCamera(m, V) : d.setFromCamera(m, re);
|
3203
3202
|
break;
|
3204
3203
|
}
|
3205
|
-
},
|
3204
|
+
}, O = (F) => {
|
3206
3205
|
if (!wt)
|
3207
3206
|
return;
|
3208
3207
|
const D = new de();
|
3209
3208
|
e.getSize(D);
|
3210
3209
|
const U = Math.min(F.clientX, D.x), J = Math.min(F.clientY, D.y);
|
3211
3210
|
m.x = Ke(U, 0, D.x, -1, 1), m.y = Ke(J, 0, D.y, 1, -1);
|
3212
|
-
const
|
3213
|
-
U <
|
3211
|
+
const R = D.x / 2, I = D.y / 2, X = () => {
|
3212
|
+
U < R ? m.x = Ke(U, 0, R, -1, 1) : m.x = Ke(U, R, D.x, -1, 1);
|
3214
3213
|
}, me = () => {
|
3215
3214
|
J < I ? m.y = Ke(J, 0, I, 1, -1) : m.y = Ke(J, I, D.y, 1, -1);
|
3216
3215
|
};
|
@@ -3225,7 +3224,7 @@ function pi(t) {
|
|
3225
3224
|
me(), me();
|
3226
3225
|
break;
|
3227
3226
|
}
|
3228
|
-
b(U, J,
|
3227
|
+
b(U, J, R, I);
|
3229
3228
|
const Re = d.intersectObjects(xe.children);
|
3230
3229
|
Re.length > 0 && ot.position.copy(Re[0].point);
|
3231
3230
|
}, B = (F) => {
|
@@ -3234,12 +3233,12 @@ function pi(t) {
|
|
3234
3233
|
const D = new de();
|
3235
3234
|
if (e.getSize(D), F.clientX >= D.x)
|
3236
3235
|
return;
|
3237
|
-
|
3236
|
+
O(F);
|
3238
3237
|
const U = d.intersectObjects(xe.children);
|
3239
3238
|
U.length > 0 && t.three.getObject(U[0].object.uuid);
|
3240
|
-
}, $ =
|
3241
|
-
return $.addEventListener("mousemove",
|
3242
|
-
$.removeEventListener("mousemove",
|
3239
|
+
}, $ = C.current;
|
3240
|
+
return $.addEventListener("mousemove", O, !1), $.addEventListener("click", B, !1), () => {
|
3241
|
+
$.removeEventListener("mousemove", O), $.removeEventListener("click", B);
|
3243
3242
|
};
|
3244
3243
|
}
|
3245
3244
|
}, [n, e]);
|
@@ -3247,52 +3246,52 @@ function pi(t) {
|
|
3247
3246
|
return ne.forEach((d, m) => {
|
3248
3247
|
ee.push(m);
|
3249
3248
|
}), /* @__PURE__ */ c.jsxs("div", { className: "multiview", children: [
|
3250
|
-
/* @__PURE__ */ c.jsx("canvas", { ref:
|
3251
|
-
/* @__PURE__ */ c.jsxs("div", { className: `cameras ${n === "Single" || n === "Stacked" ? "single" : ""}`, ref:
|
3252
|
-
n === "Single" && /* @__PURE__ */ c.jsx(c.Fragment, { children: /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref:
|
3249
|
+
/* @__PURE__ */ c.jsx("canvas", { ref: x }),
|
3250
|
+
/* @__PURE__ */ c.jsxs("div", { className: `cameras ${n === "Single" || n === "Stacked" ? "single" : ""}`, ref: C, children: [
|
3251
|
+
n === "Single" && /* @__PURE__ */ c.jsx(c.Fragment, { children: /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: M, onSelect: (d) => {
|
3253
3252
|
var b;
|
3254
3253
|
(b = ie.get(V.name)) == null || b.dispose();
|
3255
3254
|
const m = ne.get(d);
|
3256
|
-
m !== void 0 && (K(V), V = m,
|
3255
|
+
m !== void 0 && (K(V), V = m, S(m, M.current));
|
3257
3256
|
} }) }),
|
3258
3257
|
(n === "Side by Side" || n === "Stacked") && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
3259
|
-
/* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref:
|
3258
|
+
/* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: M, onSelect: (d) => {
|
3260
3259
|
var b;
|
3261
3260
|
(b = ie.get(V.name)) == null || b.dispose();
|
3262
3261
|
const m = ne.get(d);
|
3263
|
-
m !== void 0 && (K(V), V = m,
|
3262
|
+
m !== void 0 && (K(V), V = m, S(m, M.current));
|
3264
3263
|
} }),
|
3265
3264
|
/* @__PURE__ */ c.jsx(Ie, { camera: re, options: ee, ref: G, onSelect: (d) => {
|
3266
3265
|
var b;
|
3267
3266
|
(b = ie.get(re.name)) == null || b.dispose();
|
3268
3267
|
const m = ne.get(d);
|
3269
|
-
m !== void 0 && (K(re), re = m,
|
3268
|
+
m !== void 0 && (K(re), re = m, S(m, G.current));
|
3270
3269
|
} })
|
3271
3270
|
] }),
|
3272
3271
|
n === "Quad" && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
3273
|
-
/* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref:
|
3272
|
+
/* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: M, onSelect: (d) => {
|
3274
3273
|
var b;
|
3275
3274
|
(b = ie.get(V.name)) == null || b.dispose();
|
3276
3275
|
const m = ne.get(d);
|
3277
|
-
m !== void 0 && (K(V), V = m,
|
3276
|
+
m !== void 0 && (K(V), V = m, S(m, M.current));
|
3278
3277
|
} }),
|
3279
3278
|
/* @__PURE__ */ c.jsx(Ie, { camera: re, options: ee, ref: G, onSelect: (d) => {
|
3280
3279
|
var b;
|
3281
3280
|
(b = ie.get(re.name)) == null || b.dispose();
|
3282
3281
|
const m = ne.get(d);
|
3283
|
-
m !== void 0 && (K(re), re = m,
|
3282
|
+
m !== void 0 && (K(re), re = m, S(m, G.current));
|
3284
3283
|
} }),
|
3285
3284
|
/* @__PURE__ */ c.jsx(Ie, { camera: Ne, options: ee, ref: se, onSelect: (d) => {
|
3286
3285
|
var b;
|
3287
3286
|
(b = ie.get(Ne.name)) == null || b.dispose();
|
3288
3287
|
const m = ne.get(d);
|
3289
|
-
m !== void 0 && (K(Ne), Ne = m,
|
3288
|
+
m !== void 0 && (K(Ne), Ne = m, S(m, se.current));
|
3290
3289
|
} }),
|
3291
3290
|
/* @__PURE__ */ c.jsx(Ie, { camera: Le, options: ee, ref: H, onSelect: (d) => {
|
3292
3291
|
var b;
|
3293
3292
|
(b = ie.get(Le.name)) == null || b.dispose();
|
3294
3293
|
const m = ne.get(d);
|
3295
|
-
m !== void 0 && (K(Le), Le = m,
|
3294
|
+
m !== void 0 && (K(Le), Le = m, S(m, H.current));
|
3296
3295
|
} })
|
3297
3296
|
] })
|
3298
3297
|
] }),
|