@vunk/plus 1.4.1 → 1.4.3
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 +7 -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 +47 -0
- package/components/agent-chat-provider/src/types.d.ts +43 -0
- package/components/agent-chat-provider/src/use.d.ts +29 -0
- package/components/avatar/index.d.ts +4 -0
- package/components/avatar/src/ctx.d.ts +18 -0
- package/components/avatar/src/index.vue.d.ts +121 -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 +115 -0
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +97 -0
- package/components/broadcasting-markdown/src/index.vue.d.ts +383 -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 +25 -0
- package/components/broadcasting-markdown/src/use.d.ts +21 -0
- package/components/bubble-list/index.d.ts +5 -0
- package/components/bubble-list/src/ctx.d.ts +30 -0
- package/components/bubble-list/src/index.vue.d.ts +867 -0
- package/components/bubble-list/src/types.d.ts +4 -0
- package/components/bubble-templates/index.d.ts +4 -0
- package/components/bubble-templates/src/index.vue.d.ts +539 -0
- package/components/bubble-templates/src/types.d.ts +40 -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 +20 -0
- package/components/chat-independent/src/index.vue.d.ts +2343 -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/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 +8 -0
- package/components/pixi-frame/src/core.vue.d.ts +131 -0
- package/components/pixi-frame/src/ctx.d.ts +44 -0
- package/components/pixi-frame/src/index.vue.d.ts +230 -0
- package/components/pixi-frame/src/provider.vue.d.ts +2 -0
- package/components/pixi-frame/src/types.d.ts +1 -0
- package/components/pixi-frame/src/use.d.ts +16 -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 +300 -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 +472 -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 +307 -0
- package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
- package/components/routes-menu-content/src/item/index.vue.d.ts +438 -0
- package/components/routes-menu-content/src/types.d.ts +1 -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 +62 -0
- package/components/sender/src/index.vue.d.ts +787 -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 +66 -0
- package/components/table-columns/src/el-ctx.d.ts +63 -0
- package/components/table-columns/src/index.vue.d.ts +282 -0
- package/components/table-columns/src/types.d.ts +21 -0
- package/components/tables-v1/index.d.ts +5 -0
- package/components/tables-v1/index.mjs +18 -8
- package/components/tables-v1/src/ctx.d.ts +288 -0
- package/components/tables-v1/src/el-ctx.d.ts +269 -0
- package/components/tables-v1/src/index.vue.d.ts +3106 -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 +325 -0
- package/components/tables-v1-checkbox/src/index.vue.d.ts +3898 -0
- package/components/tables-v1-checkbox/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 +33 -0
- package/components/typing-markdown/src/index.vue.d.ts +57 -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 +37 -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 +144 -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,13 @@
|
|
|
1
|
+
import type { __VkAgentChatProvider } from '@vunk/plus/components/agent-chat-provider';
|
|
2
|
+
import type { __VkBroadcastingMarkdown } from '@vunk/plus/components/broadcasting-markdown';
|
|
3
|
+
import type { __VkRecorderButton } from '@vunk/plus/components/recorder-button';
|
|
4
|
+
export type SpeechToText = __VkRecorderButton.SpeechToText;
|
|
5
|
+
export type TextToSpeech = __VkBroadcastingMarkdown.TextToSpeech;
|
|
6
|
+
/**
|
|
7
|
+
* @description useXChat parser 解析数据
|
|
8
|
+
*/
|
|
9
|
+
export type BubbleMessage = __VkAgentChatProvider.BubbleMessage;
|
|
10
|
+
/**
|
|
11
|
+
* @description useXAgent request onSuccess 发送的数据
|
|
12
|
+
*/
|
|
13
|
+
export type AgentMessage = __VkAgentChatProvider.AgentMessage;
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
path: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
}>, {
|
|
8
|
+
lottieNode: Ref<HTMLDivElement, HTMLDivElement>;
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
load: (e: import("./types").LoadEvent) => import("./types").LoadEvent;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
path: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}>> & Readonly<{
|
|
17
|
+
onLoad?: ((e: import("./types").LoadEvent) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
path: string;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { editor } from 'monaco-editor';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
defaultOptions: {
|
|
9
|
+
type: PropType<editor.IStandaloneEditorConstructionOptions>;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
readOnly: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"modelValue", keyof T2> | Extract<"readOnly", keyof T2> | Extract<"defaultOptions", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"readOnly", keyof T2>, KE> | Exclude<Extract<"defaultOptions", keyof T2>, KE> : Extract<"modelValue", keyof T2> | Extract<"readOnly", keyof T2> | Extract<"defaultOptions", keyof T2>]: { [k in Extract<"modelValue", keyof T2> | Extract<"readOnly", keyof T2> | Extract<"defaultOptions", keyof T2>]: T2[k]; }[P]; }>;
|
|
18
|
+
export declare const emits: {
|
|
19
|
+
'update:modelValue': null;
|
|
20
|
+
};
|
|
21
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends "update:modelValue"[]>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> : "update:modelValue"]: {
|
|
22
|
+
'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
23
|
+
}[P]; };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import { editor as mEditor } from 'monaco-editor';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
defaultOptions: {
|
|
9
|
+
type: import("vue").PropType<mEditor.IStandaloneEditorConstructionOptions>;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
readOnly: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
}>, {
|
|
17
|
+
editorNode: Ref<HTMLDivElement, HTMLDivElement>;
|
|
18
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
'update:modelValue': null;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
defaultOptions: {
|
|
26
|
+
type: import("vue").PropType<mEditor.IStandaloneEditorConstructionOptions>;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
|
+
readOnly: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{
|
|
34
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
modelValue: string;
|
|
37
|
+
readOnly: boolean;
|
|
38
|
+
defaultOptions: mEditor.IStandaloneEditorConstructionOptions;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import VkPixiFrameCore from './src/core.vue';
|
|
2
|
+
import VkPixiFrame from './src/index.vue';
|
|
3
|
+
import VkPixiFrameProvider from './src/provider.vue';
|
|
4
|
+
import VkPixiFrameView from './src/view.vue';
|
|
5
|
+
export * as __VkPixiFrame from './src/types';
|
|
6
|
+
export { TickerStatus } from '@vunk/shared/enum';
|
|
7
|
+
export { VkPixiFrame, VkPixiFrameCore, VkPixiFrameProvider, VkPixiFrameView, };
|
|
8
|
+
export default VkPixiFrame;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { Texture } from 'pixi.js';
|
|
2
|
+
import { TickerStatus } from '@vunk/shared/enum';
|
|
3
|
+
import { Sprite } from 'pixi.js';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
data: {
|
|
6
|
+
type: {
|
|
7
|
+
(arrayLength: number): string[];
|
|
8
|
+
(...items: string[]): string[];
|
|
9
|
+
new (arrayLength: number): string[];
|
|
10
|
+
new (...items: string[]): string[];
|
|
11
|
+
isArray(arg: any): arg is any[];
|
|
12
|
+
readonly prototype: any[];
|
|
13
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
14
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
15
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
16
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
17
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
18
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
19
|
+
};
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
loop: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
status: {
|
|
27
|
+
type: import("vue").PropType<TickerStatus>;
|
|
28
|
+
default: TickerStatus;
|
|
29
|
+
};
|
|
30
|
+
frameRate: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
}>, {
|
|
35
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
data: {
|
|
37
|
+
type: {
|
|
38
|
+
(arrayLength: number): string[];
|
|
39
|
+
(...items: string[]): string[];
|
|
40
|
+
new (arrayLength: number): string[];
|
|
41
|
+
new (...items: string[]): string[];
|
|
42
|
+
isArray(arg: any): arg is any[];
|
|
43
|
+
readonly prototype: any[];
|
|
44
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
45
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
46
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
47
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
48
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
49
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
50
|
+
};
|
|
51
|
+
default: () => never[];
|
|
52
|
+
};
|
|
53
|
+
loop: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
status: {
|
|
58
|
+
type: import("vue").PropType<TickerStatus>;
|
|
59
|
+
default: TickerStatus;
|
|
60
|
+
};
|
|
61
|
+
frameRate: {
|
|
62
|
+
type: NumberConstructor;
|
|
63
|
+
default: number;
|
|
64
|
+
};
|
|
65
|
+
}>> & Readonly<{
|
|
66
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}> & {}>;
|
|
70
|
+
emit: ((event: "setData", ...args: any[]) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
|
|
71
|
+
app: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
72
|
+
context: {
|
|
73
|
+
whenDef: import("@vunk/shared/promise").Deferred<import("pixi.js").Application<import("pixi.js").Renderer>>;
|
|
74
|
+
when: () => Promise<import("pixi.js").Application<import("pixi.js").Renderer>>;
|
|
75
|
+
};
|
|
76
|
+
compId: string;
|
|
77
|
+
getAlias: (key: string | number) => string;
|
|
78
|
+
sprite: Sprite;
|
|
79
|
+
resizeSprite: () => void;
|
|
80
|
+
textureMap: Map<string, Texture<import("pixi.js").TextureSource<any>>>;
|
|
81
|
+
index: import("vue").Ref<number, number>;
|
|
82
|
+
timer: number | null;
|
|
83
|
+
startFrameLoop: () => void;
|
|
84
|
+
play: () => void;
|
|
85
|
+
pause: () => void;
|
|
86
|
+
stop: () => void;
|
|
87
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
88
|
+
'update:status': null;
|
|
89
|
+
'update:data': null;
|
|
90
|
+
setData: null;
|
|
91
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
|
+
data: {
|
|
93
|
+
type: {
|
|
94
|
+
(arrayLength: number): string[];
|
|
95
|
+
(...items: string[]): string[];
|
|
96
|
+
new (arrayLength: number): string[];
|
|
97
|
+
new (...items: string[]): string[];
|
|
98
|
+
isArray(arg: any): arg is any[];
|
|
99
|
+
readonly prototype: any[];
|
|
100
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
101
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
102
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
103
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
104
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
105
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
106
|
+
};
|
|
107
|
+
default: () => never[];
|
|
108
|
+
};
|
|
109
|
+
loop: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
113
|
+
status: {
|
|
114
|
+
type: import("vue").PropType<TickerStatus>;
|
|
115
|
+
default: TickerStatus;
|
|
116
|
+
};
|
|
117
|
+
frameRate: {
|
|
118
|
+
type: NumberConstructor;
|
|
119
|
+
default: number;
|
|
120
|
+
};
|
|
121
|
+
}>> & Readonly<{
|
|
122
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
123
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
124
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
125
|
+
}>, {
|
|
126
|
+
data: string[];
|
|
127
|
+
status: TickerStatus;
|
|
128
|
+
loop: boolean;
|
|
129
|
+
frameRate: number;
|
|
130
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
131
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import { TickerStatus } from '@vunk/shared/enum';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
data: {
|
|
5
|
+
type: {
|
|
6
|
+
(arrayLength: number): string[];
|
|
7
|
+
(...items: string[]): string[];
|
|
8
|
+
new (arrayLength: number): string[];
|
|
9
|
+
new (...items: string[]): string[];
|
|
10
|
+
isArray(arg: any): arg is any[];
|
|
11
|
+
readonly prototype: any[];
|
|
12
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
13
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
14
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
15
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
16
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
17
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
18
|
+
};
|
|
19
|
+
default: () => never[];
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @description 控制动画是否循环播放
|
|
23
|
+
*/
|
|
24
|
+
loop: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @description v-model:status 控制动画状态
|
|
30
|
+
*/
|
|
31
|
+
status: {
|
|
32
|
+
type: PropType<TickerStatus>;
|
|
33
|
+
default: TickerStatus;
|
|
34
|
+
};
|
|
35
|
+
frameRate: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const emits: {
|
|
41
|
+
'update:status': null;
|
|
42
|
+
'update:data': null;
|
|
43
|
+
setData: null;
|
|
44
|
+
};
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
data: {
|
|
3
|
+
type: {
|
|
4
|
+
(arrayLength: number): string[];
|
|
5
|
+
(...items: string[]): string[];
|
|
6
|
+
new (arrayLength: number): string[];
|
|
7
|
+
new (...items: string[]): string[];
|
|
8
|
+
isArray(arg: any): arg is any[];
|
|
9
|
+
readonly prototype: any[];
|
|
10
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
11
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
12
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
13
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
14
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
15
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
16
|
+
};
|
|
17
|
+
default: () => never[];
|
|
18
|
+
};
|
|
19
|
+
loop: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
status: {
|
|
24
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
25
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
26
|
+
};
|
|
27
|
+
frameRate: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
'update:status': null;
|
|
33
|
+
'update:data': null;
|
|
34
|
+
setData: null;
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
data: {
|
|
37
|
+
type: {
|
|
38
|
+
(arrayLength: number): string[];
|
|
39
|
+
(...items: string[]): string[];
|
|
40
|
+
new (arrayLength: number): string[];
|
|
41
|
+
new (...items: string[]): string[];
|
|
42
|
+
isArray(arg: any): arg is any[];
|
|
43
|
+
readonly prototype: any[];
|
|
44
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
45
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
46
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
47
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
48
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
49
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
50
|
+
};
|
|
51
|
+
default: () => never[];
|
|
52
|
+
};
|
|
53
|
+
loop: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
status: {
|
|
58
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
59
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
60
|
+
};
|
|
61
|
+
frameRate: {
|
|
62
|
+
type: NumberConstructor;
|
|
63
|
+
default: number;
|
|
64
|
+
};
|
|
65
|
+
}>> & Readonly<{
|
|
66
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}>, {
|
|
70
|
+
data: string[];
|
|
71
|
+
status: import("@vunk/shared/enum").TickerStatus;
|
|
72
|
+
loop: boolean;
|
|
73
|
+
frameRate: number;
|
|
74
|
+
}, {}, {
|
|
75
|
+
CoreComp: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
76
|
+
data: {
|
|
77
|
+
type: {
|
|
78
|
+
(arrayLength: number): string[];
|
|
79
|
+
(...items: string[]): string[];
|
|
80
|
+
new (arrayLength: number): string[];
|
|
81
|
+
new (...items: string[]): string[];
|
|
82
|
+
isArray(arg: any): arg is any[];
|
|
83
|
+
readonly prototype: any[];
|
|
84
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
85
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
86
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
87
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
88
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
89
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
90
|
+
};
|
|
91
|
+
default: () => never[];
|
|
92
|
+
};
|
|
93
|
+
loop: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
status: {
|
|
98
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
99
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
100
|
+
};
|
|
101
|
+
frameRate: {
|
|
102
|
+
type: NumberConstructor;
|
|
103
|
+
default: number;
|
|
104
|
+
};
|
|
105
|
+
}>, {
|
|
106
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
107
|
+
data: {
|
|
108
|
+
type: {
|
|
109
|
+
(arrayLength: number): string[];
|
|
110
|
+
(...items: string[]): string[];
|
|
111
|
+
new (arrayLength: number): string[];
|
|
112
|
+
new (...items: string[]): string[];
|
|
113
|
+
isArray(arg: any): arg is any[];
|
|
114
|
+
readonly prototype: any[];
|
|
115
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
116
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
117
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
118
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
119
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
120
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
121
|
+
};
|
|
122
|
+
default: () => never[];
|
|
123
|
+
};
|
|
124
|
+
loop: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
status: {
|
|
129
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
130
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
131
|
+
};
|
|
132
|
+
frameRate: {
|
|
133
|
+
type: NumberConstructor;
|
|
134
|
+
default: number;
|
|
135
|
+
};
|
|
136
|
+
}>> & Readonly<{
|
|
137
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
138
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
139
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
140
|
+
}> & {}>;
|
|
141
|
+
emit: ((event: "setData", ...args: any[]) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
|
|
142
|
+
app: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
143
|
+
context: {
|
|
144
|
+
whenDef: import("@vunk/shared/promise").Deferred<import("pixi.js").Application<import("pixi.js").Renderer>>;
|
|
145
|
+
when: () => Promise<import("pixi.js").Application<import("pixi.js").Renderer>>;
|
|
146
|
+
};
|
|
147
|
+
compId: string;
|
|
148
|
+
getAlias: (key: string | number) => string;
|
|
149
|
+
sprite: import("pixi.js").Sprite;
|
|
150
|
+
resizeSprite: () => void;
|
|
151
|
+
textureMap: Map<string, import("pixi.js").Texture<import("pixi.js").TextureSource<any>>>;
|
|
152
|
+
index: import("vue").Ref<number, number>;
|
|
153
|
+
timer: number | null;
|
|
154
|
+
startFrameLoop: () => void;
|
|
155
|
+
play: () => void;
|
|
156
|
+
pause: () => void;
|
|
157
|
+
stop: () => void;
|
|
158
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
159
|
+
'update:status': null;
|
|
160
|
+
'update:data': null;
|
|
161
|
+
setData: null;
|
|
162
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
163
|
+
data: {
|
|
164
|
+
type: {
|
|
165
|
+
(arrayLength: number): string[];
|
|
166
|
+
(...items: string[]): string[];
|
|
167
|
+
new (arrayLength: number): string[];
|
|
168
|
+
new (...items: string[]): string[];
|
|
169
|
+
isArray(arg: any): arg is any[];
|
|
170
|
+
readonly prototype: any[];
|
|
171
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
172
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
173
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
174
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
175
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
176
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
177
|
+
};
|
|
178
|
+
default: () => never[];
|
|
179
|
+
};
|
|
180
|
+
loop: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
184
|
+
status: {
|
|
185
|
+
type: import("vue").PropType<import("@vunk/shared/enum").TickerStatus>;
|
|
186
|
+
default: import("@vunk/shared/enum").TickerStatus;
|
|
187
|
+
};
|
|
188
|
+
frameRate: {
|
|
189
|
+
type: NumberConstructor;
|
|
190
|
+
default: number;
|
|
191
|
+
};
|
|
192
|
+
}>> & Readonly<{
|
|
193
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
194
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
195
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
196
|
+
}>, {
|
|
197
|
+
data: string[];
|
|
198
|
+
status: import("@vunk/shared/enum").TickerStatus;
|
|
199
|
+
loop: boolean;
|
|
200
|
+
frameRate: number;
|
|
201
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
202
|
+
ProviderComp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
203
|
+
ViewComp: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
204
|
+
defaultOptions: {
|
|
205
|
+
type: import("vue").PropType<Partial<import("pixi.js").ApplicationOptions>>;
|
|
206
|
+
default: () => {};
|
|
207
|
+
};
|
|
208
|
+
}>, {
|
|
209
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
210
|
+
defaultOptions: {
|
|
211
|
+
type: import("vue").PropType<Partial<import("pixi.js").ApplicationOptions>>;
|
|
212
|
+
default: () => {};
|
|
213
|
+
};
|
|
214
|
+
}>> & Readonly<{}> & {}>;
|
|
215
|
+
app: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
216
|
+
context: {
|
|
217
|
+
whenDef: import("@vunk/shared/promise").Deferred<import("pixi.js").Application<import("pixi.js").Renderer>>;
|
|
218
|
+
when: () => Promise<import("pixi.js").Application<import("pixi.js").Renderer>>;
|
|
219
|
+
};
|
|
220
|
+
appRef: import("vue").Ref<HTMLDivElement, HTMLDivElement>;
|
|
221
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
222
|
+
defaultOptions: {
|
|
223
|
+
type: import("vue").PropType<Partial<import("pixi.js").ApplicationOptions>>;
|
|
224
|
+
default: () => {};
|
|
225
|
+
};
|
|
226
|
+
}>> & Readonly<{}>, {
|
|
227
|
+
defaultOptions: Partial<import("pixi.js").ApplicationOptions>;
|
|
228
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
229
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
230
|
+
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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<import("pixi.js").Renderer>;
|
|
12
|
+
context: {
|
|
13
|
+
whenDef: Deferred<Application<import("pixi.js").Renderer>>;
|
|
14
|
+
when: () => Promise<Application<import("pixi.js").Renderer>>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ApplicationOptions } from 'pixi.js';
|
|
2
|
+
import type { PropType, Ref } from 'vue';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
defaultOptions: {
|
|
5
|
+
type: PropType<Partial<ApplicationOptions>>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
}>, {
|
|
9
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
defaultOptions: {
|
|
11
|
+
type: PropType<Partial<ApplicationOptions>>;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}> & {}>;
|
|
15
|
+
app: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
16
|
+
context: {
|
|
17
|
+
whenDef: import("@vunk/shared/promise").Deferred<import("pixi.js").Application<import("pixi.js").Renderer>>;
|
|
18
|
+
when: () => Promise<import("pixi.js").Application<import("pixi.js").Renderer>>;
|
|
19
|
+
};
|
|
20
|
+
appRef: Ref<HTMLDivElement, HTMLDivElement>;
|
|
21
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
defaultOptions: {
|
|
23
|
+
type: PropType<Partial<ApplicationOptions>>;
|
|
24
|
+
default: () => {};
|
|
25
|
+
};
|
|
26
|
+
}>> & Readonly<{}>, {
|
|
27
|
+
defaultOptions: Partial<ApplicationOptions>;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
export default _default;
|