@reearth/core 0.0.7-alpha.37 → 0.0.7-alpha.38
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 +9 -7
- package/dist/core.umd.cjs +3 -3
- package/dist/index.d.ts +12 -4
- package/package.json +1 -1
- package/src/Map/types/index.ts +11 -3
- package/src/Visualizer/index.tsx +2 -2
- package/src/engines/Cesium/common.ts +8 -7
- package/src/engines/Cesium/hooks.ts +3 -3
package/dist/core.js
CHANGED
|
@@ -26620,21 +26620,23 @@ function getCredits(t) {
|
|
|
26620
26620
|
if (!n)
|
|
26621
26621
|
return;
|
|
26622
26622
|
const { lightboxCredits: o, screenCredits: s } = (n == null ? void 0 : n._currentFrameCredits) || {}, c = n._currentCesiumCredit;
|
|
26623
|
-
return
|
|
26624
|
-
|
|
26625
|
-
|
|
26623
|
+
return {
|
|
26624
|
+
engine: {
|
|
26625
|
+
cesium: c != null && c.html ? { html: c.html } : void 0
|
|
26626
|
+
},
|
|
26627
|
+
lightbox: Array.from((o == null ? void 0 : o._array) ?? []).map((h) => {
|
|
26626
26628
|
var p;
|
|
26627
26629
|
return {
|
|
26628
26630
|
html: (p = h == null ? void 0 : h.credit) == null ? void 0 : p.html
|
|
26629
26631
|
};
|
|
26630
26632
|
}),
|
|
26631
|
-
|
|
26633
|
+
screen: Array.from((s == null ? void 0 : s._array) ?? []).map((h) => {
|
|
26632
26634
|
var p;
|
|
26633
26635
|
return {
|
|
26634
26636
|
html: (p = h == null ? void 0 : h.credit) == null ? void 0 : p.html
|
|
26635
26637
|
};
|
|
26636
26638
|
})
|
|
26637
|
-
|
|
26639
|
+
};
|
|
26638
26640
|
}
|
|
26639
26641
|
function Globe({
|
|
26640
26642
|
property: t,
|
|
@@ -85203,7 +85205,7 @@ const useIBL = ({
|
|
|
85203
85205
|
const Tf = (bf = Ra.current) == null ? void 0 : bf.cesiumElement;
|
|
85204
85206
|
if (!Tf || Tf.isDestroyed())
|
|
85205
85207
|
return;
|
|
85206
|
-
const rf = getCredits(Tf)
|
|
85208
|
+
const rf = getCredits(Tf);
|
|
85207
85209
|
Ru.current(rf);
|
|
85208
85210
|
}, 3e3);
|
|
85209
85211
|
}, []), Gd = useMemo(
|
|
@@ -91386,7 +91388,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
|
|
|
91386
91388
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
|
|
91387
91389
|
] });
|
|
91388
91390
|
}
|
|
91389
|
-
const version = "0.0.7-alpha.
|
|
91391
|
+
const version = "0.0.7-alpha.38", useCoreAPI = ({ viewerProperty: t }) => {
|
|
91390
91392
|
const n = useRef(t);
|
|
91391
91393
|
n.current = t;
|
|
91392
91394
|
const o = useMemo(
|