@vunk/plus 1.8.0 → 1.8.2
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/{SendOutlined.mjs → LinkOutlined.mjs} +36 -54
- 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 +2291 -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 +5 -0
- package/components/sender/index.mjs +96 -42
- package/components/sender/src/SenderHeader.vue.d.ts +256 -0
- package/components/sender/src/ctx.d.ts +107 -0
- package/components/sender/src/index.vue.d.ts +649 -0
- package/components/sender/src/types.d.ts +1 -0
- package/components/speech-button/index.d.ts +4 -0
- package/components/speech-button/index.mjs +1 -1
- 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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,11 @@
|
|
|
1
|
+
import VkPixiFrameApng from './src/apng.vue';
|
|
2
|
+
import VkPixiFrameBitmap from './src/bitmap.vue';
|
|
3
|
+
import VkPixiFrameCore from './src/core.vue';
|
|
4
|
+
import VkPixiFrame from './src/index.vue';
|
|
5
|
+
import VkPixiFrameProvider from './src/provider.vue';
|
|
6
|
+
import VkPixiFrameVideo from './src/video.vue';
|
|
7
|
+
import VkPixiFrameView from './src/view.vue';
|
|
8
|
+
export * as __VkPixiFrame from './src/types';
|
|
9
|
+
export { TickerStatus } from '@vunk/shared/enum';
|
|
10
|
+
export { VkPixiFrame, VkPixiFrameApng, VkPixiFrameBitmap, VkPixiFrameCore, VkPixiFrameProvider, VkPixiFrameVideo, VkPixiFrameView, };
|
|
11
|
+
export default VkPixiFrame;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import type { Texture } from 'pixi.js';
|
|
2
|
+
import { TickerStatus } from '@vunk/shared/enum';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
url: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
data: {
|
|
9
|
+
type: import("vue").PropType<any[]>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
loop: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
status: {
|
|
17
|
+
type: import("vue").PropType<TickerStatus>;
|
|
18
|
+
default: TickerStatus;
|
|
19
|
+
};
|
|
20
|
+
frameRate: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
label: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
resize: {
|
|
29
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
prerender: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
visible: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
}>, {
|
|
41
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
url: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
data: {
|
|
47
|
+
type: import("vue").PropType<any[]>;
|
|
48
|
+
default: () => never[];
|
|
49
|
+
};
|
|
50
|
+
loop: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
status: {
|
|
55
|
+
type: import("vue").PropType<TickerStatus>;
|
|
56
|
+
default: TickerStatus;
|
|
57
|
+
};
|
|
58
|
+
frameRate: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
label: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
resize: {
|
|
67
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
prerender: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
visible: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
}>> & Readonly<{
|
|
79
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
}> & {}>;
|
|
83
|
+
emit: ((event: "update:status", ...args: any[]) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
|
|
84
|
+
compId: string;
|
|
85
|
+
getAlias: (frameIndex: number) => string;
|
|
86
|
+
sprite: import("pixi.js").Sprite;
|
|
87
|
+
resizeSprite: () => void;
|
|
88
|
+
frames: import("vue").Ref<string[], string[]>;
|
|
89
|
+
index: import("vue").Ref<number, number>;
|
|
90
|
+
isLoaded: import("vue").Ref<boolean, boolean>;
|
|
91
|
+
error: import("vue").Ref<string, string>;
|
|
92
|
+
textureMap: Map<string, Texture<import("pixi.js").TextureSource<any>>>;
|
|
93
|
+
timer: number | null;
|
|
94
|
+
reusableCanvas: HTMLCanvasElement | null;
|
|
95
|
+
reusableCtx: CanvasRenderingContext2D | null;
|
|
96
|
+
getReusableCanvas: (width: number, height: number) => {
|
|
97
|
+
canvas: HTMLCanvasElement;
|
|
98
|
+
ctx: CanvasRenderingContext2D;
|
|
99
|
+
};
|
|
100
|
+
loadAPNG: (url: string) => Promise<void>;
|
|
101
|
+
startFrameLoop: () => void;
|
|
102
|
+
play: () => void;
|
|
103
|
+
pause: () => void;
|
|
104
|
+
stop: () => void;
|
|
105
|
+
cleanup: () => Promise<void>;
|
|
106
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
107
|
+
'update:status': null;
|
|
108
|
+
'update:data': null;
|
|
109
|
+
setData: null;
|
|
110
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
111
|
+
url: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
required: true;
|
|
114
|
+
};
|
|
115
|
+
data: {
|
|
116
|
+
type: import("vue").PropType<any[]>;
|
|
117
|
+
default: () => never[];
|
|
118
|
+
};
|
|
119
|
+
loop: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
status: {
|
|
124
|
+
type: import("vue").PropType<TickerStatus>;
|
|
125
|
+
default: TickerStatus;
|
|
126
|
+
};
|
|
127
|
+
frameRate: {
|
|
128
|
+
type: NumberConstructor;
|
|
129
|
+
default: number;
|
|
130
|
+
};
|
|
131
|
+
label: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
resize: {
|
|
136
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
137
|
+
default: undefined;
|
|
138
|
+
};
|
|
139
|
+
prerender: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
visible: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
147
|
+
}>> & Readonly<{
|
|
148
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
149
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
150
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
151
|
+
}>, {
|
|
152
|
+
data: any[];
|
|
153
|
+
status: TickerStatus;
|
|
154
|
+
label: string;
|
|
155
|
+
resize: import("./types").Resize;
|
|
156
|
+
visible: boolean;
|
|
157
|
+
prerender: boolean;
|
|
158
|
+
loop: boolean;
|
|
159
|
+
frameRate: number;
|
|
160
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
161
|
+
export default _default;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { LoadEvent } from './types';
|
|
3
|
+
import { TickerStatus } from '@vunk/shared/enum';
|
|
4
|
+
import { Texture } from 'pixi.js';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
data: {
|
|
7
|
+
type: PropType<ImageBitmap[]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
frameIndex: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
};
|
|
13
|
+
status: {
|
|
14
|
+
type: PropType<TickerStatus>;
|
|
15
|
+
default: TickerStatus;
|
|
16
|
+
};
|
|
17
|
+
url: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
requierd: false;
|
|
20
|
+
};
|
|
21
|
+
label: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
resize: {
|
|
26
|
+
type: PropType<import("./types").Resize>;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
visible: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
prerender: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
frameRate: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
default: number;
|
|
40
|
+
};
|
|
41
|
+
}>, {
|
|
42
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
data: {
|
|
44
|
+
type: PropType<ImageBitmap[]>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
frameIndex: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
};
|
|
50
|
+
status: {
|
|
51
|
+
type: PropType<TickerStatus>;
|
|
52
|
+
default: TickerStatus;
|
|
53
|
+
};
|
|
54
|
+
url: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
requierd: false;
|
|
57
|
+
};
|
|
58
|
+
label: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
resize: {
|
|
63
|
+
type: PropType<import("./types").Resize>;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
visible: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
prerender: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
frameRate: {
|
|
75
|
+
type: NumberConstructor;
|
|
76
|
+
default: number;
|
|
77
|
+
};
|
|
78
|
+
}>> & Readonly<{
|
|
79
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
onLoad?: ((e: LoadEvent) => any) | undefined;
|
|
81
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
83
|
+
"onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
onNotFound?: ((_index: number) => any) | undefined;
|
|
85
|
+
}> & {}>;
|
|
86
|
+
emit: ((event: "update:status", ...args: any[]) => void) & ((event: "load", e: LoadEvent) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
|
|
87
|
+
compId: string;
|
|
88
|
+
getAlias: (key: string | number) => string;
|
|
89
|
+
sprite: import("pixi.js").Sprite;
|
|
90
|
+
resizeSprite: () => void;
|
|
91
|
+
application: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
92
|
+
textureMap: Map<string, Texture<import("pixi.js").TextureSource<any>>>;
|
|
93
|
+
completedIndex: import("vue").Ref<number, number>;
|
|
94
|
+
enabledData: import("vue").ComputedRef<ImageBitmap[]>;
|
|
95
|
+
index: import("vue").WritableComputedRef<number, number>;
|
|
96
|
+
drawFrame: () => void;
|
|
97
|
+
play: () => void;
|
|
98
|
+
pause: () => void;
|
|
99
|
+
stop: () => void;
|
|
100
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
101
|
+
load: (e: LoadEvent) => LoadEvent;
|
|
102
|
+
'update:frameIndex': null;
|
|
103
|
+
notFound: (_index: number) => true;
|
|
104
|
+
'update:status': null;
|
|
105
|
+
'update:data': null;
|
|
106
|
+
setData: null;
|
|
107
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
108
|
+
data: {
|
|
109
|
+
type: PropType<ImageBitmap[]>;
|
|
110
|
+
required: true;
|
|
111
|
+
};
|
|
112
|
+
frameIndex: {
|
|
113
|
+
type: NumberConstructor;
|
|
114
|
+
};
|
|
115
|
+
status: {
|
|
116
|
+
type: PropType<TickerStatus>;
|
|
117
|
+
default: TickerStatus;
|
|
118
|
+
};
|
|
119
|
+
url: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
requierd: false;
|
|
122
|
+
};
|
|
123
|
+
label: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
resize: {
|
|
128
|
+
type: PropType<import("./types").Resize>;
|
|
129
|
+
default: undefined;
|
|
130
|
+
};
|
|
131
|
+
visible: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
prerender: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
frameRate: {
|
|
140
|
+
type: NumberConstructor;
|
|
141
|
+
default: number;
|
|
142
|
+
};
|
|
143
|
+
}>> & Readonly<{
|
|
144
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
145
|
+
onLoad?: ((e: LoadEvent) => any) | undefined;
|
|
146
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
147
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
148
|
+
"onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
|
|
149
|
+
onNotFound?: ((_index: number) => any) | undefined;
|
|
150
|
+
}>, {
|
|
151
|
+
status: TickerStatus;
|
|
152
|
+
label: string;
|
|
153
|
+
resize: import("./types").Resize;
|
|
154
|
+
visible: boolean;
|
|
155
|
+
prerender: boolean;
|
|
156
|
+
frameRate: number;
|
|
157
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
158
|
+
export default _default;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import type { Texture } from 'pixi.js';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
import type { Datum, LoadEvent } from './types';
|
|
4
|
+
import { TickerStatus } from '@vunk/shared/enum';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
data: {
|
|
7
|
+
type: PropType<Datum[] | string[]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
frameIndex: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
};
|
|
13
|
+
url: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
requierd: false;
|
|
16
|
+
};
|
|
17
|
+
loop: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
status: {
|
|
22
|
+
type: PropType<TickerStatus>;
|
|
23
|
+
default: TickerStatus;
|
|
24
|
+
};
|
|
25
|
+
frameRate: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
label: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
resize: {
|
|
34
|
+
type: PropType<import("./types").Resize>;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
prerender: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
visible: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
}>, {
|
|
46
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
data: {
|
|
48
|
+
type: PropType<Datum[] | string[]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
frameIndex: {
|
|
52
|
+
type: NumberConstructor;
|
|
53
|
+
};
|
|
54
|
+
url: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
requierd: false;
|
|
57
|
+
};
|
|
58
|
+
loop: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
status: {
|
|
63
|
+
type: PropType<TickerStatus>;
|
|
64
|
+
default: TickerStatus;
|
|
65
|
+
};
|
|
66
|
+
frameRate: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
default: number;
|
|
69
|
+
};
|
|
70
|
+
label: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
resize: {
|
|
75
|
+
type: PropType<import("./types").Resize>;
|
|
76
|
+
default: undefined;
|
|
77
|
+
};
|
|
78
|
+
prerender: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
visible: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
}>> & Readonly<{
|
|
87
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
88
|
+
onLoad?: ((e: LoadEvent) => any) | undefined;
|
|
89
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
90
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
91
|
+
"onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
|
|
92
|
+
onNotFound?: ((_index: number) => any) | undefined;
|
|
93
|
+
}> & {}>;
|
|
94
|
+
emit: ((event: "update:status", ...args: any[]) => void) & ((event: "load", e: LoadEvent) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
|
|
95
|
+
compId: string;
|
|
96
|
+
getAlias: (key: string | number) => string;
|
|
97
|
+
sprite: import("pixi.js").Sprite;
|
|
98
|
+
resizeSprite: () => void;
|
|
99
|
+
application: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
100
|
+
textureMap: Map<string, Texture<import("pixi.js").TextureSource<any>>>;
|
|
101
|
+
completedIndex: import("vue").Ref<number, number>;
|
|
102
|
+
enabledData: import("vue").ComputedRef<string[] | Datum[]>;
|
|
103
|
+
index: import("vue").WritableComputedRef<number, number>;
|
|
104
|
+
animationId: number | null;
|
|
105
|
+
lastFrameTime: number;
|
|
106
|
+
startFrameLoop: () => void;
|
|
107
|
+
play: () => void;
|
|
108
|
+
pause: () => void;
|
|
109
|
+
stop: () => void;
|
|
110
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
111
|
+
load: (e: LoadEvent) => LoadEvent;
|
|
112
|
+
'update:frameIndex': null;
|
|
113
|
+
notFound: (_index: number) => true;
|
|
114
|
+
'update:status': null;
|
|
115
|
+
'update:data': null;
|
|
116
|
+
setData: null;
|
|
117
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
118
|
+
data: {
|
|
119
|
+
type: PropType<Datum[] | string[]>;
|
|
120
|
+
required: true;
|
|
121
|
+
};
|
|
122
|
+
frameIndex: {
|
|
123
|
+
type: NumberConstructor;
|
|
124
|
+
};
|
|
125
|
+
url: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
requierd: false;
|
|
128
|
+
};
|
|
129
|
+
loop: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
status: {
|
|
134
|
+
type: PropType<TickerStatus>;
|
|
135
|
+
default: TickerStatus;
|
|
136
|
+
};
|
|
137
|
+
frameRate: {
|
|
138
|
+
type: NumberConstructor;
|
|
139
|
+
default: number;
|
|
140
|
+
};
|
|
141
|
+
label: {
|
|
142
|
+
type: StringConstructor;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
145
|
+
resize: {
|
|
146
|
+
type: PropType<import("./types").Resize>;
|
|
147
|
+
default: undefined;
|
|
148
|
+
};
|
|
149
|
+
prerender: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
visible: {
|
|
154
|
+
type: BooleanConstructor;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
157
|
+
}>> & Readonly<{
|
|
158
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
159
|
+
onLoad?: ((e: LoadEvent) => any) | undefined;
|
|
160
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
161
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
162
|
+
"onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
|
|
163
|
+
onNotFound?: ((_index: number) => any) | undefined;
|
|
164
|
+
}>, {
|
|
165
|
+
status: TickerStatus;
|
|
166
|
+
label: string;
|
|
167
|
+
resize: import("./types").Resize;
|
|
168
|
+
visible: boolean;
|
|
169
|
+
prerender: boolean;
|
|
170
|
+
loop: boolean;
|
|
171
|
+
frameRate: number;
|
|
172
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
173
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { Resize } from './types';
|
|
3
|
+
import { TickerStatus } from '@vunk/shared/enum';
|
|
4
|
+
export declare const props: {
|
|
5
|
+
url: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
requierd: false;
|
|
8
|
+
};
|
|
9
|
+
data: {
|
|
10
|
+
type: PropType<any[]>;
|
|
11
|
+
default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @description 控制动画是否循环播放
|
|
15
|
+
*/
|
|
16
|
+
loop: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @description v-model:status 控制动画状态
|
|
22
|
+
*/
|
|
23
|
+
status: {
|
|
24
|
+
type: PropType<TickerStatus>;
|
|
25
|
+
default: TickerStatus;
|
|
26
|
+
};
|
|
27
|
+
frameRate: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
label: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
resize: {
|
|
36
|
+
type: PropType<Resize>;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @description 是否在有资源时预渲染第一帧
|
|
41
|
+
*/
|
|
42
|
+
prerender: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
visible: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare const emits: {
|
|
52
|
+
'update:status': null;
|
|
53
|
+
'update:data': null;
|
|
54
|
+
setData: null;
|
|
55
|
+
};
|