@shijiu/jsview-vue 2.3.151-test.0 → 3.0.0-test.0
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/bin/browser/BrowserAudio.mjs +200 -0
- package/bin/browser/BrowserJsvLatex.mjs +61 -0
- package/bin/export-sfc.mjs +8 -9
- package/bin/jsview-vue-common.mjs +9 -35
- package/bin/jsview-vue.mjs +22246 -23643
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +9 -71
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +18 -2
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +10 -7
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +19 -178
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +19 -178
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +24 -3
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +7 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +25 -5
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +9 -47
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +2 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +1 -1
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +40 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +24 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +19 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +42 -0
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +6 -4
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +9 -7
- package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +17 -7
- package/bin/types/utils/JsViewEngineWidget/index.d.ts +3 -1
- package/bin/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +140 -7
- package/bin/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +12 -11
- package/bin/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +10 -10
- package/bin/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +204 -17
- package/bin/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +2 -1
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +11 -11
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.ts +11 -11
- package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +75 -12
- package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +88 -13
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +5 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +39 -12
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +120 -17
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +108 -29
- package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +8 -7
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +614 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +36 -34
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +89 -30
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +89 -30
- package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +11 -11
- package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
- package/bin/types/utils/JsViewVueTools/DebugTool.d.ts +1 -1
- package/bin/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +7 -7
- package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
- package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +3 -3
- package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +43 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +54 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +13 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +76 -26
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +49 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/index.d.ts +4 -1
- package/bin/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +10 -98
- package/bin/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +10 -114
- package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +20 -61
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +44 -13
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +12 -11
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +5 -5
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +16 -10
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +21 -17
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +19 -16
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +7 -7
- package/bin/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +12 -66
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +73 -12
- package/bin/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +59 -10
- package/bin/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +41 -81
- package/bin/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +17 -100
- package/bin/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +13 -50
- package/bin/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +50 -70
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +32 -68
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +57 -74
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +41 -71
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +83 -14
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +79 -83
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +70 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +20 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +108 -5
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +88 -3
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +6 -1
- package/bin/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +19 -18
- package/bin/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +34 -11
- package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
- package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +193 -6
- package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +54 -11
- package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +89 -11
- package/bin/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +9 -8
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +2 -2
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +170 -138
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +5 -5
- package/bin/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +48 -72
- package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +139 -20
- package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +56 -8
- package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +20 -11
- package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +63 -11
- package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +8 -7
- package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +95 -12
- package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +2 -2
- package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +51 -78
- package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +5 -4
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +84 -193
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +23 -148
- package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +56 -9
- package/bin/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +22 -67
- package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +44 -10
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +47 -14
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +26 -67
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +7 -6
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +147 -109
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +173 -16
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +216 -139
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +7 -6
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +101 -96
- package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +89 -74
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +21 -20
- package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +43 -70
- package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +6 -5
- package/bin/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +62 -82
- package/bin/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +95 -74
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +51 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +105 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +51 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +105 -0
- package/bin/types/utils/JsViewVueWidget/index.d.ts +5 -3
- package/package.json +2 -2
- package/tools/jsview-vue-build.mjs +13 -9
- package/tsconfig.json +2 -2
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +32 -16
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +24 -2
- package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +183 -89
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +269 -122
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +989 -357
- package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +138 -41
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -0
- package/utils/JsViewEngineWidget/MetroWidget/Utils.ts +6 -0
- package/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.ts +2 -1
- package/utils/JsViewEngineWidget/RectUtils.js +1 -1
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue +50 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.ts +260 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.ts +32 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.ts +236 -0
- package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +342 -174
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +12 -5
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +109 -41
- package/utils/JsViewEngineWidget/WidgetCommon.ts +17 -7
- package/utils/JsViewEngineWidget/index.ts +7 -2
- package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
- package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
- package/utils/JsViewPlugin/JsvLatex/GetVersion.js +65 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +54 -12
- package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +15 -2
- package/utils/JsViewPlugin/JsvLatex/PluginLoader.js +63 -31
- package/utils/JsViewPlugin/JsvLatex/version.mjs +26 -13
- package/utils/JsViewPlugin/JsvPlayer/GetVersion.js +2 -1
- package/utils/JsViewPlugin/JsvPlayer/JsvMedia.js +402 -23
- package/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.js +100 -0
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +363 -468
- package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue → JsvPlayerBrowser-wasm.vue} +60 -10
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue +511 -0
- package/utils/JsViewPlugin/JsvPlayer/index-0.9.js +52 -10
- package/utils/JsViewPlugin/JsvPlayer/index.js +58 -9
- package/utils/JsViewPlugin/JsvPlayer/package.json +8 -0
- package/utils/JsViewVueTools/BlobApi.ts +55 -0
- package/utils/JsViewVueTools/FeatureActive.ts +3 -0
- package/utils/JsViewVueTools/ForgeHandles.ts +3 -0
- package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +25 -18
- package/utils/JsViewVueTools/JsvTextTools.ts +9 -1
- package/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.ts +180 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.ts +1 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.ts +304 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -0
- package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +16 -1
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +154 -69
- package/utils/JsViewVueTools/JsvTextureStore/Store.ts +1 -1
- package/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.ts +92 -0
- package/utils/JsViewVueTools/JsvTextureStore/index.js +2 -0
- package/utils/JsViewVueTools/index.js +3 -1
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +111 -86
- package/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue +1 -1
- package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +11 -2
- package/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue +1 -1
- package/utils/JsViewVueWidget/JsvEnableRenderBreak.vue +6 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +11 -5
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +23 -11
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +242 -25
- package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +1 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +11 -5
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +118 -6
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +56 -14
- package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +2 -1
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +11 -2
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +30 -2
- package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +24 -7
- package/utils/JsViewVueWidget/JsvMarquee.vue +1 -1
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +12 -10
- package/utils/JsViewVueWidget/JsvNinePatch.vue +13 -8
- package/utils/JsViewVueWidget/JsvPieChart.vue +93 -70
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +32 -29
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +25 -3
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +0 -3
- package/utils/JsViewVueWidget/JsvSector.vue +66 -28
- package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
- package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +56 -14
- package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +8 -6
- package/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue +54 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue +88 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue +177 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue +267 -0
- package/utils/JsViewVueWidget/index.js +6 -2
- package/bin/browser/BrowserAudio.vue.mjs +0 -258
- package/bin/browser/BrowserJsvLatex.vue.mjs +0 -145
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.ts +0 -10
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.d.ts +0 -7
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +0 -78
- package/bin/types/utils/JsViewVueWidget/JsvPosterDiv.vue.d.ts +0 -63
- package/bin/types/utils/JsViewVueWidget/JsvPosterImage.vue.d.ts +0 -78
- package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
- package/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.ts +0 -36
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
- package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
- /package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Ref } from "vue";
|
|
2
2
|
import { TemplateItem } from "../TemplateParser/MetroTemplate";
|
|
3
|
+
import { SpatialNavigationNode } from "../SpatialNavigator/SpatialNavigationNode";
|
|
3
4
|
interface RenderItemStyle {
|
|
4
5
|
zIndex: number;
|
|
5
6
|
left: number;
|
|
@@ -14,6 +15,7 @@ interface ItemConfig {
|
|
|
14
15
|
permanent: boolean;
|
|
15
16
|
showSkeleton: boolean;
|
|
16
17
|
enableLongPress: boolean;
|
|
18
|
+
bindSpatialNav: boolean;
|
|
17
19
|
}
|
|
18
20
|
export declare class RenderItem {
|
|
19
21
|
private divMountedCallback;
|
|
@@ -21,25 +23,41 @@ export declare class RenderItem {
|
|
|
21
23
|
templateInfo: TemplateItem;
|
|
22
24
|
renderStyle: RenderItemStyle;
|
|
23
25
|
itemConfig: ItemConfig;
|
|
24
|
-
mounted:
|
|
26
|
+
mounted: {
|
|
27
|
+
value: boolean;
|
|
28
|
+
};
|
|
25
29
|
touchInit: boolean;
|
|
26
|
-
rootDiv: HTMLDivElement |
|
|
30
|
+
rootDiv: HTMLDivElement | undefined;
|
|
27
31
|
enableTap: boolean;
|
|
28
32
|
renderKey: Ref<number>;
|
|
29
33
|
placeHolderLayout: null;
|
|
34
|
+
rootNativeViewId: number;
|
|
35
|
+
private nativeLayoutView;
|
|
30
36
|
private customerCallbackMap;
|
|
31
37
|
private onRef;
|
|
32
|
-
private
|
|
38
|
+
private metroWidgetInfos;
|
|
39
|
+
private isFocus;
|
|
33
40
|
readonly registerObj: object;
|
|
34
41
|
readonly query: object;
|
|
35
|
-
|
|
42
|
+
enableFboAccelrate: boolean;
|
|
43
|
+
renderBreak: boolean;
|
|
44
|
+
private spatialNavNode;
|
|
45
|
+
constructor(templateInfo: TemplateItem, customerData: object, renderStyle: RenderItemStyle, itemConfig: ItemConfig, onRef: () => void, query: object, metroWidgetInfos: any, enableFboAccelrate: boolean, widgetRenderBreak: boolean);
|
|
36
46
|
get id(): number;
|
|
37
47
|
get index(): number;
|
|
48
|
+
getSpatialNavNode(): SpatialNavigationNode | undefined;
|
|
38
49
|
updateCustomData(newCustomData: object, newItemConfig: ItemConfig): void;
|
|
39
|
-
divRef: (ele: HTMLDivElement |
|
|
50
|
+
divRef: (ele: HTMLDivElement | undefined) => void;
|
|
40
51
|
slotRef: (ele: object | null) => void;
|
|
41
52
|
register(name: string, callback: Function): void;
|
|
42
53
|
unregister(name: string): void;
|
|
54
|
+
onGetItemVisibleState(leftTop: {
|
|
55
|
+
x: number;
|
|
56
|
+
y: number;
|
|
57
|
+
}, rightBottom: {
|
|
58
|
+
x: number;
|
|
59
|
+
y: number;
|
|
60
|
+
}): any;
|
|
43
61
|
onFocus(rect: object): boolean;
|
|
44
62
|
onBlur(): boolean;
|
|
45
63
|
onGaze(rect: object): boolean;
|
|
@@ -50,6 +68,8 @@ export declare class RenderItem {
|
|
|
50
68
|
onLongPress(): boolean;
|
|
51
69
|
onWidgetEdge(rect: object): boolean;
|
|
52
70
|
addDivMountedListener(cbk: (div: HTMLDivElement) => void): () => void;
|
|
71
|
+
onInRenderRange(): void;
|
|
72
|
+
onOutOfRenderRange(): void;
|
|
53
73
|
private onDivMounted;
|
|
54
74
|
private onDivUnmounted;
|
|
55
75
|
}
|
|
@@ -1,48 +1,10 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
new (...args: any[]): {
|
|
3
|
-
$: import("vue").ComponentInternalInstance;
|
|
4
|
-
$data: {};
|
|
5
|
-
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
-
$attrs: {
|
|
7
|
-
[x: string]: unknown;
|
|
8
|
-
};
|
|
9
|
-
$refs: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
};
|
|
12
|
-
$slots: Readonly<{
|
|
13
|
-
[name: string]: import("vue").Slot | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
16
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
17
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
18
|
-
$el: any;
|
|
19
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
20
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
21
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
22
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
23
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
24
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
25
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
26
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
27
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
33
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
34
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
35
|
-
};
|
|
36
|
-
$forceUpdate: () => void;
|
|
37
|
-
$nextTick: typeof import("vue").nextTick;
|
|
38
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
39
|
-
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
40
|
-
__isFragment?: undefined;
|
|
41
|
-
__isTeleport?: undefined;
|
|
42
|
-
__isSuspense?: undefined;
|
|
43
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
44
|
-
$slots: {
|
|
45
|
-
default: (_: {}) => any;
|
|
46
|
-
};
|
|
47
|
-
});
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
48
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
default?: ((props: {}) => any) | undefined;
|
|
10
|
+
};
|
|
@@ -8,7 +8,7 @@ export declare class WidgetRectInfo {
|
|
|
8
8
|
private mWidth;
|
|
9
9
|
private mHeight;
|
|
10
10
|
private mPadding;
|
|
11
|
-
constructor(w: number, h: number, padding: any);
|
|
11
|
+
constructor(w: number, h: number, padding: any, errorLogger: Function);
|
|
12
12
|
get width(): number;
|
|
13
13
|
get height(): number;
|
|
14
14
|
get contentWidth(): number;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
onEdge: {
|
|
9
|
+
type: FunctionConstructor;
|
|
10
|
+
};
|
|
11
|
+
xDefaultMoveType: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
yDefaultMoveType: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>, {
|
|
20
|
+
getSpatialNavigator: () => SpatialNavigator;
|
|
21
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
onEdge: {
|
|
23
|
+
type: FunctionConstructor;
|
|
24
|
+
};
|
|
25
|
+
xDefaultMoveType: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
yDefaultMoveType: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{}>, {
|
|
34
|
+
xDefaultMoveType: string;
|
|
35
|
+
yDefaultMoveType: string;
|
|
36
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
type __VLS_Slots = {
|
|
38
|
+
default?: ((props: {}) => any) | undefined;
|
|
39
|
+
};
|
|
40
|
+
import { SpatialNavigator } from "./SpatialNavigator";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface Rect {
|
|
2
|
+
left: number;
|
|
3
|
+
top: number;
|
|
4
|
+
right: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
centerX: number;
|
|
7
|
+
centerY: number;
|
|
8
|
+
}
|
|
9
|
+
export interface SpatialNavigationCandidate<T> {
|
|
10
|
+
data: T;
|
|
11
|
+
rect: Rect;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @param current 当前元素
|
|
16
|
+
* @param candidates 候选元素列表
|
|
17
|
+
* @param direction 移动方向
|
|
18
|
+
* @description 寻找逻辑(以往下找为例子):
|
|
19
|
+
* 1. 先寻找主方向最近的元素(item.top - cur.bottom 为正且最小的)tagItem
|
|
20
|
+
* 2. 寻找与tagItem在主方向重叠的元素(与tagItem纵向有重叠的元素,构成一个待选行)
|
|
21
|
+
* 3. 选择待选行中的离current副方向最近的元素(x距离最小的)
|
|
22
|
+
*/
|
|
23
|
+
export declare function findNextLayerFirst<T>(current: SpatialNavigationCandidate<T>, candidates: SpatialNavigationCandidate<T>[], direction: Symbol): SpatialNavigationCandidate<T> | null;
|
|
24
|
+
export declare function findNextCandidate<T>(current: SpatialNavigationCandidate<T>, candidates: SpatialNavigationCandidate<T>[], direction: Symbol): SpatialNavigationCandidate<T> | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Rect } from "./SpatialNavigationAlgorithm";
|
|
2
|
+
export declare class SpatialNavigationNode {
|
|
3
|
+
private getPosition;
|
|
4
|
+
getMwInfo: () => {
|
|
5
|
+
mwChain: any[];
|
|
6
|
+
itemIndex: number;
|
|
7
|
+
};
|
|
8
|
+
private mOnFocus;
|
|
9
|
+
private mOnBlur;
|
|
10
|
+
private mRect;
|
|
11
|
+
constructor(getPosition: (token: number, div: unknown) => Rect | undefined, getMwInfo: () => {
|
|
12
|
+
mwChain: any[];
|
|
13
|
+
itemIndex: number;
|
|
14
|
+
}, mOnFocus: () => void, mOnBlur: () => void);
|
|
15
|
+
onFocus(): void;
|
|
16
|
+
onBlur(): void;
|
|
17
|
+
updateRect(token: number, root: unknown): void;
|
|
18
|
+
getRect(): Rect | undefined;
|
|
19
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { SpatialNavigationNode } from "./SpatialNavigationNode";
|
|
2
|
+
import type { Ref } from "vue";
|
|
3
|
+
export declare const SPATIAL_NAV_PROVIDER_NAME = "__jsv_spatialNavProvider";
|
|
4
|
+
type MoveType = "normal" | "layerFirst";
|
|
5
|
+
export interface MoveOptions {
|
|
6
|
+
xMoveType?: MoveType;
|
|
7
|
+
yMoveType?: MoveType;
|
|
8
|
+
moveType?: MoveType;
|
|
9
|
+
}
|
|
10
|
+
export declare class SpatialNavigator {
|
|
11
|
+
private nodes;
|
|
12
|
+
private currentNode;
|
|
13
|
+
private divRef;
|
|
14
|
+
private mFocusHub;
|
|
15
|
+
private mFindNextToken;
|
|
16
|
+
private mOnEdge;
|
|
17
|
+
private mXDefaultMoveType;
|
|
18
|
+
private mYDefaultMoveType;
|
|
19
|
+
constructor(divRef: Ref<unknown>, focusHub: any, onEdge: Function);
|
|
20
|
+
getDiv(): unknown;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param moveType 默认移动方式:normal(默认)、layerFirst
|
|
24
|
+
*/
|
|
25
|
+
setDefaultMoveType(xMoveType: MoveType, yMoveType: MoveType): void;
|
|
26
|
+
setFocus(node: SpatialNavigationNode): void;
|
|
27
|
+
registerNode(node: SpatialNavigationNode): void;
|
|
28
|
+
unregisterNode(node: SpatialNavigationNode): void;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param direction 移动方向
|
|
32
|
+
* @param options 移动选项
|
|
33
|
+
* @param options.xMoveType x方向移动方式:normal(默认)、layerFirst
|
|
34
|
+
* @param options.yMoveType y方向移动方式:normal(默认)、layerFirst
|
|
35
|
+
* @param options.moveType 移动方式:normal(默认)、layerFirst
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
moveTo(direction: Symbol, options?: MoveOptions): void;
|
|
39
|
+
private updateMetroWidgetFocus;
|
|
40
|
+
private findNode;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -3,7 +3,7 @@ declare class CommonMetroTemplate extends MetroTemplate {
|
|
|
3
3
|
private _FenceStack;
|
|
4
4
|
private _FenceEdge;
|
|
5
5
|
private _NotOccupiedEdgeList;
|
|
6
|
-
constructor(direction: Symbol, lineMax: number, pageSize: number, layoutType: string, supportHistoryPath: boolean);
|
|
6
|
+
constructor(direction: Symbol, lineMax: number, pageSize: number, layoutType: string, supportHistoryPath: boolean, errorLogger: Function);
|
|
7
7
|
calculateNeighborWhenAddStop(): void;
|
|
8
8
|
private _UpdateLastFenceEdge;
|
|
9
9
|
private _CheckIdsHasFocusable;
|
|
@@ -34,5 +34,6 @@ declare class CommonMetroTemplate extends MetroTemplate {
|
|
|
34
34
|
private _CheckNeighborItemMatching;
|
|
35
35
|
private _FindNearestNeighbor;
|
|
36
36
|
private _TryUpdateItemNeighbor;
|
|
37
|
+
removeItemTo(index: number): void;
|
|
37
38
|
}
|
|
38
39
|
export { CommonMetroTemplate };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MetroTemplate, TemplateItem, MeasureInfo } from "./MetroTemplate";
|
|
2
2
|
/** 单行/单列 */
|
|
3
3
|
declare class ListMetroTemplate extends MetroTemplate {
|
|
4
|
-
constructor(direction: Symbol, lineMax: number, pageSize: number, layoutType: string);
|
|
4
|
+
constructor(direction: Symbol, lineMax: number, pageSize: number, layoutType: string, supportHistoryPath: boolean, errorLogger: Function);
|
|
5
5
|
calculateNeighborWhenAddStop(): void;
|
|
6
6
|
addItemInner(itemObj: MeasureInfo): TemplateItem;
|
|
7
7
|
private _addTemplateItem;
|
|
@@ -12,5 +12,6 @@ declare class ListMetroTemplate extends MetroTemplate {
|
|
|
12
12
|
width: number;
|
|
13
13
|
height: number;
|
|
14
14
|
}): void;
|
|
15
|
+
removeItemTo(index: number): void;
|
|
15
16
|
}
|
|
16
17
|
export { ListMetroTemplate };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RectCache } from "../MetroWidget/Slide";
|
|
2
|
-
interface NeighborInfo {
|
|
2
|
+
export interface NeighborInfo {
|
|
3
3
|
left: Array<number>;
|
|
4
4
|
top: Array<number>;
|
|
5
5
|
bottom: Array<number>;
|
|
@@ -62,7 +62,8 @@ declare abstract class MetroTemplate {
|
|
|
62
62
|
readonly layoutType: string;
|
|
63
63
|
protected tailItemIndex: number;
|
|
64
64
|
private cachedLayoutRange;
|
|
65
|
-
|
|
65
|
+
protected errorLogger: Function;
|
|
66
|
+
constructor(direction: Symbol, lineMax: number, pageSize: number, layoutType: string, supportHistoryPath: boolean, errorLogger: Function);
|
|
66
67
|
get size(): number;
|
|
67
68
|
get focusableSize(): number;
|
|
68
69
|
protected addTemplateItem(item: TemplateItem): void;
|
|
@@ -85,7 +86,8 @@ declare abstract class MetroTemplate {
|
|
|
85
86
|
height: number;
|
|
86
87
|
};
|
|
87
88
|
getTailItemIndex(): number;
|
|
88
|
-
protected
|
|
89
|
-
private
|
|
89
|
+
protected getTemplateItem(itemObj: MeasureInfo): TemplateItem;
|
|
90
|
+
private checkMeasureObject;
|
|
91
|
+
abstract removeItemTo(index: number): void;
|
|
90
92
|
}
|
|
91
93
|
export { MetroTemplate, };
|
|
@@ -10,13 +10,15 @@ declare class TemplateItemAdder {
|
|
|
10
10
|
private _Key;
|
|
11
11
|
private _ID;
|
|
12
12
|
private _OnAddDone;
|
|
13
|
-
|
|
13
|
+
private _ErrorLogger;
|
|
14
|
+
constructor(template_parser: MetroTemplate, data: Array<object>, measure_func: Function, page_range: number, side_effect: Function, id: number, onAddDone: (Function | null) | undefined, errorLogger: Function | null);
|
|
14
15
|
private addDataToTemplate;
|
|
15
|
-
tryAddItem(cur_item?: TemplateItem | null, page_num?: number): boolean | undefined;
|
|
16
|
-
tryAddItemByPosition(position: number): void;
|
|
17
|
-
tryAddItemByIndex(index: number): void;
|
|
18
|
-
tryAddItemById(id: number): void;
|
|
19
|
-
tryAddItemByUid(uid: string): void;
|
|
16
|
+
tryAddItem(cur_item?: TemplateItem | null, page_num?: number, onAddDone?: Function): boolean | undefined;
|
|
17
|
+
tryAddItemByPosition(position: number, onAddDone?: Function): void;
|
|
18
|
+
tryAddItemByIndex(index: number, onAddDone?: Function): void;
|
|
19
|
+
tryAddItemById(id: number, onAddDone?: Function): void;
|
|
20
|
+
tryAddItemByUid(uid: string, onAddDone?: Function): void;
|
|
20
21
|
updateData(data: Array<object>): void;
|
|
22
|
+
removeItemTo(index: number): void;
|
|
21
23
|
}
|
|
22
|
-
export { TemplateItemAdder
|
|
24
|
+
export { TemplateItemAdder };
|
|
@@ -69,22 +69,32 @@ export declare class WholePageSlide extends SlideSetting {
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* 无缝滚动的设置类
|
|
73
73
|
*
|
|
74
74
|
* @public
|
|
75
75
|
* @constructor SeamlessSlide
|
|
76
76
|
* @extends SlideSetting
|
|
77
77
|
* @param {Object} settings 设置,结构为{
|
|
78
78
|
* startPercent: 左/上侧触发滚动的比例 0-1
|
|
79
|
-
*
|
|
79
|
+
* endPercent: 右/下侧触发滚动的比例 0-1, 从起点计数, 末尾为1.0
|
|
80
80
|
* headRange: 左/上按键触发滚动的区域比例 0-1
|
|
81
|
-
* tailRange: 右/下按键触发滚动的区域比例 0-1
|
|
81
|
+
* tailRange: 右/下按键触发滚动的区域比例 0-1, 从终点计数,末尾为0
|
|
82
|
+
* startPercent/endPercent 和 headRange/tailRange 二选一
|
|
82
83
|
* headSafeArea: 保证头部item完整显示的安全区域大小
|
|
83
84
|
* tailSafeArea: 保证尾部item完整显示的安全区域大小
|
|
84
|
-
* speed:
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
85
|
+
* speed: 像素/毫秒, 用于计算duration的辅助值, 因为MetroWidget每个行间可能距离不一样,
|
|
86
|
+
* 使用时根据speed, 按匀速反算duration
|
|
87
|
+
* duration: 动画时长(毫秒)。当 duration 为 number 时优先于 speed;
|
|
88
|
+
* 若为 null/不传则按 speed 计算时长
|
|
89
|
+
* easing(String): 滚动动画的easing,可不填(实现中默认为空字符串);
|
|
90
|
+
* 非匀速时推荐为 "cubic-bezier(X, X, X, X)"
|
|
91
|
+
* boundaryProtect: 确定滚动位置能否小于0或者大于最大长度,默认值为 START_PROTECT | END_PROTECT,即都开启
|
|
92
|
+
* START_PROTECT: 是否要让头部卡在边缘而不是滚动到 headRange 的位置
|
|
93
|
+
* END_PROTECT: 是否要让尾部卡在边缘而不是滚动到 tailRange 的位置
|
|
94
|
+
* 若不开启,则 slide 出来的项目可能不是完整的项目,而是以焦点元素的边缘对齐 range(head 或 tail)的百分比位置;
|
|
95
|
+
* 对齐策略为:往 head 滑动时,用起始边缘对准 headRange,往 tail 滑动时,用起始边缘对准 tailRange
|
|
96
|
+
* fixFirstPage: 默认为false, 代表第一屏不滚动, 当到第一屏边缘开始才按照正常的无缝滚动逻辑滚动,
|
|
97
|
+
若回到第一屏区域时则会把第一屏完整的滚动回来
|
|
88
98
|
* }
|
|
89
99
|
**/
|
|
90
100
|
export declare class SeamlessSlide extends SlideSetting {
|
|
@@ -10,6 +10,8 @@ export * from "./MetroWidget/Dispatcher";
|
|
|
10
10
|
export { default as SimpleWidget } from "./MetroWidget/MetroWidget.vue";
|
|
11
11
|
export { default as MetroWidget } from "./MetroWidget/MetroWidget.vue";
|
|
12
12
|
export { default as ListWidget } from "./MetroWidget/ListWidget.vue";
|
|
13
|
-
export { METRO_WIDGET, METRO_WIDGET_CONST } from "./MetroWidget/Const";
|
|
13
|
+
export { METRO_WIDGET, METRO_WIDGET_CONST, ONEDGE_TYPE } from "./MetroWidget/Const";
|
|
14
14
|
export { default as JsvFocusBlock } from "./JsvFocus/JsvFocusBlock.vue";
|
|
15
15
|
export { jsvCreateFocusManager, useFocusHub } from "./JsvFocus/JsvFocusManager";
|
|
16
|
+
export { default as SpatialNavProvider } from "./SpatialNavigator/SpatialNavProvider.vue";
|
|
17
|
+
export { SPATIAL_NAV_PROVIDER_NAME } from "./SpatialNavigator/SpatialNavigator";
|
|
@@ -1,18 +1,151 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
4
|
onRef: {
|
|
3
5
|
type: FunctionConstructor;
|
|
4
6
|
default: () => void;
|
|
5
7
|
};
|
|
6
|
-
}
|
|
8
|
+
}>, {
|
|
7
9
|
audioRef: null;
|
|
8
|
-
},
|
|
10
|
+
}, {}, {}, {
|
|
9
11
|
onRefProxy(audio_ref: any): void;
|
|
10
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
12
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
13
|
onRef: {
|
|
12
14
|
type: FunctionConstructor;
|
|
13
15
|
default: () => void;
|
|
14
16
|
};
|
|
15
|
-
}
|
|
17
|
+
}>> & Readonly<{}>, {
|
|
16
18
|
onRef: Function;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
+
}, {}, {
|
|
20
|
+
JsvSystemAudio: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
21
|
+
onRef: {
|
|
22
|
+
type: FunctionConstructor;
|
|
23
|
+
default: () => void;
|
|
24
|
+
};
|
|
25
|
+
autoplay: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
muted: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
loop: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
src: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
onEnded: {
|
|
42
|
+
type: FunctionConstructor;
|
|
43
|
+
default: () => {};
|
|
44
|
+
};
|
|
45
|
+
onError: {
|
|
46
|
+
type: FunctionConstructor;
|
|
47
|
+
default: () => {};
|
|
48
|
+
};
|
|
49
|
+
onLoadStart: {
|
|
50
|
+
type: FunctionConstructor;
|
|
51
|
+
default: () => {};
|
|
52
|
+
};
|
|
53
|
+
onLoadedMetaData: {
|
|
54
|
+
type: FunctionConstructor;
|
|
55
|
+
default: () => {};
|
|
56
|
+
};
|
|
57
|
+
onLoad: {
|
|
58
|
+
type: FunctionConstructor;
|
|
59
|
+
default: () => {};
|
|
60
|
+
};
|
|
61
|
+
onAudioFocusLoss: {
|
|
62
|
+
type: FunctionConstructor;
|
|
63
|
+
default: () => {};
|
|
64
|
+
};
|
|
65
|
+
onAudioFocusGain: {
|
|
66
|
+
type: FunctionConstructor;
|
|
67
|
+
default: () => {};
|
|
68
|
+
};
|
|
69
|
+
preDownload: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
}>, {
|
|
74
|
+
audio: null;
|
|
75
|
+
}, {}, {}, {
|
|
76
|
+
registerEvent(): void;
|
|
77
|
+
onVisibilityChange(status: any): void;
|
|
78
|
+
registerOnVisibilityChange(): void;
|
|
79
|
+
unregisterOnVisibilityChange(): void;
|
|
80
|
+
onJsViewHide(): void;
|
|
81
|
+
onJsViewShow(): void;
|
|
82
|
+
Jsvinit(): void;
|
|
83
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
|
+
onRef: {
|
|
85
|
+
type: FunctionConstructor;
|
|
86
|
+
default: () => void;
|
|
87
|
+
};
|
|
88
|
+
autoplay: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
muted: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
loop: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
src: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
onEnded: {
|
|
105
|
+
type: FunctionConstructor;
|
|
106
|
+
default: () => {};
|
|
107
|
+
};
|
|
108
|
+
onError: {
|
|
109
|
+
type: FunctionConstructor;
|
|
110
|
+
default: () => {};
|
|
111
|
+
};
|
|
112
|
+
onLoadStart: {
|
|
113
|
+
type: FunctionConstructor;
|
|
114
|
+
default: () => {};
|
|
115
|
+
};
|
|
116
|
+
onLoadedMetaData: {
|
|
117
|
+
type: FunctionConstructor;
|
|
118
|
+
default: () => {};
|
|
119
|
+
};
|
|
120
|
+
onLoad: {
|
|
121
|
+
type: FunctionConstructor;
|
|
122
|
+
default: () => {};
|
|
123
|
+
};
|
|
124
|
+
onAudioFocusLoss: {
|
|
125
|
+
type: FunctionConstructor;
|
|
126
|
+
default: () => {};
|
|
127
|
+
};
|
|
128
|
+
onAudioFocusGain: {
|
|
129
|
+
type: FunctionConstructor;
|
|
130
|
+
default: () => {};
|
|
131
|
+
};
|
|
132
|
+
preDownload: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
136
|
+
}>> & Readonly<{}>, {
|
|
137
|
+
src: string;
|
|
138
|
+
autoplay: boolean;
|
|
139
|
+
loop: boolean;
|
|
140
|
+
muted: boolean;
|
|
141
|
+
onLoad: Function;
|
|
142
|
+
onError: Function;
|
|
143
|
+
onEnded: Function;
|
|
144
|
+
onLoadStart: Function;
|
|
145
|
+
onAudioFocusGain: Function;
|
|
146
|
+
onAudioFocusLoss: Function;
|
|
147
|
+
onRef: Function;
|
|
148
|
+
onLoadedMetaData: Function;
|
|
149
|
+
preDownload: boolean;
|
|
150
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
151
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
4
|
/**
|
|
3
5
|
* 回调函数,播放器对象通知接口
|
|
4
6
|
* @param {Object} video对象,可以通过此video对象调用video相关属性和方法,具体属性和方法定义见JsvMedia.js文件里相关说明。
|
|
@@ -89,9 +91,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
91
|
type: BooleanConstructor;
|
|
90
92
|
default: boolean;
|
|
91
93
|
};
|
|
92
|
-
}
|
|
94
|
+
}>, {
|
|
93
95
|
audio: null;
|
|
94
|
-
},
|
|
96
|
+
}, {}, {}, {
|
|
95
97
|
registerEvent(): void;
|
|
96
98
|
onVisibilityChange(status: any): void;
|
|
97
99
|
registerOnVisibilityChange(): void;
|
|
@@ -99,7 +101,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
101
|
onJsViewHide(): void;
|
|
100
102
|
onJsViewShow(): void;
|
|
101
103
|
Jsvinit(): void;
|
|
102
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
104
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
103
105
|
/**
|
|
104
106
|
* 回调函数,播放器对象通知接口
|
|
105
107
|
* @param {Object} video对象,可以通过此video对象调用video相关属性和方法,具体属性和方法定义见JsvMedia.js文件里相关说明。
|
|
@@ -190,19 +192,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
190
192
|
type: BooleanConstructor;
|
|
191
193
|
default: boolean;
|
|
192
194
|
};
|
|
193
|
-
}
|
|
195
|
+
}>> & Readonly<{}>, {
|
|
196
|
+
src: string;
|
|
197
|
+
autoplay: boolean;
|
|
198
|
+
loop: boolean;
|
|
199
|
+
muted: boolean;
|
|
194
200
|
onLoad: Function;
|
|
195
201
|
onError: Function;
|
|
196
202
|
onEnded: Function;
|
|
197
203
|
onLoadStart: Function;
|
|
198
204
|
onAudioFocusGain: Function;
|
|
199
205
|
onAudioFocusLoss: Function;
|
|
200
|
-
src: string;
|
|
201
|
-
autoplay: boolean;
|
|
202
|
-
loop: boolean;
|
|
203
|
-
muted: boolean;
|
|
204
206
|
onRef: Function;
|
|
205
207
|
onLoadedMetaData: Function;
|
|
206
208
|
preDownload: boolean;
|
|
207
|
-
}>;
|
|
208
|
-
export default _default;
|
|
209
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
let EVENT_EXT: string;
|
|
3
|
+
let EVENT_LOAD_START: string;
|
|
4
|
+
let EVENT_LOAD: string;
|
|
5
|
+
let EVENT_ERROR: string;
|
|
6
|
+
let EVENT_PROGRESS: string;
|
|
7
|
+
let EVENT_END: string;
|
|
8
|
+
let EVENT_PAUSE: string;
|
|
9
|
+
let EVENT_PLAY: string;
|
|
10
|
+
let EVENT_AUDIO_FOCUS_GAIN: string;
|
|
11
|
+
let EVENT_AUDIO_FOCUS_LOSS: string;
|
|
12
12
|
}
|
|
13
13
|
export default _default;
|