Skip to content

Commit

Permalink
Improves bar visualizer animations and adds initializing state (#987)
Browse files Browse the repository at this point in the history
Co-authored-by: lukasIO <[email protected]>
  • Loading branch information
mattherzog and lukasIO authored Sep 29, 2024
1 parent 3a8495f commit 11bdec8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-cheetahs-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@livekit/components-react": patch
---

Improve bar visualizer animations and add initializing state
3 changes: 2 additions & 1 deletion packages/react/src/components/participant/BarVisualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export interface BarVisualizerProps extends React.HTMLProps<HTMLDivElement> {
}

const sequencerIntervals = new Map<AgentState, number>([
['connecting', 25 * 15],
['connecting', 2000],
['initializing', 2000],
['listening', 500],
['thinking', 150],
]);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const generateConnectingSequenceBar = (columns: number): number[][] => {
const seq = [];

for (let x = 0; x <= columns; x++) {
for (let x = 0; x < columns; x++) {
seq.push([x, columns - 1 - x]);
}

Expand Down

0 comments on commit 11bdec8

Please sign in to comment.