Skip to content

Commit 11bdec8

Browse files
mattherzoglukasIO
andauthored
Improves bar visualizer animations and adds initializing state (#987)
Co-authored-by: lukasIO <mail@lukasseiler.de>
1 parent 3a8495f commit 11bdec8

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@livekit/components-react": patch
3+
---
4+
5+
Improve bar visualizer animations and add initializing state

packages/react/src/components/participant/BarVisualizer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export interface BarVisualizerProps extends React.HTMLProps<HTMLDivElement> {
3030
}
3131

3232
const sequencerIntervals = new Map<AgentState, number>([
33-
['connecting', 25 * 15],
33+
['connecting', 2000],
34+
['initializing', 2000],
3435
['listening', 500],
3536
['thinking', 150],
3637
]);

packages/react/src/components/participant/animationSequences/connectingSequence.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const generateConnectingSequenceBar = (columns: number): number[][] => {
22
const seq = [];
33

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

0 commit comments

Comments
 (0)