@quicktvui/quicktvui3 1.2.0 → 3.0.0-alpha.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/dist/index.css +17 -29
- package/dist/index.js +7 -10
- package/dist/src/animation/QTAnimation.android.d.ts +3 -0
- package/dist/src/animation/QTAnimation.harmony.d.ts +3 -0
- package/dist/src/animation/QTIAnimation.d.ts +19 -9
- package/dist/src/animation/QtAnimationAPI.d.ts +16 -34
- package/dist/src/animation/types.d.ts +40 -0
- package/dist/src/app/QTAppIcon.d.ts +1 -1
- package/dist/src/app/QtAppIconAPI.d.ts +5 -5
- package/dist/src/base/QTIBaseView.d.ts +10 -10
- package/dist/src/base/QtBaseNativeViewAPI.d.ts +2 -0
- package/dist/src/base/QtBaseViewAPI.d.ts +45 -0
- package/dist/src/base/useBaseView.d.ts +11 -11
- package/dist/src/button/QTIButton.d.ts +1 -1
- package/dist/src/button/QtButtonAPI.d.ts +3 -3
- package/dist/src/button/index.vue.d.ts +21 -21
- package/dist/src/canvas/CanvasGradient.d.ts +36 -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 +6 -6
- package/dist/src/classified-list-view/core/QTClassifiedListViewItem.d.ts +2 -2
- package/dist/src/classified-list-view/core/QTIClassifiedListView.d.ts +2 -2
- package/dist/src/classified-list-view/index.vue.d.ts +21 -21
- package/dist/src/collapse/QtCollapseAPI.d.ts +7 -7
- package/dist/src/collapse/core/QTCollapse.d.ts +1 -1
- package/dist/src/collapse/core/QTICollapse.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/QTIColumn.d.ts +1 -1
- package/dist/src/column/QtColumnAPI.d.ts +3 -3
- package/dist/src/core/QTFlexStyleGradientBackground.d.ts +1 -1
- package/dist/src/core/QTLocation.d.ts +2 -2
- package/dist/src/dialog/QTDialog.d.ts +1 -1
- package/dist/src/dialog/QTIDialog.d.ts +1 -1
- package/dist/src/gradient/QTGradient.d.ts +3 -3
- package/dist/src/grid-view/QtGridViewAPI.d.ts +7 -7
- package/dist/src/grid-view/core/QTGridViewItem.d.ts +1 -1
- package/dist/src/grid-view/core/QTIGridView.d.ts +2 -2
- package/dist/src/grid-view/index.vue.d.ts +32 -32
- package/dist/src/image/QTIImage.d.ts +2 -2
- package/dist/src/image/QtImageAPI.d.ts +6 -6
- package/dist/src/image/index.vue.d.ts +12 -12
- package/dist/src/index.d.ts +24 -7
- package/dist/src/list/QTIBaseListView.d.ts +5 -5
- package/dist/src/list/QtBaseListViewAPI.d.ts +6 -6
- package/dist/src/list/useBaseListView.d.ts +6 -6
- package/dist/src/list/useListView.d.ts +49 -0
- package/dist/src/list-indicator/QTIndicatorListViewComponent.d.ts +1 -1
- package/dist/src/list-indicator/QtIndicatorViewAPI.d.ts +7 -7
- package/dist/src/list-indicator/core/QTIIndicatorView.d.ts +2 -2
- package/dist/src/list-item/ESListItemComponent.d.ts +1 -1
- package/dist/src/list-item/QtListItemAPI.d.ts +5 -5
- package/dist/src/list-view/QTListViewComponent.d.ts +1 -1
- package/dist/src/list-view/QtListViewAPI.d.ts +7 -7
- package/dist/src/list-view/core/QTIListView.d.ts +2 -2
- package/dist/src/list-view/core/QTListViewItem.d.ts +2 -2
- package/dist/src/loading/QTILoadingView.d.ts +1 -1
- package/dist/src/loading/QTLoadingView.d.ts +1 -1
- package/dist/src/loading/QtLoadingAPI.d.ts +3 -3
- package/dist/src/long-image/QTILongImage.d.ts +22 -0
- package/dist/src/long-image/QTLongImage.d.ts +3 -0
- package/dist/src/long-image/QTLongImageEventBean.d.ts +55 -0
- package/dist/src/long-image/QTLongImageOrientation.d.ts +7 -0
- package/dist/src/long-image/QTLongImagePositionType.d.ts +5 -0
- package/dist/src/long-image/QTLongImageScaleType.d.ts +9 -0
- package/dist/src/long-image/QtLongImageAPI.d.ts +4 -0
- package/dist/src/long-image/index.vue.d.ts +211 -0
- package/dist/src/lottie/QTILottieView.d.ts +4 -4
- package/dist/src/lottie/QTLottieView.android.d.ts +3 -0
- package/dist/src/lottie/QTLottieView.d.ts +1 -1
- package/dist/src/lottie/QTLottieView.harmony.d.ts +3 -0
- package/dist/src/lottie/QtLottieViewAPI.d.ts +8 -8
- package/dist/src/nav-bar/QTINavBar.d.ts +2 -2
- package/dist/src/nav-bar/QTNavBar.d.ts +1 -1
- package/dist/src/nav-bar/QTNavBarItem.d.ts +2 -2
- package/dist/src/nav-bar/QtNavBarAPI.d.ts +6 -6
- package/dist/src/nav-bar/index.vue.d.ts +18 -18
- package/dist/src/plugin/QTIPluginView.d.ts +1 -1
- package/dist/src/plugin/QTPluginView.d.ts +1 -1
- package/dist/src/plugin/QtPluginViewAPI.d.ts +5 -5
- package/dist/src/poster/QtPosterAPI.d.ts +3 -3
- package/dist/src/poster/core/QTIPoster.d.ts +1 -1
- package/dist/src/poster/core/QTPoster.d.ts +13 -13
- package/dist/src/poster/core/QTPosterCorner.d.ts +2 -2
- package/dist/src/poster/core/QTPosterElement.d.ts +1 -1
- package/dist/src/poster/core/QTPosterImage.d.ts +1 -1
- package/dist/src/poster/core/QTPosterRipple.d.ts +3 -3
- package/dist/src/poster/core/QTPosterScore.d.ts +4 -4
- package/dist/src/poster/core/QTPosterTitle.d.ts +5 -5
- package/dist/src/poster/index.vue.d.ts +19 -16
- package/dist/src/progressbar/QTIProgressBar.d.ts +8 -8
- package/dist/src/progressbar/QTProgressBar.d.ts +1 -1
- package/dist/src/progressbar/QtProgressBarAPI.d.ts +12 -12
- package/dist/src/qrcode/QTIQRCode.d.ts +1 -1
- package/dist/src/qrcode/QTQRCodeView.d.ts +1 -1
- package/dist/src/qrcode/QtQRCodeAPI.d.ts +3 -3
- package/dist/src/qt/QtAPI.d.ts +67 -31
- package/dist/src/qtListen/index.d.ts +6 -4
- package/dist/src/qtListen/qtArray.d.ts +1 -0
- package/dist/src/qtListen/qtDiff.d.ts +1 -1
- package/dist/src/qtListen/ref.d.ts +30 -0
- package/dist/src/qtListen/types.d.ts +13 -2
- package/dist/src/qtListen/watch.d.ts +6 -1
- package/dist/src/replace-child/QTIReplaceChildView.d.ts +1 -1
- package/dist/src/replace-child/QTReplaceChildView.d.ts +1 -1
- package/dist/src/replace-child/QtReplaceChildViewAPI.d.ts +5 -5
- package/dist/src/row/QTIRow.d.ts +1 -1
- package/dist/src/row/QtRowAPI.d.ts +3 -3
- package/dist/src/scroll-view/QTIScrollView.d.ts +1 -1
- package/dist/src/scroll-view/QTScrollView.d.ts +1 -1
- package/dist/src/scroll-view/QtScrollViewAPI.d.ts +5 -5
- package/dist/src/section/index.vue.d.ts +11 -11
- package/dist/src/seekbar/QTISeekBar.d.ts +8 -8
- package/dist/src/seekbar/QTSeekBar.d.ts +1 -1
- package/dist/src/seekbar/QtSeekBarAPI.d.ts +12 -12
- package/dist/src/series/DataAdapter.d.ts +6 -6
- package/dist/src/series/QTIMediaSeries.d.ts +6 -6
- package/dist/src/series/QTMediaSeries.d.ts +2 -2
- package/dist/src/series/QTMediaSeriesData.d.ts +1 -1
- package/dist/src/series/QTMediaSeriesEvent.d.ts +1 -1
- package/dist/src/series/QTMediaSeriesGroup.d.ts +1 -1
- package/dist/src/series/QtMediaSeriesAPI.d.ts +8 -8
- package/dist/src/series/component/media-series.vue.d.ts +9 -9
- package/dist/src/series/index.vue.d.ts +26 -22
- 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/QTITab.d.ts +9 -9
- package/dist/src/tab/QTTab.d.ts +1 -1
- package/dist/src/tab/QTTabDataManager.d.ts +8 -8
- package/dist/src/tab/QTTabEvent.d.ts +2 -2
- package/dist/src/tab/QTTabEventParams.d.ts +1 -1
- package/dist/src/tab/QTTabItem.d.ts +1 -1
- package/dist/src/tab/QTTabPage.d.ts +1 -1
- package/dist/src/tab/QTTabPageData.d.ts +1 -1
- package/dist/src/tab/QTTabPageDataState.d.ts +1 -1
- package/dist/src/tab/QtTabAPI.d.ts +11 -11
- package/dist/src/tab/index.vue.d.ts +99 -33
- package/dist/src/tab/useQtTabWatch.d.ts +3 -0
- package/dist/src/text/QTIText.d.ts +2 -2
- package/dist/src/text/QTTextSpan.d.ts +1 -1
- package/dist/src/text/QTTextSpanAttribute.d.ts +1 -1
- package/dist/src/text/QtTextAPI.d.ts +6 -6
- package/dist/src/text/index.vue.d.ts +12 -12
- package/dist/src/ul/QTIUL.d.ts +3 -3
- package/dist/src/ul/QTULInitPosition.d.ts +1 -1
- package/dist/src/ul/QtULAPI.d.ts +7 -7
- package/dist/src/utils/QtVirtualViewAPI.d.ts +1 -1
- package/dist/src/utils/functions.d.ts +1 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/make-installer.d.ts +5 -0
- package/dist/src/utils/objects.d.ts +2 -0
- package/dist/src/utils/type.d.ts +1 -1
- package/dist/src/utils/types.d.ts +9 -0
- package/dist/src/utils/vue/index.d.ts +3 -0
- package/dist/src/utils/vue/install.d.ts +6 -0
- package/dist/src/utils/vue/props/index.d.ts +3 -0
- package/dist/src/utils/vue/props/runtime.d.ts +9 -0
- package/dist/src/utils/vue/props/types.d.ts +38 -0
- package/dist/src/utils/vue/props/util.d.ts +8 -0
- package/dist/src/utils/vue/typescript.d.ts +6 -0
- package/dist/src/view/QTIView.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 +9 -9
- package/dist/src/waterfall/core/QTIWaterfall.d.ts +4 -4
- package/dist/src/waterfall/core/QTWaterfall.d.ts +1 -1
- package/dist/src/waterfall/core/QTWaterfallCardItem.d.ts +2 -2
- package/dist/src/waterfall/core/QTWaterfallCardSection.d.ts +3 -3
- package/dist/src/waterfall/core/QTWaterfallDataAdapter.d.ts +3 -3
- package/dist/src/waterfall/core/QTWaterfallDataManager.d.ts +3 -3
- package/dist/src/waterfall/core/QTWaterfallEvent.d.ts +1 -1
- package/dist/src/waterfall/core/QTWaterfallFlexStyle.d.ts +8 -8
- package/dist/src/waterfall/core/QTWaterfallItem.d.ts +2 -2
- package/dist/src/waterfall/core/QTWaterfallPluginItem.d.ts +1 -1
- package/dist/src/waterfall/core/QTWaterfallPluginSection.d.ts +1 -1
- package/dist/src/waterfall/core/QTWaterfallSection.d.ts +5 -5
- package/dist/src/waterfall/core/QTWaterfallTabItem.d.ts +2 -2
- 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 +11 -8
- 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 +5 -5
- package/dist/src/waterfall/section/vue-section.vue.d.ts +5 -5
- package/dist/src/webview/QTIWebView.d.ts +31 -3
- package/dist/src/webview/QTWebView.d.ts +1 -1
- package/dist/src/webview/QTWebViewInterceptRule.d.ts +4 -0
- package/dist/src/webview/QTWebViewLayerType.d.ts +5 -0
- package/dist/src/webview/QTWebViewSniffingRule.d.ts +20 -0
- package/dist/src/webview/QtWebViewAPI.d.ts +35 -7
- package/dist/src/x5webview/QTIX5WebView.d.ts +36 -3
- package/dist/src/x5webview/QTX5WebView.d.ts +1 -1
- package/dist/src/x5webview/QTX5WebViewInterceptRule.d.ts +4 -0
- package/dist/src/x5webview/QTX5WebViewLayerType.d.ts +5 -0
- package/dist/src/x5webview/QTX5WebViewSniffingRule.d.ts +20 -0
- package/dist/src/x5webview/QtX5WebViewAPI.d.ts +37 -7
- package/package.json +5 -2
- package/web-types.json +1 -1
- package/dist/src/animation/QTAnimation.d.ts +0 -3
|
@@ -1,22 +1,32 @@
|
|
|
1
|
-
import { QTAnimationInterpolator, QTAnimationPropertyName, QTAnimationRepeatMode, QTAnimationValueType, QTAnimatorId } from
|
|
2
|
-
import { QTIView } from
|
|
1
|
+
import { QTAnimationInterpolator, QTAnimationPropertyName, QTAnimationRepeatMode, QTAnimationValueType, QTAnimatorId } from './types';
|
|
2
|
+
import { QTIView } from '../view/QTIView';
|
|
3
3
|
export interface QTIAnimation extends QTIView {
|
|
4
|
+
animator(id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, values: number[], duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
5
|
+
animatorSet(animatorId: QTAnimatorId, duration: number, listenAnimator: boolean): any;
|
|
6
|
+
reset(): any;
|
|
7
|
+
start(animatorId?: QTAnimatorId): any;
|
|
8
|
+
startDelay(animatorId?: QTAnimatorId, delay?: number): any;
|
|
9
|
+
pause(animatorId?: QTAnimatorId): any;
|
|
10
|
+
resume(animatorId?: QTAnimatorId): any;
|
|
11
|
+
cancel(animatorId?: QTAnimatorId): any;
|
|
12
|
+
reverse(animatorId?: QTAnimatorId): any;
|
|
4
13
|
setPivotX(pivotX: number): any;
|
|
5
14
|
setPivotY(pivotY: number): any;
|
|
6
15
|
resetPivot(): any;
|
|
7
16
|
resetAnimators(): any;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
reverseAnimator(animatorId: QTAnimatorId): any;
|
|
17
|
+
startAnimator(animatorId?: QTAnimatorId): any;
|
|
18
|
+
startAnimatorDelay(animatorId?: QTAnimatorId, delay?: number): any;
|
|
19
|
+
pauseAnimator(animatorId?: QTAnimatorId): any;
|
|
20
|
+
resumeAnimator(animatorId?: QTAnimatorId): any;
|
|
21
|
+
cancelAnimator(animatorId?: QTAnimatorId): any;
|
|
22
|
+
reverseAnimator(animatorId?: QTAnimatorId): any;
|
|
15
23
|
play(animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
16
24
|
playWith(animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
17
25
|
playBefore(animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
18
26
|
playAfter(animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
19
27
|
playAfterDelay(animatorSetId: QTAnimatorId, delay: number): any;
|
|
28
|
+
playSequentially(animatorSetId: QTAnimatorId, animatorIds: Array<QTAnimatorId>): any;
|
|
29
|
+
playTogether(animatorSetId: QTAnimatorId, animatorIds: Array<QTAnimatorId>): any;
|
|
20
30
|
playSequentially1(animatorSetId: QTAnimatorId, animatorId1: QTAnimatorId): any;
|
|
21
31
|
playSequentially2(animatorSetId: QTAnimatorId, animatorId1: QTAnimatorId, animatorId2: QTAnimatorId): any;
|
|
22
32
|
playSequentially3(animatorSetId: QTAnimatorId, animatorId1: QTAnimatorId, animatorId2: QTAnimatorId, animatorId3: QTAnimatorId): any;
|
|
@@ -1,44 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export interface QtAnimationAPI extends
|
|
1
|
+
import { Ref } from '@vue/reactivity';
|
|
2
|
+
import { QTIAnimation } from './QTIAnimation';
|
|
3
|
+
import { QTAnimationInterpolator, QTAnimationPropertyName, QTAnimationRepeatMode, QTAnimationValueType, QTAnimatorId } from './types';
|
|
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;
|
|
9
|
-
|
|
9
|
+
animator(instance: string | Ref<QTIAnimation | undefined>, id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, values: number[], duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
10
10
|
animatorSet(instance: string | Ref<QTIAnimation | undefined>, animatorId: QTAnimatorId, duration: number, listenAnimator: boolean): any;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
reset(instance: string | Ref<QTIAnimation | undefined>): any;
|
|
12
|
+
start(instance: string | Ref<QTIAnimation | undefined>, animatorId?: QTAnimatorId): any;
|
|
13
|
+
startDelay(instance: string | Ref<QTIAnimation | undefined>, animatorId?: QTAnimatorId, delay?: number): any;
|
|
14
|
+
pause(instance: string | Ref<QTIAnimation | undefined>, animatorId?: QTAnimatorId): any;
|
|
15
|
+
resume(instance: string | Ref<QTIAnimation | undefined>, animatorId?: QTAnimatorId): any;
|
|
16
|
+
cancel(instance: string | Ref<QTIAnimation | undefined>, animatorId?: QTAnimatorId): any;
|
|
17
|
+
reverse(instance: string | Ref<QTIAnimation | undefined>, animatorId?: QTAnimatorId): any;
|
|
17
18
|
play(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
18
19
|
playWith(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
19
20
|
playBefore(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
20
21
|
playAfter(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
21
22
|
playAfterDelay(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, delay: number): any;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
playSequentially3(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId1: QTAnimatorId, animatorId2: QTAnimatorId, animatorId3: QTAnimatorId): any;
|
|
25
|
-
playSequentially4(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId1: QTAnimatorId, animatorId2: QTAnimatorId, animatorId3: QTAnimatorId, animatorId4: QTAnimatorId): any;
|
|
26
|
-
playSequentially5(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId1: QTAnimatorId, animatorId2: QTAnimatorId, animatorId3: QTAnimatorId, animatorId4: QTAnimatorId, animatorId5: QTAnimatorId): any;
|
|
27
|
-
playTogether1(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId1: QTAnimatorId): any;
|
|
28
|
-
playTogether2(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId1: QTAnimatorId, animatorId2: QTAnimatorId): any;
|
|
29
|
-
playTogether3(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId1: QTAnimatorId, animatorId2: QTAnimatorId, animatorId3: QTAnimatorId): any;
|
|
30
|
-
playTogether4(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId1: QTAnimatorId, animatorId2: QTAnimatorId, animatorId3: QTAnimatorId, animatorId4: QTAnimatorId): any;
|
|
31
|
-
playTogether5(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId1: QTAnimatorId, animatorId2: QTAnimatorId, animatorId3: QTAnimatorId, animatorId4: QTAnimatorId, animatorId5: QTAnimatorId): any;
|
|
32
|
-
objectAnimator(instance: string | Ref<QTIAnimation | undefined>, id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
33
|
-
objectAnimator1(instance: string | Ref<QTIAnimation | undefined>, id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, value1: number, duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
34
|
-
objectAnimator2(instance: string | Ref<QTIAnimation | undefined>, id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, value1: number, value2: number, duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
35
|
-
objectAnimator3(instance: string | Ref<QTIAnimation | undefined>, id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, value1: number, value2: number, value3: number, duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
36
|
-
objectAnimator4(instance: string | Ref<QTIAnimation | undefined>, id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, value1: number, value2: number, value3: number, value4: number, duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
37
|
-
objectAnimator5(instance: string | Ref<QTIAnimation | undefined>, id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, value1: number, value2: number, value3: number, value4: number, value5: number, duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
38
|
-
objectAnimator6(instance: string | Ref<QTIAnimation | undefined>, id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, value1: number, value2: number, value3: number, value4: number, value5: number, value6: number, duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
39
|
-
objectAnimator7(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, duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
40
|
-
objectAnimator8(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, duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
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
|
-
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;
|
|
23
|
+
playSequentially(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorIds: Array<QTAnimatorId>): any;
|
|
24
|
+
playTogether(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorIds: Array<QTAnimatorId>): any;
|
|
43
25
|
}
|
|
44
|
-
export declare function createQtAnimationAPI(viewAPI:
|
|
26
|
+
export declare function createQtAnimationAPI(viewAPI: QtBaseViewAPI): QtAnimationAPI;
|
|
@@ -1,6 +1,33 @@
|
|
|
1
|
+
export declare enum QTAnimatorRelationType {
|
|
2
|
+
SEQUENCE = "sequence",
|
|
3
|
+
TOGETHER = "together",
|
|
4
|
+
WITH = "with",
|
|
5
|
+
BEFORE = "before",
|
|
6
|
+
AFTER = "after"
|
|
7
|
+
}
|
|
8
|
+
export interface QTAnimatorSet {
|
|
9
|
+
id?: QTAnimatorId;
|
|
10
|
+
animators: QTAnimator[];
|
|
11
|
+
duration?: number;
|
|
12
|
+
listenAnimator?: boolean;
|
|
13
|
+
relationType?: QTAnimatorRelationType;
|
|
14
|
+
}
|
|
15
|
+
export interface QTAnimator {
|
|
16
|
+
id?: QTAnimatorId;
|
|
17
|
+
valueType?: QTAnimationValueType;
|
|
18
|
+
type: QTAnimationType;
|
|
19
|
+
values: number[];
|
|
20
|
+
duration: number;
|
|
21
|
+
repeatMode?: QTAnimationRepeatMode;
|
|
22
|
+
repeatCount?: number;
|
|
23
|
+
listenAnimator?: boolean;
|
|
24
|
+
listenAnimatorValue?: boolean;
|
|
25
|
+
interpolator?: QTAnimationInterpolator;
|
|
26
|
+
}
|
|
1
27
|
export type QTAnimatorId = string;
|
|
2
28
|
export interface QTAnimationInterpolator {
|
|
3
29
|
type: QTAnimationInterpolatorType;
|
|
30
|
+
params?: Array<number>;
|
|
4
31
|
}
|
|
5
32
|
export declare enum QTAnimationInterpolatorType {
|
|
6
33
|
QT_ACCELERATE_DECELERATE_INTERPOLATOR = 1,
|
|
@@ -29,6 +56,19 @@ export declare enum QTAnimationPropertyName {
|
|
|
29
56
|
QT_ANIMATION_PROPERTY_NAME_TRANSLATION_Y = "translationY",
|
|
30
57
|
QT_ANIMATION_PROPERTY_NAME_TRANSLATION_Z = "translationZ"
|
|
31
58
|
}
|
|
59
|
+
export declare enum QTAnimationType {
|
|
60
|
+
ALPHA = "alpha",
|
|
61
|
+
ROTATION = "rotation",
|
|
62
|
+
ROTATION_X = "rotationX",
|
|
63
|
+
ROTATION_Y = "rotationY",
|
|
64
|
+
ROTATION_Z = "rotationZ",
|
|
65
|
+
SCALE_X = "scaleX",
|
|
66
|
+
SCALE_Y = "scaleY",
|
|
67
|
+
SCALE_Z = "scaleZ",
|
|
68
|
+
TRANSLATION_X = "translationX",
|
|
69
|
+
TRANSLATION_Y = "translationY",
|
|
70
|
+
TRANSLATION_Z = "translationZ"
|
|
71
|
+
}
|
|
32
72
|
export declare enum QTAnimationRepeatMode {
|
|
33
73
|
QT_ANIMATION_REPEAT_MODE_RESTART = 1,
|
|
34
74
|
QT_ANIMATION_REPEAT_MODE_REVERSE = 2,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface QtAppIconAPI extends
|
|
1
|
+
import { Ref } from '@vue/reactivity';
|
|
2
|
+
import { QTIAppIcon } from './QTIAppIcon';
|
|
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;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ESIView } from
|
|
2
|
-
import { QTIViewVisibility } from
|
|
3
|
-
import { QTFocusDirection } from
|
|
4
|
-
import { QTFocusDescendant } from
|
|
5
|
-
import { QTDescendantFocusability } from
|
|
6
|
-
import { QTNativeParams } from
|
|
7
|
-
import { QTFocusDirectionName } from
|
|
8
|
-
import { QTEventData } from
|
|
9
|
-
import { QTLocation } from
|
|
10
|
-
import { QTViewState } from
|
|
1
|
+
import { ESIView } from '@extscreen/es3-component';
|
|
2
|
+
import { QTIViewVisibility } from '../view/QTIViewVisibility';
|
|
3
|
+
import { QTFocusDirection } from '../focus/QTFocusDirection';
|
|
4
|
+
import { QTFocusDescendant } from '../focus/QTFocusDescendant';
|
|
5
|
+
import { QTDescendantFocusability } from '../focus/QTDescendantFocusability';
|
|
6
|
+
import { QTNativeParams } from '../core/QTNativeParams';
|
|
7
|
+
import { QTFocusDirectionName } from '../focus/QTFocusDirectionName';
|
|
8
|
+
import { QTEventData } from '../core/QTEventData';
|
|
9
|
+
import { QTLocation } from '../core/QTLocation';
|
|
10
|
+
import { QTViewState } from '../view/QTViewState';
|
|
11
11
|
export interface QTIBaseView extends ESIView {
|
|
12
12
|
requestFocus(direction?: QTFocusDirection): void;
|
|
13
13
|
requestChildFocus(position: number, direction?: QTFocusDirection): void;
|
|
@@ -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,14 +1,14 @@
|
|
|
1
|
-
import { QTIViewVisibility } from
|
|
2
|
-
import { Ref } from
|
|
3
|
-
import { ESIView } from
|
|
4
|
-
import { QTFocusDirection } from
|
|
5
|
-
import { QTFocusDescendant } from
|
|
6
|
-
import { QTDescendantFocusability } from
|
|
7
|
-
import { QTNativeParams } from
|
|
8
|
-
import { QTFocusDirectionName } from
|
|
9
|
-
import { QTEventData } from
|
|
10
|
-
import { QTLocation } from
|
|
11
|
-
import { QTViewState } from
|
|
1
|
+
import { QTIViewVisibility } from '../view/QTIViewVisibility';
|
|
2
|
+
import { Ref } from '@vue/reactivity';
|
|
3
|
+
import { ESIView } from '@extscreen/es3-component';
|
|
4
|
+
import { QTFocusDirection } from '../focus/QTFocusDirection';
|
|
5
|
+
import { QTFocusDescendant } from '../focus/QTFocusDescendant';
|
|
6
|
+
import { QTDescendantFocusability } from '../focus/QTDescendantFocusability';
|
|
7
|
+
import { QTNativeParams } from '../core/QTNativeParams';
|
|
8
|
+
import { QTFocusDirectionName } from '../focus/QTFocusDirectionName';
|
|
9
|
+
import { QTEventData } from '../core/QTEventData';
|
|
10
|
+
import { QTLocation } from '../core/QTLocation';
|
|
11
|
+
import { QTViewState } from '../view/QTViewState';
|
|
12
12
|
export default function (viewRef: Ref<ESIView | undefined>): {
|
|
13
13
|
dispatchFunctionBySid: (sid: string, funcName: string, args: Array<QTNativeParams>) => void;
|
|
14
14
|
requestFocus: (direction?: QTFocusDirection) => void;
|
|
@@ -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,36 @@
|
|
|
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
|
+
export 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
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { QTIView } from '../view/QTIView';
|
|
2
|
+
export interface QTICanvasView extends QTIView {
|
|
3
|
+
destroyView(): 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 './CanvasGradient';
|
|
5
|
+
export interface QtCanvasViewAPI extends QtBaseViewAPI {
|
|
6
|
+
destroyView(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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export interface QtClassifiedListViewAPI extends
|
|
1
|
+
import { Ref } from '@vue/reactivity';
|
|
2
|
+
import { QTIClassifiedListView } from './core/QTIClassifiedListView';
|
|
3
|
+
import { QTClassifiedListViewItem } from './core/QTClassifiedListViewItem';
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { QTClassifiedListViewItemDecoration } from
|
|
2
|
-
import { QTListViewItem } from
|
|
1
|
+
import { QTClassifiedListViewItemDecoration } from './QTClassifiedListViewItemDecoration';
|
|
2
|
+
import { QTListViewItem } from '../../list-view/core/QTListViewItem';
|
|
3
3
|
export interface QTClassifiedListViewItem extends QTListViewItem {
|
|
4
4
|
type: number;
|
|
5
5
|
categoryname: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QTClassifiedListViewItem } from
|
|
2
|
-
import { QTIView } from
|
|
1
|
+
import { QTClassifiedListViewItem } from './QTClassifiedListViewItem';
|
|
2
|
+
import { QTIView } from '../../view/QTIView';
|
|
3
3
|
export interface QTIClassifiedListView extends QTIView {
|
|
4
4
|
init(itemList: Array<QTClassifiedListViewItem>): void;
|
|
5
5
|
scrollToIndex(index: number, anim: Boolean, offset: number): void;
|