@vunk/plus 1.8.0 → 1.8.1
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/components/agent-chat-provider/index.d.ts +8 -0
- package/components/agent-chat-provider/src/MessageView.d.ts +29 -0
- package/components/agent-chat-provider/src/api.d.ts +3 -0
- package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
- package/components/agent-chat-provider/src/const.d.ts +1 -0
- package/components/agent-chat-provider/src/index.vue.d.ts +22 -0
- package/components/agent-chat-provider/src/types.d.ts +56 -0
- package/components/agent-chat-provider/src/use.d.ts +6 -0
- package/components/avatar/index.d.ts +4 -0
- package/components/avatar/src/ctx.d.ts +6 -0
- package/components/avatar/src/index.vue.d.ts +261 -0
- package/components/avatar/src/types.d.ts +1 -0
- package/components/broadcasting-markdown/index.d.ts +7 -0
- package/components/broadcasting-markdown/src/const.d.ts +13 -0
- package/components/broadcasting-markdown/src/ctx.d.ts +126 -0
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +58 -0
- package/components/broadcasting-markdown/src/index.vue.d.ts +373 -0
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +79 -0
- package/components/broadcasting-markdown/src/speech-error.vue.d.ts +60 -0
- package/components/broadcasting-markdown/src/types.d.ts +26 -0
- package/components/broadcasting-markdown/src/use.d.ts +19 -0
- package/components/bubble-list/index.d.ts +5 -0
- package/components/bubble-list/src/ctx.d.ts +28 -0
- package/components/bubble-list/src/index.vue.d.ts +484 -0
- package/components/bubble-list/src/types.d.ts +4 -0
- package/components/bubble-templates/index.d.ts +5 -0
- package/components/bubble-templates/src/core.d.ts +69 -0
- package/components/bubble-templates/src/index.vue.d.ts +242 -0
- package/components/bubble-templates/src/legacy.vue.d.ts +153 -0
- package/components/bubble-templates/src/types.d.ts +45 -0
- package/components/chat-independent/index.d.ts +4 -0
- package/components/chat-independent/src/const.d.ts +13 -0
- package/components/chat-independent/src/ctx.d.ts +21 -0
- package/components/chat-independent/src/index.vue.d.ts +2407 -0
- package/components/chat-independent/src/types.d.ts +13 -0
- package/components/index.d.ts +0 -0
- package/components/lottie-animation/index.d.ts +4 -0
- package/components/lottie-animation/src/ctx.d.ts +10 -0
- package/components/lottie-animation/src/index.vue.d.ts +21 -0
- package/components/lottie-animation/src/types.d.ts +4 -0
- package/components/metahuman-broadcasting/index.d.ts +5 -0
- package/components/metahuman-broadcasting/src/ctx.d.ts +57 -0
- package/components/metahuman-broadcasting/src/index.vue.d.ts +826 -0
- package/components/metahuman-broadcasting/src/types.d.ts +1 -0
- package/components/monaco-editor/index.d.ts +5 -0
- package/components/monaco-editor/src/ctx.d.ts +23 -0
- package/components/monaco-editor/src/index.vue.d.ts +40 -0
- package/components/monaco-editor/src/types.d.ts +1 -0
- package/components/monaco-environment/index.d.ts +4 -0
- package/components/monaco-environment/src/ctx.d.ts +8 -0
- package/components/monaco-environment/src/index.vue.d.ts +2 -0
- package/components/monaco-environment/src/types.d.ts +1 -0
- package/components/pixi-frame/index.d.ts +11 -0
- package/components/pixi-frame/src/apng.vue.d.ts +161 -0
- package/components/pixi-frame/src/bitmap.vue.d.ts +158 -0
- package/components/pixi-frame/src/core.vue.d.ts +173 -0
- package/components/pixi-frame/src/ctx.d.ts +55 -0
- package/components/pixi-frame/src/index.vue.d.ts +591 -0
- package/components/pixi-frame/src/provider.vue.d.ts +2 -0
- package/components/pixi-frame/src/types.d.ts +17 -0
- package/components/pixi-frame/src/use.d.ts +16 -0
- package/components/pixi-frame/src/useSprite.d.ts +12 -0
- package/components/pixi-frame/src/video.vue.d.ts +159 -0
- package/components/pixi-frame/src/view.vue.d.ts +29 -0
- package/components/recorder-button/index.d.ts +4 -0
- package/components/recorder-button/src/ctx.d.ts +41 -0
- package/components/recorder-button/src/index.vue.d.ts +489 -0
- package/components/recorder-button/src/speech-to-text.d.ts +1 -0
- package/components/recorder-button/src/types.d.ts +7 -0
- package/components/routes-menu-content/index.d.ts +4 -0
- package/components/routes-menu-content/src/ctx.d.ts +17 -0
- package/components/routes-menu-content/src/index.vue.d.ts +573 -0
- package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +408 -0
- package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
- package/components/routes-menu-content/src/item/index.vue.d.ts +539 -0
- package/components/routes-menu-content/src/types.d.ts +1 -0
- package/components/scrollbar/index.d.ts +4 -0
- package/components/scrollbar/src/bar.d.ts +15 -0
- package/components/scrollbar/src/bar.vue.d.ts +138 -0
- package/components/scrollbar/src/index.vue.d.ts +552 -0
- package/components/scrollbar/src/thumb.d.ts +15 -0
- package/components/scrollbar/src/thumb.vue.d.ts +97 -0
- package/components/scrollbar/src/types.d.ts +1 -0
- package/components/scrollbar/src/util.d.ts +3 -0
- package/components/sender/index.d.ts +4 -0
- package/components/sender/src/SenderHeader.vue.d.ts +256 -0
- package/components/sender/src/ctx.d.ts +64 -0
- package/components/sender/src/index.vue.d.ts +765 -0
- package/components/sender/src/types.d.ts +1 -0
- package/components/speech-button/index.d.ts +4 -0
- package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
- package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
- package/components/speech-button/src/ctx.d.ts +10 -0
- package/components/speech-button/src/index.vue.d.ts +22 -0
- package/components/speech-button/src/types.d.ts +1 -0
- package/components/table-columns/index.d.ts +5 -0
- package/components/table-columns/src/ctx.d.ts +59 -0
- package/components/table-columns/src/el-ctx.d.ts +57 -0
- package/components/table-columns/src/index.vue.d.ts +132 -0
- package/components/table-columns/src/types.d.ts +21 -0
- package/components/tables-v1/index.d.ts +5 -0
- package/components/tables-v1/src/ctx.d.ts +337 -0
- package/components/tables-v1/src/el-ctx.d.ts +262 -0
- package/components/tables-v1/src/index.vue.d.ts +3085 -0
- package/components/tables-v1/src/types.d.ts +3 -0
- package/components/tables-v1-checkbox/index.d.ts +5 -0
- package/components/tables-v1-checkbox/src/ctx.d.ts +370 -0
- package/components/tables-v1-checkbox/src/index.vue.d.ts +3972 -0
- package/components/tables-v1-checkbox/src/types.d.ts +1 -0
- package/components/text/index.d.ts +4 -0
- package/components/text/src/ctx.d.ts +356 -0
- package/components/text/src/index.vue.d.ts +2335 -0
- package/components/text/src/types.d.ts +1 -0
- package/components/typing-markdown/index.d.ts +4 -0
- package/components/typing-markdown/src/core.d.ts +2 -0
- package/components/typing-markdown/src/ctx.d.ts +41 -0
- package/components/typing-markdown/src/index.vue.d.ts +75 -0
- package/components/typing-markdown/src/types.d.ts +1 -0
- package/components/vditor/index.d.ts +5 -0
- package/components/vditor/src/ctx.d.ts +38 -0
- package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
- package/components/vditor/src/handle-value.vue.d.ts +18 -0
- package/components/vditor/src/index.vue.d.ts +143 -0
- package/components/vditor/src/types.d.ts +9 -0
- package/components/vditor/src/use.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
url: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
requierd: false;
|
|
5
|
+
};
|
|
6
|
+
data: {
|
|
7
|
+
type: import("vue").PropType<any[]>;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
loop: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
status: {
|
|
15
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
16
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
17
|
+
};
|
|
18
|
+
frameRate: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
label: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
resize: {
|
|
27
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
prerender: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
visible: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
}>, {
|
|
39
|
+
isApng: import("vue").ComputedRef<boolean>;
|
|
40
|
+
isVideo: import("vue").ComputedRef<boolean>;
|
|
41
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
|
+
'update:status': null;
|
|
43
|
+
'update:data': null;
|
|
44
|
+
setData: null;
|
|
45
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
+
url: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
requierd: false;
|
|
49
|
+
};
|
|
50
|
+
data: {
|
|
51
|
+
type: import("vue").PropType<any[]>;
|
|
52
|
+
default: () => never[];
|
|
53
|
+
};
|
|
54
|
+
loop: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
status: {
|
|
59
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
60
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
61
|
+
};
|
|
62
|
+
frameRate: {
|
|
63
|
+
type: NumberConstructor;
|
|
64
|
+
default: number;
|
|
65
|
+
};
|
|
66
|
+
label: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
resize: {
|
|
71
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
prerender: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
visible: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
}>> & Readonly<{
|
|
83
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
}>, {
|
|
87
|
+
data: any[];
|
|
88
|
+
status: import("@vunk/shared/enum").TickerStatus;
|
|
89
|
+
label: string;
|
|
90
|
+
resize: import("./types").Resize;
|
|
91
|
+
visible: boolean;
|
|
92
|
+
prerender: boolean;
|
|
93
|
+
loop: boolean;
|
|
94
|
+
frameRate: number;
|
|
95
|
+
}, {}, {
|
|
96
|
+
ApngComp: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
97
|
+
url: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
required: true;
|
|
100
|
+
};
|
|
101
|
+
data: {
|
|
102
|
+
type: import("vue").PropType<any[]>;
|
|
103
|
+
default: () => never[];
|
|
104
|
+
};
|
|
105
|
+
loop: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
status: {
|
|
110
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
111
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
112
|
+
};
|
|
113
|
+
frameRate: {
|
|
114
|
+
type: NumberConstructor;
|
|
115
|
+
default: number;
|
|
116
|
+
};
|
|
117
|
+
label: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
resize: {
|
|
122
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
123
|
+
default: undefined;
|
|
124
|
+
};
|
|
125
|
+
prerender: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
129
|
+
visible: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
}>, {
|
|
134
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
135
|
+
url: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
required: true;
|
|
138
|
+
};
|
|
139
|
+
data: {
|
|
140
|
+
type: import("vue").PropType<any[]>;
|
|
141
|
+
default: () => never[];
|
|
142
|
+
};
|
|
143
|
+
loop: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
147
|
+
status: {
|
|
148
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
149
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
150
|
+
};
|
|
151
|
+
frameRate: {
|
|
152
|
+
type: NumberConstructor;
|
|
153
|
+
default: number;
|
|
154
|
+
};
|
|
155
|
+
label: {
|
|
156
|
+
type: StringConstructor;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
resize: {
|
|
160
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
161
|
+
default: undefined;
|
|
162
|
+
};
|
|
163
|
+
prerender: {
|
|
164
|
+
type: BooleanConstructor;
|
|
165
|
+
default: boolean;
|
|
166
|
+
};
|
|
167
|
+
visible: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
default: boolean;
|
|
170
|
+
};
|
|
171
|
+
}>> & Readonly<{
|
|
172
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
173
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
174
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
175
|
+
}> & {}>;
|
|
176
|
+
emit: ((event: "update:status", ...args: any[]) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
|
|
177
|
+
compId: string;
|
|
178
|
+
getAlias: (frameIndex: number) => string;
|
|
179
|
+
sprite: import("pixi.js").Sprite;
|
|
180
|
+
resizeSprite: () => void;
|
|
181
|
+
frames: import("vue").Ref<string[], string[]>;
|
|
182
|
+
index: import("vue").Ref<number, number>;
|
|
183
|
+
isLoaded: import("vue").Ref<boolean, boolean>;
|
|
184
|
+
error: import("vue").Ref<string, string>;
|
|
185
|
+
textureMap: Map<string, import("pixi.js").Texture<import("pixi.js").TextureSource<any>>>;
|
|
186
|
+
timer: number | null;
|
|
187
|
+
reusableCanvas: HTMLCanvasElement | null;
|
|
188
|
+
reusableCtx: CanvasRenderingContext2D | null;
|
|
189
|
+
getReusableCanvas: (width: number, height: number) => {
|
|
190
|
+
canvas: HTMLCanvasElement;
|
|
191
|
+
ctx: CanvasRenderingContext2D;
|
|
192
|
+
};
|
|
193
|
+
loadAPNG: (url: string) => Promise<void>;
|
|
194
|
+
startFrameLoop: () => void;
|
|
195
|
+
play: () => void;
|
|
196
|
+
pause: () => void;
|
|
197
|
+
stop: () => void;
|
|
198
|
+
cleanup: () => Promise<void>;
|
|
199
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
200
|
+
'update:status': null;
|
|
201
|
+
'update:data': null;
|
|
202
|
+
setData: null;
|
|
203
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
204
|
+
url: {
|
|
205
|
+
type: StringConstructor;
|
|
206
|
+
required: true;
|
|
207
|
+
};
|
|
208
|
+
data: {
|
|
209
|
+
type: import("vue").PropType<any[]>;
|
|
210
|
+
default: () => never[];
|
|
211
|
+
};
|
|
212
|
+
loop: {
|
|
213
|
+
type: BooleanConstructor;
|
|
214
|
+
default: boolean;
|
|
215
|
+
};
|
|
216
|
+
status: {
|
|
217
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
218
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
219
|
+
};
|
|
220
|
+
frameRate: {
|
|
221
|
+
type: NumberConstructor;
|
|
222
|
+
default: number;
|
|
223
|
+
};
|
|
224
|
+
label: {
|
|
225
|
+
type: StringConstructor;
|
|
226
|
+
default: string;
|
|
227
|
+
};
|
|
228
|
+
resize: {
|
|
229
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
230
|
+
default: undefined;
|
|
231
|
+
};
|
|
232
|
+
prerender: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
default: boolean;
|
|
235
|
+
};
|
|
236
|
+
visible: {
|
|
237
|
+
type: BooleanConstructor;
|
|
238
|
+
default: boolean;
|
|
239
|
+
};
|
|
240
|
+
}>> & Readonly<{
|
|
241
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
242
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
243
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
244
|
+
}>, {
|
|
245
|
+
data: any[];
|
|
246
|
+
status: import("@vunk/shared/enum").TickerStatus;
|
|
247
|
+
label: string;
|
|
248
|
+
resize: import("./types").Resize;
|
|
249
|
+
visible: boolean;
|
|
250
|
+
prerender: boolean;
|
|
251
|
+
loop: boolean;
|
|
252
|
+
frameRate: number;
|
|
253
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
254
|
+
ProviderComp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
255
|
+
ViewComp: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
256
|
+
defaultOptions: {
|
|
257
|
+
type: import("vue").PropType<Partial<import("pixi.js").ApplicationOptions>>;
|
|
258
|
+
default: () => {};
|
|
259
|
+
};
|
|
260
|
+
}>, {
|
|
261
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
262
|
+
defaultOptions: {
|
|
263
|
+
type: import("vue").PropType<Partial<import("pixi.js").ApplicationOptions>>;
|
|
264
|
+
default: () => {};
|
|
265
|
+
};
|
|
266
|
+
}>> & Readonly<{}> & {}>;
|
|
267
|
+
app: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
268
|
+
context: {
|
|
269
|
+
whenDef: import("@vunk/shared/promise").Deferred<import("pixi.js").Application>;
|
|
270
|
+
when: () => Promise<import("pixi.js").Application>;
|
|
271
|
+
};
|
|
272
|
+
appRef: import("vue").Ref<HTMLDivElement, HTMLDivElement>;
|
|
273
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
274
|
+
defaultOptions: {
|
|
275
|
+
type: import("vue").PropType<Partial<import("pixi.js").ApplicationOptions>>;
|
|
276
|
+
default: () => {};
|
|
277
|
+
};
|
|
278
|
+
}>> & Readonly<{}>, {
|
|
279
|
+
defaultOptions: Partial<import("pixi.js").ApplicationOptions>;
|
|
280
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
281
|
+
VideoComp: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
282
|
+
url: {
|
|
283
|
+
type: StringConstructor;
|
|
284
|
+
required: true;
|
|
285
|
+
};
|
|
286
|
+
data: {
|
|
287
|
+
type: import("vue").PropType<any[]>;
|
|
288
|
+
default: () => never[];
|
|
289
|
+
};
|
|
290
|
+
loop: {
|
|
291
|
+
type: BooleanConstructor;
|
|
292
|
+
default: boolean;
|
|
293
|
+
};
|
|
294
|
+
status: {
|
|
295
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
296
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
297
|
+
};
|
|
298
|
+
frameRate: {
|
|
299
|
+
type: NumberConstructor;
|
|
300
|
+
default: number;
|
|
301
|
+
};
|
|
302
|
+
label: {
|
|
303
|
+
type: StringConstructor;
|
|
304
|
+
default: string;
|
|
305
|
+
};
|
|
306
|
+
resize: {
|
|
307
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
308
|
+
default: undefined;
|
|
309
|
+
};
|
|
310
|
+
prerender: {
|
|
311
|
+
type: BooleanConstructor;
|
|
312
|
+
default: boolean;
|
|
313
|
+
};
|
|
314
|
+
visible: {
|
|
315
|
+
type: BooleanConstructor;
|
|
316
|
+
default: boolean;
|
|
317
|
+
};
|
|
318
|
+
}>, {
|
|
319
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
320
|
+
url: {
|
|
321
|
+
type: StringConstructor;
|
|
322
|
+
required: true;
|
|
323
|
+
};
|
|
324
|
+
data: {
|
|
325
|
+
type: import("vue").PropType<any[]>;
|
|
326
|
+
default: () => never[];
|
|
327
|
+
};
|
|
328
|
+
loop: {
|
|
329
|
+
type: BooleanConstructor;
|
|
330
|
+
default: boolean;
|
|
331
|
+
};
|
|
332
|
+
status: {
|
|
333
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
334
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
335
|
+
};
|
|
336
|
+
frameRate: {
|
|
337
|
+
type: NumberConstructor;
|
|
338
|
+
default: number;
|
|
339
|
+
};
|
|
340
|
+
label: {
|
|
341
|
+
type: StringConstructor;
|
|
342
|
+
default: string;
|
|
343
|
+
};
|
|
344
|
+
resize: {
|
|
345
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
346
|
+
default: undefined;
|
|
347
|
+
};
|
|
348
|
+
prerender: {
|
|
349
|
+
type: BooleanConstructor;
|
|
350
|
+
default: boolean;
|
|
351
|
+
};
|
|
352
|
+
visible: {
|
|
353
|
+
type: BooleanConstructor;
|
|
354
|
+
default: boolean;
|
|
355
|
+
};
|
|
356
|
+
}>> & Readonly<{
|
|
357
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
358
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
359
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
360
|
+
}> & {}>;
|
|
361
|
+
emit: ((event: "update:status", ...args: any[]) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
|
|
362
|
+
compId: string;
|
|
363
|
+
getAlias: () => string;
|
|
364
|
+
sprite: import("pixi.js").Sprite;
|
|
365
|
+
resizeSprite: () => void;
|
|
366
|
+
texture: import("vue").Ref<import("pixi.js").Texture<import("pixi.js").TextureSource<any>> | undefined, import("pixi.js").Texture<import("pixi.js").TextureSource<any>> | undefined>;
|
|
367
|
+
video: import("vue").ComputedRef<HTMLVideoElement | null>;
|
|
368
|
+
readyDef: {
|
|
369
|
+
_ref: import("vue").ShallowRef<unknown, unknown>;
|
|
370
|
+
readonly value: unknown;
|
|
371
|
+
promise: Promise<unknown>;
|
|
372
|
+
resolve: import("@vunk/core").AnyFunc;
|
|
373
|
+
reject: (reason?: any) => void;
|
|
374
|
+
};
|
|
375
|
+
videoError: import("vue").Ref<string, string>;
|
|
376
|
+
loadVideoTexture: (url: string) => Promise<any>;
|
|
377
|
+
setupVideoEvents: (video: HTMLVideoElement) => void;
|
|
378
|
+
cleanupVideo: () => Promise<void>;
|
|
379
|
+
play: () => void;
|
|
380
|
+
pause: () => void;
|
|
381
|
+
stop: () => void;
|
|
382
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
383
|
+
'update:status': null;
|
|
384
|
+
'update:data': null;
|
|
385
|
+
setData: null;
|
|
386
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
387
|
+
url: {
|
|
388
|
+
type: StringConstructor;
|
|
389
|
+
required: true;
|
|
390
|
+
};
|
|
391
|
+
data: {
|
|
392
|
+
type: import("vue").PropType<any[]>;
|
|
393
|
+
default: () => never[];
|
|
394
|
+
};
|
|
395
|
+
loop: {
|
|
396
|
+
type: BooleanConstructor;
|
|
397
|
+
default: boolean;
|
|
398
|
+
};
|
|
399
|
+
status: {
|
|
400
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
401
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
402
|
+
};
|
|
403
|
+
frameRate: {
|
|
404
|
+
type: NumberConstructor;
|
|
405
|
+
default: number;
|
|
406
|
+
};
|
|
407
|
+
label: {
|
|
408
|
+
type: StringConstructor;
|
|
409
|
+
default: string;
|
|
410
|
+
};
|
|
411
|
+
resize: {
|
|
412
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
413
|
+
default: undefined;
|
|
414
|
+
};
|
|
415
|
+
prerender: {
|
|
416
|
+
type: BooleanConstructor;
|
|
417
|
+
default: boolean;
|
|
418
|
+
};
|
|
419
|
+
visible: {
|
|
420
|
+
type: BooleanConstructor;
|
|
421
|
+
default: boolean;
|
|
422
|
+
};
|
|
423
|
+
}>> & Readonly<{
|
|
424
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
425
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
426
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
427
|
+
}>, {
|
|
428
|
+
data: any[];
|
|
429
|
+
status: import("@vunk/shared/enum").TickerStatus;
|
|
430
|
+
label: string;
|
|
431
|
+
resize: import("./types").Resize;
|
|
432
|
+
visible: boolean;
|
|
433
|
+
prerender: boolean;
|
|
434
|
+
loop: boolean;
|
|
435
|
+
frameRate: number;
|
|
436
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
437
|
+
Bitmap: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
438
|
+
data: {
|
|
439
|
+
type: import("vue").PropType<ImageBitmap[]>;
|
|
440
|
+
required: true;
|
|
441
|
+
};
|
|
442
|
+
frameIndex: {
|
|
443
|
+
type: NumberConstructor;
|
|
444
|
+
};
|
|
445
|
+
status: {
|
|
446
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
447
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
448
|
+
};
|
|
449
|
+
url: {
|
|
450
|
+
type: StringConstructor;
|
|
451
|
+
requierd: false;
|
|
452
|
+
};
|
|
453
|
+
label: {
|
|
454
|
+
type: StringConstructor;
|
|
455
|
+
default: string;
|
|
456
|
+
};
|
|
457
|
+
resize: {
|
|
458
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
459
|
+
default: undefined;
|
|
460
|
+
};
|
|
461
|
+
visible: {
|
|
462
|
+
type: BooleanConstructor;
|
|
463
|
+
default: boolean;
|
|
464
|
+
};
|
|
465
|
+
prerender: {
|
|
466
|
+
type: BooleanConstructor;
|
|
467
|
+
default: boolean;
|
|
468
|
+
};
|
|
469
|
+
frameRate: {
|
|
470
|
+
type: NumberConstructor;
|
|
471
|
+
default: number;
|
|
472
|
+
};
|
|
473
|
+
}>, {
|
|
474
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
475
|
+
data: {
|
|
476
|
+
type: import("vue").PropType<ImageBitmap[]>;
|
|
477
|
+
required: true;
|
|
478
|
+
};
|
|
479
|
+
frameIndex: {
|
|
480
|
+
type: NumberConstructor;
|
|
481
|
+
};
|
|
482
|
+
status: {
|
|
483
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
484
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
485
|
+
};
|
|
486
|
+
url: {
|
|
487
|
+
type: StringConstructor;
|
|
488
|
+
requierd: false;
|
|
489
|
+
};
|
|
490
|
+
label: {
|
|
491
|
+
type: StringConstructor;
|
|
492
|
+
default: string;
|
|
493
|
+
};
|
|
494
|
+
resize: {
|
|
495
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
496
|
+
default: undefined;
|
|
497
|
+
};
|
|
498
|
+
visible: {
|
|
499
|
+
type: BooleanConstructor;
|
|
500
|
+
default: boolean;
|
|
501
|
+
};
|
|
502
|
+
prerender: {
|
|
503
|
+
type: BooleanConstructor;
|
|
504
|
+
default: boolean;
|
|
505
|
+
};
|
|
506
|
+
frameRate: {
|
|
507
|
+
type: NumberConstructor;
|
|
508
|
+
default: number;
|
|
509
|
+
};
|
|
510
|
+
}>> & Readonly<{
|
|
511
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
512
|
+
onLoad?: ((e: import("./types").LoadEvent) => any) | undefined;
|
|
513
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
514
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
515
|
+
"onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
|
|
516
|
+
onNotFound?: ((_index: number) => any) | undefined;
|
|
517
|
+
}> & {}>;
|
|
518
|
+
emit: ((event: "update:status", ...args: any[]) => void) & ((event: "load", e: import("./types").LoadEvent) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
|
|
519
|
+
compId: string;
|
|
520
|
+
getAlias: (key: string | number) => string;
|
|
521
|
+
sprite: import("pixi.js").Sprite;
|
|
522
|
+
resizeSprite: () => void;
|
|
523
|
+
application: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
524
|
+
textureMap: Map<string, import("pixi.js").Texture<import("pixi.js").TextureSource<any>>>;
|
|
525
|
+
completedIndex: import("vue").Ref<number, number>;
|
|
526
|
+
enabledData: import("vue").ComputedRef<ImageBitmap[]>;
|
|
527
|
+
index: import("vue").WritableComputedRef<number, number>;
|
|
528
|
+
drawFrame: () => void;
|
|
529
|
+
play: () => void;
|
|
530
|
+
pause: () => void;
|
|
531
|
+
stop: () => void;
|
|
532
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
533
|
+
load: (e: import("./types").LoadEvent) => import("./types").LoadEvent;
|
|
534
|
+
'update:frameIndex': null;
|
|
535
|
+
notFound: (_index: number) => true;
|
|
536
|
+
'update:status': null;
|
|
537
|
+
'update:data': null;
|
|
538
|
+
setData: null;
|
|
539
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
540
|
+
data: {
|
|
541
|
+
type: import("vue").PropType<ImageBitmap[]>;
|
|
542
|
+
required: true;
|
|
543
|
+
};
|
|
544
|
+
frameIndex: {
|
|
545
|
+
type: NumberConstructor;
|
|
546
|
+
};
|
|
547
|
+
status: {
|
|
548
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
549
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
550
|
+
};
|
|
551
|
+
url: {
|
|
552
|
+
type: StringConstructor;
|
|
553
|
+
requierd: false;
|
|
554
|
+
};
|
|
555
|
+
label: {
|
|
556
|
+
type: StringConstructor;
|
|
557
|
+
default: string;
|
|
558
|
+
};
|
|
559
|
+
resize: {
|
|
560
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
561
|
+
default: undefined;
|
|
562
|
+
};
|
|
563
|
+
visible: {
|
|
564
|
+
type: BooleanConstructor;
|
|
565
|
+
default: boolean;
|
|
566
|
+
};
|
|
567
|
+
prerender: {
|
|
568
|
+
type: BooleanConstructor;
|
|
569
|
+
default: boolean;
|
|
570
|
+
};
|
|
571
|
+
frameRate: {
|
|
572
|
+
type: NumberConstructor;
|
|
573
|
+
default: number;
|
|
574
|
+
};
|
|
575
|
+
}>> & Readonly<{
|
|
576
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
577
|
+
onLoad?: ((e: import("./types").LoadEvent) => any) | undefined;
|
|
578
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
579
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
580
|
+
"onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
|
|
581
|
+
onNotFound?: ((_index: number) => any) | undefined;
|
|
582
|
+
}>, {
|
|
583
|
+
status: import("@vunk/shared/enum").TickerStatus;
|
|
584
|
+
label: string;
|
|
585
|
+
resize: import("./types").Resize;
|
|
586
|
+
visible: boolean;
|
|
587
|
+
prerender: boolean;
|
|
588
|
+
frameRate: number;
|
|
589
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
590
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
591
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReturnVoid } from '@vunk/shared';
|
|
2
|
+
import type { Application, Sprite } from 'pixi.js';
|
|
3
|
+
export interface Datum {
|
|
4
|
+
src: string;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export interface ResizeEvent {
|
|
8
|
+
application: Application;
|
|
9
|
+
sprite: Sprite;
|
|
10
|
+
meta: any;
|
|
11
|
+
}
|
|
12
|
+
export interface LoadEvent {
|
|
13
|
+
application: Application;
|
|
14
|
+
sprite: Sprite;
|
|
15
|
+
}
|
|
16
|
+
export type OnLoad = (e: LoadEvent) => ReturnVoid;
|
|
17
|
+
export type Resize = (e: ResizeEvent) => ReturnVoid;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Deferred } from '@vunk/shared/promise';
|
|
2
|
+
import { Application } from 'pixi.js';
|
|
3
|
+
export declare function initPixiApp(): {
|
|
4
|
+
application: Application<import("pixi.js").Renderer>;
|
|
5
|
+
context: {
|
|
6
|
+
whenDef: Deferred<Application<import("pixi.js").Renderer>>;
|
|
7
|
+
when: () => Promise<Application<import("pixi.js").Renderer>>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function usePixiApp(): {
|
|
11
|
+
application: Application;
|
|
12
|
+
context: {
|
|
13
|
+
whenDef: Deferred<Application>;
|
|
14
|
+
when: () => Promise<Application>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Resize } from './types';
|
|
2
|
+
import { Sprite } from 'pixi.js';
|
|
3
|
+
export declare function useSprite(props: {
|
|
4
|
+
autoResize?: boolean;
|
|
5
|
+
label?: string;
|
|
6
|
+
resize?: Resize;
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
}): {
|
|
9
|
+
sprite: Sprite;
|
|
10
|
+
resizeSprite: () => void;
|
|
11
|
+
application: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
12
|
+
};
|