@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
|
@@ -1,23 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
//考虑到.vue文件除了export default的component外,还有可能export其他对象,因此使用import * as
|
|
2
2
|
import { default as JsvPlayer } from "./JsvPlayer.vue";
|
|
3
|
-
import { globalLoadJsvPlayerPlugin as initPlugin } from "./
|
|
4
|
-
import { globalPreLoadJsvPlayerPlugin as preLoadPlugin } from "./
|
|
5
|
-
import { getJsvPlayerCapabilitySet as getCapabilitySet } from "./
|
|
6
|
-
import { setJsvPlayerDebugMode as setDebugMode } from "./
|
|
7
|
-
import { getJsvPlayerRunningNum as getRunningPlayerNum } from "./
|
|
8
|
-
import { globalLoadSetOperator as setOperator } from "./
|
|
9
|
-
import {
|
|
10
|
-
|
|
3
|
+
import { globalLoadJsvPlayerPlugin as initPlugin } from "./JsvPlayer.vue"
|
|
4
|
+
import { globalPreLoadJsvPlayerPlugin as preLoadPlugin } from "./JsvPlayer.vue"
|
|
5
|
+
import { getJsvPlayerCapabilitySet as getCapabilitySet } from "./JsvPlayer.vue"
|
|
6
|
+
import { setJsvPlayerDebugMode as setDebugMode } from "./JsvPlayer.vue"
|
|
7
|
+
import { getJsvPlayerRunningNum as getRunningPlayerNum } from "./JsvPlayer.vue"
|
|
8
|
+
import { globalLoadSetOperator as setOperator } from "./JsvPlayer.vue"
|
|
9
|
+
import { setProbeMulticastChannelID as setProbeMulticastChannelID } from "./JsvPlayer.vue"
|
|
10
|
+
import { setProbeMulticastUrl as setProbeMulticastUrl } from "./JsvPlayer.vue"
|
|
11
|
+
import { registerStreamChangedListener as registerStreamChangedListener } from "./JsvPlayer.vue"
|
|
12
|
+
import {default as BrowserPlayer} from "./JsvPlayerBrowser-0.9.vue"
|
|
13
|
+
import { setMobileEventParam as setMobileEventParam } from "./JsvPlayer.vue"
|
|
14
|
+
import { setStbID as setStbID } from "./JsvPlayer.vue"
|
|
15
|
+
import {setGlobalEventListener as setGlobalEventListener} from "./JsvPlayer.vue"
|
|
11
16
|
|
|
17
|
+
let _JsvPlayer = JsvPlayer;
|
|
12
18
|
let globalLoadJsvPlayerPlugin = initPlugin;
|
|
13
19
|
let globalPreLoadJsvPlayerPlugin = preLoadPlugin;
|
|
14
20
|
let getJsvPlayerCapabilitySet = getCapabilitySet;
|
|
15
21
|
let setJsvPlayerDebugMode = setDebugMode;
|
|
16
22
|
let getJsvPlayerRunningNum = getRunningPlayerNum;
|
|
17
23
|
let globalLoadSetOperator = setOperator;
|
|
24
|
+
let globalJsvPlayerProbeMulticastChannelID = setProbeMulticastChannelID;
|
|
25
|
+
let globalJsvPlayerProbeMulticastUrl = setProbeMulticastUrl;
|
|
26
|
+
let globalJsvPlayerRegisterStreamChangedListener = registerStreamChangedListener;
|
|
27
|
+
let setJsvPlayerMobileEventParam = setMobileEventParam;
|
|
28
|
+
let setJsvPlayerStbID = setStbID;
|
|
29
|
+
let SetJsvPlayerGlobalEventListener = setGlobalEventListener;
|
|
18
30
|
|
|
19
31
|
if (window.jsvIsBrowserDebug) {
|
|
20
|
-
// const BrowserPlayer = await import("./
|
|
32
|
+
// const BrowserPlayer = await import("./JsvPlayerBrowser.vue");
|
|
21
33
|
// 浏览器版本
|
|
22
34
|
_JsvPlayer = BrowserPlayer;
|
|
23
35
|
|
|
@@ -47,6 +59,30 @@ if (window.jsvIsBrowserDebug) {
|
|
|
47
59
|
globalLoadSetOperator = (operator)=>{
|
|
48
60
|
console.log("operator is "+operator);
|
|
49
61
|
}
|
|
62
|
+
|
|
63
|
+
globalJsvPlayerProbeMulticastChannelID = (mixNo)=>{
|
|
64
|
+
console.log("mixNo is "+mixNo);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
globalJsvPlayerProbeMulticastUrl = (url)=>{
|
|
68
|
+
console.log("url is "+url);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
globalJsvPlayerRegisterStreamChangedListener = (listener)=>{
|
|
72
|
+
console.log("listener is "+listener);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
setJsvPlayerMobileEventParam = (param)=>{
|
|
76
|
+
console.log("param: "+param);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
setJsvPlayerStbID = (stbid)=>{
|
|
80
|
+
console.log("param: "+stbid);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
SetJsvPlayerGlobalEventListener = (listener)=>{
|
|
84
|
+
console.log("SetJsvPlayerGlobalEventListener");
|
|
85
|
+
}
|
|
50
86
|
}
|
|
51
87
|
|
|
52
88
|
export {
|
|
@@ -57,4 +93,10 @@ export {
|
|
|
57
93
|
setJsvPlayerDebugMode, //设置调试模式,可以查看帧率等信息
|
|
58
94
|
getJsvPlayerRunningNum, //获取正在运行的播放器个数
|
|
59
95
|
globalLoadSetOperator,// 设置运营商
|
|
96
|
+
globalJsvPlayerProbeMulticastChannelID, //设置组播网络连通性探测频道号
|
|
97
|
+
globalJsvPlayerProbeMulticastUrl, //设置组播网络连通性探测url
|
|
98
|
+
globalJsvPlayerRegisterStreamChangedListener, //注册视频流重试时的全局事件通知
|
|
99
|
+
setJsvPlayerMobileEventParam,//设置移动探针相关参数
|
|
100
|
+
setJsvPlayerStbID,//设置机顶盒stbid
|
|
101
|
+
SetJsvPlayerGlobalEventListener,//设置全局事件监听
|
|
60
102
|
}
|
|
@@ -1,22 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
//考虑到.vue文件除了export default的component外,还有可能export其他对象,因此使用import * as
|
|
2
2
|
import { default as JsvPlayer } from "./JsvPlayer.vue";
|
|
3
|
-
import { globalLoadJsvPlayerPlugin as initPlugin } from "./
|
|
4
|
-
import { globalPreLoadJsvPlayerPlugin as preLoadPlugin } from "./
|
|
5
|
-
import { getJsvPlayerCapabilitySet as getCapabilitySet } from "./
|
|
6
|
-
import { setJsvPlayerDebugMode as setDebugMode } from "./
|
|
7
|
-
import { getJsvPlayerRunningNum as getRunningPlayerNum } from "./
|
|
8
|
-
import { globalLoadSetOperator as setOperator } from "./
|
|
9
|
-
|
|
3
|
+
import { globalLoadJsvPlayerPlugin as initPlugin } from "./JsvPlayer.vue"
|
|
4
|
+
import { globalPreLoadJsvPlayerPlugin as preLoadPlugin } from "./JsvPlayer.vue"
|
|
5
|
+
import { getJsvPlayerCapabilitySet as getCapabilitySet } from "./JsvPlayer.vue"
|
|
6
|
+
import { setJsvPlayerDebugMode as setDebugMode } from "./JsvPlayer.vue"
|
|
7
|
+
import { getJsvPlayerRunningNum as getRunningPlayerNum } from "./JsvPlayer.vue"
|
|
8
|
+
import { globalLoadSetOperator as setOperator } from "./JsvPlayer.vue"
|
|
9
|
+
import { setProbeMulticastChannelID as setProbeMulticastChannelID } from "./JsvPlayer.vue"
|
|
10
|
+
import { setProbeMulticastUrl as setProbeMulticastUrl } from "./JsvPlayer.vue"
|
|
11
|
+
import { registerStreamChangedListener as registerStreamChangedListener } from "./JsvPlayer.vue"
|
|
12
|
+
import { setMobileEventParam as setMobileEventParam } from "./JsvPlayer.vue"
|
|
13
|
+
import { setStbID as setStbID } from "./JsvPlayer.vue"
|
|
14
|
+
import {setGlobalEventListener as setGlobalEventListener} from "./JsvPlayer.vue"
|
|
10
15
|
|
|
16
|
+
let _JsvPlayer = JsvPlayer;
|
|
11
17
|
let globalLoadJsvPlayerPlugin = initPlugin;
|
|
12
18
|
let globalPreLoadJsvPlayerPlugin = preLoadPlugin;
|
|
13
19
|
let getJsvPlayerCapabilitySet = getCapabilitySet;
|
|
14
20
|
let setJsvPlayerDebugMode = setDebugMode;
|
|
15
21
|
let getJsvPlayerRunningNum = getRunningPlayerNum;
|
|
16
22
|
let globalLoadSetOperator = setOperator;
|
|
23
|
+
let globalJsvPlayerProbeMulticastChannelID = setProbeMulticastChannelID;
|
|
24
|
+
let globalJsvPlayerProbeMulticastUrl = setProbeMulticastUrl;
|
|
25
|
+
let globalJsvPlayerRegisterStreamChangedListener = registerStreamChangedListener;
|
|
26
|
+
let setJsvPlayerMobileEventParam = setMobileEventParam;
|
|
27
|
+
let setJsvPlayerStbID = setStbID;
|
|
28
|
+
let SetJsvPlayerGlobalEventListener = setGlobalEventListener;
|
|
17
29
|
|
|
18
30
|
if (window.jsvIsBrowserDebug) {
|
|
19
|
-
|
|
31
|
+
let BrowserPlayer = null;
|
|
32
|
+
if(window.JsvCoreApi?.Platform == "pc-wasm"){
|
|
33
|
+
console.log("pc-wasm")
|
|
34
|
+
BrowserPlayer = await import("./JsvPlayerBrowser-wasm.vue");
|
|
35
|
+
}else{
|
|
36
|
+
console.log("no pc-wasm")
|
|
37
|
+
BrowserPlayer = await import("./JsvPlayerBrowser.vue");
|
|
38
|
+
}
|
|
20
39
|
// 浏览器版本
|
|
21
40
|
_JsvPlayer = BrowserPlayer.default;
|
|
22
41
|
|
|
@@ -46,6 +65,30 @@ if (window.jsvIsBrowserDebug) {
|
|
|
46
65
|
globalLoadSetOperator = (operator)=>{
|
|
47
66
|
console.log("operator is "+operator);
|
|
48
67
|
}
|
|
68
|
+
|
|
69
|
+
globalJsvPlayerProbeMulticastChannelID = (mixNo)=>{
|
|
70
|
+
console.log("mixNo is "+mixNo);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
globalJsvPlayerProbeMulticastUrl = (url)=>{
|
|
74
|
+
console.log("url is "+url);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
globalJsvPlayerRegisterStreamChangedListener = (listener)=>{
|
|
78
|
+
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
setJsvPlayerMobileEventParam = (param)=>{
|
|
82
|
+
console.log("param: "+param);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
setJsvPlayerStbID = (stbid)=>{
|
|
86
|
+
console.log("param: "+stbid);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
SetJsvPlayerGlobalEventListener = (listener)=>{
|
|
90
|
+
console.log("SetJsvPlayerGlobalEventListener");
|
|
91
|
+
}
|
|
49
92
|
}
|
|
50
93
|
|
|
51
94
|
export {
|
|
@@ -56,4 +99,10 @@ export {
|
|
|
56
99
|
setJsvPlayerDebugMode, //设置调试模式,可以查看帧率等信息
|
|
57
100
|
getJsvPlayerRunningNum, //获取正在运行的播放器个数
|
|
58
101
|
globalLoadSetOperator,// 设置运营商
|
|
102
|
+
globalJsvPlayerProbeMulticastChannelID, //设置组播网络连通性探测频道号
|
|
103
|
+
globalJsvPlayerProbeMulticastUrl, //设置组播网络连通性探测url
|
|
104
|
+
globalJsvPlayerRegisterStreamChangedListener, //注册视频流重试时的全局事件通知
|
|
105
|
+
setJsvPlayerMobileEventParam,//设置移动探针相关参数
|
|
106
|
+
setJsvPlayerStbID,//设置机顶盒stbid
|
|
107
|
+
SetJsvPlayerGlobalEventListener,//设置全局事件监听
|
|
59
108
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BlobApi
|
|
3
|
+
*
|
|
4
|
+
* 说明:
|
|
5
|
+
* - 提供与浏览器 URL.createObjectURL / URL.revokeObjectURL 对齐的接口。
|
|
6
|
+
* 使用场景
|
|
7
|
+
* 1. blob内容是图片并且希望在JsView体系的div或者img元素中展示时使用。
|
|
8
|
+
* 2. 希望获得PC模拟环境和android环境同样的Blob展示和上传需求时
|
|
9
|
+
*
|
|
10
|
+
* 特别说明: 在PC模拟环境中, 第三方库仅在PC上进行Blob展示时, 不用改造,
|
|
11
|
+
* 使用原URL.createObjectURL / URL.revokeObjectURL即可
|
|
12
|
+
* 例如m3u8视频转blob播放的第三方库
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* createObjectURL
|
|
18
|
+
* 为 Blob 对象创建临时 URL。
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
async function createObjectURL(blob: Blob): Promise<string> {
|
|
22
|
+
// 兼容PC模拟环境下 jsvCreateObjectURL 是异步的情况
|
|
23
|
+
return await (URL as any).jsvCreateObjectURL(blob);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* createObjectURLSync
|
|
28
|
+
* 为 Blob 对象创建临时 URL。为在android设备上的同步接口
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
function createObjectURLSync(blob: Blob): undefined | string {
|
|
32
|
+
if ((window as any).JsvCoreApi.ProcessType == "wasm") {
|
|
33
|
+
console.warn("createObjectURLSync: wasm环境不支持同步创建ObjectURL");
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
return (URL as any).jsvCreateObjectURL(blob);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* revokeObjectURL
|
|
41
|
+
* 释放由 createObjectURL 创建的临时 URL。
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
function revokeObjectURL(url: string): void {
|
|
45
|
+
return (URL as any).jsvRevokeObjectURL(url);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
let sBlobApi = {
|
|
49
|
+
createObjectURLSync,
|
|
50
|
+
createObjectURL,
|
|
51
|
+
revokeObjectURL,
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export default sBlobApi;
|
|
55
|
+
|
|
@@ -17,6 +17,9 @@ namespace FeatureNames {
|
|
|
17
17
|
|
|
18
18
|
// 'Capture2Texture': div拷屏
|
|
19
19
|
export const Capture2Texture: String = "Capture2Texture";
|
|
20
|
+
|
|
21
|
+
export const MouseHover: String = "MouseHover";
|
|
22
|
+
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
// 激活内核中的模块
|
|
@@ -53,7 +56,8 @@ function JsvUseFeature(from: String, comp_name: String) {
|
|
|
53
56
|
return;
|
|
54
57
|
}
|
|
55
58
|
|
|
56
|
-
|
|
59
|
+
// 未激活简易提示, need JsvActiveFeature(JsvFeatureNames.${ comp_name }) in boot`);
|
|
60
|
+
console.log(`LOG: ${comp_name}(from ${from}) is not activated`);
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
// 备用接口: 防止未授权组件被错误激活引起的崩溃和水印显示
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
// ForgeHandles的所有内容仅在 node_modules/@shijiu/jsview-vue 库中使用,
|
|
2
|
+
// 非公开API, 有版本升级后被调整的可能, 不要在应用层的项目中直接使用
|
|
3
|
+
|
|
1
4
|
let handles: {
|
|
2
5
|
TextureManager: any,
|
|
3
6
|
RootView: any,
|
|
4
|
-
RootActivity: any
|
|
7
|
+
RootActivity: any,
|
|
8
|
+
sRenderBridge: any
|
|
5
9
|
} = {
|
|
6
10
|
TextureManager: null,
|
|
7
11
|
RootView: null,
|
|
8
|
-
RootActivity: null
|
|
12
|
+
RootActivity: null,
|
|
13
|
+
sRenderBridge: null
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
const jsvCode = (window as any).JsvCode;
|
|
@@ -13,6 +18,7 @@ jsvCode.ForgeHandles.listenToReady(() => {
|
|
|
13
18
|
handles.TextureManager = jsvCode.ForgeHandles.TextureManager;
|
|
14
19
|
handles.RootView = jsvCode.ForgeHandles.RootView;
|
|
15
20
|
handles.RootActivity = jsvCode.ForgeHandles.RootActivity;
|
|
21
|
+
handles.sRenderBridge = jsvCode.ForgeHandles.sRenderBridge;
|
|
16
22
|
})
|
|
17
23
|
|
|
18
24
|
export default handles;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
|
|
3
|
+
export const KEY_MODE = 1;
|
|
4
|
+
export const TOUCH_MODE = 2;
|
|
5
|
+
export const JsvInteractionMode = ref(KEY_MODE);
|
|
6
|
+
|
|
7
|
+
let JsvTouchModeSwitcherCount = 0;
|
|
8
|
+
export const jsvTouchModeSwitcherCreate = () => {
|
|
9
|
+
JsvTouchModeSwitcherCount++;
|
|
10
|
+
};
|
|
11
|
+
export const jsvTouchModeSwitcherDestroy = () => {
|
|
12
|
+
JsvTouchModeSwitcherCount--;
|
|
13
|
+
};
|
|
14
|
+
export const hasJsvTouchModeSwitcher = () => {
|
|
15
|
+
return JsvTouchModeSwitcherCount > 0;
|
|
16
|
+
};
|
|
@@ -32,14 +32,14 @@ interface infoObject {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
const TAG = "JSvPreDownload";
|
|
35
|
-
let isNullNumber: number = 0;
|
|
36
|
-
let workNumber: number = 0;
|
|
37
35
|
abstract class JsvPreDownloaderBase {
|
|
38
36
|
public download(url: string | Array<DownloadListItem>, netSetting: string = "", isImage: boolean = false) {
|
|
39
37
|
return new Promise((resolve, reject) => {
|
|
40
38
|
if (typeof url === "string") {
|
|
41
39
|
this.downloadInner(url, netSetting, isImage).then(resolve, reject);
|
|
42
40
|
} else if (Array.isArray(url) && url.length > 0) {
|
|
41
|
+
let isNullNumber: number = 0;
|
|
42
|
+
let workNumber: number = 0;
|
|
43
43
|
const downloadResult = new Array(url.length);
|
|
44
44
|
const check = () => {
|
|
45
45
|
let allDone = false;
|
|
@@ -112,6 +112,31 @@ function openWindow(url, startup_image, startup_video, startup_duration, add_his
|
|
|
112
112
|
return window.jJsvRuntimeBridge.openWindow(url, JSON.stringify(setting))
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
/**
|
|
116
|
+
* 打开另外一个小程序
|
|
117
|
+
* @param {string} url 小程序url
|
|
118
|
+
* @param {string} startup_image 启动图url
|
|
119
|
+
* @param {string} startup_video 启动视频url
|
|
120
|
+
* @param {int} startup_duration 启动图时长,默认0
|
|
121
|
+
* @param {int} add_history 是否添加历史,0不添加,1添加
|
|
122
|
+
* @returns {Promise} 比openWindow返回信息更丰富, 可获取启动者的更多返回信息
|
|
123
|
+
*/
|
|
124
|
+
function openMiniApp(url, startup_image, startup_video, startup_duration, add_history) {
|
|
125
|
+
let setting = {};
|
|
126
|
+
if (startup_image !== null && startup_image !== "")
|
|
127
|
+
setting.startupImage = startup_image;
|
|
128
|
+
|
|
129
|
+
if (startup_video !== null && startup_video !== "") {
|
|
130
|
+
setting.startupVideo = startup_video;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
setting.startupDuration = startup_duration;
|
|
134
|
+
setting.addHistory = (add_history ? 1 : 0); // 兼容true/false传值
|
|
135
|
+
|
|
136
|
+
// direct_call("openWindow", url, JSON.stringify(setting));
|
|
137
|
+
return window.jJsvRuntimeBridge.openMiniApp(url, JSON.stringify(setting))
|
|
138
|
+
}
|
|
139
|
+
|
|
115
140
|
/**
|
|
116
141
|
* 用新的进程打开另外一个小程序
|
|
117
142
|
* @param {string} url 小程序url
|
|
@@ -136,6 +161,30 @@ function startUrlInNewTab(url, startup_image, startup_video, startup_duration, a
|
|
|
136
161
|
return window.jJsvRuntimeBridge.startUrlInNewTab(url, JSON.stringify(setting))
|
|
137
162
|
}
|
|
138
163
|
|
|
164
|
+
/**
|
|
165
|
+
* 用新的进程打开另外一个小程序
|
|
166
|
+
* @param {string} url 小程序url
|
|
167
|
+
* @param {string} startup_image 启动图url
|
|
168
|
+
* @param {string} startup_video 启动视频url
|
|
169
|
+
* @param {int} startup_duration 启动图时长,默认0
|
|
170
|
+
* @param {int} add_history 是否添加历史,0不添加,1添加
|
|
171
|
+
* @returns {Promise}
|
|
172
|
+
*/
|
|
173
|
+
function openAppInNewTab(url, startup_image, startup_video, startup_duration, add_history) {
|
|
174
|
+
let setting = {};
|
|
175
|
+
if (startup_image !== null && startup_image !== "")
|
|
176
|
+
setting.startupImage = startup_image;
|
|
177
|
+
|
|
178
|
+
if (startup_video !== null && startup_video !== "") {
|
|
179
|
+
setting.startupVideo = startup_video;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
setting.startupDuration = startup_duration;
|
|
183
|
+
setting.addHistory = (add_history ? 1 : 0); // 兼容true/false传值
|
|
184
|
+
|
|
185
|
+
return window.jJsvRuntimeBridge.openAppInNewTab(url, JSON.stringify(setting))
|
|
186
|
+
}
|
|
187
|
+
|
|
139
188
|
/**
|
|
140
189
|
* 用于给上一个小程序返回结果,通常与startUrlInNewTab和openWindow配合使用
|
|
141
190
|
* @param {string} data 返回给上一个小程序的结果
|
|
@@ -202,31 +251,75 @@ function getInstalledApps() {
|
|
|
202
251
|
* @param {string} uri Uri方式启动
|
|
203
252
|
* @param {Array} flags 数组,用于intent.addFlags
|
|
204
253
|
* @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
|
|
254
|
+
* @param {Array} category string数组,用于intent.addCategory
|
|
205
255
|
*
|
|
206
256
|
*/
|
|
207
|
-
function startNativeApp(package_name, activity, action, uri, flags, param) {
|
|
257
|
+
function startNativeApp(package_name, activity, action, uri, flags, param, category) {
|
|
208
258
|
var obj = {};
|
|
209
|
-
if (package_name
|
|
259
|
+
if (package_name && package_name !== "")
|
|
210
260
|
obj.packageName = package_name;
|
|
211
261
|
|
|
212
|
-
if (activity
|
|
262
|
+
if (activity && activity !== "")
|
|
213
263
|
obj.activity = activity;
|
|
214
264
|
|
|
215
|
-
if (action
|
|
265
|
+
if (action && action !== "")
|
|
216
266
|
obj.action = action;
|
|
217
267
|
|
|
218
|
-
if (uri
|
|
268
|
+
if (uri && uri !== "")
|
|
219
269
|
obj.uri = uri;
|
|
220
270
|
|
|
221
|
-
if (flags
|
|
271
|
+
if (flags && flags.length > 0)
|
|
222
272
|
obj.flags = flags;
|
|
223
273
|
|
|
224
|
-
if (param
|
|
274
|
+
if (param && param.length > 0)
|
|
225
275
|
obj.param = param;
|
|
226
276
|
|
|
277
|
+
if (category && category.length > 0)
|
|
278
|
+
obj.category = category
|
|
279
|
+
|
|
227
280
|
direct_call("startNativeApp", JSON.stringify(obj));
|
|
228
281
|
}
|
|
229
282
|
|
|
283
|
+
/**
|
|
284
|
+
* 启动安卓APP
|
|
285
|
+
* @param {string} package_name 包名
|
|
286
|
+
* @param {string} activity Activity方式启动
|
|
287
|
+
* @param {string} action Action方式启动
|
|
288
|
+
* @param {string} uri Uri方式启动
|
|
289
|
+
* @param {Array} flags 数组,用于intent.addFlags
|
|
290
|
+
* @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
|
|
291
|
+
* @param {Array} category string数组,用于intent.addCategory
|
|
292
|
+
*
|
|
293
|
+
*/
|
|
294
|
+
function openNativeApp(package_name, activity, action, uri, flags, param, category) {
|
|
295
|
+
var obj = {};
|
|
296
|
+
if (package_name && package_name !== "")
|
|
297
|
+
obj.packageName = package_name;
|
|
298
|
+
|
|
299
|
+
if (activity && activity !== "")
|
|
300
|
+
obj.activity = activity;
|
|
301
|
+
|
|
302
|
+
if (action && action !== "")
|
|
303
|
+
obj.action = action;
|
|
304
|
+
|
|
305
|
+
if (uri && uri !== "")
|
|
306
|
+
obj.uri = uri;
|
|
307
|
+
|
|
308
|
+
if (flags && flags.length > 0)
|
|
309
|
+
obj.flags = flags;
|
|
310
|
+
|
|
311
|
+
if (param && param.length > 0)
|
|
312
|
+
obj.param = param;
|
|
313
|
+
|
|
314
|
+
if (category && category.length > 0)
|
|
315
|
+
obj.category = category
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
// return window.jJsvRuntimeBridge.openNativeApp(JSON.stringify(obj));
|
|
319
|
+
return direct_call("openNativeApp", JSON.stringify(obj));
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
|
|
230
323
|
/**
|
|
231
324
|
* 发送安卓广播
|
|
232
325
|
* @param {string} package_name 包名
|
|
@@ -311,6 +404,19 @@ function getAppInfo() {
|
|
|
311
404
|
return direct_call("getAppInfo");
|
|
312
405
|
}
|
|
313
406
|
|
|
407
|
+
/**
|
|
408
|
+
* 通知JsView页面可见性准备好, 主要用于JsView界面从不可见到可见切换时,
|
|
409
|
+
* 避免JsView的未绘制的黑屏被看见, 一般会在android层用张图来进行遮盖, 然后通过此接口来通知拿掉遮盖
|
|
410
|
+
* @returns
|
|
411
|
+
*/
|
|
412
|
+
function notifyVisibleReady() {
|
|
413
|
+
// 触发一次swap, 并在绘制完成后再回调, 以保证绘制界面完整
|
|
414
|
+
window.JsvCoreApi.AddSwappedOnceListener(()=>{
|
|
415
|
+
direct_call("notifyVisibleReady");
|
|
416
|
+
});
|
|
417
|
+
window.Forge.sRenderBridge.RequestSwap();
|
|
418
|
+
}
|
|
419
|
+
|
|
314
420
|
/**
|
|
315
421
|
* 页面加载成功后调用去除启动图
|
|
316
422
|
*
|
|
@@ -321,7 +427,7 @@ function notifyPageLoadDone() {
|
|
|
321
427
|
|
|
322
428
|
function notifyPageLoaded() {
|
|
323
429
|
// 激活JsView的按键优化处理逻辑
|
|
324
|
-
window.JsvCoreApi.
|
|
430
|
+
window.JsvCoreApi.notifyPageLoaded?.();
|
|
325
431
|
|
|
326
432
|
direct_call("notifyPageLoaded");
|
|
327
433
|
}
|
|
@@ -608,6 +714,13 @@ function getBootTime(){
|
|
|
608
714
|
return direct_call("getBootTime")
|
|
609
715
|
}
|
|
610
716
|
|
|
717
|
+
/**
|
|
718
|
+
* reload页面并尝试下一个备份启动地址
|
|
719
|
+
*/
|
|
720
|
+
function tryNextBackupIntent() {
|
|
721
|
+
direct_call("tryNextBackupIntent");
|
|
722
|
+
}
|
|
723
|
+
|
|
611
724
|
|
|
612
725
|
// 显示声明,可以提高执行速度和利用上编辑器的成员名提示功能
|
|
613
726
|
const bridge = {
|
|
@@ -617,7 +730,9 @@ const bridge = {
|
|
|
617
730
|
getDeviceUUID,
|
|
618
731
|
getAndroidId,
|
|
619
732
|
openWindow,
|
|
733
|
+
openMiniApp,
|
|
620
734
|
startUrlInNewTab,
|
|
735
|
+
openAppInNewTab,
|
|
621
736
|
onWindowResult,
|
|
622
737
|
reloadWindow,
|
|
623
738
|
closePage,
|
|
@@ -625,10 +740,12 @@ const bridge = {
|
|
|
625
740
|
getSystemProperty,
|
|
626
741
|
getInstalledApps,
|
|
627
742
|
startNativeApp,
|
|
743
|
+
openNativeApp,
|
|
628
744
|
sendNativeBroadcast,
|
|
629
745
|
startService,
|
|
630
746
|
getDeviceInfo,
|
|
631
747
|
getAppInfo,
|
|
748
|
+
notifyVisibleReady,
|
|
632
749
|
notifyPageLoadDone,
|
|
633
750
|
notifyPageLoaded,
|
|
634
751
|
hasFavouriteFunction,
|
|
@@ -24,7 +24,9 @@ declare interface FontStyleDefine {
|
|
|
24
24
|
* @return {int} 文字宽度
|
|
25
25
|
**/
|
|
26
26
|
const getTextWidth = (text: string, style: FontStyleDefine) => {
|
|
27
|
-
|
|
27
|
+
if (text && typeof text != "string") {
|
|
28
|
+
text = "" + text; // 规避text为非字符串导致接口调用错误的问题
|
|
29
|
+
}
|
|
28
30
|
return Forge.TextUtils.GetTextWidth(text, style);
|
|
29
31
|
};
|
|
30
32
|
|
|
@@ -56,6 +58,13 @@ const getOneLineTextDrawWidth = (text: string, style: FontStyleDefine) => {
|
|
|
56
58
|
return Forge.TextUtils.GetOneLineTextDrawWidth(text, style);
|
|
57
59
|
}
|
|
58
60
|
|
|
61
|
+
const breakLines = (text: string, style: FontStyleDefine, width: number) => {
|
|
62
|
+
if (text && typeof text != "string") {
|
|
63
|
+
text = "" + text; // 规避text为非字符串导致接口调用错误的问题
|
|
64
|
+
}
|
|
65
|
+
return Forge.TextUtils.BreakLines(text, style, width);
|
|
66
|
+
}
|
|
67
|
+
|
|
59
68
|
const isRtl = (str: string) => {
|
|
60
69
|
//arabic
|
|
61
70
|
for (let i = 0; i < str.length; i++) {
|
|
@@ -150,7 +159,8 @@ const TextTools = {
|
|
|
150
159
|
isRtl,
|
|
151
160
|
getCursorPosition,
|
|
152
161
|
getCursorPositionCached,
|
|
153
|
-
recycleCursorPositionCache
|
|
162
|
+
recycleCursorPositionCache,
|
|
163
|
+
breakLines
|
|
154
164
|
}
|
|
155
165
|
|
|
156
166
|
export { getTextWidth, TextTools };
|