@ericchen1990/pano-view 0.1.4 → 0.1.5
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/README.md +12 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -65,7 +65,18 @@ export function TileExample() {
|
|
|
65
65
|
}
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
The first `multires` value is the tile size. Remaining values are ascending cube-face sizes for `l1`, `l2`, and later levels. The default preview is `${baseUrl}/previews/cube-vertical.webp`, with faces stacked as `l/f/r/b/u/d`. Use `previewFaceOrder` when
|
|
68
|
+
The first `multires` value is the tile size. Remaining values are ascending cube-face sizes for `l1`, `l2`, and later levels. The default preview is `${baseUrl}/previews/cube-vertical.webp`, with six square faces stacked from top to bottom as `l/f/r/b/u/d`. Use `previewFaceOrder` when an atlas uses a different order:
|
|
69
|
+
|
|
70
|
+
```tsx
|
|
71
|
+
<Tile
|
|
72
|
+
baseUrl="/panoramas/room"
|
|
73
|
+
multires="512,1000,2000"
|
|
74
|
+
previewUrl="/panoramas/room/previews/cube-vertical.webp"
|
|
75
|
+
previewFaceOrder={["l", "f", "r", "b", "u", "d"]}
|
|
76
|
+
/>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
`previewFaceOrder` must list the six face codes in their top-to-bottom atlas order: `f`, `r`, `b`, `l`, `u`, and `d`.
|
|
69
80
|
|
|
70
81
|
During rapid rotation or zoom, loaded tiles remain visible while newly visible tiles use their parent level or the preview as a local fallback.
|
|
71
82
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ericchen1990/pano-view",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "React components for panoramic viewing experiences.",
|
|
5
5
|
"author": "Eric Chen",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,10 +44,6 @@
|
|
|
44
44
|
"react-dom": ">=19.0.0 <19.3.0",
|
|
45
45
|
"three": "^0.185.1"
|
|
46
46
|
},
|
|
47
|
-
"scripts": {
|
|
48
|
-
"build": "tsup",
|
|
49
|
-
"typecheck": "tsc --noEmit"
|
|
50
|
-
},
|
|
51
47
|
"devDependencies": {
|
|
52
48
|
"@react-three/fiber": "^9.7.0",
|
|
53
49
|
"@types/react": "^19.2.0",
|
|
@@ -57,5 +53,9 @@
|
|
|
57
53
|
"three": "^0.185.1",
|
|
58
54
|
"tsup": "^8.5.0",
|
|
59
55
|
"typescript": "^5.9.3"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "tsup",
|
|
59
|
+
"typecheck": "tsc --noEmit"
|
|
60
60
|
}
|
|
61
|
-
}
|
|
61
|
+
}
|