@reearth/core 0.0.1 → 0.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reearth/core",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "author": "Re:Earth contributors <community@reearth.io>",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A library that abstracts a map engine as one common API.",
@@ -33,7 +33,8 @@ function Tileset({
33
33
  onLayerFetch,
34
34
  ...props
35
35
  }: Props): JSX.Element | null {
36
- const { shadows, colorBlendMode, pbr, showWireframe, showBoundingVolume } = property ?? {};
36
+ const { shadows, colorBlendMode, pbr, showWireframe, showBoundingVolume, cacheBytes } =
37
+ property ?? {};
37
38
  const boxId = `${layer?.id}_box`;
38
39
  const {
39
40
  tilesetUrl,
@@ -77,9 +78,10 @@ function Tileset({
77
78
  pbr === false
78
79
  ? NonPBRLightingShader
79
80
  : pbr === "withTexture"
80
- ? NonPBRWithTextureLightingShader
81
- : undefined
81
+ ? NonPBRWithTextureLightingShader
82
+ : undefined
82
83
  }
84
+ cacheBytes={cacheBytes}
83
85
  style={style}
84
86
  shadows={shadowMode(shadows)}
85
87
  clippingPlanes={clippingPlanes}
@@ -210,6 +210,7 @@ export type Cesium3DTilesAppearance = {
210
210
  imageBasedLightIntensity?: number;
211
211
  showWireframe?: boolean;
212
212
  showBoundingVolume?: boolean;
213
+ cacheBytes?: number;
213
214
  };
214
215
 
215
216
  export type LegacyPhotooverlayAppearance = {