g-ai-robot3 0.1.87 → 0.1.89
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 +4 -3
- package/dist/components/digitalHuman.vue.d.ts +9 -0
- package/dist/g-ai-robot3.es.js +7 -2
- package/dist/g-ai-robot3.umd.js +3 -3
- package/dist/index.css +1 -1
- package/dist/type.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,13 +16,13 @@ import gAiRobot from "g-ai-robot";
|
|
|
16
16
|
import "g-ai-robot3/dist/g-ai-robot3.css";
|
|
17
17
|
|
|
18
18
|
<g-ai-robot :cozeInfo="{bot_id:'7429224296222097443'}" :apiPrefix="'/api21215'"
|
|
19
|
-
:canvasWidth="180" :canvasHeight="180" :videoStyle="{width:'180px',visibility:'hidden'}" :digitalStyle="{width:'180px',height:'180px'}"
|
|
19
|
+
:canvasWidth="180" :canvasHeight="180" :videoStyle="{width:'180px',visibility:'hidden'}" :digitalStyle="{width:'180px',height:'180px'}" :canvasStyle="{width:'180px',height:'180px'}"
|
|
20
20
|
>
|
|
21
21
|
</g-ai-robot>
|
|
22
22
|
```
|
|
23
23
|
### 必填参数 (Required Parameters)
|
|
24
24
|
|
|
25
|
-
| 参数 | 说明 | 类型 |
|
|
25
|
+
| 参数 | 说明 | 类型 | 默认值 | 注意事项 |
|
|
26
26
|
|--------------------|-----------------------|--------------|-----------------------------------------|--------------------------------------------------------------------------|
|
|
27
27
|
| `cozeInfo` | 智能体配置 | object | `{bot_id:'7429224296222097443'}` | 必须替换为实际的bot_id |
|
|
28
28
|
| `apiPrefix` | API基础路径 | string | `'/api21215'` | 可在项目中配置代理,默认值`'/api21215'`
|
|
@@ -30,7 +30,7 @@ import "g-ai-robot3/dist/g-ai-robot3.css";
|
|
|
30
30
|
| `canvasHeight` | 画布高度 | number | `180` | 必须与`videoStyle`和`digitalStyle`的高度保持一致 |
|
|
31
31
|
| `videoStyle` | 视频样式 | CSSProperties | `{width:'180px',visibility:'hidden'}` | width必须与`canvasWidth`保持一致 |
|
|
32
32
|
| `digitalStyle` | 数字人样式 | CSSProperties | `{width:'180px',height:'180px'}` | width/height必须与`canvasWidth`/`canvasHeight`保持一致
|
|
33
|
-
|
|
33
|
+
| `canvasStyle` | 数字人canvas宽高 | CSSProperties | `{width:'180px',height:'180px'}` | width/height必须与`canvasWidth`/`canvasHeight`保持一致
|
|
34
34
|
|
|
35
35
|
## 基础配置参数
|
|
36
36
|
|
|
@@ -38,6 +38,7 @@ import "g-ai-robot3/dist/g-ai-robot3.css";
|
|
|
38
38
|
|---------------------|---------------------------------------|------------|-----------------------------------------|
|
|
39
39
|
| `isDebug` | 是否开启调试模式(打印语音输出) | boolean | `false` |
|
|
40
40
|
| `dialogBoxTheme` | 对话框主题 | string | `"light"` |
|
|
41
|
+
| `suspensionStyle` | 对话框高度 | string | `"33vh"` |
|
|
41
42
|
| `showMsgBubble` | 是否显示消息气泡 | boolean | `true` |
|
|
42
43
|
| `isExhibitionPro` | 是否为数字展厅项目 | boolean | `false` |
|
|
43
44
|
| `isShowDialogIcon` | 是否显示对话框图标 | boolean | `false` |
|
|
@@ -14,6 +14,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
14
14
|
width: string;
|
|
15
15
|
height: string;
|
|
16
16
|
};
|
|
17
|
+
canvasStyle: () => {
|
|
18
|
+
width: string;
|
|
19
|
+
height: string;
|
|
20
|
+
};
|
|
17
21
|
bubbleStyle: () => {
|
|
18
22
|
width: string;
|
|
19
23
|
height: string;
|
|
@@ -49,6 +53,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
49
53
|
width: string;
|
|
50
54
|
height: string;
|
|
51
55
|
};
|
|
56
|
+
canvasStyle: () => {
|
|
57
|
+
width: string;
|
|
58
|
+
height: string;
|
|
59
|
+
};
|
|
52
60
|
bubbleStyle: () => {
|
|
53
61
|
width: string;
|
|
54
62
|
height: string;
|
|
@@ -71,6 +79,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
71
79
|
isFuYangPro: boolean;
|
|
72
80
|
videoStyle: import("vue").CSSProperties;
|
|
73
81
|
digitalStyle: import("vue").CSSProperties;
|
|
82
|
+
canvasStyle: import("vue").CSSProperties;
|
|
74
83
|
bubbleStyle: import("vue").CSSProperties;
|
|
75
84
|
offer: string;
|
|
76
85
|
human: string;
|
package/dist/g-ai-robot3.es.js
CHANGED
|
@@ -91894,6 +91894,10 @@ const DC = "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIzN2IzODNlNzZiMmU0NGNmOTQ5ODg2YjY1NjI
|
|
|
91894
91894
|
width: "180px",
|
|
91895
91895
|
height: "180px"
|
|
91896
91896
|
}) },
|
|
91897
|
+
canvasStyle: { default: () => ({
|
|
91898
|
+
width: "180px",
|
|
91899
|
+
height: "180px"
|
|
91900
|
+
}) },
|
|
91897
91901
|
bubbleStyle: { default: () => ({
|
|
91898
91902
|
width: "30%",
|
|
91899
91903
|
height: "30%"
|
|
@@ -92257,7 +92261,7 @@ const DC = "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIzN2IzODNlNzZiMmU0NGNmOTQ5ODg2YjY1NjI
|
|
|
92257
92261
|
ta(ge("canvas", {
|
|
92258
92262
|
id: "output-canvas",
|
|
92259
92263
|
class: vl({ "fade-out": !Y.value }),
|
|
92260
|
-
style: Ua({ visibility: Y.value ? "visible" : "hidden" }),
|
|
92264
|
+
style: Ua({ ...K.canvasStyle, visibility: Y.value ? "visible" : "hidden" }),
|
|
92261
92265
|
willReadFrequently: "true",
|
|
92262
92266
|
ref_key: "canvasRef",
|
|
92263
92267
|
ref: A
|
|
@@ -92343,7 +92347,7 @@ const DC = "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIzN2IzODNlNzZiMmU0NGNmOTQ5ODg2YjY1NjI
|
|
|
92343
92347
|
for (const [l, n] of e)
|
|
92344
92348
|
a[l] = n;
|
|
92345
92349
|
return a;
|
|
92346
|
-
}, Mft = /* @__PURE__ */ rL(Tft, [["__scopeId", "data-v-
|
|
92350
|
+
}, Mft = /* @__PURE__ */ rL(Tft, [["__scopeId", "data-v-fc8faaf3"]]), UC = {};
|
|
92347
92351
|
function Kft(t) {
|
|
92348
92352
|
let e = UC[t];
|
|
92349
92353
|
if (e)
|
|
@@ -95669,6 +95673,7 @@ const Igt = { class: "robot" }, Cgt = {
|
|
|
95669
95673
|
] },
|
|
95670
95674
|
videoStyle: {},
|
|
95671
95675
|
digitalStyle: {},
|
|
95676
|
+
canvasStyle: {},
|
|
95672
95677
|
bubbleStyle: {},
|
|
95673
95678
|
offer: {},
|
|
95674
95679
|
human: {},
|