@thangdevalone/meet-layout-grid-core 1.0.8 → 1.1.0

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 CHANGED
@@ -35,8 +35,9 @@ const meetGrid = createMeetGrid({
35
35
  count: 6,
36
36
  aspectRatio: '16:9',
37
37
  gap: 8,
38
- layoutMode: 'speaker', // 'gallery' | 'speaker' | 'spotlight' | 'sidebar'
39
- speakerIndex: 0,
38
+ layoutMode: 'sidebar', // 'gallery' | 'spotlight' | 'sidebar'
39
+ sidebarPosition: 'bottom', // 'left' | 'right' | 'top' | 'bottom'
40
+ pinnedIndex: 0,
40
41
  })
41
42
 
42
43
  for (let i = 0; i < 6; i++) {
@@ -68,10 +69,9 @@ Basic responsive grid.
68
69
  Meet-style grid with layout modes.
69
70
 
70
71
  **Extra options:**
71
- - `layoutMode: 'gallery' | 'speaker' | 'spotlight' | 'sidebar'`
72
- - `pinnedIndex?: number`
73
- - `speakerIndex?: number`
74
- - `sidebarPosition?: 'left' | 'right' | 'bottom'`
72
+ - `layoutMode: 'gallery' | 'spotlight' | 'sidebar'`
73
+ - `pinnedIndex?: number` — Main participant (enables pin mode in gallery, or main tile in sidebar)
74
+ - `sidebarPosition?: 'left' | 'right' | 'top' | 'bottom'`
75
75
  - `sidebarRatio?: number` — 0–1
76
76
 
77
77
  **Extra returns:**
@@ -81,10 +81,9 @@ Meet-style grid with layout modes.
81
81
 
82
82
  ## Layout modes
83
83
 
84
- - **gallery** — Same-size tiles in a grid
85
- - **speaker** — One large tile (~65% height), rest below
84
+ - **gallery** — Same-size tiles in a grid (use `pinnedIndex` for pin mode)
86
85
  - **spotlight** — One participant only
87
- - **sidebar** — Main area + thumbnail strip
86
+ - **sidebar** — Main area + thumbnail strip (use `sidebarPosition: 'bottom'` for speaker-like layout)
88
87
 
89
88
  ## License
90
89