@vunk/plus 1.6.0 → 1.6.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/index2.mjs +7 -0
- package/components/metahuman-broadcasting/index.mjs +26 -2
- package/components/metahuman-broadcasting/src/index.vue.d.ts +27 -0
- package/components/pixi-frame/src/apng.vue.d.ts +13 -0
- package/components/pixi-frame/src/bitmap.vue.d.ts +13 -0
- package/components/pixi-frame/src/core.vue.d.ts +13 -0
- package/components/pixi-frame/src/ctx.d.ts +4 -0
- package/components/pixi-frame/src/index.vue.d.ts +48 -0
- package/components/pixi-frame/src/useSprite.d.ts +1 -0
- package/components/pixi-frame/src/video.vue.d.ts +13 -0
- package/components/text/src/ctx.d.ts +1 -1
- package/components/text/src/index.vue.d.ts +2 -2
- package/components/vditor/src/ctx.d.ts +1 -1
- package/components/vditor/src/index.vue.d.ts +1 -1
- package/package.json +1 -1
- package/shared/audioToFrames/index.d.ts +1 -0
package/components/index2.mjs
CHANGED
|
@@ -22023,6 +22023,10 @@ const props = {
|
|
|
22023
22023
|
prerender: {
|
|
22024
22024
|
type: Boolean,
|
|
22025
22025
|
default: false
|
|
22026
|
+
},
|
|
22027
|
+
visible: {
|
|
22028
|
+
type: Boolean,
|
|
22029
|
+
default: true
|
|
22026
22030
|
}
|
|
22027
22031
|
};
|
|
22028
22032
|
const emits = {
|
|
@@ -22059,6 +22063,9 @@ function useSprite(props) {
|
|
|
22059
22063
|
const { application: app, context } = usePixiApp();
|
|
22060
22064
|
const sprite = new Sprite();
|
|
22061
22065
|
app.stage.addChild(sprite);
|
|
22066
|
+
watchEffect(() => {
|
|
22067
|
+
sprite.visible = props.visible ?? true;
|
|
22068
|
+
});
|
|
22062
22069
|
watchEffect(() => {
|
|
22063
22070
|
props.label && (sprite.label = props.label);
|
|
22064
22071
|
});
|
|
@@ -77,16 +77,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
const paragraphData = ref([]);
|
|
78
78
|
const streamingInferenceService = new StreamingInferenceService(props.modelUrl);
|
|
79
79
|
const frameUrls = ref([]);
|
|
80
|
+
const silentFrameUrls = ref([]);
|
|
80
81
|
const frameStatus = useModelComputed({
|
|
81
82
|
default: TickerStatus.pending,
|
|
82
83
|
key: "status"
|
|
83
84
|
}, props, emit);
|
|
85
|
+
const slientFrameStatus = ref(TickerStatus.pending);
|
|
84
86
|
onMounted(async () => {
|
|
85
87
|
await streamingInferenceService.when();
|
|
86
|
-
const { blendingMaskBitmap, dataset, zipBlob } = await getStremingStartData({
|
|
88
|
+
const { blendingMaskBitmap, dataset, zipBlob, zip } = await getStremingStartData({
|
|
87
89
|
datasetUrl: props.datasetUrl,
|
|
88
90
|
sourceUrl: props.sourceUrl
|
|
89
91
|
});
|
|
92
|
+
loadAllSilentFrames(dataset, zip);
|
|
90
93
|
await streamingInferenceService.startStreaming({
|
|
91
94
|
blendingMaskBitmap,
|
|
92
95
|
dataset,
|
|
@@ -131,6 +134,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
131
134
|
frameUrls.value.length = 0;
|
|
132
135
|
}
|
|
133
136
|
}
|
|
137
|
+
async function loadAllSilentFrames(dataset, zip) {
|
|
138
|
+
for (const image of dataset.images) {
|
|
139
|
+
const imageFile = zip.file(image.full_image);
|
|
140
|
+
if (imageFile) {
|
|
141
|
+
const blob = await imageFile.async("blob");
|
|
142
|
+
const imageBitmap = await createImageBitmap(blob);
|
|
143
|
+
silentFrameUrls.value.push(imageBitmap);
|
|
144
|
+
}
|
|
145
|
+
if (slientFrameStatus.value === TickerStatus.pending) {
|
|
146
|
+
slientFrameStatus.value = TickerStatus.play;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
134
150
|
return (_ctx, _cache) => {
|
|
135
151
|
return openBlock(), createElementBlock(
|
|
136
152
|
Fragment,
|
|
@@ -149,7 +165,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
165
|
status: unref(frameStatus),
|
|
150
166
|
"onUpdate:status": _cache[1] || (_cache[1] = ($event) => isRef(frameStatus) ? frameStatus.value = $event : null),
|
|
151
167
|
data: frameUrls.value
|
|
152
|
-
}, null, 8, ["status", "data"])
|
|
168
|
+
}, null, 8, ["status", "data"]),
|
|
169
|
+
createVNode(unref(VkPixiFrameBitmap), {
|
|
170
|
+
status: slientFrameStatus.value,
|
|
171
|
+
"onUpdate:status": _cache[2] || (_cache[2] = ($event) => slientFrameStatus.value = $event),
|
|
172
|
+
data: silentFrameUrls.value,
|
|
173
|
+
loop: true,
|
|
174
|
+
prerender: true,
|
|
175
|
+
visible: unref(frameStatus) !== unref(TickerStatus).playing
|
|
176
|
+
}, null, 8, ["status", "data", "visible"])
|
|
153
177
|
],
|
|
154
178
|
64
|
|
155
179
|
/* STABLE_FRAGMENT */
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { __VkBroadcastingMarkdown } from '@vunk/plus/components/broadcasting-markdown';
|
|
2
|
+
import type { ImageDataResponse } from '@vunk/plus/shared/audioToFrames';
|
|
3
|
+
import type JSZip from 'jszip';
|
|
2
4
|
import type { Ref } from 'vue';
|
|
3
5
|
import { StreamingInferenceService } from '@vunk/plus/shared/audioToFrames';
|
|
4
6
|
import { TickerStatus } from '@vunk/shared/enum';
|
|
@@ -76,10 +78,21 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
76
78
|
readonly width: number;
|
|
77
79
|
close: () => void;
|
|
78
80
|
}[]>;
|
|
81
|
+
silentFrameUrls: Ref<{
|
|
82
|
+
readonly height: number;
|
|
83
|
+
readonly width: number;
|
|
84
|
+
close: () => void;
|
|
85
|
+
}[], ImageBitmap[] | {
|
|
86
|
+
readonly height: number;
|
|
87
|
+
readonly width: number;
|
|
88
|
+
close: () => void;
|
|
89
|
+
}[]>;
|
|
79
90
|
frameStatus: import("vue").WritableComputedRef<TickerStatus, TickerStatus>;
|
|
91
|
+
slientFrameStatus: Ref<TickerStatus, TickerStatus>;
|
|
80
92
|
requestProcessStreaming: (buffer: AudioBuffer) => Promise<void>;
|
|
81
93
|
processingParagraph: (item: __VkBroadcastingMarkdown.Paragraph) => Promise<void>;
|
|
82
94
|
allParagraphCompleted: (v: boolean) => void;
|
|
95
|
+
loadAllSilentFrames: (dataset: ImageDataResponse, zip: JSZip) => Promise<void>;
|
|
83
96
|
readonly VkBroadcastingMarkdown: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
84
97
|
render: {
|
|
85
98
|
type: import("vue").PropType<(text: string) => string>;
|
|
@@ -536,6 +549,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
536
549
|
type: BooleanConstructor;
|
|
537
550
|
default: boolean;
|
|
538
551
|
};
|
|
552
|
+
visible: {
|
|
553
|
+
type: BooleanConstructor;
|
|
554
|
+
default: boolean;
|
|
555
|
+
};
|
|
539
556
|
}>, {
|
|
540
557
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
541
558
|
data: {
|
|
@@ -573,6 +590,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
573
590
|
type: BooleanConstructor;
|
|
574
591
|
default: boolean;
|
|
575
592
|
};
|
|
593
|
+
visible: {
|
|
594
|
+
type: BooleanConstructor;
|
|
595
|
+
default: boolean;
|
|
596
|
+
};
|
|
576
597
|
}>> & Readonly<{
|
|
577
598
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
578
599
|
onLoad?: ((e: import("../../pixi-frame/src/types").LoadEvent) => any) | undefined;
|
|
@@ -638,6 +659,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
638
659
|
type: BooleanConstructor;
|
|
639
660
|
default: boolean;
|
|
640
661
|
};
|
|
662
|
+
visible: {
|
|
663
|
+
type: BooleanConstructor;
|
|
664
|
+
default: boolean;
|
|
665
|
+
};
|
|
641
666
|
}>> & Readonly<{
|
|
642
667
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
643
668
|
onLoad?: ((e: import("../../pixi-frame/src/types").LoadEvent) => any) | undefined;
|
|
@@ -649,11 +674,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
649
674
|
status: TickerStatus;
|
|
650
675
|
label: string;
|
|
651
676
|
resize: import("../../pixi-frame/src/types").Resize;
|
|
677
|
+
visible: boolean;
|
|
652
678
|
prerender: boolean;
|
|
653
679
|
loop: boolean;
|
|
654
680
|
frameRate: number;
|
|
655
681
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
656
682
|
readonly setData: (obj: any, e: import("@vunk/core/shared").SetDataEvent) => void;
|
|
683
|
+
readonly TickerStatus: typeof TickerStatus;
|
|
657
684
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
658
685
|
'update:status': null;
|
|
659
686
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -33,6 +33,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
33
|
type: BooleanConstructor;
|
|
34
34
|
default: boolean;
|
|
35
35
|
};
|
|
36
|
+
visible: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
36
40
|
}>, {
|
|
37
41
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
38
42
|
url: {
|
|
@@ -67,6 +71,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
67
71
|
type: BooleanConstructor;
|
|
68
72
|
default: boolean;
|
|
69
73
|
};
|
|
74
|
+
visible: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
70
78
|
}>> & Readonly<{
|
|
71
79
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
72
80
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
@@ -132,6 +140,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
132
140
|
type: BooleanConstructor;
|
|
133
141
|
default: boolean;
|
|
134
142
|
};
|
|
143
|
+
visible: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
135
147
|
}>> & Readonly<{
|
|
136
148
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
137
149
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
@@ -141,6 +153,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
141
153
|
status: TickerStatus;
|
|
142
154
|
label: string;
|
|
143
155
|
resize: import("./types").Resize;
|
|
156
|
+
visible: boolean;
|
|
144
157
|
prerender: boolean;
|
|
145
158
|
loop: boolean;
|
|
146
159
|
frameRate: number;
|
|
@@ -38,6 +38,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
38
|
type: BooleanConstructor;
|
|
39
39
|
default: boolean;
|
|
40
40
|
};
|
|
41
|
+
visible: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
41
45
|
}>, {
|
|
42
46
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
43
47
|
data: {
|
|
@@ -75,6 +79,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
75
79
|
type: BooleanConstructor;
|
|
76
80
|
default: boolean;
|
|
77
81
|
};
|
|
82
|
+
visible: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
78
86
|
}>> & Readonly<{
|
|
79
87
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
80
88
|
onLoad?: ((e: LoadEvent) => any) | undefined;
|
|
@@ -140,6 +148,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
140
148
|
type: BooleanConstructor;
|
|
141
149
|
default: boolean;
|
|
142
150
|
};
|
|
151
|
+
visible: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
143
155
|
}>> & Readonly<{
|
|
144
156
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
145
157
|
onLoad?: ((e: LoadEvent) => any) | undefined;
|
|
@@ -151,6 +163,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
151
163
|
status: TickerStatus;
|
|
152
164
|
label: string;
|
|
153
165
|
resize: import("./types").Resize;
|
|
166
|
+
visible: boolean;
|
|
154
167
|
prerender: boolean;
|
|
155
168
|
loop: boolean;
|
|
156
169
|
frameRate: number;
|
|
@@ -38,6 +38,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
38
|
type: BooleanConstructor;
|
|
39
39
|
default: boolean;
|
|
40
40
|
};
|
|
41
|
+
visible: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
41
45
|
}>, {
|
|
42
46
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
43
47
|
data: {
|
|
@@ -75,6 +79,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
75
79
|
type: BooleanConstructor;
|
|
76
80
|
default: boolean;
|
|
77
81
|
};
|
|
82
|
+
visible: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
78
86
|
}>> & Readonly<{
|
|
79
87
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
80
88
|
onLoad?: ((e: LoadEvent) => any) | undefined;
|
|
@@ -142,6 +150,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
142
150
|
type: BooleanConstructor;
|
|
143
151
|
default: boolean;
|
|
144
152
|
};
|
|
153
|
+
visible: {
|
|
154
|
+
type: BooleanConstructor;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
145
157
|
}>> & Readonly<{
|
|
146
158
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
147
159
|
onLoad?: ((e: LoadEvent) => any) | undefined;
|
|
@@ -153,6 +165,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
153
165
|
status: TickerStatus;
|
|
154
166
|
label: string;
|
|
155
167
|
resize: import("./types").Resize;
|
|
168
|
+
visible: boolean;
|
|
156
169
|
prerender: boolean;
|
|
157
170
|
loop: boolean;
|
|
158
171
|
frameRate: number;
|
|
@@ -31,6 +31,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
31
31
|
type: BooleanConstructor;
|
|
32
32
|
default: boolean;
|
|
33
33
|
};
|
|
34
|
+
visible: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
34
38
|
}>, {
|
|
35
39
|
isApng: import("vue").ComputedRef<boolean>;
|
|
36
40
|
isVideo: import("vue").ComputedRef<boolean>;
|
|
@@ -71,6 +75,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
71
75
|
type: BooleanConstructor;
|
|
72
76
|
default: boolean;
|
|
73
77
|
};
|
|
78
|
+
visible: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
74
82
|
}>> & Readonly<{
|
|
75
83
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
76
84
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
@@ -80,6 +88,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
88
|
status: import("@vunk/shared/enum").TickerStatus;
|
|
81
89
|
label: string;
|
|
82
90
|
resize: import("./types").Resize;
|
|
91
|
+
visible: boolean;
|
|
83
92
|
prerender: boolean;
|
|
84
93
|
loop: boolean;
|
|
85
94
|
frameRate: number;
|
|
@@ -117,6 +126,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
117
126
|
type: BooleanConstructor;
|
|
118
127
|
default: boolean;
|
|
119
128
|
};
|
|
129
|
+
visible: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
120
133
|
}>, {
|
|
121
134
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
122
135
|
url: {
|
|
@@ -151,6 +164,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
151
164
|
type: BooleanConstructor;
|
|
152
165
|
default: boolean;
|
|
153
166
|
};
|
|
167
|
+
visible: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
default: boolean;
|
|
170
|
+
};
|
|
154
171
|
}>> & Readonly<{
|
|
155
172
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
156
173
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
@@ -216,6 +233,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
216
233
|
type: BooleanConstructor;
|
|
217
234
|
default: boolean;
|
|
218
235
|
};
|
|
236
|
+
visible: {
|
|
237
|
+
type: BooleanConstructor;
|
|
238
|
+
default: boolean;
|
|
239
|
+
};
|
|
219
240
|
}>> & Readonly<{
|
|
220
241
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
221
242
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
@@ -225,6 +246,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
225
246
|
status: import("@vunk/shared/enum").TickerStatus;
|
|
226
247
|
label: string;
|
|
227
248
|
resize: import("./types").Resize;
|
|
249
|
+
visible: boolean;
|
|
228
250
|
prerender: boolean;
|
|
229
251
|
loop: boolean;
|
|
230
252
|
frameRate: number;
|
|
@@ -289,6 +311,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
289
311
|
type: BooleanConstructor;
|
|
290
312
|
default: boolean;
|
|
291
313
|
};
|
|
314
|
+
visible: {
|
|
315
|
+
type: BooleanConstructor;
|
|
316
|
+
default: boolean;
|
|
317
|
+
};
|
|
292
318
|
}>, {
|
|
293
319
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
294
320
|
url: {
|
|
@@ -323,6 +349,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
323
349
|
type: BooleanConstructor;
|
|
324
350
|
default: boolean;
|
|
325
351
|
};
|
|
352
|
+
visible: {
|
|
353
|
+
type: BooleanConstructor;
|
|
354
|
+
default: boolean;
|
|
355
|
+
};
|
|
326
356
|
}>> & Readonly<{
|
|
327
357
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
328
358
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
@@ -386,6 +416,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
386
416
|
type: BooleanConstructor;
|
|
387
417
|
default: boolean;
|
|
388
418
|
};
|
|
419
|
+
visible: {
|
|
420
|
+
type: BooleanConstructor;
|
|
421
|
+
default: boolean;
|
|
422
|
+
};
|
|
389
423
|
}>> & Readonly<{
|
|
390
424
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
391
425
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
@@ -395,6 +429,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
395
429
|
status: import("@vunk/shared/enum").TickerStatus;
|
|
396
430
|
label: string;
|
|
397
431
|
resize: import("./types").Resize;
|
|
432
|
+
visible: boolean;
|
|
398
433
|
prerender: boolean;
|
|
399
434
|
loop: boolean;
|
|
400
435
|
frameRate: number;
|
|
@@ -435,6 +470,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
435
470
|
type: BooleanConstructor;
|
|
436
471
|
default: boolean;
|
|
437
472
|
};
|
|
473
|
+
visible: {
|
|
474
|
+
type: BooleanConstructor;
|
|
475
|
+
default: boolean;
|
|
476
|
+
};
|
|
438
477
|
}>, {
|
|
439
478
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
440
479
|
data: {
|
|
@@ -472,6 +511,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
472
511
|
type: BooleanConstructor;
|
|
473
512
|
default: boolean;
|
|
474
513
|
};
|
|
514
|
+
visible: {
|
|
515
|
+
type: BooleanConstructor;
|
|
516
|
+
default: boolean;
|
|
517
|
+
};
|
|
475
518
|
}>> & Readonly<{
|
|
476
519
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
477
520
|
onLoad?: ((e: import("./types").LoadEvent) => any) | undefined;
|
|
@@ -537,6 +580,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
537
580
|
type: BooleanConstructor;
|
|
538
581
|
default: boolean;
|
|
539
582
|
};
|
|
583
|
+
visible: {
|
|
584
|
+
type: BooleanConstructor;
|
|
585
|
+
default: boolean;
|
|
586
|
+
};
|
|
540
587
|
}>> & Readonly<{
|
|
541
588
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
542
589
|
onLoad?: ((e: import("./types").LoadEvent) => any) | undefined;
|
|
@@ -548,6 +595,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
548
595
|
status: import("@vunk/shared/enum").TickerStatus;
|
|
549
596
|
label: string;
|
|
550
597
|
resize: import("./types").Resize;
|
|
598
|
+
visible: boolean;
|
|
551
599
|
prerender: boolean;
|
|
552
600
|
loop: boolean;
|
|
553
601
|
frameRate: number;
|
|
@@ -33,6 +33,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
33
|
type: BooleanConstructor;
|
|
34
34
|
default: boolean;
|
|
35
35
|
};
|
|
36
|
+
visible: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
36
40
|
}>, {
|
|
37
41
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
38
42
|
url: {
|
|
@@ -67,6 +71,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
67
71
|
type: BooleanConstructor;
|
|
68
72
|
default: boolean;
|
|
69
73
|
};
|
|
74
|
+
visible: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
70
78
|
}>> & Readonly<{
|
|
71
79
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
72
80
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
@@ -130,6 +138,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
130
138
|
type: BooleanConstructor;
|
|
131
139
|
default: boolean;
|
|
132
140
|
};
|
|
141
|
+
visible: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
133
145
|
}>> & Readonly<{
|
|
134
146
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
135
147
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
@@ -139,6 +151,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
139
151
|
status: TickerStatus;
|
|
140
152
|
label: string;
|
|
141
153
|
resize: import("./types").Resize;
|
|
154
|
+
visible: boolean;
|
|
142
155
|
prerender: boolean;
|
|
143
156
|
loop: boolean;
|
|
144
157
|
frameRate: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const createTextBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"tag", keyof T2> | Extract<"truncated", keyof T2> | Extract<"lineClamp", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"tag", keyof T2>, KE> | Exclude<Extract<"truncated", keyof T2>, KE> | Exclude<Extract<"lineClamp", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"tag", keyof T2> | Extract<"truncated", keyof T2> | Extract<"lineClamp", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"tag", keyof T2> | Extract<"truncated", keyof T2> | Extract<"lineClamp", keyof T2>]: T2[k]; }[P]; }>;
|
|
2
|
-
export declare const createTooltipBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"disabled", keyof T2> | Extract<"style", keyof T2> | Extract<"content", keyof T2> | Extract<"placement", keyof T2> | Extract<"role", keyof T2> | Extract<"onClick", keyof T2> | Extract<"onFocus", keyof T2> | Extract<"onBlur", keyof T2> | Extract<"onKeydown", keyof T2> | Extract<"onContextmenu", keyof T2> | Extract<"onMouseenter", keyof T2> | Extract<"onMouseleave", keyof T2> | Extract<"className", keyof T2> | Extract<"id", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"offset", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"
|
|
2
|
+
export declare const createTooltipBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"disabled", keyof T2> | Extract<"style", keyof T2> | Extract<"content", keyof T2> | Extract<"placement", keyof T2> | Extract<"role", keyof T2> | Extract<"onClick", keyof T2> | Extract<"onFocus", keyof T2> | Extract<"onBlur", keyof T2> | Extract<"onKeydown", keyof T2> | Extract<"onContextmenu", keyof T2> | Extract<"onMouseenter", keyof T2> | Extract<"onMouseleave", keyof T2> | Extract<"className", keyof T2> | Extract<"id", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"offset", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"open", keyof T2> | Extract<"visible", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"teleported", keyof T2> | Extract<"showArrow", keyof T2> | Extract<"arrowOffset", keyof T2> | Extract<"trigger", keyof T2> | Extract<"triggerKeys", keyof T2> | Extract<"virtualRef", keyof T2> | Extract<"virtualTriggering", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"rawContent", keyof T2> | Extract<"persistent", keyof T2> | Extract<"transition", keyof T2> | Extract<"effect", keyof T2> | Extract<"enterable", keyof T2> | Extract<"pure", keyof T2> | Extract<"focusOnShow", keyof T2> | Extract<"trapping", keyof T2> | Extract<"popperStyle", keyof T2> | Extract<"referenceEl", keyof T2> | Extract<"triggerTargetEl", keyof T2> | Extract<"stopPopperMouseEvent", keyof T2> | Extract<"boundariesPadding", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"gpuAcceleration", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"strategy", keyof T2> | Extract<"showAfter", keyof T2> | Extract<"hideAfter", keyof T2> | Extract<"autoClose", keyof T2> | Extract<"onUpdate:visible", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"style", keyof T2>, KE> | Exclude<Extract<"content", keyof T2>, KE> | Exclude<Extract<"placement", keyof T2>, KE> | Exclude<Extract<"role", keyof T2>, KE> | Exclude<Extract<"onClick", keyof T2>, KE> | Exclude<Extract<"onFocus", keyof T2>, KE> | Exclude<Extract<"onBlur", keyof T2>, KE> | Exclude<Extract<"onKeydown", keyof T2>, KE> | Exclude<Extract<"onContextmenu", keyof T2>, KE> | Exclude<Extract<"onMouseenter", keyof T2>, KE> | Exclude<Extract<"onMouseleave", keyof T2>, KE> | Exclude<Extract<"className", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"appendTo", keyof T2>, KE> | Exclude<Extract<"offset", keyof T2>, KE> | Exclude<Extract<"zIndex", keyof T2>, KE> | Exclude<Extract<"open", keyof T2>, KE> | Exclude<Extract<"visible", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"teleported", keyof T2>, KE> | Exclude<Extract<"showArrow", keyof T2>, KE> | Exclude<Extract<"arrowOffset", keyof T2>, KE> | Exclude<Extract<"trigger", keyof T2>, KE> | Exclude<Extract<"triggerKeys", keyof T2>, KE> | Exclude<Extract<"virtualRef", keyof T2>, KE> | Exclude<Extract<"virtualTriggering", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"rawContent", keyof T2>, KE> | Exclude<Extract<"persistent", keyof T2>, KE> | Exclude<Extract<"transition", keyof T2>, KE> | Exclude<Extract<"effect", keyof T2>, KE> | Exclude<Extract<"enterable", keyof T2>, KE> | Exclude<Extract<"pure", keyof T2>, KE> | Exclude<Extract<"focusOnShow", keyof T2>, KE> | Exclude<Extract<"trapping", keyof T2>, KE> | Exclude<Extract<"popperStyle", keyof T2>, KE> | Exclude<Extract<"referenceEl", keyof T2>, KE> | Exclude<Extract<"triggerTargetEl", keyof T2>, KE> | Exclude<Extract<"stopPopperMouseEvent", keyof T2>, KE> | Exclude<Extract<"boundariesPadding", keyof T2>, KE> | Exclude<Extract<"fallbackPlacements", keyof T2>, KE> | Exclude<Extract<"gpuAcceleration", keyof T2>, KE> | Exclude<Extract<"popperOptions", keyof T2>, KE> | Exclude<Extract<"strategy", keyof T2>, KE> | Exclude<Extract<"showAfter", keyof T2>, KE> | Exclude<Extract<"hideAfter", keyof T2>, KE> | Exclude<Extract<"autoClose", keyof T2>, KE> | Exclude<Extract<"onUpdate:visible", keyof T2>, KE> : Extract<"disabled", keyof T2> | Extract<"style", keyof T2> | Extract<"content", keyof T2> | Extract<"placement", keyof T2> | Extract<"role", keyof T2> | Extract<"onClick", keyof T2> | Extract<"onFocus", keyof T2> | Extract<"onBlur", keyof T2> | Extract<"onKeydown", keyof T2> | Extract<"onContextmenu", keyof T2> | Extract<"onMouseenter", keyof T2> | Extract<"onMouseleave", keyof T2> | Extract<"className", keyof T2> | Extract<"id", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"offset", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"open", keyof T2> | Extract<"visible", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"teleported", keyof T2> | Extract<"showArrow", keyof T2> | Extract<"arrowOffset", keyof T2> | Extract<"trigger", keyof T2> | Extract<"triggerKeys", keyof T2> | Extract<"virtualRef", keyof T2> | Extract<"virtualTriggering", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"rawContent", keyof T2> | Extract<"persistent", keyof T2> | Extract<"transition", keyof T2> | Extract<"effect", keyof T2> | Extract<"enterable", keyof T2> | Extract<"pure", keyof T2> | Extract<"focusOnShow", keyof T2> | Extract<"trapping", keyof T2> | Extract<"popperStyle", keyof T2> | Extract<"referenceEl", keyof T2> | Extract<"triggerTargetEl", keyof T2> | Extract<"stopPopperMouseEvent", keyof T2> | Extract<"boundariesPadding", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"gpuAcceleration", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"strategy", keyof T2> | Extract<"showAfter", keyof T2> | Extract<"hideAfter", keyof T2> | Extract<"autoClose", keyof T2> | Extract<"onUpdate:visible", keyof T2>]: { [k in Extract<"disabled", keyof T2> | Extract<"style", keyof T2> | Extract<"content", keyof T2> | Extract<"placement", keyof T2> | Extract<"role", keyof T2> | Extract<"onClick", keyof T2> | Extract<"onFocus", keyof T2> | Extract<"onBlur", keyof T2> | Extract<"onKeydown", keyof T2> | Extract<"onContextmenu", keyof T2> | Extract<"onMouseenter", keyof T2> | Extract<"onMouseleave", keyof T2> | Extract<"className", keyof T2> | Extract<"id", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"offset", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"open", keyof T2> | Extract<"visible", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"teleported", keyof T2> | Extract<"showArrow", keyof T2> | Extract<"arrowOffset", keyof T2> | Extract<"trigger", keyof T2> | Extract<"triggerKeys", keyof T2> | Extract<"virtualRef", keyof T2> | Extract<"virtualTriggering", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"rawContent", keyof T2> | Extract<"persistent", keyof T2> | Extract<"transition", keyof T2> | Extract<"effect", keyof T2> | Extract<"enterable", keyof T2> | Extract<"pure", keyof T2> | Extract<"focusOnShow", keyof T2> | Extract<"trapping", keyof T2> | Extract<"popperStyle", keyof T2> | Extract<"referenceEl", keyof T2> | Extract<"triggerTargetEl", keyof T2> | Extract<"stopPopperMouseEvent", keyof T2> | Extract<"boundariesPadding", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"gpuAcceleration", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"strategy", keyof T2> | Extract<"showAfter", keyof T2> | Extract<"hideAfter", keyof T2> | Extract<"autoClose", keyof T2> | Extract<"onUpdate:visible", keyof T2>]: T2[k]; }[P]; }>;
|
|
3
3
|
export declare const props: {
|
|
4
4
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
5
5
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
@@ -738,8 +738,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
738
738
|
appendTo: import("element-plus").ButtonType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown> | undefined;
|
|
739
739
|
offset: number;
|
|
740
740
|
zIndex: number | undefined;
|
|
741
|
-
visible: import("element-plus").ButtonType<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown>;
|
|
742
741
|
open: boolean;
|
|
742
|
+
visible: import("element-plus").ButtonType<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown>;
|
|
743
743
|
popperClass: import("element-plus").ButtonType<(new (...args: any[]) => string | {
|
|
744
744
|
[x: string]: boolean;
|
|
745
745
|
} | (string | {
|
|
@@ -2285,8 +2285,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2285
2285
|
role: import("element-plus").ButtonType<StringConstructor, "dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation", unknown>;
|
|
2286
2286
|
tag: string;
|
|
2287
2287
|
offset: number;
|
|
2288
|
-
visible: import("element-plus").ButtonType<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown>;
|
|
2289
2288
|
open: boolean;
|
|
2289
|
+
visible: import("element-plus").ButtonType<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown>;
|
|
2290
2290
|
teleported: import("element-plus").ButtonType<BooleanConstructor, unknown, unknown>;
|
|
2291
2291
|
showArrow: import("element-plus").ButtonType<BooleanConstructor, unknown, unknown>;
|
|
2292
2292
|
arrowOffset: number;
|
|
@@ -22,7 +22,7 @@ export declare const props: {
|
|
|
22
22
|
default: boolean;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"
|
|
25
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"fullscreen", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"toolbar", keyof T2>, KE> | Exclude<Extract<"defaultOptions", keyof T2>, KE> | Exclude<Extract<"fullscreen", keyof T2>, KE> : Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"fullscreen", keyof T2>]: { [k in Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"toolbar", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"fullscreen", keyof T2>]: T2[k]; }[P]; }>;
|
|
26
26
|
export declare const emits: {
|
|
27
27
|
load: (e: Vditor) => Vditor;
|
|
28
28
|
'update:modelValue': (e: string) => string;
|
|
@@ -60,8 +60,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
60
60
|
}>, {
|
|
61
61
|
modelValue: string;
|
|
62
62
|
placeholder: string;
|
|
63
|
-
defaultOptions: IOptions;
|
|
64
63
|
toolbar: string[];
|
|
64
|
+
defaultOptions: IOptions;
|
|
65
65
|
fullscreen: boolean;
|
|
66
66
|
}, {}, {
|
|
67
67
|
HandleValue: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import type { ChunkFeatureResult } from './src/audio';
|
|
|
2
2
|
import { workerConfig } from './src/config';
|
|
3
3
|
import { StreamingInferenceService } from './src/inference';
|
|
4
4
|
import { PredictiveFrameLoader } from './src/media';
|
|
5
|
+
export type { ImageDataResponse } from './src/media';
|
|
5
6
|
export { PredictiveFrameLoader, StreamingInferenceService, workerConfig, };
|
|
6
7
|
export declare function blobToAudioBuffer(blob: Blob): Promise<AudioBuffer>;
|
|
7
8
|
export declare function processStreaming(buffer: AudioBuffer, callbacks?: {
|