@shijiu/jsview-vue 2.3.151-test.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/BrowserJsvLatex.vue.mjs +9 -90
- package/bin/jsview-vue.mjs +5964 -1833
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +18 -2
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/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 +25 -5
- 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 +3 -3
- 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 +17 -7
- 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/JsvInteractionMode.d.ts +6 -0
- package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +10 -3
- package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +43 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +54 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +13 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +76 -26
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +49 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/index.d.ts +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/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 +1 -0
- 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/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 +6 -3
- 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 +24 -2
- package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +193 -89
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +325 -155
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.ts +15 -0
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +1035 -370
- package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +138 -41
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -0
- package/utils/JsViewEngineWidget/MetroWidget/Utils.ts +6 -0
- package/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.ts +2 -1
- package/utils/JsViewEngineWidget/RectUtils.js +1 -1
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue +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 +329 -230
- 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 +17 -7
- package/utils/JsViewEngineWidget/index.ts +7 -2
- package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
- package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
- package/utils/JsViewPlugin/JsvLatex/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} +60 -10
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue +511 -0
- package/utils/JsViewPlugin/JsvPlayer/index-0.9.js +52 -10
- package/utils/JsViewPlugin/JsvPlayer/index.js +58 -9
- package/utils/JsViewPlugin/JsvPlayer/package.json +8 -0
- package/utils/JsViewVueTools/BlobApi.ts +55 -0
- package/utils/JsViewVueTools/FeatureActive.ts +3 -0
- package/utils/JsViewVueTools/ForgeHandles.ts +3 -0
- package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +40 -19
- package/utils/JsViewVueTools/JsvTextTools.ts +9 -1
- package/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.ts +180 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.ts +1 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.ts +304 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -0
- package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +16 -1
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +154 -69
- package/utils/JsViewVueTools/JsvTextureStore/Store.ts +1 -1
- package/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.ts +92 -0
- package/utils/JsViewVueTools/JsvTextureStore/index.js +2 -0
- package/utils/JsViewVueTools/index.js +3 -1
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +111 -86
- package/utils/JsViewVueWidget/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/JsvScreenFlex.vue +3 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +23 -11
- 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 +29 -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 +32 -29
- 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/JsvTextBox.vue +30 -1
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +315 -305
- 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 +7 -2
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.d.ts +0 -7
- package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
- package/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.ts +0 -36
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
- package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
- /package/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
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* props说明:
|
|
7
7
|
* centerPosition {Object} 圆心坐标,属性:{x,y}
|
|
8
8
|
* radius {Number} 半径
|
|
9
|
+
* subRadius {Number} 内半径,默认0
|
|
10
|
+
* radiusScale {Number} 缩放比例, 默认为0.5, 目的是兼容老版本传的radius为实际情况的2倍问题
|
|
9
11
|
* animationTime {Number} 动画变化时间,单位 /秒
|
|
10
12
|
* data {Array} 数组对象,包含百分比和颜色。例如:[{color:'#FFFFFF',percent:20}]
|
|
11
13
|
* 说明:传入的数组要为响应式,且保证所有项的percent都是大于0并且相加等于100
|
|
@@ -15,7 +17,8 @@
|
|
|
15
17
|
<div :key="'pie-' + finalData.length">
|
|
16
18
|
<div v-for="(item, index) in finalData.slice().reverse()">
|
|
17
19
|
<JsvSector
|
|
18
|
-
:radius="props.radius"
|
|
20
|
+
:radius="Math.floor(props.radius * props.radiusScale)"
|
|
21
|
+
:subRadius="Math.floor(props.subRadius * props.radiusScale)"
|
|
19
22
|
:config="{
|
|
20
23
|
startAngle: Number(item.startAngle),
|
|
21
24
|
sweepAngle:
|
|
@@ -34,93 +37,113 @@
|
|
|
34
37
|
</template>
|
|
35
38
|
|
|
36
39
|
<script setup>
|
|
37
|
-
import {
|
|
40
|
+
import { ref, watch } from "vue";
|
|
38
41
|
import JsvSector from "./JsvSector.vue";
|
|
39
42
|
const props = defineProps({
|
|
40
43
|
centerPosition: { type: Object, required: true },
|
|
41
44
|
data: { type: Array, required: true },
|
|
42
45
|
radius: { type: Number, required: true },
|
|
43
|
-
|
|
46
|
+
subRadius: { type: Number, default: 0 },
|
|
47
|
+
radiusScale: { type: Number, default: 0.5 },
|
|
48
|
+
animationTime: { type: Number, default: 0 },
|
|
44
49
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
54
|
-
//验证数据
|
|
55
|
-
const CheckData = (data) => {
|
|
56
|
-
let totalPercent = 0;
|
|
50
|
+
// 保存上一次的 percent,用于计算 extraTime
|
|
51
|
+
const previousPercent = ref([]);
|
|
52
|
+
const finalData = ref([]);
|
|
53
|
+
|
|
54
|
+
// 验证数据
|
|
55
|
+
const checkData = (data) => {
|
|
56
|
+
let isValid = true;
|
|
57
|
+
|
|
57
58
|
data.forEach((item) => {
|
|
58
|
-
if (!
|
|
59
|
+
if (!Object.prototype.hasOwnProperty.call(item, "percent")) {
|
|
59
60
|
console.error("每一项必须包含percent属性");
|
|
61
|
+
isValid = false;
|
|
62
|
+
return;
|
|
60
63
|
}
|
|
61
64
|
if (item.percent < 0 || item.percent > 100) {
|
|
62
65
|
console.error("每一项percent必须大于0或者小于等于100!");
|
|
66
|
+
isValid = false;
|
|
63
67
|
}
|
|
64
|
-
totalPercent += item.percent;
|
|
65
68
|
});
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
return true;
|
|
69
|
+
|
|
70
|
+
return isValid;
|
|
70
71
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
72
|
+
|
|
73
|
+
// 当总和不为100时,从最后一项开始补齐/回收,不足时依次向前分摊
|
|
74
|
+
const normalizeDataPercent = (data) => {
|
|
75
|
+
const normalizedData = data.map((item) => ({
|
|
76
|
+
...item,
|
|
77
|
+
percent: Number(item.percent),
|
|
78
|
+
}));
|
|
79
|
+
|
|
80
|
+
const totalPercent = normalizedData.reduce((sum, item) => sum + item.percent, 0);
|
|
81
|
+
let delta = Number((100 - totalPercent).toFixed(6));
|
|
82
|
+
|
|
83
|
+
if (delta === 0) return normalizedData;
|
|
84
|
+
|
|
85
|
+
for (let i = normalizedData.length - 1; i >= 0 && delta !== 0; i--) {
|
|
86
|
+
const currentPercent = normalizedData[i].percent;
|
|
87
|
+
|
|
88
|
+
if (delta > 0) {
|
|
89
|
+
const canAdd = 100 - currentPercent;
|
|
90
|
+
if (canAdd <= 0) continue;
|
|
91
|
+
|
|
92
|
+
const addValue = Math.min(canAdd, delta);
|
|
93
|
+
normalizedData[i].percent = Number((currentPercent + addValue).toFixed(6));
|
|
94
|
+
delta = Number((delta - addValue).toFixed(6));
|
|
93
95
|
} else {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
color: item.color,
|
|
101
|
-
index: index,
|
|
102
|
-
extraTime: extraTimeArray[index],
|
|
103
|
-
});
|
|
96
|
+
const canReduce = currentPercent;
|
|
97
|
+
if (canReduce <= 0) continue;
|
|
98
|
+
|
|
99
|
+
const reduceValue = Math.min(canReduce, Math.abs(delta));
|
|
100
|
+
normalizedData[i].percent = Number((currentPercent - reduceValue).toFixed(6));
|
|
101
|
+
delta = Number((delta + reduceValue).toFixed(6));
|
|
104
102
|
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (delta !== 0) {
|
|
106
|
+
console.warn(
|
|
107
|
+
`[JsvPieChart] percent总和无法精确修正到100,剩余偏差: ${delta.toFixed(6)}`
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return normalizedData;
|
|
108
112
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
113
|
+
|
|
114
|
+
const buildFinalData = (data, prevPercentList) => {
|
|
115
|
+
let currentStartAngle = 0;
|
|
116
|
+
|
|
117
|
+
return data.map((item, index) => {
|
|
118
|
+
const sweepAngle = Number(((item.percent / 100) * 360).toFixed(2));
|
|
119
|
+
const prevPercent = prevPercentList[index] ?? item.percent;
|
|
120
|
+
const extraTime =
|
|
121
|
+
item.percent > prevPercent ? -0.1 : item.percent < prevPercent ? 0.1 : 0;
|
|
122
|
+
|
|
123
|
+
const sector = {
|
|
124
|
+
startAngle: currentStartAngle.toFixed(2),
|
|
125
|
+
sweepAngle: sweepAngle.toFixed(2),
|
|
126
|
+
color: item.color,
|
|
127
|
+
index,
|
|
128
|
+
extraTime,
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
currentStartAngle += sweepAngle;
|
|
132
|
+
return sector;
|
|
121
133
|
});
|
|
122
|
-
|
|
123
|
-
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
watch(
|
|
137
|
+
() => props.data,
|
|
138
|
+
(data) => {
|
|
139
|
+
if (!checkData(data)) return;
|
|
140
|
+
|
|
141
|
+
const normalizedData = normalizeDataPercent(data);
|
|
142
|
+
finalData.value = buildFinalData(normalizedData, previousPercent.value);
|
|
143
|
+
previousPercent.value = normalizedData.map((item) => item.percent);
|
|
144
|
+
},
|
|
145
|
+
{ deep: true, immediate: true }
|
|
146
|
+
);
|
|
124
147
|
</script>
|
|
125
148
|
|
|
126
149
|
<style lang="scss" scoped></style>
|
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
* @file
|
|
3
3
|
*
|
|
4
4
|
* 【模块 export 内容】
|
|
5
|
-
* JsvPreload
|
|
6
|
-
* preloadList {ObjectArray}:
|
|
5
|
+
* JsvPreload(同时又名: JsvPicKeepAlive):图片预加载的控件,同时也会将加载的内容保持在内存中!
|
|
6
|
+
* preloadList/loadList {ObjectArray}: (属性二选一)加载的信息列表,单个内容通过buildLoadInfo构建
|
|
7
7
|
* 列表中的图片会被进行下载,解码并将解码结果存储在内存中,内存占用的周期同JsvPreload组件声明周期
|
|
8
8
|
* downloadList {ObjectArray}: 预下载的信息列表,单个内容通过buildDownloadInfo构建
|
|
9
9
|
* 列表的内容可以是图片,音频等任何网络资源,下载后缓存在本地,归入本地缓存管理(LRU清理策略)
|
|
10
10
|
* onPreloading {Function(float percent)}: 预加载中回调,返回预加载进度
|
|
11
|
-
* onPreloadDone {Function(
|
|
12
|
-
* onDownloadDone {Function(
|
|
13
|
-
* 其中pathesArray为存储位置的路径列表, extra为额外信息(目前只有下载图片时的尺寸)
|
|
11
|
+
* onPreloadDone {Function(info: {[url]: {width: number, height: number}}})}: 预加载完成回调
|
|
12
|
+
* onDownloadDone {Function(info: {[url]: {path: string, width: number, height: number}})}: 预下载完成回调
|
|
14
13
|
*
|
|
15
14
|
* 注意事项:
|
|
16
15
|
* 指定加载时的尺寸(0为不指定),与img标签中的 jsv_img_scaledown_tex 属性一起使用
|
|
@@ -19,7 +18,7 @@
|
|
|
19
18
|
* 对应着各自不同的图片内存缓存
|
|
20
19
|
*
|
|
21
20
|
* 静态函数:
|
|
22
|
-
* buildPreloadInfo: 静态函数,创建预加载信息项,用于制作JsvPreload的preloadList属性列表信息
|
|
21
|
+
* buildLoadInfo/buildPreloadInfo: 静态函数,创建预加载信息项,用于制作JsvPreload的preloadList属性列表信息
|
|
23
22
|
* 参数:
|
|
24
23
|
* url {string}: (必填)图片url
|
|
25
24
|
* width {int}: 图片内存存储区域宽度,默认为0(同图片源文件宽度)
|
|
@@ -30,10 +29,9 @@
|
|
|
30
29
|
* buildDownloadInfo: 函数,创建预下载信息项,用于制作JsvPreload的downloadList属性列表信息
|
|
31
30
|
* 参数:
|
|
32
31
|
* url {string}: (必填)图片url
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* net_setting {object}: (未实现)网络加载参数,cookie, refer等,默认值 null
|
|
32
|
+
* netSetting {string}: 下载网络设置
|
|
33
|
+
* getImageSize {boolean}: 是否获取图片尺寸
|
|
34
|
+
* preDecode {boolean}: 是否预解码
|
|
37
35
|
-->
|
|
38
36
|
<script>
|
|
39
37
|
const CONST_FORMAT_TOKEN = "_JsvP_";
|
|
@@ -56,16 +54,17 @@ const buildPreloadInfo = (
|
|
|
56
54
|
};
|
|
57
55
|
};
|
|
58
56
|
|
|
59
|
-
const buildDownloadInfo = (url, net_setting = null, get_image_size) => {
|
|
57
|
+
const buildDownloadInfo = (url, net_setting = null, get_image_size = false, preDecode = false) => {
|
|
60
58
|
return {
|
|
61
59
|
url,
|
|
62
60
|
netSetting: net_setting,
|
|
63
61
|
getImageSize: get_image_size,
|
|
64
62
|
magicToken: CONST_FORMAT_TOKEN, // 用于格式校验
|
|
63
|
+
preDecode: preDecode,
|
|
65
64
|
};
|
|
66
65
|
};
|
|
67
66
|
|
|
68
|
-
export { buildPreloadInfo, buildDownloadInfo };
|
|
67
|
+
export { buildPreloadInfo, buildPreloadInfo as buildLoadInfo, buildDownloadInfo };
|
|
69
68
|
</script>
|
|
70
69
|
<script setup>
|
|
71
70
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
@@ -75,6 +74,7 @@ import { urlCheckSet } from "../../JsViewVueTools";
|
|
|
75
74
|
|
|
76
75
|
const props = defineProps({
|
|
77
76
|
preloadList: Object,
|
|
77
|
+
loadList: Object,
|
|
78
78
|
downloadList: Object,
|
|
79
79
|
onPreloading: Function,
|
|
80
80
|
onPreloadDone: Function,
|
|
@@ -148,12 +148,13 @@ const _checkPreload = () => {
|
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
const _getPreloadViewIdList = () => {
|
|
151
|
-
if (!props.preloadList) {
|
|
151
|
+
if (!props.preloadList && !props.loadList) {
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
// 优先使用loadList,如果loadList为空,则使用preloadList
|
|
155
|
+
let preloadListData = props.loadList || props.preloadList;
|
|
156
|
+
preloadStateList = new Array(preloadListData.length).fill(false);
|
|
155
157
|
// 直接在map前将为null的值删除掉
|
|
156
|
-
let preloadListData = props.preloadList;
|
|
157
158
|
for (let i = 0; i < preloadListData.length; i++) {
|
|
158
159
|
if (!preloadListData[i] || !preloadListData[i].url) {
|
|
159
160
|
preloadListData.splice(i, 1);
|
|
@@ -226,7 +227,7 @@ const _checkDownload = () => {
|
|
|
226
227
|
props.onDownloadDone &&
|
|
227
228
|
loadedNum === downloadStateList.length - downloadIsNullNum
|
|
228
229
|
) {
|
|
229
|
-
props.onDownloadDone(
|
|
230
|
+
props.onDownloadDone(downloadResultMap);
|
|
230
231
|
}
|
|
231
232
|
};
|
|
232
233
|
|
|
@@ -235,7 +236,7 @@ const _getDownloadViewIdList = () => {
|
|
|
235
236
|
return;
|
|
236
237
|
}
|
|
237
238
|
// 直接在map前将url为null的值清除掉
|
|
238
|
-
downloadStateList = new Array(props.downloadList.length).fill(
|
|
239
|
+
downloadStateList = new Array(props.downloadList.length).fill(false);
|
|
239
240
|
let downloadListData = props.downloadList;
|
|
240
241
|
for (let i = 0; i < downloadListData.length; i++) {
|
|
241
242
|
if (!downloadListData[i] || !downloadListData[i].url) {
|
|
@@ -250,32 +251,34 @@ const _getDownloadViewIdList = () => {
|
|
|
250
251
|
"Error:format mismatch, data should comes from function buildDownloadInfo()"
|
|
251
252
|
);
|
|
252
253
|
}
|
|
253
|
-
console.log(`OnDownload get${index} url=${item.url}`);
|
|
254
|
+
// console.log(`OnDownload get${index} url=${item.url}`);
|
|
254
255
|
let image_url = urlCheckSet(item.url);
|
|
255
256
|
const texture = ForgeHandles.TextureManager.GetDownloadTexture(
|
|
256
257
|
image_url,
|
|
257
258
|
null,
|
|
258
|
-
item.getImageSize
|
|
259
|
+
item.getImageSize,
|
|
260
|
+
item.preDecode
|
|
259
261
|
);
|
|
260
262
|
if (!texture) {
|
|
261
263
|
console.error("Error: Down view build texture failed for " + image_url);
|
|
262
264
|
// 无法创建texture的图片先认为加载完成
|
|
263
|
-
downloadStateList[index] =
|
|
265
|
+
downloadStateList[index] = true;
|
|
264
266
|
return;
|
|
265
267
|
}
|
|
266
268
|
const callback_token = texture.RegisterLoadImageCallback(
|
|
267
269
|
null,
|
|
268
270
|
(texture_info) => {
|
|
269
|
-
console.log(`OnDownload done index${index}
|
|
270
|
-
downloadStateList[index] =
|
|
271
|
+
// console.log(`OnDownload done index${index}`, texture_info);
|
|
272
|
+
downloadStateList[index] = true;
|
|
271
273
|
if (
|
|
272
274
|
item.getImageSize &&
|
|
273
|
-
texture_info.
|
|
274
|
-
texture_info.
|
|
275
|
+
texture_info.width &&
|
|
276
|
+
texture_info.height
|
|
275
277
|
) {
|
|
276
|
-
downloadResultMap[
|
|
277
|
-
width: texture_info.
|
|
278
|
-
height: texture_info.
|
|
278
|
+
downloadResultMap[item.url] = {
|
|
279
|
+
width: texture_info.width,
|
|
280
|
+
height: texture_info.height,
|
|
281
|
+
path: texture_info.extra?.absolutePath,
|
|
279
282
|
};
|
|
280
283
|
}
|
|
281
284
|
_checkDownload();
|
|
@@ -296,8 +299,8 @@ const _getDownloadViewIdList = () => {
|
|
|
296
299
|
_releaseForgeView();
|
|
297
300
|
|
|
298
301
|
watchEffect(() => {
|
|
299
|
-
if (props.preloadList) {
|
|
300
|
-
console.log("JsvPreload: update preloadList");
|
|
302
|
+
if (props.preloadList || props.loadList) {
|
|
303
|
+
console.log("JsvPreload: update preloadList/loadList");
|
|
301
304
|
preloadIsNullNum = 0;
|
|
302
305
|
_releasePreloadView();
|
|
303
306
|
_getPreloadViewIdList();
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* fgColor {string} 二维码前景色,默认值"#000000",黑色
|
|
10
10
|
* bgColor {string} 二维码背景色,默认值"#ffffff",白色
|
|
11
11
|
* level {string} 二维码的容错能力,可选值{'L':低, 'M':中, 'H':高, 'Q':最精细},默认值'L'
|
|
12
|
-
*
|
|
12
|
+
* sync {string} 是否立即加载(auto, sync, async), auto = async
|
|
13
13
|
* 是否当前帧限制(默认为非当前帧显示,不影响按键响应,但是会闪)
|
|
14
14
|
* imageSettings {Object} 设置中心logo图片,默认值为null,设置格式为:
|
|
15
15
|
* {
|
|
@@ -122,6 +122,7 @@ export default {
|
|
|
122
122
|
// Add new QRCode
|
|
123
123
|
this.qrCodeView = view;
|
|
124
124
|
this.jsvBaseView.AddView(this.qrCodeView, lp_params);
|
|
125
|
+
this.jsvBaseView.MarkFlexSizeFromChild(this.qrCodeView.ViewId);
|
|
125
126
|
},
|
|
126
127
|
},
|
|
127
128
|
created() {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* 【模块 export 内容】
|
|
5
5
|
* JsvScrollBox:Vue高阶组件,支持触控拖动的滚动型组件。
|
|
6
|
+
* 注意: 本组件进行rotate操作后,触控处理会出现坐标不对问题,所以不要进行rotate操作(其父节点也不能做rotate操作)
|
|
6
7
|
* props说明:
|
|
7
8
|
* style {Object} (必填,响应式) 其中的width/height为必填项目, 决定scroll固定的底座的尺寸
|
|
8
9
|
* sliderSize {Object} (必填,响应式) 滑动区域的尺寸,滑块的尺寸在非滑动方向不能大于组件尺寸
|
|
@@ -24,7 +25,8 @@
|
|
|
24
25
|
* (选填,响应式) 决定syncWith的联动模式,当syncWith设置后才能生效
|
|
25
26
|
* SyncForward(默认值): 同进同退, mySelf = sourcePercent
|
|
26
27
|
* SyncReverse: 进退反向, mySelf = (1 - sourcePercent)
|
|
27
|
-
*
|
|
28
|
+
* enableMouseWheel {boolean} (选填,非响应式) 是否需要支持鼠标滚轮滚动
|
|
29
|
+
* mouseWheelRate {number} (选填,非响应式) 鼠标滚轮滚动速度比率,默认为10
|
|
28
30
|
* template说明:
|
|
29
31
|
* FixedBox={boxWidth, boxHeight}: 以本组件底座左上角0,0对齐的一个slot
|
|
30
32
|
* SliderBox={boxWidth, boxHeight}: 以滑块div的左上角0,0对齐的一个slot,
|
|
@@ -150,6 +152,14 @@ let rProps = defineProps({
|
|
|
150
152
|
type: Symbol,
|
|
151
153
|
default: ScrollBoxStyle.SyncForward,
|
|
152
154
|
},
|
|
155
|
+
enableMouseWheel: {
|
|
156
|
+
type: Boolean,
|
|
157
|
+
default: false,
|
|
158
|
+
},
|
|
159
|
+
mouseWheelRate: {
|
|
160
|
+
type: Number,
|
|
161
|
+
default: 10,
|
|
162
|
+
},
|
|
153
163
|
});
|
|
154
164
|
|
|
155
165
|
// 激活引擎中的功能支持
|
|
@@ -184,11 +194,11 @@ let vSyncLinkNexusNode: NexusNode | null = null;
|
|
|
184
194
|
let vCurrentPercent: number = 0;
|
|
185
195
|
|
|
186
196
|
/** 本地响应式变量 **/
|
|
187
|
-
let rFixedBoxWidth = shallowRef(
|
|
188
|
-
let rFixedBoxHeight = shallowRef(
|
|
197
|
+
let rFixedBoxWidth = shallowRef(0);
|
|
198
|
+
let rFixedBoxHeight = shallowRef(0);
|
|
189
199
|
let rFixedViewRef = shallowRef(null);
|
|
190
|
-
let rSliderWidth = shallowRef(
|
|
191
|
-
let rSliderHeight = shallowRef(
|
|
200
|
+
let rSliderWidth = shallowRef(0);
|
|
201
|
+
let rSliderHeight = shallowRef(0);
|
|
192
202
|
let rSliderViewRef = shallowRef(null);
|
|
193
203
|
|
|
194
204
|
// 记录slider的活动范围
|
|
@@ -218,6 +228,7 @@ watchEffect(() => {
|
|
|
218
228
|
}
|
|
219
229
|
|
|
220
230
|
// 合理性校验
|
|
231
|
+
let data_error = false;
|
|
221
232
|
if (
|
|
222
233
|
cMode == ScrollBoxStyle.PinMode &&
|
|
223
234
|
(sliderSize.height > fixedBoxSize.height ||
|
|
@@ -227,7 +238,7 @@ watchEffect(() => {
|
|
|
227
238
|
console.error(
|
|
228
239
|
`slider oversize in pin-mode bw=${fixedBoxSize.width} bh=${fixedBoxSize.height} sw=${sliderSize.width} sh=${sliderSize.height}`
|
|
229
240
|
);
|
|
230
|
-
|
|
241
|
+
data_error = true;
|
|
231
242
|
} else if (
|
|
232
243
|
cMode == ScrollBoxStyle.DrawerMode &&
|
|
233
244
|
(sliderSize.height < fixedBoxSize.height ||
|
|
@@ -236,7 +247,13 @@ watchEffect(() => {
|
|
|
236
247
|
console.error(
|
|
237
248
|
`box oversize in drawer-mode bw=${fixedBoxSize.width} bh=${fixedBoxSize.height} sw=${sliderSize.width} sh=${sliderSize.height}`
|
|
238
249
|
);
|
|
239
|
-
|
|
250
|
+
data_error = true;
|
|
251
|
+
}
|
|
252
|
+
if (data_error) {
|
|
253
|
+
// 出现数据错误时, 将slider和box的尺寸设置为一致(设置wall后拖拽不动)
|
|
254
|
+
// 使能进行wall的设置以保证其不被wallOverflow给影响
|
|
255
|
+
sliderSize.width = fixedBoxSize.width;
|
|
256
|
+
sliderSize.height = fixedBoxSize.height;
|
|
240
257
|
}
|
|
241
258
|
|
|
242
259
|
// 变更检查,尽量减少触发template的响应式
|
|
@@ -265,7 +282,7 @@ watchEffect(() => {
|
|
|
265
282
|
}
|
|
266
283
|
});
|
|
267
284
|
|
|
268
|
-
function changeSyncLink(newSyncSourceName: String) {
|
|
285
|
+
function changeSyncLink(newSyncSourceName: String | null) {
|
|
269
286
|
// 清理原Link nexusNode
|
|
270
287
|
vSyncLinkNexusNode = null;
|
|
271
288
|
rebuildAckSync();
|
|
@@ -294,11 +311,11 @@ function rebuildAckSync() {
|
|
|
294
311
|
|
|
295
312
|
if (vSyncLinkNexusNode != null) {
|
|
296
313
|
// 创建运动跟随的condition
|
|
297
|
-
cSliderActor.run((cmds) => {
|
|
314
|
+
cSliderActor.run((cmds:any) => {
|
|
298
315
|
return [
|
|
299
|
-
cmds
|
|
316
|
+
cmds!
|
|
300
317
|
.condition(cLinkConditionGroup, true)
|
|
301
|
-
.movementSync(vSyncLinkNexusNode!)
|
|
318
|
+
.movementSync(vSyncLinkNexusNode!)!
|
|
302
319
|
.then([
|
|
303
320
|
cmds
|
|
304
321
|
.action()
|
|
@@ -319,7 +336,7 @@ function rebuildAckSync() {
|
|
|
319
336
|
function rebuildSyncMaster() {
|
|
320
337
|
if (vLinkProvide != null) {
|
|
321
338
|
// 创建移动信息的发生器
|
|
322
|
-
cSliderActor.run((cmds) => {
|
|
339
|
+
cSliderActor.run((cmds:any) => {
|
|
323
340
|
return [
|
|
324
341
|
cmds.state().removeConditionByGroup(cLinkMasterGroup),
|
|
325
342
|
cmds
|
|
@@ -333,9 +350,9 @@ function rebuildSyncMaster() {
|
|
|
333
350
|
0b11
|
|
334
351
|
),
|
|
335
352
|
// 触发跟随节点记录进度
|
|
336
|
-
cmds
|
|
353
|
+
cmds!
|
|
337
354
|
.condition(cLinkMasterGroup, true)
|
|
338
|
-
.onFlingEnd()
|
|
355
|
+
.onFlingEnd()!
|
|
339
356
|
.then([
|
|
340
357
|
cmds
|
|
341
358
|
.state()
|
|
@@ -345,9 +362,9 @@ function rebuildSyncMaster() {
|
|
|
345
362
|
),
|
|
346
363
|
]),
|
|
347
364
|
// 触发跟随节点记录进度
|
|
348
|
-
cmds
|
|
365
|
+
cmds!
|
|
349
366
|
.condition(cLinkMasterGroup, true)
|
|
350
|
-
.onDragEnd()
|
|
367
|
+
.onDragEnd()!
|
|
351
368
|
.then([
|
|
352
369
|
cmds
|
|
353
370
|
.state()
|
|
@@ -375,9 +392,9 @@ function rebuildSliderSet() {
|
|
|
375
392
|
|
|
376
393
|
if (vMounted) {
|
|
377
394
|
// 设置Actor的活动边界
|
|
378
|
-
cSliderActor.run((cmds) => [
|
|
395
|
+
cSliderActor.run((cmds:any) => [
|
|
379
396
|
cmds.state().removeConditionByGroup(cWallConditionGroup),
|
|
380
|
-
cmds
|
|
397
|
+
cmds!
|
|
381
398
|
.condition(cWallConditionGroup, true)
|
|
382
399
|
.boxPosition(
|
|
383
400
|
rSliderEdgeBox.left,
|
|
@@ -387,18 +404,18 @@ function rebuildSliderSet() {
|
|
|
387
404
|
)!
|
|
388
405
|
.then([cmds.action().stopMoving(true)]),
|
|
389
406
|
// 跟进抬起时进度信息
|
|
390
|
-
cmds
|
|
407
|
+
cmds!
|
|
391
408
|
.condition(cWallConditionGroup, true)
|
|
392
|
-
.onFlingEnd()
|
|
409
|
+
.onFlingEnd()!
|
|
393
410
|
.then([
|
|
394
411
|
(pointInfo: any) => {
|
|
395
412
|
vCurrentPercent = positionToPercent(pointInfo);
|
|
396
413
|
},
|
|
397
414
|
]),
|
|
398
415
|
// 跟进fling结束时的进度信息
|
|
399
|
-
cmds
|
|
416
|
+
cmds!
|
|
400
417
|
.condition(cWallConditionGroup, true)
|
|
401
|
-
.onDragEnd()
|
|
418
|
+
.onDragEnd()!
|
|
402
419
|
.then([
|
|
403
420
|
(pointInfo: any) => {
|
|
404
421
|
vCurrentPercent = positionToPercent(pointInfo);
|
|
@@ -418,10 +435,10 @@ function setSensor(callback: Function, sensitivity: number) {
|
|
|
418
435
|
cmds.state().removeConditionByGroup(cSensorConditionGroup),
|
|
419
436
|
]);
|
|
420
437
|
if (callback != null) {
|
|
421
|
-
cSliderActor.run((cmds) => [
|
|
422
|
-
cmds
|
|
438
|
+
cSliderActor.run((cmds:any) => [
|
|
439
|
+
cmds!
|
|
423
440
|
.condition(cSensorConditionGroup, true)
|
|
424
|
-
.onMovement(sensitivity) // 设置x或y移动超过12时才触发回调,以此减少回调的频次,规避js的性能影响
|
|
441
|
+
.onMovement(sensitivity)! // 设置x或y移动超过12时才触发回调,以此减少回调的频次,规避js的性能影响
|
|
425
442
|
.then([
|
|
426
443
|
(pointInfo: any) => {
|
|
427
444
|
let percent: number = positionToPercent(pointInfo);
|
|
@@ -461,6 +478,9 @@ function currentPercent(): number {
|
|
|
461
478
|
return vCurrentPercent;
|
|
462
479
|
}
|
|
463
480
|
|
|
481
|
+
function onMouseWheelScrollProgress(pointInfo: any) {
|
|
482
|
+
}
|
|
483
|
+
|
|
464
484
|
onMounted(() => {
|
|
465
485
|
vMounted = true;
|
|
466
486
|
|
|
@@ -474,6 +494,17 @@ onMounted(() => {
|
|
|
474
494
|
ForgeConst.DragFlags.TOUCH_RECV_LAST_END
|
|
475
495
|
); // 激活 Move | TouchDown | TouchEnd
|
|
476
496
|
|
|
497
|
+
if (rProps.enableMouseWheel) {
|
|
498
|
+
sliderView.HoverEnables(2);
|
|
499
|
+
sliderView.SetMouseWheelRate(rProps.mouseWheelRate ?? 10.0);
|
|
500
|
+
cSliderActor.run((cmds:any) => [
|
|
501
|
+
cmds!
|
|
502
|
+
.condition(undefined, true)
|
|
503
|
+
.onMouseWheelScrollProgress()!
|
|
504
|
+
.then([onMouseWheelScrollProgress]),
|
|
505
|
+
]);
|
|
506
|
+
}
|
|
507
|
+
|
|
477
508
|
// 设置初始进度
|
|
478
509
|
if (cInitPercent != 0) {
|
|
479
510
|
updatePercent(cInitPercent);
|
|
@@ -310,7 +310,7 @@ watchEffect(() => {
|
|
|
310
310
|
}
|
|
311
311
|
});
|
|
312
312
|
|
|
313
|
-
function changeSyncLink(newSyncSourceName: String) {
|
|
313
|
+
function changeSyncLink(newSyncSourceName: String | null) {
|
|
314
314
|
// 清理原Link nexusNode
|
|
315
315
|
vSyncLinkNexusNode = null;
|
|
316
316
|
rebuildAckSync();
|
|
@@ -333,8 +333,8 @@ function rebuildAckSync() {
|
|
|
333
333
|
if (!vTargetViewReady) return;
|
|
334
334
|
|
|
335
335
|
// 清理老设定
|
|
336
|
-
cSliderActor.run((cmds) => [
|
|
337
|
-
cmds
|
|
336
|
+
cSliderActor.run((cmds:any) => [
|
|
337
|
+
cmds!.state().removeConditionByGroup(cLinkConditionGroup),
|
|
338
338
|
]);
|
|
339
339
|
|
|
340
340
|
if (vSyncLinkNexusNode != null) {
|
|
@@ -348,12 +348,12 @@ function rebuildAckSync() {
|
|
|
348
348
|
horiSet = vMainDivWidth;
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
cSliderActor.run((cmds) => [
|
|
352
|
-
cmds
|
|
351
|
+
cSliderActor.run((cmds:any) => [
|
|
352
|
+
cmds!
|
|
353
353
|
.condition(cLinkConditionGroup, true)
|
|
354
354
|
.movementSync(vSyncLinkNexusNode!)
|
|
355
355
|
.then([
|
|
356
|
-
cmds
|
|
356
|
+
cmds!
|
|
357
357
|
.action()
|
|
358
358
|
.ackMovementSync(
|
|
359
359
|
horiSet.start,
|
|
@@ -364,7 +364,7 @@ function rebuildAckSync() {
|
|
|
364
364
|
vSyncTypeCache == ScrollBoxStyle.SyncForward ? 1 : 2
|
|
365
365
|
),
|
|
366
366
|
]),
|
|
367
|
-
cmds
|
|
367
|
+
cmds!
|
|
368
368
|
.condition(cLinkConditionGroup, true)
|
|
369
369
|
.onNexusEvent(
|
|
370
370
|
vSyncLinkNexusNode!,
|
|
@@ -381,12 +381,12 @@ function rebuildAckSync() {
|
|
|
381
381
|
|
|
382
382
|
// setSensor 函数声明
|
|
383
383
|
function setSensor(callback: Function, sensitivity: number) {
|
|
384
|
-
cSliderActor.run((cmds) => [
|
|
385
|
-
cmds
|
|
384
|
+
cSliderActor.run((cmds:any) => [
|
|
385
|
+
cmds!.state().removeConditionByGroup(cSensorConditionGroup),
|
|
386
386
|
]);
|
|
387
387
|
if (callback != null) {
|
|
388
|
-
cSliderActor.run((cmds) => [
|
|
389
|
-
cmds
|
|
388
|
+
cSliderActor.run((cmds:any) => [
|
|
389
|
+
cmds!
|
|
390
390
|
.condition(cSensorConditionGroup, true)
|
|
391
391
|
.onMovement(sensitivity) // 设置x或y移动超过12时才触发回调,以此减少回调的频次,规避js的性能影响
|
|
392
392
|
.then([
|