@reearth/core 0.0.7-alpha.46 → 0.0.7-alpha.48
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/core.js
CHANGED
|
@@ -1213,7 +1213,7 @@ const useDelayedCount = (t = []) => {
|
|
|
1213
1213
|
multiplier: (t == null ? void 0 : t.stepType) === "fixed" ? (t == null ? void 0 : t.step) ?? 1 : (t == null ? void 0 : t.multiplier) ?? 1,
|
|
1214
1214
|
rangeType: (t == null ? void 0 : t.rangeType) ?? "unbounded"
|
|
1215
1215
|
}), p = useMemo(() => {
|
|
1216
|
-
const { start: Pe, stop: se, current: mt } = s, kt = Pe.getTime(), mn = se.getTime(), _i = mt.getTime(), zi = kt > _i ? _i : kt, Sa = mn
|
|
1216
|
+
const { start: Pe, stop: se, current: mt } = s, kt = Pe.getTime(), mn = se.getTime(), _i = mt.getTime(), zi = kt > _i ? _i : kt, Sa = mn < _i ? _i + DEFAULT_RANGE : mn;
|
|
1217
1217
|
return {
|
|
1218
1218
|
start: new Date(zi),
|
|
1219
1219
|
stop: new Date(Sa),
|
|
@@ -2831,7 +2831,7 @@ function safeGet(t, n) {
|
|
|
2831
2831
|
if (!(n === "constructor" && typeof t[n] == "function") && n != "__proto__")
|
|
2832
2832
|
return t[n];
|
|
2833
2833
|
}
|
|
2834
|
-
function toPlainObject(t) {
|
|
2834
|
+
function toPlainObject$1(t) {
|
|
2835
2835
|
return copyObject(t, keysIn(t));
|
|
2836
2836
|
}
|
|
2837
2837
|
function baseMergeDeep(t, n, o, s, c, d, h) {
|
|
@@ -2843,7 +2843,7 @@ function baseMergeDeep(t, n, o, s, c, d, h) {
|
|
|
2843
2843
|
var P = d ? d(p, y, o + "", t, n, h) : void 0, L = P === void 0;
|
|
2844
2844
|
if (L) {
|
|
2845
2845
|
var F = isArray$2(y), N = !F && isBuffer(y), W = !F && !N && isTypedArray(y);
|
|
2846
|
-
P = y, F || N || W ? isArray$2(p) ? P = p : isArrayLikeObject(p) ? P = copyArray(p) : N ? (L = !1, P = cloneBuffer(y, !0)) : W ? (L = !1, P = cloneTypedArray(y, !0)) : P = [] : isPlainObject(y) || isArguments(y) ? (P = p, isArguments(p) ? P = toPlainObject(p) : (!isObject$1(p) || isFunction$1(p)) && (P = initCloneObject(y))) : L = !1;
|
|
2846
|
+
P = y, F || N || W ? isArray$2(p) ? P = p : isArrayLikeObject(p) ? P = copyArray(p) : N ? (L = !1, P = cloneBuffer(y, !0)) : W ? (L = !1, P = cloneTypedArray(y, !0)) : P = [] : isPlainObject(y) || isArguments(y) ? (P = p, isArguments(p) ? P = toPlainObject$1(p) : (!isObject$1(p) || isFunction$1(p)) && (P = initCloneObject(y))) : L = !1;
|
|
2847
2847
|
}
|
|
2848
2848
|
L && (h.set(y, P), c(P, y, s, d, h), h.delete(y)), assignMergeValue(t, o, P);
|
|
2849
2849
|
}
|
|
@@ -67180,11 +67180,11 @@ const tagObj = {
|
|
|
67180
67180
|
}, tagKeys = Object.keys(tagObj), tagKey = "__reearth_tag", extractSimpleLayer = (t) => {
|
|
67181
67181
|
const n = t && "layer" in t ? t.layer : t;
|
|
67182
67182
|
if ((n == null ? void 0 : n.type) === "simple")
|
|
67183
|
-
return n;
|
|
67183
|
+
return toPlainObject(n);
|
|
67184
67184
|
}, extractSimpleLayerData = (t) => {
|
|
67185
67185
|
var n;
|
|
67186
67186
|
return (n = extractSimpleLayer(t)) == null ? void 0 : n.data;
|
|
67187
|
-
}, toColor = (t) => {
|
|
67187
|
+
}, toPlainObject = (t) => cloneDeep(t), toColor = (t) => {
|
|
67188
67188
|
if (!t || typeof t != "string")
|
|
67189
67189
|
return;
|
|
67190
67190
|
const n = t.match(/^#([A-Fa-f0-9]{6})([A-Fa-f0-9]{2})$|^#([A-Fa-f0-9]{3})([A-Fa-f0-9])$/);
|
|
@@ -91435,7 +91435,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
|
|
|
91435
91435
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
|
|
91436
91436
|
] });
|
|
91437
91437
|
}
|
|
91438
|
-
const version = "0.0.7-alpha.
|
|
91438
|
+
const version = "0.0.7-alpha.48", useCoreAPI = ({ viewerProperty: t }) => {
|
|
91439
91439
|
const n = useRef(t);
|
|
91440
91440
|
n.current = t;
|
|
91441
91441
|
const o = useMemo(
|