hanc-webrtc-widgets 2.1.8 → 2.1.9
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 +86 -22
- package/dist/hanc-webrtc-widgets.es.js +2173 -1971
- package/dist/hanc-webrtc-widgets.umd.js +254 -85
- package/dist/src/components/floating-call/floating-call.d.ts +3 -0
- package/dist/src/components/inline-call/inline-call.d.ts +3 -0
- package/dist/src/components/pill-call/pill-call.d.ts +3 -0
- package/dist/src/core/livekit-call-manager.d.ts +0 -1
- package/dist/src/core/orb/SoundManager.d.ts +5 -0
- package/package.json +1 -1
- package/dist/src/renderers/base-renderer.d.ts +0 -88
- package/dist/src/renderers/index.d.ts +0 -12
- package/dist/src/renderers/liquid-glass-renderer.d.ts +0 -19
- package/dist/src/renderers/morphing-blob-renderer.d.ts +0 -23
- package/dist/src/renderers/neural-liquid-renderer.d.ts +0 -20
- package/dist/src/renderers/neural-network-renderer.d.ts +0 -25
- package/dist/src/renderers/organic-sphere-renderer.d.ts +0 -16
- package/dist/src/themes/index.d.ts +0 -1
- package/dist/src/themes/presets.d.ts +0 -50
- package/dist/src/themes/theme-vars.d.ts +0 -2
- package/dist/src/types/config.d.ts +0 -186
- package/dist/src/types/index.d.ts +0 -1
package/README.md
CHANGED
|
@@ -683,54 +683,118 @@ cleanup();
|
|
|
683
683
|
|
|
684
684
|
## Advanced Configuration
|
|
685
685
|
|
|
686
|
-
|
|
686
|
+
The orb visualization is fully customizable with dozens of parameters. Here's what you can tweak to make it perfect for your design.
|
|
687
|
+
|
|
688
|
+
### Visual Appearance
|
|
689
|
+
|
|
690
|
+
Control how the orb looks and glows:
|
|
687
691
|
|
|
688
692
|
```html
|
|
689
693
|
<hanc-ai-inline-call
|
|
690
694
|
agent-id="YOUR_AGENT_ID"
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
695
|
+
glow-intensity="1.2"
|
|
696
|
+
fresnel-power="2.5"
|
|
697
|
+
color-contrast="1.5"
|
|
698
|
+
noise-scale="1.5"
|
|
694
699
|
></hanc-ai-inline-call>
|
|
695
700
|
```
|
|
696
701
|
|
|
697
|
-
|
|
698
|
-
-
|
|
699
|
-
-
|
|
702
|
+
**Glow Settings:**
|
|
703
|
+
- `glow-intensity` (0.5 - 2.0, default: 0.8) - How bright the outer glow appears. Higher = more dramatic glow effect
|
|
704
|
+
- `idle-glow-multiplier` (0 - 1.0, default: 0.4) - Glow brightness when nobody's talking. Lower = more subtle when idle
|
|
705
|
+
- `fresnel-power` (1.0 - 5.0, default: 2.5) - Edge highlight intensity. Higher = sharper, brighter edge glow
|
|
700
706
|
|
|
701
|
-
|
|
707
|
+
**Color & Texture:**
|
|
708
|
+
- `color-contrast` (1.0 - 3.0, default: 1.5) - Sharpness of the color pattern. Higher = more defined color bands
|
|
709
|
+
- `noise-scale` (1.0 - 3.0, default: 1.5) - Detail level of the surface texture. Higher = more intricate patterns
|
|
710
|
+
|
|
711
|
+
### Audio Reactivity
|
|
712
|
+
|
|
713
|
+
Make the orb respond to voice input:
|
|
702
714
|
|
|
703
715
|
```html
|
|
704
716
|
<hanc-ai-inline-call
|
|
705
717
|
agent-id="YOUR_AGENT_ID"
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
noise-scale="2.0"
|
|
718
|
+
audio-reactivity="3.0"
|
|
719
|
+
audio-smoothing="0.9"
|
|
720
|
+
morph-strength="1.0"
|
|
710
721
|
></hanc-ai-inline-call>
|
|
711
722
|
```
|
|
712
723
|
|
|
713
|
-
|
|
714
|
-
-
|
|
715
|
-
-
|
|
716
|
-
|
|
724
|
+
**Response Intensity:**
|
|
725
|
+
- `audio-reactivity` (1.0 - 5.0, default: 3.0) - How strongly the orb reacts to audio. Higher = more dramatic pulsing and movement
|
|
726
|
+
- `morph-strength` (0.5 - 2.0, default: 1.0) - How much the orb deforms when responding to voice. Higher = more shape-shifting
|
|
727
|
+
|
|
728
|
+
**Smoothness:**
|
|
729
|
+
- `audio-smoothing` (0.1 - 1.0, default: 0.9) - How smooth the audio reaction is. Lower = gentle flowing motion, Higher = snappy response
|
|
730
|
+
|
|
731
|
+
### Idle Behavior
|
|
717
732
|
|
|
718
|
-
|
|
733
|
+
Configure how the orb moves when nobody's talking:
|
|
719
734
|
|
|
720
735
|
```html
|
|
721
736
|
<hanc-ai-inline-call
|
|
722
737
|
agent-id="YOUR_AGENT_ID"
|
|
723
|
-
idle-morph-multiplier="0.
|
|
738
|
+
idle-morph-multiplier="0.25"
|
|
739
|
+
rotation-speed="0.1"
|
|
740
|
+
noise-speed="0.3"
|
|
741
|
+
></hanc-ai-inline-call>
|
|
742
|
+
```
|
|
743
|
+
|
|
744
|
+
**Idle Animation:**
|
|
745
|
+
- `idle-morph-multiplier` (0 - 1.0, default: 0.25) - How much the orb "breathes" when idle. Higher = more movement
|
|
746
|
+
- `rotation-speed` (0 - 1.0, default: 0.1) - Rotation speed. Higher = faster spinning
|
|
747
|
+
- `noise-speed` (0 - 1.0, default: 0.3) - Pattern animation speed. Higher = faster flowing patterns
|
|
748
|
+
|
|
749
|
+
### Complete Example
|
|
750
|
+
|
|
751
|
+
Here's a custom configuration that creates a high-energy, reactive orb:
|
|
752
|
+
|
|
753
|
+
```html
|
|
754
|
+
<hanc-ai-inline-call
|
|
755
|
+
agent-id="YOUR_AGENT_ID"
|
|
756
|
+
theme="emerald"
|
|
757
|
+
|
|
758
|
+
<!-- Make it glow brighter and more dramatically -->
|
|
759
|
+
glow-intensity="1.5"
|
|
724
760
|
idle-glow-multiplier="0.6"
|
|
761
|
+
fresnel-power="3.0"
|
|
762
|
+
|
|
763
|
+
<!-- React strongly to audio -->
|
|
764
|
+
audio-reactivity="4.0"
|
|
765
|
+
audio-smoothing="0.85"
|
|
766
|
+
morph-strength="1.2"
|
|
767
|
+
|
|
768
|
+
<!-- More intricate patterns -->
|
|
769
|
+
color-contrast="2.0"
|
|
770
|
+
noise-scale="2.0"
|
|
771
|
+
|
|
772
|
+
<!-- More animated when idle -->
|
|
773
|
+
idle-morph-multiplier="0.5"
|
|
725
774
|
rotation-speed="0.2"
|
|
726
775
|
noise-speed="0.5"
|
|
727
776
|
></hanc-ai-inline-call>
|
|
728
777
|
```
|
|
729
778
|
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
-
|
|
779
|
+
### Tips for Fine-Tuning
|
|
780
|
+
|
|
781
|
+
**For subtle, professional look:**
|
|
782
|
+
- Lower `glow-intensity` (0.6 - 0.8)
|
|
783
|
+
- Lower `audio-reactivity` (2.0 - 2.5)
|
|
784
|
+
- Lower `idle-morph-multiplier` (0.1 - 0.2)
|
|
785
|
+
|
|
786
|
+
**For energetic, eye-catching look:**
|
|
787
|
+
- Higher `glow-intensity` (1.2 - 1.8)
|
|
788
|
+
- Higher `audio-reactivity` (3.5 - 4.5)
|
|
789
|
+
- Higher `morph-strength` (1.2 - 1.5)
|
|
790
|
+
|
|
791
|
+
**For smooth, flowing animations:**
|
|
792
|
+
- Lower `audio-smoothing` (0.7 - 0.85)
|
|
793
|
+
- Lower `rotation-speed` (0.05 - 0.1)
|
|
794
|
+
|
|
795
|
+
**For responsive, snappy animations:**
|
|
796
|
+
- Higher `audio-smoothing` (0.9 - 0.95)
|
|
797
|
+
- Higher `noise-speed` (0.5 - 0.7)
|
|
734
798
|
|
|
735
799
|
---
|
|
736
800
|
|