@shijiu/jsview-vue 2.3.0 → 2.3.728-alpha.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.vue.mjs +4 -1
- package/bin/browser/BrowserJsvLatex.vue.mjs +9 -90
- package/bin/jsview-vue.mjs +13913 -8048
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +39 -3
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +225 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +225 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +5 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +25 -2
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +7 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +28 -4
- 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 +70 -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 +5 -4
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +12 -4
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +9 -7
- package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +27 -14
- package/bin/types/utils/JsViewEngineWidget/index.d.ts +3 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +3 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +29 -2
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +107 -4
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +94 -18
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +24 -23
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +77 -20
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +77 -20
- package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
- package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/ForgeHandles.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
- package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +44 -1
- 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 +5 -3
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +88 -25
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +4 -0
- 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 +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +12 -22
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +12 -22
- package/bin/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +11 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +101 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +61 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +58 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +2 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +2 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +55 -12
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +178 -35
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +119 -17
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +9 -3
- package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
- package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +22 -1
- package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +1 -1
- package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +5 -2
- package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +1 -1
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +39 -1
- package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +26 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +112 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +142 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +15 -3
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +22 -96
- package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +6 -0
- package/bin/types/utils/JsViewVueWidget/{JsvPosterDiv.vue.d.ts → TypesDiv/JsvPosterDiv.vue.d.ts} +9 -0
- package/bin/types/utils/JsViewVueWidget/{JsvPosterImage.vue.d.ts → TypesDiv/JsvPosterImage.vue.d.ts} +15 -3
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +90 -0
- package/bin/types/utils/JsViewVueWidget/index.d.ts +8 -4
- package/dist/types/utils/JsViewEngineWidget/CheckType.d.ts +7 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +106 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +128 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +25 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +23 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +12 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +9 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +16 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +412 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +751 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +9 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +82 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +31 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +80 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Slide.d.ts +25 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +52 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +69 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +6 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +20 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +21 -0
- package/dist/types/utils/JsViewEngineWidget/RangeModel.d.ts +166 -0
- package/dist/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +74 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +28 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +23 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +46 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +42 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/Fence.d.ts +62 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +21 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +103 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +28 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/index.d.ts +8 -0
- package/dist/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +160 -0
- package/dist/types/utils/JsViewEngineWidget/index.d.ts +21 -0
- package/dist/types/utils/JsViewPlugin/JsvAccount/JsvAccount.d.ts +46 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +22 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +212 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/CheckType.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +17 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +22 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +12 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +9 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/index.d.ts +7 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
- package/{bin/types/utils/JsViewPlugin/JsvLatex → dist/types/utils/JsViewPlugin/JsvAudio}/version.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +17 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +18 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +46 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +8 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +9 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/index.d.ts +8 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/version.d.mts +40 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +523 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +119 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +664 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-0.9.vue.d.ts +45 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue.d.ts +597 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +415 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +415 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
- package/dist/types/utils/JsViewPlugin/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueTools/BlobApi.d.ts +42 -0
- package/dist/types/utils/JsViewVueTools/ConstSymbol.d.ts +6 -0
- package/dist/types/utils/JsViewVueTools/DebugContentShellJBridge.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/DebugTool.d.ts +12 -0
- package/dist/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +14 -0
- package/dist/types/utils/JsViewVueTools/FeatureActive.d.ts +15 -0
- package/dist/types/utils/JsViewVueTools/ForgeConstDefine.d.ts +15 -0
- package/dist/types/utils/JsViewVueTools/ForgeHandles.d.ts +11 -0
- package/dist/types/utils/JsViewVueTools/JsvDynamicCssStyle.d.ts +33 -0
- package/dist/types/utils/JsViewVueTools/JsvDynamicKeyFrames.d.ts +40 -0
- package/dist/types/utils/JsViewVueTools/JsvFederationTools.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvHashHistory.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvImpactTracer.d.ts +44 -0
- package/dist/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/JsvPerformance.d.ts +9 -0
- package/dist/types/utils/JsViewVueTools/JsvPreDownloader.d.ts +55 -0
- package/dist/types/utils/JsViewVueTools/JsvRefTaker.d.ts +52 -0
- package/dist/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +378 -0
- package/dist/types/utils/JsViewVueTools/JsvStyleClass.d.ts +35 -0
- package/dist/types/utils/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +35 -0
- package/dist/types/utils/JsViewVueTools/JsvTextTools.d.ts +66 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureDefines.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +47 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +99 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +58 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +113 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +17 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +170 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +16 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +31 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +53 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueTools/NinePatchHelper.d.ts +25 -0
- package/dist/types/utils/JsViewVueTools/TextureManagerTools.d.ts +11 -0
- package/dist/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +7 -0
- package/dist/types/utils/JsViewVueTools/index.d.ts +29 -0
- package/dist/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +124 -0
- package/dist/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +148 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +35 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +102 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +37 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +77 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +54 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +44 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +17 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +26 -0
- package/dist/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +74 -0
- package/dist/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +34 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +33 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +105 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +65 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +62 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +108 -0
- package/dist/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +61 -0
- package/dist/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +91 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +106 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +100 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +108 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +63 -0
- package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.d.ts +4 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +228 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorState.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +106 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +107 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +11 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +12 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +118 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +244 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +169 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +22 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +24 -0
- package/dist/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +241 -0
- package/dist/types/utils/JsViewVueWidget/JsvHole.d.ts +19 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +52 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +98 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +32 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +33 -0
- package/dist/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +101 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/Constant.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/DataTree.d.ts +75 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +72 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +235 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +44 -0
- package/dist/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +93 -0
- package/dist/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +55 -0
- package/dist/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +68 -0
- package/dist/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +31 -0
- package/dist/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +85 -0
- package/dist/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +37 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +129 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +28 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +278 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +157 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +76 -0
- package/dist/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +114 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +58 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +18 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +70 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +85 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +15 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +21 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/index.d.ts +9 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +141 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +248 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +181 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +121 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +121 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +38 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
- package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +88 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +94 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +115 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +94 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +115 -0
- package/dist/types/utils/JsViewVueWidget/index.d.ts +53 -0
- package/dist/types/utils/index.d.ts +8 -0
- package/dist/utils/browser/BrowserAudio.vue.mjs +258 -0
- package/dist/utils/browser/BrowserJsvLatex.vue.mjs +64 -0
- package/dist/utils/export-sfc.mjs +12 -0
- package/dist/utils/index.mjs +29000 -0
- package/dist/utils/jsview-vue-common.mjs +39 -0
- package/package.json +1 -1
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +32 -16
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +51 -3
- package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +193 -89
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +347 -145
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.ts +15 -0
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +1603 -588
- package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +146 -38
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +39 -26
- 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 +62 -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 +434 -264
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +54 -5
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +109 -41
- package/utils/JsViewEngineWidget/WidgetCommon.ts +29 -7
- package/utils/JsViewEngineWidget/index.ts +7 -2
- package/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue +4 -0
- package/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue +13 -13
- package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
- package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
- package/utils/JsViewPlugin/JsvLatex/Color.ts +104 -39
- package/utils/JsViewPlugin/JsvLatex/GetVersion.js +65 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +71 -17
- package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +14 -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} +61 -11
- 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 +5 -1
- package/utils/JsViewVueTools/ForgeHandles.ts +8 -2
- package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +125 -8
- package/utils/JsViewVueTools/JsvTextTools.ts +12 -2
- 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 +30 -12
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +157 -51
- package/utils/JsViewVueTools/JsvTextureStore/Store.ts +33 -21
- package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +56 -41
- 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/JsvDashPath.vue +150 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.ts +212 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.ts +146 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.ts +748 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/index.ts +1 -0
- package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +10 -1
- package/utils/JsViewVueWidget/JsvEnableRenderBreak.vue +6 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +11 -5
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue +3 -1
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +24 -8
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +269 -26
- package/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts +2 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.ts +24 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.ts +3 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +5 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.ts +10 -2
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +223 -100
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +245 -64
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +95 -29
- package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +27 -5
- 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 +22 -12
- package/utils/JsViewVueWidget/JsvPieChart.vue +93 -70
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +34 -31
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +56 -25
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +11 -11
- package/utils/JsViewVueWidget/JsvSector.vue +66 -28
- package/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue +108 -0
- package/utils/JsViewVueWidget/JsvSoundPool.js +75 -12
- package/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue +543 -0
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +3 -3
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue +644 -0
- package/utils/JsViewVueWidget/JsvSwiper/index.js +3 -1
- package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +315 -299
- 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 +9 -3
- package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
- package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
- /package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +0 -0
- /package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue.d.ts → JsvFreeMoveActor.vue.d.ts} +0 -0
- /package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* 【模块 export 内容】
|
|
5
|
+
* JsvSmoothSwiper:Vue高阶组件,平滑滚动轮播组件
|
|
6
|
+
* props说明:
|
|
7
|
+
* totalFrame {int} (必需)item 的个数
|
|
8
|
+
* firstFrame {int} 初始 item 的 index,默认为0
|
|
9
|
+
* layoutInfo {Object} (必需)组件的大小及位置 {top: 0, left: 0, width: 0, height: 0}
|
|
10
|
+
* onClick {Function} 点击事件 function () {}
|
|
11
|
+
* onChange {Function} 滚动事件 function (index) {}
|
|
12
|
+
* onEdge {Function} 到达边缘事件 ({direction: EdgeDirection}) => Void
|
|
13
|
+
* autoplayInterval {int} 自动滚动的时间(毫秒),等于0时不自动滚动, 默认为5000
|
|
14
|
+
* enableAutoplay {boolean} 是否启用自动滚动,默认为false
|
|
15
|
+
* animation {Object} 滚动动画设置 {duration: 0, easing: "linear"}
|
|
16
|
+
* vertical {boolean} 组件是否为纵向的,默认为 false
|
|
17
|
+
* name {String} 组件获得焦点的 name
|
|
18
|
+
* onFocus {Function} 获得焦点的回调
|
|
19
|
+
* onBlur {Function} 失去焦点的回调
|
|
20
|
+
* reverseSwipe {boolean} 反转滚动方向,默认值为false. 默认滚动方向是正向, 既向index增大的方向, 反转后为反向, 既向index减小的方向
|
|
21
|
+
* itemSize {Object} item的大小 {width: 0, height: 0}
|
|
22
|
+
* itemGap {int} item之间的间隔,默认为0
|
|
23
|
+
* padding {Object} 内边距 {left: 0, top: 0, right: 0, bottom: 0}
|
|
24
|
+
-->
|
|
25
|
+
|
|
26
|
+
<template>
|
|
27
|
+
<jsv-focus-block
|
|
28
|
+
:name="name"
|
|
29
|
+
:onAction="{ onFocus, onBlur, onKeyDown, onKeyUp }"
|
|
30
|
+
>
|
|
31
|
+
<div
|
|
32
|
+
:style="{
|
|
33
|
+
width: props.layoutInfo.width,
|
|
34
|
+
height: props.layoutInfo.height,
|
|
35
|
+
overflow: 'hidden',
|
|
36
|
+
}"
|
|
37
|
+
>
|
|
38
|
+
<div
|
|
39
|
+
:style="{
|
|
40
|
+
left: innerPadding.left,
|
|
41
|
+
top: innerPadding.top,
|
|
42
|
+
}"
|
|
43
|
+
>
|
|
44
|
+
<JsvSmoothSlideContainer
|
|
45
|
+
ref="root"
|
|
46
|
+
:initPosition="[xInitPosition, yInitPosition]"
|
|
47
|
+
>
|
|
48
|
+
<div
|
|
49
|
+
v-for="item in childDivList"
|
|
50
|
+
:key="item.id"
|
|
51
|
+
:style="{
|
|
52
|
+
left: item.left,
|
|
53
|
+
top: item.top,
|
|
54
|
+
width: item.width,
|
|
55
|
+
height: item.height,
|
|
56
|
+
}"
|
|
57
|
+
>
|
|
58
|
+
<slot
|
|
59
|
+
name="itemView"
|
|
60
|
+
:currentIndex="currentDataIndex"
|
|
61
|
+
:dataIndex="item.dataIndex"
|
|
62
|
+
:focused="focused"
|
|
63
|
+
></slot>
|
|
64
|
+
</div>
|
|
65
|
+
</JsvSmoothSlideContainer>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</jsv-focus-block>
|
|
69
|
+
</template>
|
|
70
|
+
|
|
71
|
+
<script setup>
|
|
72
|
+
import { shallowRef, onMounted, computed, ref } from "vue";
|
|
73
|
+
import ActorControl from "../JsvFreeMoveActor/ActorControl.ts";
|
|
74
|
+
import { EdgeDirection } from "../../JsViewEngineWidget";
|
|
75
|
+
import JsvSmoothSlideContainer from "../JsvSmoothSlideContainer.vue";
|
|
76
|
+
|
|
77
|
+
// 定义props
|
|
78
|
+
const props = defineProps({
|
|
79
|
+
totalFrame: {
|
|
80
|
+
type: Number,
|
|
81
|
+
required: true,
|
|
82
|
+
},
|
|
83
|
+
firstFrame: {
|
|
84
|
+
type: Number,
|
|
85
|
+
default: 0,
|
|
86
|
+
},
|
|
87
|
+
layoutInfo: {
|
|
88
|
+
type: Object,
|
|
89
|
+
required: true,
|
|
90
|
+
},
|
|
91
|
+
onClick: {
|
|
92
|
+
type: Function,
|
|
93
|
+
},
|
|
94
|
+
onChange: {
|
|
95
|
+
type: Function,
|
|
96
|
+
},
|
|
97
|
+
onEdge: {
|
|
98
|
+
type: Function,
|
|
99
|
+
},
|
|
100
|
+
autoplayInterval: {
|
|
101
|
+
type: Number,
|
|
102
|
+
default: 5000,
|
|
103
|
+
},
|
|
104
|
+
enableAutoplay: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: false,
|
|
107
|
+
},
|
|
108
|
+
animation: {
|
|
109
|
+
type: Object,
|
|
110
|
+
default() {
|
|
111
|
+
return {
|
|
112
|
+
duration: 200,
|
|
113
|
+
easing: "linear",
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
vertical: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default: false,
|
|
120
|
+
},
|
|
121
|
+
name: {
|
|
122
|
+
type: String,
|
|
123
|
+
},
|
|
124
|
+
onFocus: {
|
|
125
|
+
type: Function,
|
|
126
|
+
},
|
|
127
|
+
onBlur: {
|
|
128
|
+
type: Function,
|
|
129
|
+
},
|
|
130
|
+
reverseSwipe: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: false,
|
|
133
|
+
},
|
|
134
|
+
itemSize: {
|
|
135
|
+
type: Object,
|
|
136
|
+
},
|
|
137
|
+
itemGap: {
|
|
138
|
+
type: Number,
|
|
139
|
+
default: 0,
|
|
140
|
+
},
|
|
141
|
+
padding: {
|
|
142
|
+
type: Object,
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
const root = shallowRef();
|
|
146
|
+
// const actorControl = new ActorControl();
|
|
147
|
+
const childDivList = ref([]);
|
|
148
|
+
window.test = childDivList;
|
|
149
|
+
const focused = shallowRef(false);
|
|
150
|
+
const currentIndex = shallowRef(props.firstFrame);
|
|
151
|
+
const targetIndex = shallowRef(props.firstFrame);
|
|
152
|
+
const currentDataIndex = computed(() => {
|
|
153
|
+
return modToRange(currentIndex.value, props.totalFrame);
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
const keyCode2EdgeDirection = (keyCode) => {
|
|
157
|
+
switch (keyCode) {
|
|
158
|
+
case 37:
|
|
159
|
+
return EdgeDirection.left;
|
|
160
|
+
case 38:
|
|
161
|
+
return EdgeDirection.top;
|
|
162
|
+
case 39:
|
|
163
|
+
return EdgeDirection.right;
|
|
164
|
+
case 40:
|
|
165
|
+
return EdgeDirection.bottom;
|
|
166
|
+
default:
|
|
167
|
+
console.error("not direction key", keyCode);
|
|
168
|
+
return null;
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
function modToRange(value, mod, start = 0) {
|
|
173
|
+
let m = value % mod;
|
|
174
|
+
if (m < start) {
|
|
175
|
+
m += mod;
|
|
176
|
+
} else if (m >= start + mod) {
|
|
177
|
+
m -= mod;
|
|
178
|
+
}
|
|
179
|
+
return m;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
const innerPadding = computed(() => {
|
|
183
|
+
return Object.assign(
|
|
184
|
+
{
|
|
185
|
+
left: 0,
|
|
186
|
+
top: 0,
|
|
187
|
+
right: 0,
|
|
188
|
+
bottom: 0,
|
|
189
|
+
},
|
|
190
|
+
props.padding
|
|
191
|
+
);
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
const innerItemSize = computed(() => {
|
|
195
|
+
return (
|
|
196
|
+
props.itemSize || {
|
|
197
|
+
width: props.layoutInfo.width,
|
|
198
|
+
height: props.layoutInfo.height,
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
const centerOffset = computed(() => {
|
|
204
|
+
return props.vertical
|
|
205
|
+
? (props.layoutInfo.height -
|
|
206
|
+
(innerPadding.value.top + innerPadding.value.bottom) -
|
|
207
|
+
innerItemSize.value.height) /
|
|
208
|
+
2
|
|
209
|
+
: (props.layoutInfo.width -
|
|
210
|
+
(innerPadding.value.left + innerPadding.value.right) -
|
|
211
|
+
innerItemSize.value.width) /
|
|
212
|
+
2;
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
const itemStart = (index) => {
|
|
216
|
+
return props.vertical
|
|
217
|
+
? index * props.itemSize.height + index * props.itemGap
|
|
218
|
+
: index * props.itemSize.width + index * props.itemGap;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
const visibleCount = computed(() => {
|
|
222
|
+
if (props.vertical) {
|
|
223
|
+
return (
|
|
224
|
+
Math.ceil(
|
|
225
|
+
(props.layoutInfo.height - innerItemSize.value.height) /
|
|
226
|
+
2 /
|
|
227
|
+
(innerItemSize.value.height + props.itemGap)
|
|
228
|
+
) *
|
|
229
|
+
2 +
|
|
230
|
+
1
|
|
231
|
+
);
|
|
232
|
+
} else {
|
|
233
|
+
return (
|
|
234
|
+
Math.ceil(
|
|
235
|
+
(props.layoutInfo.width - innerItemSize.value.width) /
|
|
236
|
+
2 /
|
|
237
|
+
(innerItemSize.value.width + props.itemGap)
|
|
238
|
+
) *
|
|
239
|
+
2 +
|
|
240
|
+
1
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
const viewNum = computed(() => {
|
|
246
|
+
return visibleCount.value + 2;
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
const viewNumOneSide = computed(() => {
|
|
250
|
+
return Math.floor(viewNum.value / 2);
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
let xInitPosition = 0;
|
|
254
|
+
let yInitPosition = 0;
|
|
255
|
+
if (props.vertical) {
|
|
256
|
+
yInitPosition = -itemStart(currentIndex.value) + centerOffset.value;
|
|
257
|
+
} else {
|
|
258
|
+
xInitPosition = -itemStart(currentIndex.value) + centerOffset.value;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
const initDivList = () => {
|
|
262
|
+
prepareDiv(currentIndex.value, -1);
|
|
263
|
+
prepareDiv(currentIndex.value, 1);
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
const addDiv = (divInfo) => {
|
|
267
|
+
for (let i of childDivList.value) {
|
|
268
|
+
if (i.id === divInfo.id) {
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
childDivList.value.push(divInfo);
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
const cleanInvisibleDiv = () => {
|
|
276
|
+
childDivList.value = childDivList.value.filter(
|
|
277
|
+
(item) =>
|
|
278
|
+
item.id >= currentIndex.value - viewNumOneSide.value &&
|
|
279
|
+
item.id <= currentIndex.value + viewNumOneSide.value
|
|
280
|
+
);
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
const prepareDiv = (index, toward = 1) => {
|
|
284
|
+
const start = Math.min(index, index + toward * viewNumOneSide.value);
|
|
285
|
+
const end = Math.max(index, index + toward * viewNumOneSide.value);
|
|
286
|
+
for (let i = start; i <= end; ++i) {
|
|
287
|
+
const divInfo = {
|
|
288
|
+
id: i,
|
|
289
|
+
left: itemStart(i),
|
|
290
|
+
top: 0,
|
|
291
|
+
width: props.itemSize.width,
|
|
292
|
+
height: props.itemSize.height,
|
|
293
|
+
dataIndex: modToRange(i, props.totalFrame),
|
|
294
|
+
};
|
|
295
|
+
addDiv(divInfo);
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
let intervalId = null;
|
|
300
|
+
const startAutoplay = () => {
|
|
301
|
+
// 设置定时器
|
|
302
|
+
intervalId = setInterval(() => {
|
|
303
|
+
const toward = props.reverseSwipe ? -1 : 1;
|
|
304
|
+
moveTo(curTargetIndex + toward, lowSpeed.value);
|
|
305
|
+
}, props.autoplayInterval);
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
const stopAutoplay = () => {
|
|
309
|
+
clearInterval(intervalId);
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
const onFocus = () => {
|
|
313
|
+
focused.value = true;
|
|
314
|
+
stopAutoplay();
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
const onBlur = () => {
|
|
318
|
+
focused.value = false;
|
|
319
|
+
if (props.enableAutoplay && props.autoplayInterval > 0) {
|
|
320
|
+
startAutoplay();
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
const getSlidePosByIndex = (index) => {
|
|
325
|
+
return -itemStart(index) + centerOffset.value;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
let preTargetIndex = props.firstFrame;
|
|
329
|
+
let curTargetIndex = props.firstFrame;
|
|
330
|
+
let curMoveDirection = 0;
|
|
331
|
+
let moveSpeed = 0;
|
|
332
|
+
let moveDirection = 0;
|
|
333
|
+
const moveTo = (index, speed) => {
|
|
334
|
+
if (index == curTargetIndex && speed == moveSpeed) {
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
moveSpeed = speed;
|
|
338
|
+
if (index != curTargetIndex) {
|
|
339
|
+
preTargetIndex = curTargetIndex;
|
|
340
|
+
curTargetIndex = index;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
moveDirection = Math.sign(curTargetIndex - preTargetIndex);
|
|
344
|
+
|
|
345
|
+
let targetX = 0;
|
|
346
|
+
let targetY = 0;
|
|
347
|
+
let halfTargetX = 0;
|
|
348
|
+
let halfTargetY = 0;
|
|
349
|
+
if (props.vertical) {
|
|
350
|
+
targetY = getSlidePosByIndex(curTargetIndex);
|
|
351
|
+
let preTargetY = getSlidePosByIndex(preTargetIndex);
|
|
352
|
+
halfTargetY = (targetY + preTargetY) / 2;
|
|
353
|
+
} else {
|
|
354
|
+
targetX = getSlidePosByIndex(curTargetIndex);
|
|
355
|
+
let preTargetX = getSlidePosByIndex(preTargetIndex);
|
|
356
|
+
halfTargetX = (targetX + preTargetX) / 2;
|
|
357
|
+
}
|
|
358
|
+
prepareDiv(index, moveDirection);
|
|
359
|
+
|
|
360
|
+
root.value.moveTo(
|
|
361
|
+
speed,
|
|
362
|
+
targetX,
|
|
363
|
+
targetY,
|
|
364
|
+
onReach(index, curMoveDirection),
|
|
365
|
+
halfTargetX,
|
|
366
|
+
halfTargetY,
|
|
367
|
+
onBeforeReach(index, curMoveDirection)
|
|
368
|
+
);
|
|
369
|
+
moveInfo.moving = true;
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
const brakeTo = (index) => {
|
|
373
|
+
let targetX = undefined;
|
|
374
|
+
let targetY = undefined;
|
|
375
|
+
if (props.vertical) {
|
|
376
|
+
targetY = getSlidePosByIndex(index);
|
|
377
|
+
} else {
|
|
378
|
+
targetX = getSlidePosByIndex(index);
|
|
379
|
+
}
|
|
380
|
+
root.value.brakeTo(targetX, targetY);
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
const onReach = (index, toward) => {
|
|
384
|
+
return () => {
|
|
385
|
+
moveInfo.reachedIndex = index;
|
|
386
|
+
if (keyInfo.keyRepeat) {
|
|
387
|
+
//继续移动
|
|
388
|
+
moveTo(
|
|
389
|
+
curTargetIndex + Math.sign(curTargetIndex - preTargetIndex),
|
|
390
|
+
moveSpeed
|
|
391
|
+
);
|
|
392
|
+
} else {
|
|
393
|
+
//移动结束
|
|
394
|
+
moveInfo.moving = false;
|
|
395
|
+
moveSpeed = 0;
|
|
396
|
+
cleanInvisibleDiv();
|
|
397
|
+
if (curTargetIndex === index) {
|
|
398
|
+
//刹车
|
|
399
|
+
root.value?.stop();
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
const onBeforeReach = (index, toward) => {
|
|
406
|
+
return () => {
|
|
407
|
+
currentIndex.value = index;
|
|
408
|
+
props.onChange?.(currentDataIndex.value);
|
|
409
|
+
if (!keyInfo.keyRepeat) {
|
|
410
|
+
//不再继续移动
|
|
411
|
+
if (curTargetIndex === index) {
|
|
412
|
+
//刹车
|
|
413
|
+
brakeTo(index);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
let moveInfo = {
|
|
420
|
+
reachedIndex: props.firstFrame,
|
|
421
|
+
preReached: false,
|
|
422
|
+
toward: 0,
|
|
423
|
+
moving: false,
|
|
424
|
+
moveSpeed: 0,
|
|
425
|
+
targetIndex: 0,
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
const lowSpeed = computed(() => {
|
|
429
|
+
return (
|
|
430
|
+
(props.verticals ? props.itemSize.height : props.itemSize.width) /
|
|
431
|
+
((60 * props.animation.duration) / 1000)
|
|
432
|
+
);
|
|
433
|
+
});
|
|
434
|
+
const highSpeed = computed(() => {
|
|
435
|
+
return 2 * lowSpeed.value;
|
|
436
|
+
});
|
|
437
|
+
|
|
438
|
+
const keyInfo = {
|
|
439
|
+
keyCode: 0,
|
|
440
|
+
keyRepeat: false,
|
|
441
|
+
};
|
|
442
|
+
const onKeyDown = (ev) => {
|
|
443
|
+
if (ev.keyCode ==13) {
|
|
444
|
+
if (!moveInfo.moving) {
|
|
445
|
+
props.onClick?.(currentDataIndex.value);
|
|
446
|
+
}
|
|
447
|
+
return true;
|
|
448
|
+
}
|
|
449
|
+
if (
|
|
450
|
+
ev.keyCode != 37 &&
|
|
451
|
+
ev.keyCode != 38 &&
|
|
452
|
+
ev.keyCode != 39 &&
|
|
453
|
+
ev.keyCode != 40
|
|
454
|
+
) {
|
|
455
|
+
return false;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
let toward = 0;
|
|
459
|
+
if (props.vertical) {
|
|
460
|
+
toward = ev.keyCode == 38 ? -1 : ev.keyCode == 40 ? 1 : 0;
|
|
461
|
+
} else {
|
|
462
|
+
toward = ev.keyCode == 37 ? -1 : ev.keyCode == 39 ? 1 : 0;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
if (toward == 0) {
|
|
466
|
+
props.onEdge?.({
|
|
467
|
+
direction: keyCode2EdgeDirection(ev.keyCode),
|
|
468
|
+
rect: {
|
|
469
|
+
x: props.layoutInfo.left,
|
|
470
|
+
y: props.layoutInfo.top,
|
|
471
|
+
width: props.layoutInfo.width,
|
|
472
|
+
height: props.layoutInfo.height,
|
|
473
|
+
},
|
|
474
|
+
});
|
|
475
|
+
return true;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
//会有同时摁住两个键的情况, 所以要记录keyCode, 以便在keyUp的时候比对
|
|
479
|
+
keyInfo.keyCode = ev.keyCode;
|
|
480
|
+
keyInfo.keyRepeat = ev.repeat;
|
|
481
|
+
|
|
482
|
+
if (moveInfo.moving) {
|
|
483
|
+
if (ev.repeat) {
|
|
484
|
+
if (moveSpeed != highSpeed.value) {
|
|
485
|
+
moveSpeed = highSpeed.value;
|
|
486
|
+
root.value?.setSpeed(
|
|
487
|
+
props.vertical ? undefined : -toward * highSpeed.value,
|
|
488
|
+
props.vertical ? -toward * highSpeed.value : undefined
|
|
489
|
+
);
|
|
490
|
+
}
|
|
491
|
+
return true;
|
|
492
|
+
}
|
|
493
|
+
// 如果正在移动到目标, 则继续移动
|
|
494
|
+
if (toward == moveDirection) {
|
|
495
|
+
// 同向加速
|
|
496
|
+
if (currentIndex.value == curTargetIndex) {
|
|
497
|
+
moveTo(curTargetIndex + toward, highSpeed.value);
|
|
498
|
+
}
|
|
499
|
+
} else {
|
|
500
|
+
// 反向
|
|
501
|
+
moveTo(curTargetIndex + toward, lowSpeed.value);
|
|
502
|
+
}
|
|
503
|
+
} else {
|
|
504
|
+
moveTo(curTargetIndex + toward, lowSpeed.value);
|
|
505
|
+
}
|
|
506
|
+
return true;
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
const onKeyUp = (ev) => {
|
|
510
|
+
let targetKey = false;
|
|
511
|
+
switch (ev.keyCode) {
|
|
512
|
+
case 37:
|
|
513
|
+
targetKey = true;
|
|
514
|
+
break;
|
|
515
|
+
case 39:
|
|
516
|
+
targetKey = true;
|
|
517
|
+
break;
|
|
518
|
+
case 38:
|
|
519
|
+
targetKey = true;
|
|
520
|
+
break;
|
|
521
|
+
case 40:
|
|
522
|
+
targetKey = true;
|
|
523
|
+
break;
|
|
524
|
+
default:
|
|
525
|
+
break;
|
|
526
|
+
}
|
|
527
|
+
if (targetKey) {
|
|
528
|
+
if (keyInfo.keyCode != ev.keyCode) {
|
|
529
|
+
return true;
|
|
530
|
+
}
|
|
531
|
+
keyInfo.keyRepeat = false;
|
|
532
|
+
if (moveInfo.moving) {
|
|
533
|
+
brakeTo(curTargetIndex);
|
|
534
|
+
}
|
|
535
|
+
return true;
|
|
536
|
+
}
|
|
537
|
+
return false;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
onMounted(() => {
|
|
541
|
+
initDivList();
|
|
542
|
+
});
|
|
543
|
+
</script>
|
|
@@ -397,7 +397,7 @@ export default {
|
|
|
397
397
|
},
|
|
398
398
|
_startAnimation(direction, smooth = false) {
|
|
399
399
|
let duration = this.animation.duration;
|
|
400
|
-
|
|
400
|
+
let easing = this.animation.easing ? this.animation.easing : "linear";
|
|
401
401
|
|
|
402
402
|
let curViewAnimation;
|
|
403
403
|
let preViewAnimation;
|
|
@@ -438,7 +438,7 @@ export default {
|
|
|
438
438
|
this.vertical ? direction * this.layoutInfo.height : 0,
|
|
439
439
|
0,
|
|
440
440
|
duration,
|
|
441
|
-
|
|
441
|
+
Forge.Easing.str2Easing(easing)
|
|
442
442
|
);
|
|
443
443
|
preViewAnimation = new Forge.TranslateAnimation(
|
|
444
444
|
this.vertical ? 0 : direction * this.layoutInfo.width,
|
|
@@ -446,7 +446,7 @@ export default {
|
|
|
446
446
|
this.vertical ? direction * this.layoutInfo.height : 0,
|
|
447
447
|
0,
|
|
448
448
|
duration,
|
|
449
|
-
|
|
449
|
+
Forge.Easing.str2Easing(easing)
|
|
450
450
|
);
|
|
451
451
|
}
|
|
452
452
|
break;
|