@reearth/core 0.0.7-alpha.6 → 0.0.7-alpha.7

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
@@ -5931,7 +5931,10 @@ function processGeoJSON(t, n) {
5931
5931
  return t.features.flatMap((o) => processGeoJSON(o, n));
5932
5932
  if (t.type === "Feature") {
5933
5933
  const o = t.geometry;
5934
- return o.type === "MultiPoint" ? o.coordinates.flatMap((s) => processGeoJSON({
5934
+ return o.type === "GeometryCollection" ? o.geometries.flatMap((s) => processGeoJSON({
5935
+ ...t,
5936
+ geometry: s
5937
+ })) : o.type === "MultiPoint" ? o.coordinates.flatMap((s) => processGeoJSON({
5935
5938
  ...t,
5936
5939
  geometry: {
5937
5940
  type: "Point",
@@ -86026,7 +86029,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
86026
86029
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
86027
86030
  ] });
86028
86031
  }
86029
- const version = "0.0.7-alpha.6", useCoreAPI = ({ viewerProperty: t }) => {
86032
+ const version = "0.0.7-alpha.7", useCoreAPI = ({ viewerProperty: t }) => {
86030
86033
  const n = useRef(t);
86031
86034
  n.current = t;
86032
86035
  const o = useMemo(