@vunk/plus 1.4.7 → 1.5.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/WebGLRenderer.mjs +1 -0
- package/components/WebGPURenderer.mjs +1 -0
- package/components/broadcasting-markdown/index.mjs +60 -12
- package/components/broadcasting-markdown/src/ctx.d.ts +10 -0
- package/components/broadcasting-markdown/src/index.vue.d.ts +42 -1
- package/components/browserAll.mjs +1 -0
- package/components/bubble-list/src/index.vue.d.ts +43 -62
- package/components/bubble-templates/src/index.vue.d.ts +40 -0
- package/components/chat-independent/src/index.vue.d.ts +47 -66
- package/components/index2.mjs +1498 -62
- package/components/pixi-frame/index.d.ts +3 -1
- package/components/pixi-frame/index.mjs +2 -1
- package/components/pixi-frame/src/apng.vue.d.ts +187 -0
- package/components/pixi-frame/src/core.vue.d.ts +92 -59
- package/components/pixi-frame/src/ctx.d.ts +20 -0
- package/components/pixi-frame/src/index.vue.d.ts +445 -9
- package/components/pixi-frame/src/types.d.ts +17 -1
- package/components/pixi-frame/src/useSprite.d.ts +11 -0
- package/components/pixi-frame/src/video.vue.d.ts +185 -0
- package/components/sender/src/index.vue.d.ts +1 -1
- package/components/text/index.d.ts +4 -0
- package/components/text/index.mjs +106 -0
- package/components/text/src/ctx.d.ts +320 -0
- package/components/text/src/index.vue.d.ts +2314 -0
- package/components/text/src/types.d.ts +1 -0
- package/components/typing-markdown/index.css +19 -0
- package/components/typing-markdown/index.mjs +17 -4
- package/components/typing-markdown/src/ctx.d.ts +8 -0
- package/components/typing-markdown/src/index.vue.d.ts +18 -0
- package/components/webworkerAll.mjs +1 -0
- package/index.css +19 -0
- package/package.json +5 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import VkPixiFrameApng from './src/apng.vue';
|
|
1
2
|
import VkPixiFrameCore from './src/core.vue';
|
|
2
3
|
import VkPixiFrame from './src/index.vue';
|
|
3
4
|
import VkPixiFrameProvider from './src/provider.vue';
|
|
5
|
+
import VkPixiFrameVideo from './src/video.vue';
|
|
4
6
|
import VkPixiFrameView from './src/view.vue';
|
|
5
7
|
export * as __VkPixiFrame from './src/types';
|
|
6
8
|
export { TickerStatus } from '@vunk/shared/enum';
|
|
7
|
-
export { VkPixiFrame, VkPixiFrameCore, VkPixiFrameProvider, VkPixiFrameView, };
|
|
9
|
+
export { VkPixiFrame, VkPixiFrameApng, VkPixiFrameCore, VkPixiFrameProvider, VkPixiFrameVideo, VkPixiFrameView, };
|
|
8
10
|
export default VkPixiFrame;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { aq as VkPixiFrame, ar as
|
|
1
|
+
export { aq as VkPixiFrame, ar as VkPixiFrameApng, as as VkPixiFrameCore, at as VkPixiFrameProvider, au as VkPixiFrameVideo, av as VkPixiFrameView, aw as __VkPixiFrame, aq as default } from '../index2.mjs';
|
|
2
2
|
export { TickerStatus } from '@vunk/shared/enum';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '@vunk/shared/promise';
|
|
5
5
|
import '../_commonjsHelpers.mjs';
|
|
6
|
+
import '@vunk/core/composables';
|
|
6
7
|
import '../_plugin-vue_export-helper.mjs';
|
|
@@ -0,0 +1,187 @@
|
|
|
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: {
|
|
10
|
+
(arrayLength: number): string[];
|
|
11
|
+
(...items: string[]): string[];
|
|
12
|
+
new (arrayLength: number): string[];
|
|
13
|
+
new (...items: string[]): string[];
|
|
14
|
+
isArray(arg: any): arg is any[];
|
|
15
|
+
readonly prototype: any[];
|
|
16
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
17
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
18
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
19
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
20
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
21
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
22
|
+
};
|
|
23
|
+
default: () => never[];
|
|
24
|
+
};
|
|
25
|
+
loop: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
status: {
|
|
30
|
+
type: import("vue").PropType<TickerStatus>;
|
|
31
|
+
default: TickerStatus;
|
|
32
|
+
};
|
|
33
|
+
frameRate: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
label: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
resize: {
|
|
42
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
prerender: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
}>, {
|
|
50
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
url: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
data: {
|
|
56
|
+
type: {
|
|
57
|
+
(arrayLength: number): string[];
|
|
58
|
+
(...items: string[]): string[];
|
|
59
|
+
new (arrayLength: number): string[];
|
|
60
|
+
new (...items: string[]): string[];
|
|
61
|
+
isArray(arg: any): arg is any[];
|
|
62
|
+
readonly prototype: any[];
|
|
63
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
64
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
65
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
66
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
67
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
68
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
69
|
+
};
|
|
70
|
+
default: () => never[];
|
|
71
|
+
};
|
|
72
|
+
loop: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
status: {
|
|
77
|
+
type: import("vue").PropType<TickerStatus>;
|
|
78
|
+
default: TickerStatus;
|
|
79
|
+
};
|
|
80
|
+
frameRate: {
|
|
81
|
+
type: NumberConstructor;
|
|
82
|
+
default: number;
|
|
83
|
+
};
|
|
84
|
+
label: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
resize: {
|
|
89
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
92
|
+
prerender: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
}>> & Readonly<{
|
|
97
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
98
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
99
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
100
|
+
}> & {}>;
|
|
101
|
+
emit: ((event: "setData", ...args: any[]) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
|
|
102
|
+
compId: string;
|
|
103
|
+
getAlias: (frameIndex: number) => string;
|
|
104
|
+
sprite: import("pixi.js").Sprite;
|
|
105
|
+
resizeSprite: () => void;
|
|
106
|
+
frames: import("vue").Ref<string[], string[]>;
|
|
107
|
+
index: import("vue").Ref<number, number>;
|
|
108
|
+
isLoaded: import("vue").Ref<boolean, boolean>;
|
|
109
|
+
error: import("vue").Ref<string, string>;
|
|
110
|
+
textureMap: Map<string, Texture<import("pixi.js").TextureSource<any>>>;
|
|
111
|
+
timer: number | null;
|
|
112
|
+
reusableCanvas: HTMLCanvasElement | null;
|
|
113
|
+
reusableCtx: CanvasRenderingContext2D | null;
|
|
114
|
+
getReusableCanvas: (width: number, height: number) => {
|
|
115
|
+
canvas: HTMLCanvasElement;
|
|
116
|
+
ctx: CanvasRenderingContext2D;
|
|
117
|
+
};
|
|
118
|
+
loadAPNG: (url: string) => Promise<void>;
|
|
119
|
+
startFrameLoop: () => void;
|
|
120
|
+
play: () => void;
|
|
121
|
+
pause: () => void;
|
|
122
|
+
stop: () => void;
|
|
123
|
+
cleanup: () => Promise<void>;
|
|
124
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
125
|
+
'update:status': null;
|
|
126
|
+
'update:data': null;
|
|
127
|
+
setData: null;
|
|
128
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
129
|
+
url: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
required: true;
|
|
132
|
+
};
|
|
133
|
+
data: {
|
|
134
|
+
type: {
|
|
135
|
+
(arrayLength: number): string[];
|
|
136
|
+
(...items: string[]): string[];
|
|
137
|
+
new (arrayLength: number): string[];
|
|
138
|
+
new (...items: string[]): string[];
|
|
139
|
+
isArray(arg: any): arg is any[];
|
|
140
|
+
readonly prototype: any[];
|
|
141
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
142
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
143
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
144
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
145
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
146
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
147
|
+
};
|
|
148
|
+
default: () => never[];
|
|
149
|
+
};
|
|
150
|
+
loop: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
status: {
|
|
155
|
+
type: import("vue").PropType<TickerStatus>;
|
|
156
|
+
default: TickerStatus;
|
|
157
|
+
};
|
|
158
|
+
frameRate: {
|
|
159
|
+
type: NumberConstructor;
|
|
160
|
+
default: number;
|
|
161
|
+
};
|
|
162
|
+
label: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
resize: {
|
|
167
|
+
type: import("vue").PropType<import("./types").Resize>;
|
|
168
|
+
default: undefined;
|
|
169
|
+
};
|
|
170
|
+
prerender: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: boolean;
|
|
173
|
+
};
|
|
174
|
+
}>> & Readonly<{
|
|
175
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
176
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
177
|
+
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
178
|
+
}>, {
|
|
179
|
+
data: string[];
|
|
180
|
+
status: TickerStatus;
|
|
181
|
+
resize: import("./types").Resize;
|
|
182
|
+
label: string;
|
|
183
|
+
prerender: boolean;
|
|
184
|
+
loop: boolean;
|
|
185
|
+
frameRate: number;
|
|
186
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
187
|
+
export default _default;
|
|
@@ -1,131 +1,164 @@
|
|
|
1
1
|
import type { Texture } from 'pixi.js';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
import type { Datum, LoadEvent } from './types';
|
|
2
4
|
import { TickerStatus } from '@vunk/shared/enum';
|
|
3
|
-
import { Sprite } from 'pixi.js';
|
|
4
5
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
6
|
data: {
|
|
6
|
-
type:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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[];
|
|
7
|
+
type: PropType<string[] | Datum[]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
frameIndex: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
url: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
requierd: false;
|
|
21
17
|
};
|
|
22
18
|
loop: {
|
|
23
19
|
type: BooleanConstructor;
|
|
24
20
|
default: boolean;
|
|
25
21
|
};
|
|
26
22
|
status: {
|
|
27
|
-
type:
|
|
23
|
+
type: PropType<TickerStatus>;
|
|
28
24
|
default: TickerStatus;
|
|
29
25
|
};
|
|
30
26
|
frameRate: {
|
|
31
27
|
type: NumberConstructor;
|
|
32
28
|
default: number;
|
|
33
29
|
};
|
|
30
|
+
label: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
resize: {
|
|
35
|
+
type: PropType<import("./types").Resize>;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
prerender: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
34
42
|
}>, {
|
|
35
43
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
36
44
|
data: {
|
|
37
|
-
type:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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[];
|
|
45
|
+
type: PropType<string[] | Datum[]>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
frameIndex: {
|
|
49
|
+
type: NumberConstructor;
|
|
50
|
+
default: number;
|
|
51
|
+
};
|
|
52
|
+
url: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
requierd: false;
|
|
52
55
|
};
|
|
53
56
|
loop: {
|
|
54
57
|
type: BooleanConstructor;
|
|
55
58
|
default: boolean;
|
|
56
59
|
};
|
|
57
60
|
status: {
|
|
58
|
-
type:
|
|
61
|
+
type: PropType<TickerStatus>;
|
|
59
62
|
default: TickerStatus;
|
|
60
63
|
};
|
|
61
64
|
frameRate: {
|
|
62
65
|
type: NumberConstructor;
|
|
63
66
|
default: number;
|
|
64
67
|
};
|
|
68
|
+
label: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
resize: {
|
|
73
|
+
type: PropType<import("./types").Resize>;
|
|
74
|
+
default: undefined;
|
|
75
|
+
};
|
|
76
|
+
prerender: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
65
80
|
}>> & Readonly<{
|
|
66
81
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
onLoad?: ((e: LoadEvent) => any) | undefined;
|
|
67
83
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
68
84
|
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
"onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
onNotFound?: ((_index: number) => any) | undefined;
|
|
69
87
|
}> & {}>;
|
|
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
|
-
};
|
|
88
|
+
emit: ((event: "setData", ...args: any[]) => void) & ((event: "load", e: LoadEvent) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
|
|
76
89
|
compId: string;
|
|
77
90
|
getAlias: (key: string | number) => string;
|
|
78
|
-
sprite: Sprite;
|
|
91
|
+
sprite: import("pixi.js").Sprite;
|
|
79
92
|
resizeSprite: () => void;
|
|
93
|
+
application: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
80
94
|
textureMap: Map<string, Texture<import("pixi.js").TextureSource<any>>>;
|
|
81
|
-
|
|
82
|
-
|
|
95
|
+
completedIndex: import("vue").Ref<number, number>;
|
|
96
|
+
enabledData: import("vue").ComputedRef<string[] | Datum[]>;
|
|
97
|
+
index: import("vue").WritableComputedRef<number, number>;
|
|
98
|
+
animationId: number | null;
|
|
99
|
+
lastFrameTime: number;
|
|
83
100
|
startFrameLoop: () => void;
|
|
84
101
|
play: () => void;
|
|
85
102
|
pause: () => void;
|
|
86
103
|
stop: () => void;
|
|
87
104
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
105
|
+
load: (e: LoadEvent) => LoadEvent;
|
|
106
|
+
'update:frameIndex': null;
|
|
107
|
+
notFound: (_index: number) => true;
|
|
88
108
|
'update:status': null;
|
|
89
109
|
'update:data': null;
|
|
90
110
|
setData: null;
|
|
91
111
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
112
|
data: {
|
|
93
|
-
type:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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[];
|
|
113
|
+
type: PropType<string[] | Datum[]>;
|
|
114
|
+
required: true;
|
|
115
|
+
};
|
|
116
|
+
frameIndex: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
default: number;
|
|
119
|
+
};
|
|
120
|
+
url: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
requierd: false;
|
|
108
123
|
};
|
|
109
124
|
loop: {
|
|
110
125
|
type: BooleanConstructor;
|
|
111
126
|
default: boolean;
|
|
112
127
|
};
|
|
113
128
|
status: {
|
|
114
|
-
type:
|
|
129
|
+
type: PropType<TickerStatus>;
|
|
115
130
|
default: TickerStatus;
|
|
116
131
|
};
|
|
117
132
|
frameRate: {
|
|
118
133
|
type: NumberConstructor;
|
|
119
134
|
default: number;
|
|
120
135
|
};
|
|
136
|
+
label: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
resize: {
|
|
141
|
+
type: PropType<import("./types").Resize>;
|
|
142
|
+
default: undefined;
|
|
143
|
+
};
|
|
144
|
+
prerender: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
121
148
|
}>> & Readonly<{
|
|
122
149
|
onSetData?: ((...args: any[]) => any) | undefined;
|
|
150
|
+
onLoad?: ((e: LoadEvent) => any) | undefined;
|
|
123
151
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
124
152
|
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
153
|
+
"onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
|
|
154
|
+
onNotFound?: ((_index: number) => any) | undefined;
|
|
125
155
|
}>, {
|
|
126
|
-
data: string[];
|
|
127
156
|
status: TickerStatus;
|
|
157
|
+
resize: import("./types").Resize;
|
|
158
|
+
label: string;
|
|
159
|
+
prerender: boolean;
|
|
128
160
|
loop: boolean;
|
|
129
161
|
frameRate: number;
|
|
162
|
+
frameIndex: number;
|
|
130
163
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
131
164
|
export default _default;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
import type { Resize } from './types';
|
|
2
3
|
import { TickerStatus } from '@vunk/shared/enum';
|
|
3
4
|
export declare const props: {
|
|
5
|
+
url: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
requierd: false;
|
|
8
|
+
};
|
|
4
9
|
data: {
|
|
5
10
|
type: {
|
|
6
11
|
(arrayLength: number): string[];
|
|
@@ -36,6 +41,21 @@ export declare const props: {
|
|
|
36
41
|
type: NumberConstructor;
|
|
37
42
|
default: number;
|
|
38
43
|
};
|
|
44
|
+
label: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
resize: {
|
|
49
|
+
type: PropType<Resize>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* @description 是否在有资源时预渲染第一帧
|
|
54
|
+
*/
|
|
55
|
+
prerender: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
39
59
|
};
|
|
40
60
|
export declare const emits: {
|
|
41
61
|
'update:status': null;
|