@reearth/core 0.0.2 → 0.0.3

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
@@ -74844,19 +74844,19 @@ function Tileset({
74844
74844
  onLayerFetch: E,
74845
74845
  ...L
74846
74846
  }) {
74847
- const { shadows: F, colorBlendMode: N, pbr: z, showWireframe: Z, showBoundingVolume: H } = o ?? {}, nt = `${s == null ? void 0 : s.id}_box`, {
74848
- tilesetUrl: lt,
74849
- ref: J,
74850
- style: mt,
74851
- clippingPlanes: pi,
74852
- drawClippingEnabled: Ai,
74853
- drawClippingEdgeProps: md,
74854
- builtinBoxProps: Gd,
74855
- imageBasedLighting: Xd,
74856
- handleReady: Vd
74847
+ const { shadows: F, colorBlendMode: N, pbr: z, showWireframe: Z, showBoundingVolume: H, cacheBytes: nt } = o ?? {}, lt = `${s == null ? void 0 : s.id}_box`, {
74848
+ tilesetUrl: J,
74849
+ ref: mt,
74850
+ style: pi,
74851
+ clippingPlanes: Ai,
74852
+ drawClippingEnabled: md,
74853
+ drawClippingEdgeProps: Gd,
74854
+ builtinBoxProps: Xd,
74855
+ imageBasedLighting: Vd,
74856
+ handleReady: nf
74857
74857
  } = useHooks$2({
74858
74858
  id: t,
74859
- boxId: nt,
74859
+ boxId: lt,
74860
74860
  isVisible: n,
74861
74861
  layer: s,
74862
74862
  feature: c,
@@ -74866,49 +74866,50 @@ function Tileset({
74866
74866
  evalFeature: p,
74867
74867
  onComputedFeatureFetch: y,
74868
74868
  onLayerFetch: E
74869
- }), nf = useMemo(
74869
+ }), of = useMemo(
74870
74870
  () => {
74871
- var ef, yt;
74871
+ var yt, oe;
74872
74872
  return {
74873
- ...((ef = s == null ? void 0 : s.layer) == null ? void 0 : ef.type) === "simple" ? (yt = s == null ? void 0 : s.layer) == null ? void 0 : yt.box : {},
74874
- ...(Gd == null ? void 0 : Gd.property) || {}
74873
+ ...((yt = s == null ? void 0 : s.layer) == null ? void 0 : yt.type) === "simple" ? (oe = s == null ? void 0 : s.layer) == null ? void 0 : oe.box : {},
74874
+ ...(Xd == null ? void 0 : Xd.property) || {}
74875
74875
  };
74876
74876
  },
74877
- [s == null ? void 0 : s.layer, Gd == null ? void 0 : Gd.property]
74878
- ), of = useMemo(() => ({ ...s, id: nt }), [s, nt]);
74879
- return !n || !lt ? null : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
74877
+ [s == null ? void 0 : s.layer, Xd == null ? void 0 : Xd.property]
74878
+ ), ef = useMemo(() => ({ ...s, id: lt }), [s, lt]);
74879
+ return !n || !J ? null : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
74880
74880
  /* @__PURE__ */ jsxRuntimeExports.jsx(
74881
74881
  Rs$1,
74882
74882
  {
74883
- ref: J,
74884
- url: lt,
74883
+ ref: mt,
74884
+ url: J,
74885
74885
  customShader: z === !1 ? NonPBRLightingShader : z === "withTexture" ? NonPBRWithTextureLightingShader : void 0,
74886
- style: mt,
74886
+ cacheBytes: nt,
74887
+ style: pi,
74887
74888
  shadows: shadowMode(F),
74888
- clippingPlanes: pi,
74889
+ clippingPlanes: Ai,
74889
74890
  colorBlendMode: colorBlendModeFor3DTile(N),
74890
- imageBasedLighting: Xd,
74891
- onReady: Vd,
74891
+ imageBasedLighting: Vd,
74892
+ onReady: nf,
74892
74893
  debugWireframe: Z,
74893
74894
  debugShowBoundingVolume: H
74894
74895
  }
74895
74896
  ),
74896
- Gd && /* @__PURE__ */ jsxRuntimeExports.jsx(
74897
+ Xd && /* @__PURE__ */ jsxRuntimeExports.jsx(
74897
74898
  Box,
74898
74899
  {
74899
74900
  ...L,
74900
- id: nt,
74901
+ id: lt,
74901
74902
  sceneProperty: d,
74902
- property: nf,
74903
- geometry: Gd.geometry,
74903
+ property: of,
74904
+ geometry: Xd.geometry,
74904
74905
  feature: c,
74905
- layer: of,
74906
- isVisible: Gd.visible,
74906
+ layer: ef,
74907
+ isVisible: Xd.visible,
74907
74908
  evalFeature: p,
74908
- onLayerEdit: Gd.handleLayerEdit
74909
+ onLayerEdit: Xd.handleLayerEdit
74909
74910
  }
74910
74911
  ),
74911
- Ai && /* @__PURE__ */ jsxRuntimeExports.jsx(DrawClippingPolygon, { ...md })
74912
+ md && /* @__PURE__ */ jsxRuntimeExports.jsx(DrawClippingPolygon, { ...Gd })
74912
74913
  ] });
74913
74914
  }
74914
74915
  const Tileset$1 = memo$1(