@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 +33 -32
- package/dist/core.umd.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
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 ?? {},
|
|
74848
|
-
tilesetUrl:
|
|
74849
|
-
ref:
|
|
74850
|
-
style:
|
|
74851
|
-
clippingPlanes:
|
|
74852
|
-
drawClippingEnabled:
|
|
74853
|
-
drawClippingEdgeProps:
|
|
74854
|
-
builtinBoxProps:
|
|
74855
|
-
imageBasedLighting:
|
|
74856
|
-
handleReady:
|
|
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:
|
|
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
|
-
}),
|
|
74869
|
+
}), of = useMemo(
|
|
74870
74870
|
() => {
|
|
74871
|
-
var
|
|
74871
|
+
var yt, oe;
|
|
74872
74872
|
return {
|
|
74873
|
-
...((
|
|
74874
|
-
...(
|
|
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,
|
|
74878
|
-
),
|
|
74879
|
-
return !n || !
|
|
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:
|
|
74884
|
-
url:
|
|
74883
|
+
ref: mt,
|
|
74884
|
+
url: J,
|
|
74885
74885
|
customShader: z === !1 ? NonPBRLightingShader : z === "withTexture" ? NonPBRWithTextureLightingShader : void 0,
|
|
74886
|
-
|
|
74886
|
+
cacheBytes: nt,
|
|
74887
|
+
style: pi,
|
|
74887
74888
|
shadows: shadowMode(F),
|
|
74888
|
-
clippingPlanes:
|
|
74889
|
+
clippingPlanes: Ai,
|
|
74889
74890
|
colorBlendMode: colorBlendModeFor3DTile(N),
|
|
74890
|
-
imageBasedLighting:
|
|
74891
|
-
onReady:
|
|
74891
|
+
imageBasedLighting: Vd,
|
|
74892
|
+
onReady: nf,
|
|
74892
74893
|
debugWireframe: Z,
|
|
74893
74894
|
debugShowBoundingVolume: H
|
|
74894
74895
|
}
|
|
74895
74896
|
),
|
|
74896
|
-
|
|
74897
|
+
Xd && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
74897
74898
|
Box,
|
|
74898
74899
|
{
|
|
74899
74900
|
...L,
|
|
74900
|
-
id:
|
|
74901
|
+
id: lt,
|
|
74901
74902
|
sceneProperty: d,
|
|
74902
|
-
property:
|
|
74903
|
-
geometry:
|
|
74903
|
+
property: of,
|
|
74904
|
+
geometry: Xd.geometry,
|
|
74904
74905
|
feature: c,
|
|
74905
|
-
layer:
|
|
74906
|
-
isVisible:
|
|
74906
|
+
layer: ef,
|
|
74907
|
+
isVisible: Xd.visible,
|
|
74907
74908
|
evalFeature: p,
|
|
74908
|
-
onLayerEdit:
|
|
74909
|
+
onLayerEdit: Xd.handleLayerEdit
|
|
74909
74910
|
}
|
|
74910
74911
|
),
|
|
74911
|
-
|
|
74912
|
+
md && /* @__PURE__ */ jsxRuntimeExports.jsx(DrawClippingPolygon, { ...Gd })
|
|
74912
74913
|
] });
|
|
74913
74914
|
}
|
|
74914
74915
|
const Tileset$1 = memo$1(
|