@quicktvui/quicktvui3 1.2.0-beta.3 → 1.2.0-beta.30
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/dist/index.css +1 -2
- package/dist/index.js +8 -9
- package/dist/src/animation/QtAnimationAPI.d.ts +3 -3
- package/dist/src/animation/types.d.ts +1 -0
- package/dist/src/app/QtAppIconAPI.d.ts +3 -3
- package/dist/src/base/QtBaseViewAPI.d.ts +45 -0
- package/dist/src/button/QtButtonAPI.d.ts +3 -3
- package/dist/src/button/index.vue.d.ts +21 -21
- package/dist/src/canvas/Gradient.d.ts +37 -0
- package/dist/src/canvas/QTCanvasView.d.ts +3 -0
- package/dist/src/canvas/QTICanvasView.d.ts +50 -0
- package/dist/src/canvas/QtCanvasViewAPI.d.ts +54 -0
- package/dist/src/classified-list-view/QtClassifiedListViewAPI.d.ts +3 -3
- package/dist/src/classified-list-view/index.vue.d.ts +19 -19
- package/dist/src/collapse/QtCollapseAPI.d.ts +3 -3
- package/dist/src/collapse/core/QTICollapseItem.d.ts +2 -2
- package/dist/src/collapse/index.vue.d.ts +18 -18
- package/dist/src/column/QtColumnAPI.d.ts +3 -3
- package/dist/src/grid-view/QtGridViewAPI.d.ts +3 -3
- package/dist/src/grid-view/index.vue.d.ts +31 -31
- package/dist/src/image/QtImageAPI.d.ts +3 -3
- package/dist/src/image/index.vue.d.ts +11 -11
- package/dist/src/index.d.ts +9 -5
- package/dist/src/list/useListView.d.ts +49 -0
- package/dist/src/list-indicator/QTIndicatorListViewComponent.d.ts +3 -0
- package/dist/src/list-indicator/QtIndicatorViewAPI.d.ts +15 -0
- package/dist/src/list-indicator/core/QTIIndicatorView.d.ts +11 -0
- package/dist/src/list-item/QtListItemAPI.d.ts +3 -3
- package/dist/src/list-view/QtListViewAPI.d.ts +3 -3
- package/dist/src/loading/QtLoadingAPI.d.ts +3 -3
- package/dist/src/long-image/QTILongImage.d.ts +12 -0
- package/dist/src/long-image/QTLongImage.d.ts +3 -0
- package/dist/src/long-image/QtLongImageAPI.d.ts +4 -0
- package/dist/src/long-image/index.vue.d.ts +191 -0
- package/dist/src/lottie/QTILottieView.d.ts +2 -0
- package/dist/src/lottie/QTLottieEvent.d.ts +5 -0
- package/dist/src/lottie/QtLottieViewAPI.d.ts +5 -3
- package/dist/src/nav-bar/QtNavBarAPI.d.ts +3 -3
- package/dist/src/nav-bar/index.vue.d.ts +16 -16
- package/dist/src/plugin/QtPluginViewAPI.d.ts +3 -3
- package/dist/src/poster/QtPosterAPI.d.ts +3 -3
- package/dist/src/poster/index.vue.d.ts +19 -16
- package/dist/src/progressbar/QtProgressBarAPI.d.ts +3 -3
- package/dist/src/qrcode/QtQRCodeAPI.d.ts +3 -3
- package/dist/src/qt/QtAPI.d.ts +68 -30
- package/dist/src/qtListen/qtDiff.d.ts +1 -1
- package/dist/src/replace-child/QtReplaceChildViewAPI.d.ts +3 -3
- package/dist/src/row/QtRowAPI.d.ts +3 -3
- package/dist/src/scroll-view/QtScrollViewAPI.d.ts +3 -3
- package/dist/src/section/index.vue.d.ts +11 -11
- package/dist/src/seekbar/QtSeekBarAPI.d.ts +3 -3
- package/dist/src/series/component/media-series.vue.d.ts +8 -8
- package/dist/src/series/index.vue.d.ts +20 -16
- package/dist/src/series/item/media-series-number-item.vue.d.ts +4 -4
- package/dist/src/series/item/media-series-text-item.vue.d.ts +4 -4
- package/dist/src/tab/index.vue.d.ts +22 -48
- package/dist/src/text/QtTextAPI.d.ts +3 -3
- package/dist/src/text/index.vue.d.ts +11 -11
- package/dist/src/ul/QtULAPI.d.ts +3 -3
- package/dist/src/utils/type.d.ts +1 -1
- package/dist/src/view/QtViewAPI.d.ts +3 -44
- package/dist/src/view/index.vue.d.ts +12 -12
- package/dist/src/waterfall/QtWaterfallAPI.d.ts +3 -3
- package/dist/src/waterfall/index.vue.d.ts +37 -24
- package/dist/src/waterfall/item/card-item.vue.d.ts +1 -1
- package/dist/src/waterfall/item/plugin-item.vue.d.ts +12 -12
- package/dist/src/waterfall/section/blank-section.vue.d.ts +1 -1
- package/dist/src/waterfall/section/card-section.vue.d.ts +1 -1
- package/dist/src/waterfall/section/end-section.vue.d.ts +1 -1
- package/dist/src/waterfall/section/flex-section.vue.d.ts +9 -6
- package/dist/src/waterfall/section/loading-section.vue.d.ts +1 -1
- package/dist/src/waterfall/section/plugin-section.vue.d.ts +6 -6
- package/dist/src/waterfall/section/section-title.vue.d.ts +4 -4
- package/dist/src/waterfall/section/vue-section.vue.d.ts +5 -5
- package/dist/src/webview/QtWebViewAPI.d.ts +3 -3
- package/dist/src/x5webview/QtX5WebViewAPI.d.ts +3 -3
- package/package.json +5 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QTListViewItem } from "../list-view/core/QTListViewItem";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
loadMore: {
|
|
4
4
|
type: FunctionConstructor;
|
|
5
5
|
default: () => number[];
|
|
@@ -43,13 +43,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
43
|
type: ArrayConstructor;
|
|
44
44
|
required: false;
|
|
45
45
|
};
|
|
46
|
-
}
|
|
46
|
+
}>, {
|
|
47
47
|
init: (target: Array<QTListViewItem>, isInit?: boolean) => Array<QTListViewItem>;
|
|
48
48
|
onItemClick: (e: any) => void;
|
|
49
49
|
onItemBind: (e: any) => void;
|
|
50
50
|
onItemFocused: (e: any) => void;
|
|
51
51
|
restartPage: () => void;
|
|
52
|
-
isRestartPage: import("vue").Ref<boolean>;
|
|
52
|
+
isRestartPage: import("vue").Ref<boolean, boolean>;
|
|
53
53
|
onItemUnbind: (e: any) => void;
|
|
54
54
|
onScroll: (e: any) => void;
|
|
55
55
|
onScrollStateChanged: (e: any) => void;
|
|
@@ -59,27 +59,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
setItemSelected: (pos: number, b: boolean) => void;
|
|
60
60
|
scrollToSelected: (pos: number, b: boolean) => void;
|
|
61
61
|
setInitPosition: (pos: number) => void;
|
|
62
|
-
apkVersion: import("vue").Ref<number>;
|
|
62
|
+
apkVersion: import("vue").Ref<number, number>;
|
|
63
63
|
updateItemProps: (pos: number, name: string, dataObj: object) => void;
|
|
64
64
|
insertItem: (pos: number, data: Array<QTListViewItem>) => void;
|
|
65
|
-
scrollToIndex: (x: number, y: number, animated?: boolean
|
|
65
|
+
scrollToIndex: (x: number, y: number, animated?: boolean, duration?: number, offset?: number) => void;
|
|
66
66
|
startScroll: (position: import("..").QTListInitPosition) => void;
|
|
67
|
-
setSelectChildPosition: (position: number, changeTargetFocusChild?: boolean
|
|
67
|
+
setSelectChildPosition: (position: number, changeTargetFocusChild?: boolean) => void;
|
|
68
68
|
scrollToPositionWithOffset: (position: number, offset: number, animated: boolean) => void;
|
|
69
69
|
scrollToPositionWithOffsetInfiniteMode: (position: number, offset: number, animated: boolean) => void;
|
|
70
|
-
scrollToPosition: (position: number, offset?: number
|
|
70
|
+
scrollToPosition: (position: number, offset?: number) => void;
|
|
71
71
|
refreshListData: () => void;
|
|
72
|
-
updateItemTraverse: (position: number, data?: QTListViewItem
|
|
72
|
+
updateItemTraverse: (position: number, data?: QTListViewItem, traverse?: boolean) => void;
|
|
73
73
|
requestItemLayout: (position: number) => void;
|
|
74
|
-
updateItemRange: (position: number, count: number, itemList: QTListViewItem
|
|
75
|
-
insertItemRange: (position: number, itemList: QTListViewItem
|
|
74
|
+
updateItemRange: (position: number, count: number, itemList: Array<QTListViewItem>) => void;
|
|
75
|
+
insertItemRange: (position: number, itemList: Array<QTListViewItem>) => void;
|
|
76
76
|
updateItemMatched: (params: import("..").QTNativeParams, data: QTListViewItem) => void;
|
|
77
77
|
updateItemMatchedByKey: (idKey: string, params: import("..").QTNativeParams, data: QTListViewItem) => void;
|
|
78
78
|
deleteItemRange: (position: number, count: number) => void;
|
|
79
|
-
setListData: (itemList: QTListViewItem
|
|
80
|
-
setListDataWithParams: (itemList: QTListViewItem
|
|
81
|
-
addListData: (itemList: QTListViewItem
|
|
82
|
-
addListDataWithParams: (itemList: QTListViewItem
|
|
79
|
+
setListData: (itemList: Array<QTListViewItem>) => void;
|
|
80
|
+
setListDataWithParams: (itemList: Array<QTListViewItem>, autoChangeVisible: boolean, useDiff: boolean) => void;
|
|
81
|
+
addListData: (itemList: Array<QTListViewItem>) => void;
|
|
82
|
+
addListDataWithParams: (itemList: Array<QTListViewItem>, deleteCount: number) => void;
|
|
83
83
|
destroy: () => void;
|
|
84
84
|
recycle: () => void;
|
|
85
85
|
scrollToTop: () => void;
|
|
@@ -91,22 +91,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
91
|
notifyRestoreInstance: () => void;
|
|
92
92
|
dispatchItemFunction: (params: import("../core/QTNativeParams").QTNativeArray) => void;
|
|
93
93
|
clearPostTask: () => void;
|
|
94
|
-
clearPostTaskByCate: (data: number
|
|
94
|
+
clearPostTaskByCate: (data: Array<number>) => void;
|
|
95
95
|
clearData: () => void;
|
|
96
96
|
pausePostTask: () => void;
|
|
97
97
|
resumePostTask: () => void;
|
|
98
98
|
requestLayoutManual: () => void;
|
|
99
99
|
setSpanCount: (spanCount: number) => void;
|
|
100
100
|
searchReplaceItem: (id: string, item: QTListViewItem) => void;
|
|
101
|
-
setCustomStateEnableOnFocus: (id: string, params: string
|
|
101
|
+
setCustomStateEnableOnFocus: (id: string, params: Array<Array<string>>) => void;
|
|
102
102
|
setItemCustomState: (position: number, state: string, on: boolean) => void;
|
|
103
|
-
dispatchItemFunctionWithPromise: (position: number, targetName: string, functionTargetName: string, params: import("..").QTNativeParams
|
|
103
|
+
dispatchItemFunctionWithPromise: (position: number, targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>) => Promise<import("..").QTNativeParams>;
|
|
104
104
|
getScrollOffset: () => Promise<import("..").QTPosition>;
|
|
105
|
-
dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams
|
|
106
|
-
requestFocus: (direction?: import("..").QTFocusDirection
|
|
107
|
-
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection
|
|
105
|
+
dispatchFunctionBySid: (sid: string, funcName: string, args: Array<import("..").QTNativeParams>) => void;
|
|
106
|
+
requestFocus: (direction?: import("..").QTFocusDirection) => void;
|
|
107
|
+
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection) => void;
|
|
108
108
|
clearFocus: () => void;
|
|
109
|
-
requestFocusDirectly: (direction?: import("..").QTFocusDirection
|
|
109
|
+
requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
|
|
110
110
|
setVisibility: (v: import("..").QTIViewVisibility) => void;
|
|
111
111
|
requestRootLayout: () => void;
|
|
112
112
|
requestLayout: () => void;
|
|
@@ -122,11 +122,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
122
122
|
setPosition: (x: number, y: number, z: number) => void;
|
|
123
123
|
updateLayout: (width: number, height: number, x: number, y: number) => void;
|
|
124
124
|
invalidate: () => void;
|
|
125
|
-
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams
|
|
126
|
-
setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName
|
|
127
|
-
setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName
|
|
128
|
-
setInitFocus: (sid: string, delay?: number
|
|
129
|
-
setAutoFocus: (sid: string, delay?: number
|
|
125
|
+
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>, delay: number) => void;
|
|
126
|
+
setBlockFocusDirections: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
127
|
+
setBlockFocusDirectionsOnFail: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
128
|
+
setInitFocus: (sid: string, delay?: number) => void;
|
|
129
|
+
setAutoFocus: (sid: string, delay?: number) => void;
|
|
130
130
|
enabledAutofocus: (autofocus: boolean) => void;
|
|
131
131
|
requestAutofocus: () => void;
|
|
132
132
|
hasFocus: () => Promise<boolean>;
|
|
@@ -137,8 +137,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
137
137
|
requestChildFocusAtIndex: (position: number) => void;
|
|
138
138
|
clearMemoryFocused: () => void;
|
|
139
139
|
showDialog: (show: boolean) => void;
|
|
140
|
-
tv_list: import("vue").Ref<any>;
|
|
141
|
-
},
|
|
140
|
+
tv_list: import("vue").Ref<any, any>;
|
|
141
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("item-click" | "scroll" | "item-unbind" | "scroll-state-changed" | "item-bind" | "item-focused")[], "item-click" | "scroll" | "item-unbind" | "scroll-state-changed" | "item-bind" | "item-focused", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
142
142
|
loadMore: {
|
|
143
143
|
type: FunctionConstructor;
|
|
144
144
|
default: () => number[];
|
|
@@ -182,14 +182,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
182
182
|
type: ArrayConstructor;
|
|
183
183
|
required: false;
|
|
184
184
|
};
|
|
185
|
-
}>> & {
|
|
185
|
+
}>> & Readonly<{
|
|
186
186
|
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
|
187
187
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
188
188
|
"onItem-unbind"?: ((...args: any[]) => any) | undefined;
|
|
189
189
|
"onScroll-state-changed"?: ((...args: any[]) => any) | undefined;
|
|
190
190
|
"onItem-bind"?: ((...args: any[]) => any) | undefined;
|
|
191
191
|
"onItem-focused"?: ((...args: any[]) => any) | undefined;
|
|
192
|
-
}
|
|
192
|
+
}>, {
|
|
193
193
|
loadMore: Function;
|
|
194
194
|
openPage: boolean;
|
|
195
195
|
spanCount: number;
|
|
@@ -199,5 +199,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
199
199
|
areaWidth: number;
|
|
200
200
|
blockFocusDirections: unknown[];
|
|
201
201
|
loadingDecoration: Record<string, any>;
|
|
202
|
-
}, {}>;
|
|
202
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
203
203
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
1
|
import { QTImageResizeMode } from "./QTImageResizeMode";
|
|
3
2
|
import { Ref } from "@vue/reactivity";
|
|
4
3
|
import { QTIImage } from "./QTIImage";
|
|
5
|
-
|
|
4
|
+
import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
|
|
5
|
+
export interface QtImageAPI extends QtBaseViewAPI {
|
|
6
6
|
setSrc(instance: string | Ref<QTIImage | undefined>, url: string): void;
|
|
7
7
|
resizeMode(instance: string | Ref<QTIImage | undefined>, mode: QTImageResizeMode): void;
|
|
8
8
|
}
|
|
9
|
-
export declare function createQtImageAPI(viewAPI:
|
|
9
|
+
export declare function createQtImageAPI(viewAPI: QtBaseViewAPI): QtImageAPI;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { QTImageResizeMode } from "./QTImageResizeMode";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
|
-
dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams
|
|
4
|
-
requestFocus: (direction?: import("..").QTFocusDirection
|
|
5
|
-
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection
|
|
3
|
+
dispatchFunctionBySid: (sid: string, funcName: string, args: Array<import("..").QTNativeParams>) => void;
|
|
4
|
+
requestFocus: (direction?: import("..").QTFocusDirection) => void;
|
|
5
|
+
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection) => void;
|
|
6
6
|
clearFocus: () => void;
|
|
7
|
-
requestFocusDirectly: (direction?: import("..").QTFocusDirection
|
|
7
|
+
requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
|
|
8
8
|
setVisibility: (v: import("..").QTIViewVisibility) => void;
|
|
9
9
|
requestRootLayout: () => void;
|
|
10
10
|
requestLayout: () => void;
|
|
@@ -20,11 +20,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
20
20
|
setPosition: (x: number, y: number, z: number) => void;
|
|
21
21
|
updateLayout: (width: number, height: number, x: number, y: number) => void;
|
|
22
22
|
invalidate: () => void;
|
|
23
|
-
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams
|
|
24
|
-
setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName
|
|
25
|
-
setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName
|
|
26
|
-
setInitFocus: (sid: string, delay?: number
|
|
27
|
-
setAutoFocus: (sid: string, delay?: number
|
|
23
|
+
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>, delay: number) => void;
|
|
24
|
+
setBlockFocusDirections: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
25
|
+
setBlockFocusDirectionsOnFail: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
26
|
+
setInitFocus: (sid: string, delay?: number) => void;
|
|
27
|
+
setAutoFocus: (sid: string, delay?: number) => void;
|
|
28
28
|
enabledAutofocus: (autofocus: boolean) => void;
|
|
29
29
|
requestAutofocus: () => void;
|
|
30
30
|
hasFocus: () => Promise<boolean>;
|
|
@@ -35,8 +35,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
35
35
|
requestChildFocusAtIndex: (position: number) => void;
|
|
36
36
|
clearMemoryFocused: () => void;
|
|
37
37
|
showDialog: (show: boolean) => void;
|
|
38
|
-
viewRef: import("vue").Ref<any>;
|
|
38
|
+
viewRef: import("vue").Ref<any, any>;
|
|
39
39
|
setSrc: (url: string) => void;
|
|
40
40
|
resizeMode: (mode: QTImageResizeMode) => void;
|
|
41
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
41
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
42
|
export default _default;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { arrangeChildren4ListView } from
|
|
2
|
-
export { qtRef, qtWatchAll, qtGetParent, qtTabsRef, parseChildUpdate, qtDiff } from
|
|
3
|
-
export type { IQtTabDatas } from
|
|
4
|
-
import { QtAPI } from
|
|
1
|
+
import { arrangeChildren4ListView } from './utils/utils';
|
|
2
|
+
export { qtRef, qtWatchAll, qtGetParent, qtTabsRef, parseChildUpdate, qtDiff, } from './qtListen/index';
|
|
3
|
+
export type { IQtTabDatas } from './qtListen/index';
|
|
4
|
+
import { QtAPI } from './qt/QtAPI';
|
|
5
5
|
declare global {
|
|
6
6
|
var qt: QtAPI;
|
|
7
7
|
}
|
|
@@ -67,6 +67,7 @@ export type { QTListViewItemDecoration } from './list-view/core/QTListViewItemDe
|
|
|
67
67
|
export type { QTListViewItemFunctionParams } from './list-view/core/QTListViewItemFunctionParams';
|
|
68
68
|
export type { QTListViewItemState } from './list-view/core/QTListViewItemState';
|
|
69
69
|
export type { QTGridViewItemFunctionParams } from './grid-view/core/QTGridViewItemFunctionParams';
|
|
70
|
+
export type { QTGridViewItem } from './grid-view/core/QTGridViewItem';
|
|
70
71
|
export type { QTINavBar } from './nav-bar/QTINavBar';
|
|
71
72
|
export type { QTNavBarItem } from './nav-bar/QTNavBarItem';
|
|
72
73
|
export type { QTNavBar } from './nav-bar/QTNavBar';
|
|
@@ -94,7 +95,7 @@ export { QTSeekBarTickMarkGravity } from './seekbar/QTSeekBarTickMarkGravity';
|
|
|
94
95
|
export { QTSeekBarTickMarkLayoutGravity } from './seekbar/QTSeekBarTickMarkLayoutGravity';
|
|
95
96
|
export type { QTIProgressBar } from './progressbar/QTIProgressBar';
|
|
96
97
|
export type { QTIAnimation } from './animation/QTIAnimation';
|
|
97
|
-
export { QTAnimationInterpolatorType, QTAnimationPropertyName, QTAnimationRepeatMode, QTAnimationValueType } from './animation/types';
|
|
98
|
+
export { QTAnimationInterpolatorType, QTAnimationPropertyName, QTAnimationRepeatMode, QTAnimationValueType, } from './animation/types';
|
|
98
99
|
export type { QTAnimationInterpolator, QTAnimatorId } from './animation/types';
|
|
99
100
|
export type { QTIMediaSeries } from './series/QTIMediaSeries';
|
|
100
101
|
export type { QTMediaSeries } from './series/QTMediaSeries';
|
|
@@ -114,6 +115,7 @@ export type { QTIScrollView } from './scroll-view/QTIScrollView';
|
|
|
114
115
|
export type { QTILottieView } from './lottie/QTILottieView';
|
|
115
116
|
export { QTLottieRepeatMode } from './lottie/QTLottieRepeatMode';
|
|
116
117
|
export { QTLottieAsyncUpdates } from './lottie/QTLottieAsyncUpdates';
|
|
118
|
+
export { QTLottieEvent } from './lottie/QTLottieEvent';
|
|
117
119
|
export type { QTGradient } from './gradient/QTGradient';
|
|
118
120
|
export { QTGradientOrientation } from './gradient/QTGradientOrientation';
|
|
119
121
|
export { QTGradientShape } from './gradient/QTGradientShape';
|
|
@@ -130,3 +132,5 @@ export type { QTIText } from './text/QTIText';
|
|
|
130
132
|
export type { QTIAppIcon } from './app/QTIAppIcon';
|
|
131
133
|
export type { QTIPluginView, QTPluginViewEvent } from './plugin/QTIPluginView';
|
|
132
134
|
export { VirtualView } from './utils/VirtualView';
|
|
135
|
+
export type { QTICanvasView } from './canvas/QTICanvasView';
|
|
136
|
+
export type { QTILongImage } from './long-image/QTILongImage';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Ref } from "@vue/reactivity";
|
|
2
|
+
import { QTIListView } from "../list-view/core/QTIListView";
|
|
3
|
+
import { QTListInitPosition } from "./QTListInitPosition";
|
|
4
|
+
import { QTListViewItem } from "../list-view/core/QTListViewItem";
|
|
5
|
+
import { QTNativeArray, QTNativeMap, QTNativeParams } from "../core/QTNativeParams";
|
|
6
|
+
import { QTPosition } from "../core/QTPosition";
|
|
7
|
+
export default function (viewRef: Ref<QTIListView | undefined>): {
|
|
8
|
+
scrollToIndex: (x: number, y: number, animated?: boolean, duration?: number, offset?: number) => void;
|
|
9
|
+
startScroll: (position: QTListInitPosition) => void;
|
|
10
|
+
setSelectChildPosition: (position: number, changeTargetFocusChild?: boolean) => void;
|
|
11
|
+
scrollToPositionWithOffset: (position: number, offset: number, animated: boolean) => void;
|
|
12
|
+
scrollToPositionWithOffsetInfiniteMode: (position: number, offset: number, animated: boolean) => void;
|
|
13
|
+
scrollToPosition: (position: number, offset?: number) => void;
|
|
14
|
+
refreshListData: () => void;
|
|
15
|
+
updateItemTraverse: (position: number, data?: QTListViewItem, traverse?: boolean) => void;
|
|
16
|
+
requestItemLayout: (position: number) => void;
|
|
17
|
+
updateItemRange: (position: number, count: number, itemList: Array<QTListViewItem>) => void;
|
|
18
|
+
insertItemRange: (position: number, itemList: Array<QTListViewItem>) => void;
|
|
19
|
+
updateItemMatched: (params: QTNativeParams, data: QTListViewItem) => void;
|
|
20
|
+
updateItemMatchedByKey: (idKey: string, params: QTNativeParams, data: QTListViewItem) => void;
|
|
21
|
+
deleteItemRange: (position: number, count: number) => void;
|
|
22
|
+
setListData: (itemList: Array<QTListViewItem>) => void;
|
|
23
|
+
setListDataWithParams: (itemList: Array<QTListViewItem>, autoChangeVisible: boolean, useDiff: boolean) => void;
|
|
24
|
+
addListData: (itemList: Array<QTListViewItem>) => void;
|
|
25
|
+
addListDataWithParams: (itemList: Array<QTListViewItem>, deleteCount: number) => void;
|
|
26
|
+
destroy: () => void;
|
|
27
|
+
recycle: () => void;
|
|
28
|
+
scrollToTop: () => void;
|
|
29
|
+
scrollToFocus: (position: number, scrollOffset: number, delay: number, target: string) => void;
|
|
30
|
+
prepareForRecycle: () => void;
|
|
31
|
+
setDisplay: (display: boolean) => void;
|
|
32
|
+
changeDisplayState: (display: boolean, autoDataState: boolean) => void;
|
|
33
|
+
notifySaveInstance: () => void;
|
|
34
|
+
notifyRestoreInstance: () => void;
|
|
35
|
+
updateItemProps: (name: string, position: number, dataToUpdate: QTNativeMap, updateView: boolean) => void;
|
|
36
|
+
dispatchItemFunction: (params: QTNativeArray) => void;
|
|
37
|
+
clearPostTask: () => void;
|
|
38
|
+
clearPostTaskByCate: (data: Array<number>) => void;
|
|
39
|
+
clearData: () => void;
|
|
40
|
+
pausePostTask: () => void;
|
|
41
|
+
resumePostTask: () => void;
|
|
42
|
+
requestLayoutManual: () => void;
|
|
43
|
+
setSpanCount: (spanCount: number) => void;
|
|
44
|
+
searchReplaceItem: (id: string, item: QTListViewItem) => void;
|
|
45
|
+
setCustomStateEnableOnFocus: (id: string, params: Array<Array<string>>) => void;
|
|
46
|
+
setItemCustomState: (position: number, state: string, on: boolean) => void;
|
|
47
|
+
dispatchItemFunctionWithPromise: (position: number, targetName: string, functionTargetName: string, params: Array<QTNativeParams>) => Promise<QTNativeParams>;
|
|
48
|
+
getScrollOffset: () => Promise<QTPosition>;
|
|
49
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QtBaseListViewAPI } from "../list/QtBaseListViewAPI";
|
|
2
|
+
import { QTListViewItem } from "../list-view/core/QTListViewItem";
|
|
3
|
+
import { Ref } from "@vue/reactivity";
|
|
4
|
+
import { QTIIndicatorView } from "./core/QTIIndicatorView";
|
|
5
|
+
import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
|
|
6
|
+
export interface QtIndicatorViewAPI extends QtBaseViewAPI, QtBaseListViewAPI {
|
|
7
|
+
init(instance: Ref<QTIIndicatorView | undefined>, target: Array<QTListViewItem>, isInit?: boolean): Array<QTListViewItem>;
|
|
8
|
+
stopPage(instance: Ref<QTIIndicatorView | undefined>, isTip?: boolean): void;
|
|
9
|
+
setItemFocused(instance: Ref<QTIIndicatorView | undefined>, position: number): void;
|
|
10
|
+
scrollToFocused(instance: Ref<QTIIndicatorView | undefined>, position: number): void;
|
|
11
|
+
setItemSelected(instance: Ref<QTIIndicatorView | undefined>, position: number, requestFocus: boolean): void;
|
|
12
|
+
scrollToSelected(instance: Ref<QTIIndicatorView | undefined>, position: number, requestFocus: boolean): void;
|
|
13
|
+
setIndicatorType(instance: Ref<QTIIndicatorView | undefined>, type: number): void;
|
|
14
|
+
}
|
|
15
|
+
export declare function createQtIndicatorViewAPI(viewAPI: QtBaseViewAPI, listViewAPI: QtBaseListViewAPI): QtIndicatorViewAPI;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QTListViewItem } from "../../list-view/core/QTListViewItem";
|
|
2
|
+
import { QTIBaseListView } from "../../list/QTIBaseListView";
|
|
3
|
+
export interface QTIIndicatorView extends QTIBaseListView {
|
|
4
|
+
init(target: Array<QTListViewItem>, isInit?: boolean): Array<QTListViewItem>;
|
|
5
|
+
stopPage(isTip?: boolean): void;
|
|
6
|
+
setItemFocused(position: number): void;
|
|
7
|
+
scrollToFocused(position: number): void;
|
|
8
|
+
setItemSelected(position: number, b: boolean): void;
|
|
9
|
+
scrollToSelected(position: number, b: boolean): void;
|
|
10
|
+
setIndicatorType(type: number): void;
|
|
11
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
1
|
import { Ref } from "@vue/reactivity";
|
|
3
2
|
import { QTIListItem } from "./QTIListItem";
|
|
4
|
-
|
|
3
|
+
import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
|
|
4
|
+
export interface QtListItemAPI extends QtBaseViewAPI {
|
|
5
5
|
updateItem(instance: string | Ref<QTIListItem | undefined>, posInList: number, data: Object): any;
|
|
6
6
|
dispatchItemFunction(instance: string | Ref<QTIListItem | undefined>, position: number, name: string, funcName: string, params: any): any;
|
|
7
7
|
updateItemProps(instance: string | Ref<QTIListItem | undefined>, position: number, name: string, toUpdateMap: Object): any;
|
|
8
8
|
batch(instance: string | Ref<QTIListItem | undefined>, position: number): any;
|
|
9
9
|
}
|
|
10
|
-
export declare function createQtListItemAPI(viewAPI:
|
|
10
|
+
export declare function createQtListItemAPI(viewAPI: QtBaseViewAPI): QtListItemAPI;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
1
|
import { QtBaseListViewAPI } from "../list/QtBaseListViewAPI";
|
|
3
2
|
import { QTListViewItem } from "./core/QTListViewItem";
|
|
4
3
|
import { Ref } from "@vue/reactivity";
|
|
5
4
|
import { QTIListView } from "./core/QTIListView";
|
|
6
|
-
|
|
5
|
+
import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
|
|
6
|
+
export interface QtListViewAPI extends QtBaseViewAPI, QtBaseListViewAPI {
|
|
7
7
|
init(instance: Ref<QTIListView | undefined>, target: Array<QTListViewItem>, isInit?: boolean): Array<QTListViewItem>;
|
|
8
8
|
stopPage(instance: Ref<QTIListView | undefined>, isTip?: boolean): void;
|
|
9
9
|
setItemFocused(instance: Ref<QTIListView | undefined>, position: number): void;
|
|
@@ -11,4 +11,4 @@ export interface QtListViewAPI extends QtViewAPI, QtBaseListViewAPI {
|
|
|
11
11
|
setItemSelected(instance: Ref<QTIListView | undefined>, position: number, requestFocus: boolean): void;
|
|
12
12
|
scrollToSelected(instance: Ref<QTIListView | undefined>, position: number, requestFocus: boolean): void;
|
|
13
13
|
}
|
|
14
|
-
export declare function createQtListViewAPI(viewAPI:
|
|
14
|
+
export declare function createQtListViewAPI(viewAPI: QtBaseViewAPI, listViewAPI: QtBaseListViewAPI): QtListViewAPI;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface QtLoadingAPI extends
|
|
1
|
+
import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
|
|
2
|
+
export interface QtLoadingAPI extends QtBaseViewAPI {
|
|
3
3
|
}
|
|
4
|
-
export declare function createQtLoadingAPI(viewAPI:
|
|
4
|
+
export declare function createQtLoadingAPI(viewAPI: QtBaseViewAPI): QtLoadingAPI;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { QTIView } from '../view/QTIView';
|
|
2
|
+
export interface QTILongImage extends QTIView {
|
|
3
|
+
setSrc(url: string): void;
|
|
4
|
+
setZoomEnabled(value: boolean): void;
|
|
5
|
+
zoomIn(step: number): void;
|
|
6
|
+
zoomOut(step: number): void;
|
|
7
|
+
scrollDown(step: number): void;
|
|
8
|
+
scrollUp(step: number): void;
|
|
9
|
+
scrollLeft(step: number): void;
|
|
10
|
+
scrollRight(step: number): void;
|
|
11
|
+
scrollTo(offsetX: number, offsetY: number): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { QTILongImage } from './QTILongImage';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
size: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
activeColor: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
inactiveColor: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
inactiveBorderColor: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
sliderColor: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
disabledActiveBgColor: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
disabledInactiveBgColor: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
disabled: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
modelValue: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
borderSize: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: number;
|
|
42
|
+
};
|
|
43
|
+
sliderAssetsIcon: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
sliderNetworkIcon: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
zoomEnabled: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
src: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
};
|
|
58
|
+
scaleType: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
};
|
|
61
|
+
}>, {
|
|
62
|
+
dispatchFunctionBySid: (sid: string, funcName: string, args: Array<import("..").QTNativeParams>) => void;
|
|
63
|
+
requestFocus: (direction?: import("..").QTFocusDirection) => void;
|
|
64
|
+
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection) => void;
|
|
65
|
+
clearFocus: () => void;
|
|
66
|
+
requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
|
|
67
|
+
setVisibility: (v: import("..").QTIViewVisibility) => void;
|
|
68
|
+
requestRootLayout: () => void;
|
|
69
|
+
requestLayout: () => void;
|
|
70
|
+
setDescendantFocusability: (descendant: import("..").QTFocusDescendant) => void;
|
|
71
|
+
changeDescendantFocusability: (descendant: import("..").QTDescendantFocusability) => void;
|
|
72
|
+
forceUpdateRenderNode: () => void;
|
|
73
|
+
setBackGroundColor: (color: string) => void;
|
|
74
|
+
layoutViewManual: () => void;
|
|
75
|
+
blockRootFocus: () => void;
|
|
76
|
+
unBlockRootFocus: () => void;
|
|
77
|
+
changeAlpha: (alpha: number) => void;
|
|
78
|
+
setScale: (x: number, y: number, duration: number) => void;
|
|
79
|
+
setPosition: (x: number, y: number, z: number) => void;
|
|
80
|
+
updateLayout: (width: number, height: number, x: number, y: number) => void;
|
|
81
|
+
invalidate: () => void;
|
|
82
|
+
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>, delay: number) => void;
|
|
83
|
+
setBlockFocusDirections: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
84
|
+
setBlockFocusDirectionsOnFail: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
85
|
+
setInitFocus: (sid: string, delay?: number) => void;
|
|
86
|
+
setAutoFocus: (sid: string, delay?: number) => void;
|
|
87
|
+
enabledAutofocus: (autofocus: boolean) => void;
|
|
88
|
+
requestAutofocus: () => void;
|
|
89
|
+
hasFocus: () => Promise<boolean>;
|
|
90
|
+
isFocused: () => Promise<boolean>;
|
|
91
|
+
getLocationOnScreen: () => Promise<import("..").QTEventData<import("..").QTLocation>>;
|
|
92
|
+
getViewState: () => Promise<import("..").QTViewState>;
|
|
93
|
+
getChildViewState: (position: number) => Promise<import("..").QTViewState>;
|
|
94
|
+
requestChildFocusAtIndex: (position: number) => void;
|
|
95
|
+
clearMemoryFocused: () => void;
|
|
96
|
+
showDialog: (show: boolean) => void;
|
|
97
|
+
viewRef: import("vue").Ref<QTILongImage | undefined, QTILongImage | undefined>;
|
|
98
|
+
setSrc: (url: string) => void;
|
|
99
|
+
setZoomEnabled: (value: boolean) => void;
|
|
100
|
+
zoomIn: (step: number) => void;
|
|
101
|
+
zoomOut: (step: number) => void;
|
|
102
|
+
scrollDown: (step: number) => void;
|
|
103
|
+
scrollUp: (step: number) => void;
|
|
104
|
+
scrollLeft: (step: number) => void;
|
|
105
|
+
scrollRight: (step: number) => void;
|
|
106
|
+
onLoad: (status: number, progress: number, message: string, width: number, height: number) => void;
|
|
107
|
+
onRendered: (scrollable: boolean) => void;
|
|
108
|
+
onScroll: (direction: number, percent: number, isScroll: any, width: number, height: number) => void;
|
|
109
|
+
scrollTo: (offsetX: number, offsetY: number) => void;
|
|
110
|
+
componentInitialized: import("vue").Ref<boolean, boolean>;
|
|
111
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onLoad" | "onScroll" | "onInitializeSuccess" | "onInitializeError" | "onRendered")[], "onLoad" | "onScroll" | "onInitializeSuccess" | "onInitializeError" | "onRendered", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
112
|
+
size: {
|
|
113
|
+
type: StringConstructor;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
activeColor: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
inactiveColor: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
inactiveBorderColor: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
sliderColor: {
|
|
129
|
+
type: StringConstructor;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
disabledActiveBgColor: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
136
|
+
disabledInactiveBgColor: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
disabled: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
144
|
+
modelValue: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
148
|
+
borderSize: {
|
|
149
|
+
type: NumberConstructor;
|
|
150
|
+
default: number;
|
|
151
|
+
};
|
|
152
|
+
sliderAssetsIcon: {
|
|
153
|
+
type: StringConstructor;
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
sliderNetworkIcon: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
zoomEnabled: {
|
|
161
|
+
type: BooleanConstructor;
|
|
162
|
+
default: boolean;
|
|
163
|
+
};
|
|
164
|
+
src: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
};
|
|
167
|
+
scaleType: {
|
|
168
|
+
type: NumberConstructor;
|
|
169
|
+
};
|
|
170
|
+
}>> & Readonly<{
|
|
171
|
+
onOnLoad?: ((...args: any[]) => any) | undefined;
|
|
172
|
+
onOnScroll?: ((...args: any[]) => any) | undefined;
|
|
173
|
+
onOnInitializeSuccess?: ((...args: any[]) => any) | undefined;
|
|
174
|
+
onOnInitializeError?: ((...args: any[]) => any) | undefined;
|
|
175
|
+
onOnRendered?: ((...args: any[]) => any) | undefined;
|
|
176
|
+
}>, {
|
|
177
|
+
size: string;
|
|
178
|
+
activeColor: string;
|
|
179
|
+
inactiveColor: string;
|
|
180
|
+
inactiveBorderColor: string;
|
|
181
|
+
sliderColor: string;
|
|
182
|
+
disabledActiveBgColor: string;
|
|
183
|
+
disabledInactiveBgColor: string;
|
|
184
|
+
disabled: boolean;
|
|
185
|
+
modelValue: boolean;
|
|
186
|
+
borderSize: number;
|
|
187
|
+
sliderAssetsIcon: string;
|
|
188
|
+
sliderNetworkIcon: string;
|
|
189
|
+
zoomEnabled: boolean;
|
|
190
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
191
|
+
export default _default;
|
|
@@ -5,6 +5,8 @@ import { QTIView } from "../view/QTIView";
|
|
|
5
5
|
export interface QTILottieView extends QTIView {
|
|
6
6
|
loadRaw(rawRes: string): void;
|
|
7
7
|
loadFile(fileName: string): void;
|
|
8
|
+
loadJsonFile(fileName: string): void;
|
|
9
|
+
loadZipFile(filePath: string, keyCache: string): void;
|
|
8
10
|
loadUrl(url: string): void;
|
|
9
11
|
loadCacheUrl(url: string, cacheKey: string): void;
|
|
10
12
|
setFallbackResource(res: number): void;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
1
|
import { Ref } from "@vue/reactivity";
|
|
3
2
|
import { QTILottieView } from "./QTILottieView";
|
|
4
3
|
import { QTLottieRepeatMode } from "./QTLottieRepeatMode";
|
|
5
4
|
import { QTLottieRenderMode } from "./QTLottieRenderMode";
|
|
6
5
|
import { QTLottieAsyncUpdates } from "./QTLottieAsyncUpdates";
|
|
7
|
-
|
|
6
|
+
import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
|
|
7
|
+
export interface QtLottieViewAPI extends QtBaseViewAPI {
|
|
8
8
|
loadRaw(instance: string | Ref<QTILottieView | undefined>, rawRes: string): void;
|
|
9
9
|
loadFile(instance: string | Ref<QTILottieView | undefined>, fileName: string): void;
|
|
10
|
+
loadJsonFile(instance: string | Ref<QTILottieView | undefined>, fileName: string): void;
|
|
11
|
+
loadZipFile(instance: string | Ref<QTILottieView | undefined>, filePath: string, keyCache: string): void;
|
|
10
12
|
loadUrl(instance: string | Ref<QTILottieView | undefined>, url: string): void;
|
|
11
13
|
loadCacheUrl(instance: string | Ref<QTILottieView | undefined>, url: string, cacheKey: string): void;
|
|
12
14
|
setFallbackResource(instance: string | Ref<QTILottieView | undefined>, res: number): void;
|
|
@@ -32,4 +34,4 @@ export interface QtLottieViewAPI extends QtViewAPI {
|
|
|
32
34
|
cacheComposition(instance: string | Ref<QTILottieView | undefined>, cache: boolean): void;
|
|
33
35
|
removeAllListener(instance: string | Ref<QTILottieView | undefined>): void;
|
|
34
36
|
}
|
|
35
|
-
export declare function createQtLottieViewAPI(viewAPI:
|
|
37
|
+
export declare function createQtLottieViewAPI(viewAPI: QtBaseViewAPI): QtLottieViewAPI;
|