@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,8 +1,8 @@
|
|
|
1
|
-
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
1
|
import { Ref } from "@vue/reactivity";
|
|
3
2
|
import { QTIAnimation } from "./QTIAnimation";
|
|
4
3
|
import { QTAnimationInterpolator, QTAnimationPropertyName, QTAnimationRepeatMode, QTAnimationValueType, QTAnimatorId } from "./types";
|
|
5
|
-
|
|
4
|
+
import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
|
|
5
|
+
export interface QtAnimationAPI extends QtBaseViewAPI {
|
|
6
6
|
setPivotX(instance: string | Ref<QTIAnimation | undefined>, pivotX: number): any;
|
|
7
7
|
setPivotY(instance: string | Ref<QTIAnimation | undefined>, pivotY: number): any;
|
|
8
8
|
resetPivot(instance: string | Ref<QTIAnimation | undefined>): any;
|
|
@@ -41,4 +41,4 @@ export interface QtAnimationAPI extends QtViewAPI {
|
|
|
41
41
|
objectAnimator9(instance: string | Ref<QTIAnimation | undefined>, id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, value1: number, value2: number, value3: number, value4: number, value5: number, value6: number, value7: number, value8: number, value9: number, duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
42
42
|
objectAnimator10(instance: string | Ref<QTIAnimation | undefined>, id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, value1: number, value2: number, value3: number, value4: number, value5: number, value6: number, value7: number, value8: number, value9: number, value10: number, duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
43
43
|
}
|
|
44
|
-
export declare function createQtAnimationAPI(viewAPI:
|
|
44
|
+
export declare function createQtAnimationAPI(viewAPI: QtBaseViewAPI): QtAnimationAPI;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
1
|
import { Ref } from "@vue/reactivity";
|
|
3
2
|
import { QTIAppIcon } from "./QTIAppIcon";
|
|
4
|
-
|
|
3
|
+
import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
|
|
4
|
+
export interface QtAppIconAPI extends QtBaseViewAPI {
|
|
5
5
|
setPackageName(instance: string | Ref<QTIAppIcon | undefined>, packageName: string): void;
|
|
6
6
|
setRoundingRadius(instance: string | Ref<QTIAppIcon | undefined>, roundingRadius: number): void;
|
|
7
7
|
}
|
|
8
|
-
export declare function createQtAppIconAPI(viewAPI:
|
|
8
|
+
export declare function createQtAppIconAPI(viewAPI: QtBaseViewAPI): QtAppIconAPI;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Ref } from '@vue/reactivity';
|
|
2
|
+
import { QTFocusDirection } from '../focus/QTFocusDirection';
|
|
3
|
+
import { QTFocusDescendant } from '../focus/QTFocusDescendant';
|
|
4
|
+
import { QTDescendantFocusability } from '../focus/QTDescendantFocusability';
|
|
5
|
+
import { QTNativeParams } from '../core/QTNativeParams';
|
|
6
|
+
import { QTFocusDirectionName } from '../focus/QTFocusDirectionName';
|
|
7
|
+
import { QTEventData } from '../core/QTEventData';
|
|
8
|
+
import { QTLocation } from '../core/QTLocation';
|
|
9
|
+
import { QTIView } from '../view/QTIView';
|
|
10
|
+
import { QTIViewVisibility } from '../view/QTIViewVisibility';
|
|
11
|
+
import { QTViewState } from '../view/QTViewState';
|
|
12
|
+
export interface QtBaseViewAPI {
|
|
13
|
+
requestFocus(instance: string | Ref<QTIView | undefined>, direction?: QTFocusDirection): void;
|
|
14
|
+
requestChildFocus(instance: string | Ref<QTIView | undefined>, position: number): void;
|
|
15
|
+
clearFocus(instance: string | Ref<QTIView | undefined>): void;
|
|
16
|
+
requestFocusDirectly(instance: string | Ref<QTIView | undefined>, direction?: QTFocusDirection): void;
|
|
17
|
+
setVisibility(instance: string | Ref<QTIView | undefined>, v: QTIViewVisibility): void;
|
|
18
|
+
requestRootLayout(instance: string | Ref<QTIView | undefined>): void;
|
|
19
|
+
requestLayout(instance: string | Ref<QTIView | undefined>): void;
|
|
20
|
+
setDescendantFocusability(instance: string | Ref<QTIView | undefined>, descendant: QTFocusDescendant): void;
|
|
21
|
+
changeDescendantFocusability(instance: string | Ref<QTIView | undefined>, descendant: QTDescendantFocusability): void;
|
|
22
|
+
forceUpdateRenderNode(instance: string | Ref<QTIView | undefined>): void;
|
|
23
|
+
setBackGroundColor(instance: string | Ref<QTIView | undefined>, color: string): void;
|
|
24
|
+
layoutViewManual(instance: string | Ref<QTIView | undefined>): void;
|
|
25
|
+
blockRootFocus(instance: string | Ref<QTIView | undefined>): void;
|
|
26
|
+
unBlockRootFocus(instance: string | Ref<QTIView | undefined>): void;
|
|
27
|
+
changeAlpha(instance: string | Ref<QTIView | undefined>, alpha: number): void;
|
|
28
|
+
setScale(instance: string | Ref<QTIView | undefined>, x: number, y: number, duration: number): void;
|
|
29
|
+
setPosition(instance: string | Ref<QTIView | undefined>, x: number, y: number, z: number): void;
|
|
30
|
+
updateLayout(instance: string | Ref<QTIView | undefined>, width: number, height: number, x: number, y: number): void;
|
|
31
|
+
invalidate(instance: string | Ref<QTIView | undefined>): void;
|
|
32
|
+
dispatchFunctionForTarget(instance: string | Ref<QTIView | undefined>, targetName: string, functionTargetName: string, params: Array<QTNativeParams>, delay: number): void;
|
|
33
|
+
setBlockFocusDirections(instance: string | Ref<QTIView | undefined>, directionList: Array<QTFocusDirectionName>): void;
|
|
34
|
+
setBlockFocusDirectionsOnFail(instance: string | Ref<QTIView | undefined>, directionList: Array<QTFocusDirectionName>): void;
|
|
35
|
+
setInitFocus(instance: string | Ref<QTIView | undefined>, sid: string, delay?: number): void;
|
|
36
|
+
setAutoFocus(instance: string | Ref<QTIView | undefined>, sid: string, delay?: number): void;
|
|
37
|
+
enabledAutofocus(instance: string | Ref<QTIView | undefined>, autofocus: boolean): void;
|
|
38
|
+
requestAutofocus(instance: string | Ref<QTIView | undefined>): void;
|
|
39
|
+
hasFocus(instance: string | Ref<QTIView | undefined>): Promise<boolean>;
|
|
40
|
+
isFocused(instance: string | Ref<QTIView | undefined>): Promise<boolean>;
|
|
41
|
+
getLocationOnScreen(instance: string | Ref<QTIView | undefined>): Promise<QTEventData<QTLocation>>;
|
|
42
|
+
getViewState(instance: string | Ref<QTIView | undefined>): Promise<QTViewState>;
|
|
43
|
+
getChildViewState(instance: string | Ref<QTIView | undefined>, position: number): Promise<QTViewState>;
|
|
44
|
+
}
|
|
45
|
+
export declare function createQtBaseViewAPI(): QtBaseViewAPI;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface QtButtonAPI extends
|
|
1
|
+
import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
|
|
2
|
+
export interface QtButtonAPI extends QtBaseViewAPI {
|
|
3
3
|
}
|
|
4
|
-
export declare function createQtButtonAPI(viewAPI:
|
|
4
|
+
export declare function createQtButtonAPI(viewAPI: QtBaseViewAPI): QtButtonAPI;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
size: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
@@ -56,12 +56,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
56
|
iconStyle: ObjectConstructor;
|
|
57
57
|
focusIconStyle: ObjectConstructor;
|
|
58
58
|
iconParentStyle: ObjectConstructor;
|
|
59
|
-
}
|
|
60
|
-
dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams
|
|
61
|
-
requestFocus: (direction?: import("..").QTFocusDirection
|
|
62
|
-
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection
|
|
59
|
+
}>, {
|
|
60
|
+
dispatchFunctionBySid: (sid: string, funcName: string, args: Array<import("..").QTNativeParams>) => void;
|
|
61
|
+
requestFocus: (direction?: import("..").QTFocusDirection) => void;
|
|
62
|
+
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection) => void;
|
|
63
63
|
clearFocus: () => void;
|
|
64
|
-
requestFocusDirectly: (direction?: import("..").QTFocusDirection
|
|
64
|
+
requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
|
|
65
65
|
setVisibility: (v: import("..").QTIViewVisibility) => void;
|
|
66
66
|
requestRootLayout: () => void;
|
|
67
67
|
requestLayout: () => void;
|
|
@@ -77,11 +77,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
77
77
|
setPosition: (x: number, y: number, z: number) => void;
|
|
78
78
|
updateLayout: (width: number, height: number, x: number, y: number) => void;
|
|
79
79
|
invalidate: () => void;
|
|
80
|
-
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams
|
|
81
|
-
setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName
|
|
82
|
-
setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName
|
|
83
|
-
setInitFocus: (sid: string, delay?: number
|
|
84
|
-
setAutoFocus: (sid: string, delay?: number
|
|
80
|
+
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>, delay: number) => void;
|
|
81
|
+
setBlockFocusDirections: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
82
|
+
setBlockFocusDirectionsOnFail: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
83
|
+
setInitFocus: (sid: string, delay?: number) => void;
|
|
84
|
+
setAutoFocus: (sid: string, delay?: number) => void;
|
|
85
85
|
enabledAutofocus: (autofocus: boolean) => void;
|
|
86
86
|
requestAutofocus: () => void;
|
|
87
87
|
hasFocus: () => Promise<boolean>;
|
|
@@ -92,11 +92,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
92
92
|
requestChildFocusAtIndex: (position: number) => void;
|
|
93
93
|
clearMemoryFocused: () => void;
|
|
94
94
|
showDialog: (show: boolean) => void;
|
|
95
|
-
buttonRef: import("vue").Ref<any>;
|
|
96
|
-
focused: import("vue").Ref<boolean>;
|
|
95
|
+
buttonRef: import("vue").Ref<any, any>;
|
|
96
|
+
focused: import("vue").Ref<boolean, boolean>;
|
|
97
97
|
onFocus: (e: any) => void;
|
|
98
98
|
onClick: (e: any) => void;
|
|
99
|
-
},
|
|
99
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "click")[], "focus" | "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
100
100
|
size: {
|
|
101
101
|
type: StringConstructor;
|
|
102
102
|
default: string;
|
|
@@ -154,10 +154,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
154
154
|
iconStyle: ObjectConstructor;
|
|
155
155
|
focusIconStyle: ObjectConstructor;
|
|
156
156
|
iconParentStyle: ObjectConstructor;
|
|
157
|
-
}>> & {
|
|
157
|
+
}>> & Readonly<{
|
|
158
158
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
159
159
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
160
|
-
}
|
|
160
|
+
}>, {
|
|
161
|
+
disabled: boolean;
|
|
162
|
+
circle: boolean;
|
|
163
|
+
round: boolean;
|
|
164
|
+
square: boolean;
|
|
161
165
|
size: string;
|
|
162
166
|
itemType: number;
|
|
163
167
|
focusBorder: boolean;
|
|
@@ -170,9 +174,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
170
174
|
gradientFocusBackground: Record<string, any>;
|
|
171
175
|
gradientSelectedBackground: Record<string, any>;
|
|
172
176
|
gradientBackground: Record<string, any>;
|
|
173
|
-
|
|
174
|
-
circle: boolean;
|
|
175
|
-
round: boolean;
|
|
176
|
-
square: boolean;
|
|
177
|
-
}, {}>;
|
|
177
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
178
178
|
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type GradientType = 'linear' | 'radial' | string;
|
|
2
|
+
export interface Position2D {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export interface Position2DWithRadius extends Position2D {
|
|
7
|
+
r: number;
|
|
8
|
+
}
|
|
9
|
+
export interface GradientStop {
|
|
10
|
+
pos: number;
|
|
11
|
+
color: string;
|
|
12
|
+
}
|
|
13
|
+
export interface LinearGradient {
|
|
14
|
+
type: 'linear';
|
|
15
|
+
start_pos: Position2D;
|
|
16
|
+
end_pos: Position2D;
|
|
17
|
+
stop_count: number;
|
|
18
|
+
stops: GradientStop[];
|
|
19
|
+
}
|
|
20
|
+
export interface RadialGradient {
|
|
21
|
+
type: 'radial';
|
|
22
|
+
start_pos: Position2DWithRadius;
|
|
23
|
+
end_pos: Position2DWithRadius;
|
|
24
|
+
stop_count: number;
|
|
25
|
+
stops: GradientStop[];
|
|
26
|
+
}
|
|
27
|
+
export type GradientInput = LinearGradient | RadialGradient | string;
|
|
28
|
+
declare class CanvasGradient {
|
|
29
|
+
start_pos: Position2D | Position2DWithRadius;
|
|
30
|
+
end_pos: Position2D | Position2DWithRadius;
|
|
31
|
+
type: GradientType;
|
|
32
|
+
stop_count: number;
|
|
33
|
+
stops: GradientStop[];
|
|
34
|
+
constructor(x0: number, y0: number, x1: number, y1?: number, r0?: number, r1?: number);
|
|
35
|
+
addColorStop(pos: number, color: string): void;
|
|
36
|
+
}
|
|
37
|
+
export default CanvasGradient;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { QTIView } from '../view/QTIView';
|
|
2
|
+
export interface QTICanvasView extends QTIView {
|
|
3
|
+
destoryView(): void;
|
|
4
|
+
drawAction(str: string): void;
|
|
5
|
+
drawFinish(): void;
|
|
6
|
+
fillStyle(color: string): void;
|
|
7
|
+
fillRect(left: number, top: number, right: number, bottom: number): void;
|
|
8
|
+
rec(left: number, top: number, right: number, bottom: number): void;
|
|
9
|
+
strokeStyle(str: string): void;
|
|
10
|
+
strokeRect(left: number, top: number, right: number, bottom: number): void;
|
|
11
|
+
clearRect(left: number, top: number, right: number, bottom: number): void;
|
|
12
|
+
shadowBlur(value: number): void;
|
|
13
|
+
shadowColor(color: number): void;
|
|
14
|
+
shadowOffsetX(x: number): void;
|
|
15
|
+
shadowOffsetY(y: number): void;
|
|
16
|
+
lineDashOffset(offset: number): void;
|
|
17
|
+
lineWidth(lineWidth: number): void;
|
|
18
|
+
setLineDash(a: number, b: number): void;
|
|
19
|
+
textBaseline(str: string): void;
|
|
20
|
+
textAlign(str: string): void;
|
|
21
|
+
fillText(text: string, x: number, y: number): void;
|
|
22
|
+
strokeText(text: string, x: number, y: number): void;
|
|
23
|
+
font(text: string): void;
|
|
24
|
+
beginPath(): void;
|
|
25
|
+
moveTo(x: number, y: number): void;
|
|
26
|
+
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise: boolean): void;
|
|
27
|
+
clip(): void;
|
|
28
|
+
lineTo(x: number, y: number): void;
|
|
29
|
+
closePath(): void;
|
|
30
|
+
stroke(): void;
|
|
31
|
+
fill(): void;
|
|
32
|
+
save(): void;
|
|
33
|
+
restore(): void;
|
|
34
|
+
lineCap(str: string): void;
|
|
35
|
+
lineJoin(type: string): void;
|
|
36
|
+
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
|
|
37
|
+
bezierCurveTo(cpx1: number, cpy1: number, cpx2: number, cpy2: number, x: number, y: number): void;
|
|
38
|
+
globalAlpha(value: number): void;
|
|
39
|
+
globalCompositeOperation(value: string): void;
|
|
40
|
+
translate(tx: number, ty: number): void;
|
|
41
|
+
rotate(angle: number): void;
|
|
42
|
+
scale(sx: number, sy: number): void;
|
|
43
|
+
transform(scaleX: number, skewY: number, skewX: number, scaleY: number, translateX: number, translateY: number): void;
|
|
44
|
+
setTransform(scaleX: number, skewY: number, skewX: number, scaleY: number, translateX: number, translateY: number): void;
|
|
45
|
+
drawImage(url: string, x: number, y: number): void;
|
|
46
|
+
drawImageWithWH(url: string, x: number, y: number, width: number, height: number): void;
|
|
47
|
+
drawImageSlice(url: string, sx: number, sy: number, sWidth: number, sHeight: number, dx: number, dy: number, dWidth: number, dHeight: number): void;
|
|
48
|
+
setVersion(version: string): any;
|
|
49
|
+
setCurrentDensity(density: string): any;
|
|
50
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Ref } from '@vue/reactivity';
|
|
2
|
+
import { QTICanvasView } from './QTICanvasView';
|
|
3
|
+
import { QtBaseViewAPI } from '../base/QtBaseViewAPI';
|
|
4
|
+
import CanvasGradient from './Gradient';
|
|
5
|
+
export interface QtCanvasViewAPI extends QtBaseViewAPI {
|
|
6
|
+
destoryView(instance: string | Ref<QTICanvasView | undefined>): void;
|
|
7
|
+
drawAction(instance: string | Ref<QTICanvasView | undefined>, str: string): void;
|
|
8
|
+
drawFinish(instance: string | Ref<QTICanvasView | undefined>): void;
|
|
9
|
+
fillStyle(instance: string | Ref<QTICanvasView | undefined>, input: CanvasGradient): void;
|
|
10
|
+
fillRect(instance: string | Ref<QTICanvasView | undefined>, left: number, top: number, right: number, bottom: number): void;
|
|
11
|
+
rec(instance: string | Ref<QTICanvasView | undefined>, left: number, top: number, right: number, bottom: number): void;
|
|
12
|
+
strokeStyle(instance: string | Ref<QTICanvasView | undefined>, string: CanvasGradient): void;
|
|
13
|
+
strokeRect(instance: string | Ref<QTICanvasView | undefined>, left: number, top: number, right: number, bottom: number): void;
|
|
14
|
+
clearRect(instance: string | Ref<QTICanvasView | undefined>, left: number, top: number, right: number, bottom: number): void;
|
|
15
|
+
shadowBlur(instance: string | Ref<QTICanvasView | undefined>, value: number): void;
|
|
16
|
+
shadowColor(instance: string | Ref<QTICanvasView | undefined>, color: number): void;
|
|
17
|
+
shadowOffsetX(instance: string | Ref<QTICanvasView | undefined>, x: number): void;
|
|
18
|
+
shadowOffsetY(instance: string | Ref<QTICanvasView | undefined>, y: number): void;
|
|
19
|
+
lineDashOffset(instance: string | Ref<QTICanvasView | undefined>, offset: number): void;
|
|
20
|
+
lineWidth(instance: string | Ref<QTICanvasView | undefined>, lineWidth: number): void;
|
|
21
|
+
setLineDash(instance: string | Ref<QTICanvasView | undefined>, a: number, b: number): void;
|
|
22
|
+
textBaseline(instance: string | Ref<QTICanvasView | undefined>, str: string): void;
|
|
23
|
+
textAlign(instance: string | Ref<QTICanvasView | undefined>, str: string): void;
|
|
24
|
+
fillText(instance: string | Ref<QTICanvasView | undefined>, text: string, x: number, y: number): void;
|
|
25
|
+
strokeText(instance: string | Ref<QTICanvasView | undefined>, text: string, x: number, y: number): void;
|
|
26
|
+
font(instance: string | Ref<QTICanvasView | undefined>, text: string): void;
|
|
27
|
+
beginPath(instance: string | Ref<QTICanvasView | undefined>): void;
|
|
28
|
+
moveTo(instance: string | Ref<QTICanvasView | undefined>, x: number, y: number): void;
|
|
29
|
+
arc(instance: string | Ref<QTICanvasView | undefined>, x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise: boolean): void;
|
|
30
|
+
clip(instance: string | Ref<QTICanvasView | undefined>): void;
|
|
31
|
+
lineTo(instance: string | Ref<QTICanvasView | undefined>, x: number, y: number): void;
|
|
32
|
+
closePath(instance: string | Ref<QTICanvasView | undefined>): void;
|
|
33
|
+
stroke(instance: string | Ref<QTICanvasView | undefined>): void;
|
|
34
|
+
fill(instance: string | Ref<QTICanvasView | undefined>): void;
|
|
35
|
+
save(instance: string | Ref<QTICanvasView | undefined>): void;
|
|
36
|
+
restore(instance: string | Ref<QTICanvasView | undefined>): void;
|
|
37
|
+
lineCap(instance: string | Ref<QTICanvasView | undefined>, str: string): void;
|
|
38
|
+
lineJoin(instance: string | Ref<QTICanvasView | undefined>, type: string): void;
|
|
39
|
+
quadraticCurveTo(instance: string | Ref<QTICanvasView | undefined>, cpx: number, cpy: number, x: number, y: number): void;
|
|
40
|
+
bezierCurveTo(instance: string | Ref<QTICanvasView | undefined>, cpx1: number, cpy1: number, cpx2: number, cpy2: number, x: number, y: number): void;
|
|
41
|
+
globalAlpha(instance: string | Ref<QTICanvasView | undefined>, value: number): void;
|
|
42
|
+
globalCompositeOperation(instance: string | Ref<QTICanvasView | undefined>, value: string): void;
|
|
43
|
+
translate(instance: string | Ref<QTICanvasView | undefined>, tx: number, ty: number): void;
|
|
44
|
+
rotate(instance: string | Ref<QTICanvasView | undefined>, angle: number): void;
|
|
45
|
+
scale(instance: string | Ref<QTICanvasView | undefined>, sx: number, sy: number): void;
|
|
46
|
+
transform(instance: string | Ref<QTICanvasView | undefined>, scaleX: number, skewY: number, skewX: number, scaleY: number, translateX: number, translateY: number): void;
|
|
47
|
+
setTransform(instance: string | Ref<QTICanvasView | undefined>, scaleX: number, skewY: number, skewX: number, scaleY: number, translateX: number, translateY: number): void;
|
|
48
|
+
drawImage(instance: string | Ref<QTICanvasView | undefined>, url: string, x: number, y: number): void;
|
|
49
|
+
drawImageWithWH(instance: string | Ref<QTICanvasView | undefined>, url: string, x: number, y: number, width: number, height: number): void;
|
|
50
|
+
drawImageSlice(instance: string | Ref<QTICanvasView | undefined>, url: string, sx: number, sy: number, sWidth: number, sHeight: number, dx: number, dy: number, dWidth: number, dHeight: number): void;
|
|
51
|
+
setVersion(instance: string | Ref<QTICanvasView | undefined>, version: string): any;
|
|
52
|
+
setCurrentDensity(instance: string | Ref<QTICanvasView | undefined>, density: string): any;
|
|
53
|
+
}
|
|
54
|
+
export declare function createQtCanvasViewAPI(viewAPI: QtBaseViewAPI): QtCanvasViewAPI;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
1
|
import { Ref } from "@vue/reactivity";
|
|
3
2
|
import { QTIClassifiedListView } from "./core/QTIClassifiedListView";
|
|
4
3
|
import { QTClassifiedListViewItem } from "./core/QTClassifiedListViewItem";
|
|
5
|
-
|
|
4
|
+
import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
|
|
5
|
+
export interface QtClassifiedListViewAPI extends QtBaseViewAPI {
|
|
6
6
|
init(instance: Ref<QTIClassifiedListView | undefined>, itemList: Array<QTClassifiedListViewItem>): void;
|
|
7
7
|
scrollToIndex(instance: Ref<QTIClassifiedListView | undefined>, index: number, anim: Boolean, offset: number): void;
|
|
8
8
|
setItemFocused(instance: Ref<QTIClassifiedListView | undefined>, index: number): void;
|
|
@@ -11,4 +11,4 @@ export interface QtClassifiedListViewAPI extends QtViewAPI {
|
|
|
11
11
|
scrollToSelected(instance: Ref<QTIClassifiedListView | undefined>, index: number, b: boolean): void;
|
|
12
12
|
updateItem(instance: Ref<QTIClassifiedListView | undefined>, position: number, data: QTClassifiedListViewItem): void;
|
|
13
13
|
}
|
|
14
|
-
export declare function createQtClassifiedListViewAPI(viewAPI:
|
|
14
|
+
export declare function createQtClassifiedListViewAPI(viewAPI: QtBaseViewAPI): QtClassifiedListViewAPI;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QTClassifiedListViewItem } from "./core/QTClassifiedListViewItem";
|
|
2
2
|
import { QTIListView } from "../list-view/core/QTIListView";
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
className: {
|
|
5
5
|
type: StringConstructor;
|
|
6
6
|
default: string;
|
|
@@ -25,12 +25,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
type: NumberConstructor;
|
|
26
26
|
default: number;
|
|
27
27
|
};
|
|
28
|
-
}
|
|
29
|
-
dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams
|
|
30
|
-
requestFocus: (direction?: import("..").QTFocusDirection
|
|
31
|
-
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection
|
|
28
|
+
}>, {
|
|
29
|
+
dispatchFunctionBySid: (sid: string, funcName: string, args: Array<import("..").QTNativeParams>) => void;
|
|
30
|
+
requestFocus: (direction?: import("..").QTFocusDirection) => void;
|
|
31
|
+
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection) => void;
|
|
32
32
|
clearFocus: () => void;
|
|
33
|
-
requestFocusDirectly: (direction?: import("..").QTFocusDirection
|
|
33
|
+
requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
|
|
34
34
|
setVisibility: (v: import("..").QTIViewVisibility) => void;
|
|
35
35
|
requestRootLayout: () => void;
|
|
36
36
|
requestLayout: () => void;
|
|
@@ -46,11 +46,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
46
|
setPosition: (x: number, y: number, z: number) => void;
|
|
47
47
|
updateLayout: (width: number, height: number, x: number, y: number) => void;
|
|
48
48
|
invalidate: () => void;
|
|
49
|
-
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams
|
|
50
|
-
setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName
|
|
51
|
-
setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName
|
|
52
|
-
setInitFocus: (sid: string, delay?: number
|
|
53
|
-
setAutoFocus: (sid: string, delay?: number
|
|
49
|
+
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>, delay: number) => void;
|
|
50
|
+
setBlockFocusDirections: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
51
|
+
setBlockFocusDirectionsOnFail: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
52
|
+
setInitFocus: (sid: string, delay?: number) => void;
|
|
53
|
+
setAutoFocus: (sid: string, delay?: number) => void;
|
|
54
54
|
enabledAutofocus: (autofocus: boolean) => void;
|
|
55
55
|
requestAutofocus: () => void;
|
|
56
56
|
hasFocus: () => Promise<boolean>;
|
|
@@ -61,9 +61,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
requestChildFocusAtIndex: (position: number) => void;
|
|
62
62
|
clearMemoryFocused: () => void;
|
|
63
63
|
showDialog: (show: boolean) => void;
|
|
64
|
-
descendantFocusability: import("vue").Ref<number>;
|
|
65
|
-
content_list_view: import("vue").Ref<QTIListView | undefined>;
|
|
66
|
-
nav_list_view: import("vue").Ref<QTIListView | undefined>;
|
|
64
|
+
descendantFocusability: import("vue").Ref<number, number>;
|
|
65
|
+
content_list_view: import("vue").Ref<QTIListView | undefined, QTIListView | undefined>;
|
|
66
|
+
nav_list_view: import("vue").Ref<QTIListView | undefined, QTIListView | undefined>;
|
|
67
67
|
init: (itemList: Array<QTClassifiedListViewItem>) => void;
|
|
68
68
|
onItemBind: () => void;
|
|
69
69
|
onSItemClick: (e: any) => void;
|
|
@@ -76,8 +76,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
76
|
onSItemFocused: (e: any) => void;
|
|
77
77
|
onFItemFocused: (e: any) => void;
|
|
78
78
|
updateItem: (position: number, data: QTClassifiedListViewItem) => void;
|
|
79
|
-
viewRef: import("vue").Ref<any>;
|
|
80
|
-
},
|
|
79
|
+
viewRef: import("vue").Ref<any, any>;
|
|
80
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("item-click" | "item-focused")[], "item-click" | "item-focused", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
81
81
|
className: {
|
|
82
82
|
type: StringConstructor;
|
|
83
83
|
default: string;
|
|
@@ -102,15 +102,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
102
|
type: NumberConstructor;
|
|
103
103
|
default: number;
|
|
104
104
|
};
|
|
105
|
-
}>> & {
|
|
105
|
+
}>> & Readonly<{
|
|
106
106
|
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
|
107
107
|
"onItem-focused"?: ((...args: any[]) => any) | undefined;
|
|
108
|
-
}
|
|
108
|
+
}>, {
|
|
109
109
|
className: string;
|
|
110
110
|
classNavName: string;
|
|
111
111
|
currentFocusIndex: number;
|
|
112
112
|
focusScale: number;
|
|
113
113
|
navType: number;
|
|
114
114
|
yOffest: number;
|
|
115
|
-
}, {}>;
|
|
115
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
116
116
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
1
|
import { Ref } from "@vue/reactivity";
|
|
3
2
|
import { QTICollapse } from "./core/QTICollapse";
|
|
4
3
|
import { QTICollapseItem } from "./core/QTICollapseItem";
|
|
5
4
|
import { QTCollapse } from "./core/QTCollapse";
|
|
6
|
-
|
|
5
|
+
import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
|
|
6
|
+
export interface QtCollapseAPI extends QtBaseViewAPI {
|
|
7
7
|
init(instance: Ref<QTICollapse | undefined>, collapse: QTCollapse): void;
|
|
8
8
|
getItem(instance: Ref<QTICollapse | undefined>, index: number): QTICollapseItem | undefined;
|
|
9
9
|
expandItem(instance: Ref<QTICollapse | undefined>, index: number): void;
|
|
10
10
|
collapse(instance: Ref<QTICollapse | undefined>): void;
|
|
11
11
|
expand(instance: Ref<QTICollapse | undefined>): void;
|
|
12
12
|
}
|
|
13
|
-
export declare function createQtCollapseAPI(viewAPI:
|
|
13
|
+
export declare function createQtCollapseAPI(viewAPI: QtBaseViewAPI): QtCollapseAPI;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { QTICollapseItem } from
|
|
2
|
-
import { QTCollapse } from
|
|
3
|
-
import { QTIAnimation } from
|
|
1
|
+
import { QTICollapseItem } from './core/QTICollapseItem';
|
|
2
|
+
import { QTCollapse } from './core/QTCollapse';
|
|
3
|
+
import { QTIAnimation } from '../animation/QTIAnimation';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
5
|
-
dispatchFunctionBySid: (sid: string, funcName: string, args: import("..").QTNativeParams
|
|
6
|
-
requestFocus: (direction?: import("..").QTFocusDirection
|
|
7
|
-
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection
|
|
5
|
+
dispatchFunctionBySid: (sid: string, funcName: string, args: Array<import("..").QTNativeParams>) => void;
|
|
6
|
+
requestFocus: (direction?: import("..").QTFocusDirection) => void;
|
|
7
|
+
requestChildFocus: (position: number, direction?: import("..").QTFocusDirection) => void;
|
|
8
8
|
clearFocus: () => void;
|
|
9
|
-
requestFocusDirectly: (direction?: import("..").QTFocusDirection
|
|
9
|
+
requestFocusDirectly: (direction?: import("..").QTFocusDirection) => void;
|
|
10
10
|
setVisibility: (v: import("..").QTIViewVisibility) => void;
|
|
11
11
|
requestRootLayout: () => void;
|
|
12
12
|
requestLayout: () => void;
|
|
@@ -22,11 +22,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
22
22
|
setPosition: (x: number, y: number, z: number) => void;
|
|
23
23
|
updateLayout: (width: number, height: number, x: number, y: number) => void;
|
|
24
24
|
invalidate: () => void;
|
|
25
|
-
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: import("..").QTNativeParams
|
|
26
|
-
setBlockFocusDirections: (directionList: import("..").QTFocusDirectionName
|
|
27
|
-
setBlockFocusDirectionsOnFail: (directionList: import("..").QTFocusDirectionName
|
|
28
|
-
setInitFocus: (sid: string, delay?: number
|
|
29
|
-
setAutoFocus: (sid: string, delay?: number
|
|
25
|
+
dispatchFunctionForTarget: (targetName: string, functionTargetName: string, params: Array<import("..").QTNativeParams>, delay: number) => void;
|
|
26
|
+
setBlockFocusDirections: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
27
|
+
setBlockFocusDirectionsOnFail: (directionList: Array<import("..").QTFocusDirectionName>) => void;
|
|
28
|
+
setInitFocus: (sid: string, delay?: number) => void;
|
|
29
|
+
setAutoFocus: (sid: string, delay?: number) => void;
|
|
30
30
|
enabledAutofocus: (autofocus: boolean) => void;
|
|
31
31
|
requestAutofocus: () => void;
|
|
32
32
|
hasFocus: () => Promise<boolean>;
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
37
37
|
requestChildFocusAtIndex: (position: number) => void;
|
|
38
38
|
clearMemoryFocused: () => void;
|
|
39
39
|
showDialog: (show: boolean) => void;
|
|
40
|
-
collapseItemComponentList: import("vue").Ref<any>;
|
|
40
|
+
collapseItemComponentList: import("vue").Ref<any, any>;
|
|
41
41
|
initComponentRef: (el: QTICollapseItem, item: {
|
|
42
42
|
name: string;
|
|
43
43
|
}, index: number) => void;
|
|
@@ -49,10 +49,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
49
49
|
expandItem: (index: number) => void;
|
|
50
50
|
collapse: () => void;
|
|
51
51
|
expand: () => void;
|
|
52
|
-
collapseWidth: import("vue").Ref<number>;
|
|
53
|
-
collapseHeight: import("vue").Ref<number>;
|
|
54
|
-
viewRef: import("vue").Ref<any>;
|
|
55
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onCollapseItemExpand"[], "onCollapseItemExpand", import("vue").PublicProps, Readonly<
|
|
52
|
+
collapseWidth: import("vue").Ref<number, number>;
|
|
53
|
+
collapseHeight: import("vue").Ref<number, number>;
|
|
54
|
+
viewRef: import("vue").Ref<any, any>;
|
|
55
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onCollapseItemExpand"[], "onCollapseItemExpand", import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
56
56
|
onOnCollapseItemExpand?: ((...args: any[]) => any) | undefined;
|
|
57
|
-
}, {}, {}>;
|
|
57
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
58
58
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface QtColumnAPI extends
|
|
1
|
+
import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
|
|
2
|
+
export interface QtColumnAPI extends QtBaseViewAPI {
|
|
3
3
|
}
|
|
4
|
-
export declare function createQtColumnAPI(viewAPI:
|
|
4
|
+
export declare function createQtColumnAPI(viewAPI: QtBaseViewAPI): QtColumnAPI;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { QtViewAPI } from "../view/QtViewAPI";
|
|
2
1
|
import { QtBaseListViewAPI } from "../list/QtBaseListViewAPI";
|
|
3
2
|
import { QTGridViewItem } from "./core/QTGridViewItem";
|
|
4
3
|
import { Ref } from "@vue/reactivity";
|
|
5
4
|
import { QTIGridView } from "./core/QTIGridView";
|
|
6
|
-
|
|
5
|
+
import { QtBaseViewAPI } from "../base/QtBaseViewAPI";
|
|
6
|
+
export interface QtGridViewAPI extends QtBaseViewAPI, QtBaseListViewAPI {
|
|
7
7
|
init(instance: Ref<QTIGridView | undefined>, target: Array<QTGridViewItem>, isInit?: boolean): Array<QTGridViewItem>;
|
|
8
8
|
stopPage(instance: Ref<QTIGridView | undefined>, isTip?: boolean): void;
|
|
9
9
|
restartPage(instance: Ref<QTIGridView | undefined>): void;
|
|
@@ -13,4 +13,4 @@ export interface QtGridViewAPI extends QtViewAPI, QtBaseListViewAPI {
|
|
|
13
13
|
scrollToSelected(instance: Ref<QTIGridView | undefined>, position: number, b: boolean): void;
|
|
14
14
|
setInitPosition(instance: Ref<QTIGridView | undefined>, position: number): void;
|
|
15
15
|
}
|
|
16
|
-
export declare function createQtGridViewAPI(viewAPI:
|
|
16
|
+
export declare function createQtGridViewAPI(viewAPI: QtBaseViewAPI, listViewAPI: QtBaseListViewAPI): QtGridViewAPI;
|