Skip to content

Commit

Permalink
rename slot.id to slot.ref
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloose committed Nov 22, 2024
1 parent 0772e65 commit 63322d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/docs/template_file.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ the scene for the user to drop images/3D models.
```json
[
{
"id": "slot1",
"ref": "slot1",
"type": "2d",
"props": {},
"v": [
Expand All @@ -27,7 +27,7 @@ the scene for the user to drop images/3D models.
]
},
{
"id": "slot2",
"ref": "slot2",
"type": "3d",
"props": {
"rotating": false,
Expand Down
12 changes: 6 additions & 6 deletions app/src/pages/Gallery3D/Experience.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const template1 = [

const template7 = [
{
"id": "wall1",
"ref": "wall1",
"type": "2d",
"props": {},
"v": [
Expand All @@ -113,7 +113,7 @@ const template7 = [
]
},
{
"id": "wall2",
"ref": "wall2",
"type": "2d",
"props": {},
"v": [
Expand All @@ -124,7 +124,7 @@ const template7 = [
]
},
{
"id": "wall3",
"ref": "wall3",
"type": "2d",
"props": {},
"v": [
Expand All @@ -135,7 +135,7 @@ const template7 = [
]
},
{
"id": "wall4",
"ref": "wall4",
"type": "2d",
"props": {},
"v": [
Expand All @@ -146,7 +146,7 @@ const template7 = [
]
},
{
"id": "center",
"ref": "center",
"type": "3d",
"props": {
"scale": 1,
Expand Down Expand Up @@ -179,7 +179,7 @@ export const Experience = ({ gallery }: { gallery: string }) => {
if (slots.type == '2d') {
return (
<DynamicPainting
key={slots.id}
key={slots.ref}
imageUrl="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Tux_Droid_1.jpg/1200px-Tux_Droid_1.jpg"
vertices={slots.v}
/>
Expand Down

0 comments on commit 63322d7

Please sign in to comment.