@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
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { MetroTemplate } from "../TemplateParser/MetroTemplate";
|
|
9
9
|
|
|
10
10
|
export interface PermanentItemInfo {
|
|
11
|
-
index: number
|
|
12
|
-
alreadyShow: boolean
|
|
11
|
+
index: number;
|
|
12
|
+
alreadyShow: boolean;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export class PageUpdater {
|
|
@@ -17,13 +17,20 @@ export class PageUpdater {
|
|
|
17
17
|
private rangeSet: Set<number>;
|
|
18
18
|
private updateFunc: (renderSet: Set<number>) => void;
|
|
19
19
|
private count: number = 1;
|
|
20
|
+
private applyedRange: { start: number; end: number } = { start: 0, end: 0 };
|
|
20
21
|
|
|
21
22
|
constructor(updateFunc: (renderSet: Set<number>) => void) {
|
|
22
23
|
this.tmpRangeSet = new Set<number>();
|
|
23
|
-
this.rangeSet = new Set<number>()
|
|
24
|
+
this.rangeSet = new Set<number>();
|
|
24
25
|
this.updateFunc = updateFunc;
|
|
25
26
|
}
|
|
26
27
|
|
|
28
|
+
cleanCache() {
|
|
29
|
+
this.tmpRangeSet.clear();
|
|
30
|
+
this.rangeSet.clear();
|
|
31
|
+
this.applyedRange = { start: 0, end: 0 };
|
|
32
|
+
}
|
|
33
|
+
|
|
27
34
|
update(
|
|
28
35
|
template: MetroTemplate,
|
|
29
36
|
start: number,
|
|
@@ -31,14 +38,17 @@ export class PageUpdater {
|
|
|
31
38
|
anchorId: number,
|
|
32
39
|
mergeTmp: boolean,
|
|
33
40
|
permanentList: Array<PermanentItemInfo> | null,
|
|
34
|
-
|
|
35
|
-
): { apply: Function
|
|
41
|
+
fullDisplayMode: boolean = false
|
|
42
|
+
): { apply: Function; applyTmp: Function; recover: Function } {
|
|
36
43
|
this.count++;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
|
|
45
|
+
const [visibleStart, visibleEnd] = fullDisplayMode
|
|
46
|
+
? [0, template.templateList.length - 1]
|
|
47
|
+
: template.getVisibleItemList(
|
|
48
|
+
start,
|
|
49
|
+
end,
|
|
50
|
+
anchorId
|
|
51
|
+
);
|
|
42
52
|
const preTmpRangeSet = this.tmpRangeSet;
|
|
43
53
|
const preRangeSet = this.rangeSet;
|
|
44
54
|
|
|
@@ -51,23 +61,25 @@ export class PageUpdater {
|
|
|
51
61
|
}
|
|
52
62
|
|
|
53
63
|
if (permanentList) {
|
|
54
|
-
const permanentShowList = permanentList.filter(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
item.alreadyShow
|
|
58
|
-
|
|
64
|
+
const permanentShowList = permanentList.filter(
|
|
65
|
+
(item: PermanentItemInfo) => {
|
|
66
|
+
let result = false;
|
|
67
|
+
if (item.alreadyShow || item.index <= visibleEnd) {
|
|
68
|
+
item.alreadyShow = true;
|
|
69
|
+
result = true;
|
|
70
|
+
}
|
|
71
|
+
return result;
|
|
59
72
|
}
|
|
60
|
-
|
|
61
|
-
});
|
|
73
|
+
);
|
|
62
74
|
for (let pItem of permanentShowList) {
|
|
63
75
|
this.rangeSet.add(pItem.index);
|
|
64
76
|
}
|
|
65
77
|
}
|
|
66
|
-
|
|
78
|
+
|
|
67
79
|
if (preRangeSet.size > 0) {
|
|
68
80
|
this.tmpRangeSet = new Set([...this.rangeSet, ...preRangeSet]);
|
|
69
81
|
}
|
|
70
|
-
|
|
82
|
+
|
|
71
83
|
if (mergeTmp) {
|
|
72
84
|
this.tmpRangeSet = new Set([...this.tmpRangeSet, ...preTmpRangeSet]);
|
|
73
85
|
}
|
|
@@ -75,6 +87,7 @@ export class PageUpdater {
|
|
|
75
87
|
return {
|
|
76
88
|
apply: () => {
|
|
77
89
|
if (c == this.count) {
|
|
90
|
+
this.applyedRange = { start: start, end: end };
|
|
78
91
|
this.apply();
|
|
79
92
|
} else {
|
|
80
93
|
// console.log("apply expired data")
|
|
@@ -82,7 +95,8 @@ export class PageUpdater {
|
|
|
82
95
|
},
|
|
83
96
|
applyTmp: () => {
|
|
84
97
|
if (c == this.count) {
|
|
85
|
-
this.
|
|
98
|
+
this.applyedRange = { start: start, end: end };
|
|
99
|
+
this.applyTmp();
|
|
86
100
|
} else {
|
|
87
101
|
// console.log("apply tmp expired data")
|
|
88
102
|
}
|
|
@@ -90,8 +104,12 @@ export class PageUpdater {
|
|
|
90
104
|
recover: () => {
|
|
91
105
|
this.rangeSet = preRangeSet;
|
|
92
106
|
this.tmpRangeSet = preTmpRangeSet;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
public getApplyedRange(): { start: number; end: number } {
|
|
112
|
+
return this.applyedRange;
|
|
95
113
|
}
|
|
96
114
|
|
|
97
115
|
private apply(): void {
|
|
@@ -111,4 +129,4 @@ export class PageUpdater {
|
|
|
111
129
|
public getTmpRange(): Set<number> {
|
|
112
130
|
return this.tmpRangeSet;
|
|
113
131
|
}
|
|
114
|
-
}
|
|
132
|
+
}
|
|
@@ -1,33 +1,42 @@
|
|
|
1
|
-
import { ref, computed } from "vue";
|
|
1
|
+
import { ref, computed, toRaw, reactive } from "vue";
|
|
2
2
|
import type { Ref } from "vue";
|
|
3
|
-
import { TemplateItem } from "../TemplateParser/MetroTemplate"
|
|
3
|
+
import { TemplateItem } from "../TemplateParser/MetroTemplate";
|
|
4
4
|
import { ForgeConst } from "../../JsViewVueTools/ForgeConstDefine";
|
|
5
|
+
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define.mjs";
|
|
6
|
+
import { SpatialNavigationNode } from "../SpatialNavigator/SpatialNavigationNode";
|
|
5
7
|
|
|
6
8
|
interface RenderItemStyle {
|
|
7
|
-
zIndex: number
|
|
8
|
-
left: number
|
|
9
|
-
top: number
|
|
10
|
-
width: number
|
|
11
|
-
height: number
|
|
12
|
-
}
|
|
9
|
+
zIndex: number;
|
|
10
|
+
left: number;
|
|
11
|
+
top: number;
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
}
|
|
13
15
|
|
|
14
16
|
interface ItemConfig {
|
|
15
|
-
focusZIndex: number
|
|
16
|
-
normalZIndex: number
|
|
17
|
-
itemSlide: number
|
|
18
|
-
permanent: boolean
|
|
19
|
-
showSkeleton: boolean
|
|
17
|
+
focusZIndex: number;
|
|
18
|
+
normalZIndex: number;
|
|
19
|
+
itemSlide: number;
|
|
20
|
+
permanent: boolean;
|
|
21
|
+
showSkeleton: boolean;
|
|
22
|
+
enableLongPress: boolean;
|
|
23
|
+
bindSpatialNav: boolean;
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
interface CustomerCallbackMap {
|
|
23
|
-
onFocus?: (rect: object) => void
|
|
24
|
-
onBlur?: () => void
|
|
25
|
-
onClick?: () => void
|
|
26
|
-
onLongPress?: () => void
|
|
27
|
-
onTap?: () => void
|
|
28
|
-
onWidgetEdge?: (rect: object) => void
|
|
29
|
-
onGaze?: (rect: object) => void
|
|
30
|
-
onIgnore?: () => void
|
|
27
|
+
onFocus?: (rect: object) => void;
|
|
28
|
+
onBlur?: () => void;
|
|
29
|
+
onClick?: () => void;
|
|
30
|
+
onLongPress?: () => void;
|
|
31
|
+
onTap?: () => void;
|
|
32
|
+
onWidgetEdge?: (rect: object) => void;
|
|
33
|
+
onGaze?: (rect: object) => void;
|
|
34
|
+
onIgnore?: () => void;
|
|
35
|
+
//获取item内组件item的可视状态
|
|
36
|
+
onGetItemVisibleState?: (
|
|
37
|
+
leftTop: { x: number; y: number },
|
|
38
|
+
rightBottom: { x: number; y: number }
|
|
39
|
+
) => any;
|
|
31
40
|
}
|
|
32
41
|
|
|
33
42
|
export class RenderItem {
|
|
@@ -38,16 +47,25 @@ export class RenderItem {
|
|
|
38
47
|
public renderStyle: RenderItemStyle;
|
|
39
48
|
public itemConfig: ItemConfig;
|
|
40
49
|
|
|
41
|
-
|
|
50
|
+
//NOTE 使用reactive而不是ref是为了可以通过toRaw再访问以避免被watchEffect监听
|
|
51
|
+
public mounted = reactive({ value: false });
|
|
42
52
|
public touchInit: boolean = false;
|
|
43
|
-
public rootDiv: HTMLDivElement |
|
|
53
|
+
public rootDiv: HTMLDivElement | undefined = undefined;
|
|
44
54
|
public enableTap: boolean = false;
|
|
45
55
|
public renderKey: Ref<number> = ref(0);
|
|
56
|
+
public placeHolderLayout = null;
|
|
57
|
+
public rootNativeViewId: number = -1;
|
|
58
|
+
private nativeLayoutView: any = null;
|
|
46
59
|
|
|
47
60
|
private customerCallbackMap: CustomerCallbackMap = {};
|
|
48
61
|
private onRef: (() => void) | null;
|
|
62
|
+
private metroWidgetInfos: any;
|
|
63
|
+
private isFocus: boolean = false;
|
|
49
64
|
public readonly registerObj: object;
|
|
50
65
|
public readonly query: object;
|
|
66
|
+
public enableFboAccelrate: boolean = false;
|
|
67
|
+
public renderBreak: boolean;
|
|
68
|
+
private spatialNavNode: SpatialNavigationNode | undefined = undefined;
|
|
51
69
|
|
|
52
70
|
constructor(
|
|
53
71
|
templateInfo: TemplateItem,
|
|
@@ -55,7 +73,11 @@ export class RenderItem {
|
|
|
55
73
|
renderStyle: RenderItemStyle,
|
|
56
74
|
itemConfig: ItemConfig,
|
|
57
75
|
onRef: () => void,
|
|
58
|
-
query: object
|
|
76
|
+
query: object,
|
|
77
|
+
metroWidgetInfos: any,
|
|
78
|
+
enableFboAccelrate: boolean,
|
|
79
|
+
widgetRenderBreak: boolean
|
|
80
|
+
) {
|
|
59
81
|
this.templateInfo = templateInfo;
|
|
60
82
|
this.customerData = customerData;
|
|
61
83
|
this.renderStyle = renderStyle;
|
|
@@ -65,6 +87,9 @@ export class RenderItem {
|
|
|
65
87
|
const unregister = this.unregister.bind(this);
|
|
66
88
|
this.registerObj = { register, unregister };
|
|
67
89
|
this.query = query;
|
|
90
|
+
this.metroWidgetInfos = metroWidgetInfos;
|
|
91
|
+
this.enableFboAccelrate = enableFboAccelrate;
|
|
92
|
+
this.renderBreak = widgetRenderBreak;
|
|
68
93
|
}
|
|
69
94
|
|
|
70
95
|
get id() {
|
|
@@ -75,6 +100,43 @@ export class RenderItem {
|
|
|
75
100
|
return this.templateInfo.index;
|
|
76
101
|
}
|
|
77
102
|
|
|
103
|
+
public getSpatialNavNode() {
|
|
104
|
+
if (!this.itemConfig.bindSpatialNav) {
|
|
105
|
+
return undefined;
|
|
106
|
+
}
|
|
107
|
+
if (!this.spatialNavNode) {
|
|
108
|
+
this.spatialNavNode = new SpatialNavigationNode(
|
|
109
|
+
(token: number,target: unknown) => {
|
|
110
|
+
if (!this.rootDiv) {
|
|
111
|
+
return undefined;
|
|
112
|
+
}
|
|
113
|
+
const rect = this.metroWidgetInfos.getItemPositionWithCache(token, target, this.templateInfo.index);
|
|
114
|
+
return {
|
|
115
|
+
left: rect.left,
|
|
116
|
+
top: rect.top,
|
|
117
|
+
right: rect.left + rect.width,
|
|
118
|
+
bottom: rect.top + rect.height,
|
|
119
|
+
centerX: rect.left + rect.width / 2,
|
|
120
|
+
centerY: rect.top + rect.height / 2,
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
() => {
|
|
124
|
+
return {
|
|
125
|
+
mwChain: this.metroWidgetInfos.getMwChain(),
|
|
126
|
+
itemIndex: this.templateInfo.index,
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
() => {
|
|
130
|
+
|
|
131
|
+
},
|
|
132
|
+
() => {
|
|
133
|
+
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
return this.spatialNavNode;
|
|
138
|
+
}
|
|
139
|
+
|
|
78
140
|
public updateCustomData(newCustomData: object, newItemConfig: ItemConfig) {
|
|
79
141
|
this.customerData = newCustomData;
|
|
80
142
|
this.itemConfig = newItemConfig;
|
|
@@ -84,14 +146,14 @@ export class RenderItem {
|
|
|
84
146
|
}
|
|
85
147
|
|
|
86
148
|
//TODO item的div ref 会调用多次, 待调查
|
|
87
|
-
public divRef = (ele: HTMLDivElement |
|
|
149
|
+
public divRef = (ele: HTMLDivElement | undefined) => {
|
|
88
150
|
this.rootDiv = ele;
|
|
89
151
|
if (ele) {
|
|
90
152
|
this.onDivMounted();
|
|
91
153
|
} else {
|
|
92
154
|
this.onDivUnmounted();
|
|
93
155
|
}
|
|
94
|
-
}
|
|
156
|
+
};
|
|
95
157
|
|
|
96
158
|
public slotRef = (ele: object | null) => {
|
|
97
159
|
if (!this.mounted.value && ele) {
|
|
@@ -100,7 +162,7 @@ export class RenderItem {
|
|
|
100
162
|
} else if (!ele && this.mounted.value) {
|
|
101
163
|
this.mounted.value = false;
|
|
102
164
|
}
|
|
103
|
-
}
|
|
165
|
+
};
|
|
104
166
|
|
|
105
167
|
public register(name: string, callback: Function) {
|
|
106
168
|
(this.customerCallbackMap as any)[name] = callback;
|
|
@@ -110,9 +172,24 @@ export class RenderItem {
|
|
|
110
172
|
delete (this.customerCallbackMap as any)[name];
|
|
111
173
|
}
|
|
112
174
|
|
|
175
|
+
public onGetItemVisibleState(
|
|
176
|
+
leftTop: { x: number; y: number },
|
|
177
|
+
rightBottom: { x: number; y: number }
|
|
178
|
+
): any {
|
|
179
|
+
return this.customerCallbackMap.onGetItemVisibleState?.(
|
|
180
|
+
leftTop,
|
|
181
|
+
rightBottom
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
113
185
|
public onFocus(rect: object): boolean {
|
|
114
|
-
|
|
186
|
+
//NOTE 为了避免访问响应式对象被watchEffect捕获引起不必要的触发,访问时统一用toRaw
|
|
187
|
+
if (toRaw(this.mounted).value) {
|
|
188
|
+
if (this.rootNativeViewId != -1) {
|
|
189
|
+
this.nativeLayoutView.SetIsFocus(true);
|
|
190
|
+
}
|
|
115
191
|
this.customerCallbackMap.onFocus?.(rect);
|
|
192
|
+
this.isFocus = true;
|
|
116
193
|
return true;
|
|
117
194
|
} else {
|
|
118
195
|
return false;
|
|
@@ -120,8 +197,12 @@ export class RenderItem {
|
|
|
120
197
|
}
|
|
121
198
|
|
|
122
199
|
public onBlur(): boolean {
|
|
123
|
-
if (this.mounted.value) {
|
|
200
|
+
if (toRaw(this.mounted).value && this.isFocus) {
|
|
201
|
+
if (this.rootNativeViewId != -1) {
|
|
202
|
+
this.nativeLayoutView.SetIsFocus(false);
|
|
203
|
+
}
|
|
124
204
|
this.customerCallbackMap.onBlur?.();
|
|
205
|
+
this.isFocus = false;
|
|
125
206
|
return true;
|
|
126
207
|
} else {
|
|
127
208
|
return false;
|
|
@@ -129,7 +210,7 @@ export class RenderItem {
|
|
|
129
210
|
}
|
|
130
211
|
|
|
131
212
|
public onGaze(rect: object): boolean {
|
|
132
|
-
if (this.mounted.value) {
|
|
213
|
+
if (toRaw(this.mounted).value) {
|
|
133
214
|
this.customerCallbackMap.onGaze?.(rect);
|
|
134
215
|
return true;
|
|
135
216
|
} else {
|
|
@@ -138,7 +219,7 @@ export class RenderItem {
|
|
|
138
219
|
}
|
|
139
220
|
|
|
140
221
|
public onIgnore(): boolean {
|
|
141
|
-
if (this.mounted.value) {
|
|
222
|
+
if (toRaw(this.mounted).value) {
|
|
142
223
|
this.customerCallbackMap.onIgnore?.();
|
|
143
224
|
return true;
|
|
144
225
|
} else {
|
|
@@ -147,11 +228,16 @@ export class RenderItem {
|
|
|
147
228
|
}
|
|
148
229
|
|
|
149
230
|
public readonly onTap = computed(() => {
|
|
150
|
-
return this.enableTap ? this.
|
|
151
|
-
})
|
|
231
|
+
return this.enableTap ? this.innerOnTap.bind(this) : null;
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
private innerOnTap(): boolean {
|
|
235
|
+
this.metroWidgetInfos?.onTap?.(this);
|
|
236
|
+
return this.onClick();
|
|
237
|
+
}
|
|
152
238
|
|
|
153
239
|
public onClick(): boolean {
|
|
154
|
-
if (this.mounted.value) {
|
|
240
|
+
if (toRaw(this.mounted).value) {
|
|
155
241
|
this.customerCallbackMap.onClick?.();
|
|
156
242
|
return true;
|
|
157
243
|
} else {
|
|
@@ -160,7 +246,7 @@ export class RenderItem {
|
|
|
160
246
|
}
|
|
161
247
|
|
|
162
248
|
public onLongPress(): boolean {
|
|
163
|
-
if (this.mounted.value) {
|
|
249
|
+
if (toRaw(this.mounted).value) {
|
|
164
250
|
this.customerCallbackMap.onLongPress?.();
|
|
165
251
|
return true;
|
|
166
252
|
} else {
|
|
@@ -169,7 +255,7 @@ export class RenderItem {
|
|
|
169
255
|
}
|
|
170
256
|
|
|
171
257
|
public onWidgetEdge(rect: object): boolean {
|
|
172
|
-
if (this.mounted.value) {
|
|
258
|
+
if (toRaw(this.mounted).value) {
|
|
173
259
|
this.customerCallbackMap.onWidgetEdge?.(rect);
|
|
174
260
|
return true;
|
|
175
261
|
} else {
|
|
@@ -181,6 +267,23 @@ export class RenderItem {
|
|
|
181
267
|
this.divMountedCallback.add(cbk);
|
|
182
268
|
return () => {
|
|
183
269
|
this.divMountedCallback.delete(cbk);
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
public onInRenderRange() {
|
|
274
|
+
if (this.enableFboAccelrate && this.rootNativeViewId == -1) {
|
|
275
|
+
this.nativeLayoutView = new Forge.MetroWidgetItemRootView();
|
|
276
|
+
this.rootNativeViewId = Forge.sViewStore.add(
|
|
277
|
+
new Forge.ViewInfo(this.nativeLayoutView, null)
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
public onOutOfRenderRange() {
|
|
283
|
+
if (this.rootNativeViewId != -1) {
|
|
284
|
+
Forge.sViewStore.remove(this.rootNativeViewId);
|
|
285
|
+
this.rootNativeViewId = -1;
|
|
286
|
+
this.nativeLayoutView = null;
|
|
184
287
|
}
|
|
185
288
|
}
|
|
186
289
|
|
|
@@ -190,7 +293,7 @@ export class RenderItem {
|
|
|
190
293
|
if (this.rootDiv) {
|
|
191
294
|
cbk(this.rootDiv);
|
|
192
295
|
}
|
|
193
|
-
})
|
|
296
|
+
});
|
|
194
297
|
}
|
|
195
298
|
this.divMountedCallback.clear();
|
|
196
299
|
if (this.enableTap && this.rootDiv) {
|
|
@@ -203,5 +306,10 @@ export class RenderItem {
|
|
|
203
306
|
this.touchInit = false;
|
|
204
307
|
this.divMountedCallback.clear();
|
|
205
308
|
this.customerCallbackMap = {};
|
|
309
|
+
if (this.rootNativeViewId != -1) {
|
|
310
|
+
Forge.sViewStore.remove(this.rootNativeViewId);
|
|
311
|
+
this.rootNativeViewId = -1;
|
|
312
|
+
this.nativeLayoutView = null;
|
|
313
|
+
}
|
|
206
314
|
}
|
|
207
|
-
}
|
|
315
|
+
}
|
|
@@ -4,8 +4,8 @@ interface AnimSetting {
|
|
|
4
4
|
easing?: string | null;
|
|
5
5
|
onStart?: () => void;
|
|
6
6
|
onEnd?: (done: boolean) => void;
|
|
7
|
-
duration?: number
|
|
8
|
-
speed?: number
|
|
7
|
+
duration?: number;
|
|
8
|
+
speed?: number;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export class SlideAnimWrapper {
|
|
@@ -19,7 +19,8 @@ export class SlideAnimWrapper {
|
|
|
19
19
|
element: any,
|
|
20
20
|
from: [number, number],
|
|
21
21
|
to: [number, number],
|
|
22
|
-
setting: AnimSetting
|
|
22
|
+
setting: AnimSetting
|
|
23
|
+
) {
|
|
23
24
|
this.frameCount = frameCount;
|
|
24
25
|
this.animSetting = setting;
|
|
25
26
|
this.element = element;
|
|
@@ -28,7 +29,10 @@ export class SlideAnimWrapper {
|
|
|
28
29
|
if (typeof setting.duration == "number") {
|
|
29
30
|
duration = setting.duration;
|
|
30
31
|
} else if (typeof setting.speed == "number") {
|
|
31
|
-
duration = Math.round(
|
|
32
|
+
duration = Math.round(
|
|
33
|
+
Math.max(Math.abs(to[0] - from[0]), Math.abs(to[1] - from[1])) /
|
|
34
|
+
setting.speed
|
|
35
|
+
);
|
|
32
36
|
}
|
|
33
37
|
this.forgeAnim = new Forge.TranslateAnimation(
|
|
34
38
|
from[0],
|
|
@@ -36,10 +40,14 @@ export class SlideAnimWrapper {
|
|
|
36
40
|
from[1],
|
|
37
41
|
to[1],
|
|
38
42
|
duration,
|
|
39
|
-
setting.easing
|
|
43
|
+
Forge.Easing.str2Easing(setting.easing)
|
|
40
44
|
);
|
|
41
45
|
this.forgeAnim.SetAnimationListener(
|
|
42
|
-
new Forge.AnimationListener(
|
|
46
|
+
new Forge.AnimationListener(
|
|
47
|
+
this.onStart.bind(this),
|
|
48
|
+
this.onEnd.bind(this),
|
|
49
|
+
null
|
|
50
|
+
)
|
|
43
51
|
);
|
|
44
52
|
}
|
|
45
53
|
|
|
@@ -72,7 +80,12 @@ export class AnimationManager {
|
|
|
72
80
|
private animList: Array<SlideAnimWrapper> = [];
|
|
73
81
|
private frameCount: number = 0;
|
|
74
82
|
|
|
75
|
-
public startSlideAnim(
|
|
83
|
+
public startSlideAnim(
|
|
84
|
+
element: any,
|
|
85
|
+
from: [number, number],
|
|
86
|
+
to: [number, number],
|
|
87
|
+
setting: AnimSetting
|
|
88
|
+
) {
|
|
76
89
|
let curFrameCount = Forge.sFrameCount.count;
|
|
77
90
|
if (curFrameCount != this.frameCount) {
|
|
78
91
|
this.tryCleanOldAnim();
|
|
@@ -86,7 +99,7 @@ export class AnimationManager {
|
|
|
86
99
|
obj.removeListener();
|
|
87
100
|
}
|
|
88
101
|
obj.stop();
|
|
89
|
-
}
|
|
102
|
+
};
|
|
90
103
|
}
|
|
91
104
|
|
|
92
105
|
private tryCleanOldAnim() {
|
|
@@ -124,7 +137,6 @@ class CancellableRunner {
|
|
|
124
137
|
}
|
|
125
138
|
}
|
|
126
139
|
|
|
127
|
-
|
|
128
140
|
export enum TaskType {
|
|
129
141
|
RESIZE_ITEM = 1,
|
|
130
142
|
SLIDE,
|
|
@@ -136,21 +148,22 @@ export enum SlideTaskType {
|
|
|
136
148
|
SLIDE_BY_ITEM,
|
|
137
149
|
SLIDE_BY_DIV,
|
|
138
150
|
SLIDE_BY_RECT,
|
|
151
|
+
SLIDE_BY_POS_NORMALIZE,
|
|
139
152
|
}
|
|
140
153
|
|
|
141
154
|
type SubType = SlideTaskType | null;
|
|
142
155
|
|
|
143
156
|
interface Task {
|
|
144
|
-
frameCount: number
|
|
145
|
-
type: TaskType
|
|
146
|
-
subType: SubType
|
|
147
|
-
params: any
|
|
157
|
+
frameCount: number;
|
|
158
|
+
type: TaskType;
|
|
159
|
+
subType: SubType;
|
|
160
|
+
params: any;
|
|
148
161
|
}
|
|
149
162
|
|
|
150
163
|
export interface AllTaskList {
|
|
151
|
-
slide: Array<Task
|
|
152
|
-
focus: Array<Task
|
|
153
|
-
resize: Array<Task
|
|
164
|
+
slide: Array<Task>;
|
|
165
|
+
focus: Array<Task>;
|
|
166
|
+
resize: Array<Task>;
|
|
154
167
|
}
|
|
155
168
|
export type AddTaskCallback = (taskList: AllTaskList) => void;
|
|
156
169
|
export class TaskManager {
|
|
@@ -162,9 +175,9 @@ export class TaskManager {
|
|
|
162
175
|
slide: [],
|
|
163
176
|
focus: [],
|
|
164
177
|
resize: [],
|
|
165
|
-
}
|
|
178
|
+
};
|
|
166
179
|
|
|
167
|
-
constructor(private onAddTask: AddTaskCallback) {
|
|
180
|
+
constructor(private onAddTask: AddTaskCallback) {}
|
|
168
181
|
|
|
169
182
|
private cleanTaskCache(): void {
|
|
170
183
|
this.allTaskList.slide = [];
|
|
@@ -179,7 +192,7 @@ export class TaskManager {
|
|
|
179
192
|
this.frameCount = Forge.sFrameCount.count;
|
|
180
193
|
}
|
|
181
194
|
//取消同帧的旧runner
|
|
182
|
-
this.cancellableRunnerList.forEach(t => {
|
|
195
|
+
this.cancellableRunnerList.forEach((t) => {
|
|
183
196
|
t.cancel();
|
|
184
197
|
});
|
|
185
198
|
|
|
@@ -188,19 +201,19 @@ export class TaskManager {
|
|
|
188
201
|
subType: subtype,
|
|
189
202
|
params,
|
|
190
203
|
frameCount: Forge.sFrameCount.count,
|
|
191
|
-
}
|
|
204
|
+
};
|
|
192
205
|
switch (type) {
|
|
193
206
|
case TaskType.SLIDE:
|
|
194
|
-
this.allTaskList.slide.push(tObj)
|
|
207
|
+
this.allTaskList.slide.push(tObj);
|
|
195
208
|
break;
|
|
196
209
|
case TaskType.ON_FOCUS_CHANGE:
|
|
197
|
-
this.allTaskList.focus.push(tObj)
|
|
210
|
+
this.allTaskList.focus.push(tObj);
|
|
198
211
|
break;
|
|
199
212
|
case TaskType.RESIZE_ITEM:
|
|
200
|
-
this.allTaskList.resize.push(tObj)
|
|
213
|
+
this.allTaskList.resize.push(tObj);
|
|
201
214
|
break;
|
|
202
215
|
default:
|
|
203
|
-
console.error("undefined type")
|
|
216
|
+
console.error("undefined type");
|
|
204
217
|
break;
|
|
205
218
|
}
|
|
206
219
|
this.onAddTask(this.allTaskList);
|
|
@@ -214,9 +227,9 @@ export class TaskManager {
|
|
|
214
227
|
|
|
215
228
|
public cancelAllTask() {
|
|
216
229
|
this.cleanTaskCache();
|
|
217
|
-
this.cancellableRunnerList.forEach(t => {
|
|
230
|
+
this.cancellableRunnerList.forEach((t) => {
|
|
218
231
|
t.cancel();
|
|
219
232
|
});
|
|
220
233
|
this.cancellableRunnerList = [];
|
|
221
234
|
}
|
|
222
|
-
}
|
|
235
|
+
}
|
|
@@ -15,7 +15,7 @@ export class WidgetRectInfo {
|
|
|
15
15
|
bottom: 0
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
constructor(w: number, h: number, padding: any) {
|
|
18
|
+
constructor(w: number, h: number, padding: any, errorLogger: Function) {
|
|
19
19
|
this.mWidth = w;
|
|
20
20
|
this.mHeight = h;
|
|
21
21
|
this.mPadding.left = padding?.left ?? 0;
|
|
@@ -23,6 +23,7 @@ export class WidgetRectInfo {
|
|
|
23
23
|
this.mPadding.right = padding?.right ?? 0;
|
|
24
24
|
this.mPadding.bottom = padding?.bottom ?? 0;
|
|
25
25
|
if (this.contentWidth <= 0 || this.contentHeight <= 0) {
|
|
26
|
+
errorLogger("padding size is large than widget size.");
|
|
26
27
|
throw new Error("padding size is large than widget size.");
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -78,7 +78,7 @@ class RectUtils {
|
|
|
78
78
|
formatted_target_size = size_object;
|
|
79
79
|
} else if (typeof size_object === "object" && size_object !== null) {
|
|
80
80
|
if (isNaN(size_object.width) || isNaN(size_object.height)) {
|
|
81
|
-
throw Error(
|
|
81
|
+
throw new Error(
|
|
82
82
|
"ERROR: target_size format should be {width:XXXX, height:XXXX}"
|
|
83
83
|
);
|
|
84
84
|
}
|