@shijiu/jsview-vue 2.3.0 → 2.3.728-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/browser/BrowserAudio.vue.mjs +4 -1
- package/bin/browser/BrowserJsvLatex.vue.mjs +9 -90
- package/bin/jsview-vue.mjs +13913 -8048
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +39 -3
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +225 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +225 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +5 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +25 -2
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +7 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +28 -4
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +2 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +1 -1
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +70 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +24 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +19 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +42 -0
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +5 -4
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +12 -4
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +9 -7
- package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +27 -14
- package/bin/types/utils/JsViewEngineWidget/index.d.ts +3 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +3 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +29 -2
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +107 -4
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +94 -18
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +24 -23
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +77 -20
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +77 -20
- package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
- package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/ForgeHandles.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
- package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +44 -1
- package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +43 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +54 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +13 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +5 -3
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +88 -25
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +4 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +49 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/index.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +12 -22
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +12 -22
- package/bin/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +11 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +101 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +61 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +58 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +2 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +2 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +55 -12
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +178 -35
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +119 -17
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +9 -3
- package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
- package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +22 -1
- package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +1 -1
- package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +5 -2
- package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +1 -1
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +39 -1
- package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +26 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +112 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +142 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +15 -3
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +22 -96
- package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +6 -0
- package/bin/types/utils/JsViewVueWidget/{JsvPosterDiv.vue.d.ts → TypesDiv/JsvPosterDiv.vue.d.ts} +9 -0
- package/bin/types/utils/JsViewVueWidget/{JsvPosterImage.vue.d.ts → TypesDiv/JsvPosterImage.vue.d.ts} +15 -3
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +90 -0
- package/bin/types/utils/JsViewVueWidget/index.d.ts +8 -4
- package/dist/types/utils/JsViewEngineWidget/CheckType.d.ts +7 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +106 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +128 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +25 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +23 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +12 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +9 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +16 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +412 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +751 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +9 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +82 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +31 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +80 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Slide.d.ts +25 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +52 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +69 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +6 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +20 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +21 -0
- package/dist/types/utils/JsViewEngineWidget/RangeModel.d.ts +166 -0
- package/dist/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +74 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +28 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +23 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +46 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +42 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/Fence.d.ts +62 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +21 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +103 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +28 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/index.d.ts +8 -0
- package/dist/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +160 -0
- package/dist/types/utils/JsViewEngineWidget/index.d.ts +21 -0
- package/dist/types/utils/JsViewPlugin/JsvAccount/JsvAccount.d.ts +46 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +22 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +212 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/CheckType.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +17 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +22 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +12 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +9 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/index.d.ts +7 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
- package/{bin/types/utils/JsViewPlugin/JsvLatex → dist/types/utils/JsViewPlugin/JsvAudio}/version.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +17 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +18 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +46 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +8 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +9 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/index.d.ts +8 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/version.d.mts +40 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +523 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +119 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +664 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-0.9.vue.d.ts +45 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue.d.ts +597 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +415 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +415 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
- package/dist/types/utils/JsViewPlugin/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueTools/BlobApi.d.ts +42 -0
- package/dist/types/utils/JsViewVueTools/ConstSymbol.d.ts +6 -0
- package/dist/types/utils/JsViewVueTools/DebugContentShellJBridge.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/DebugTool.d.ts +12 -0
- package/dist/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +14 -0
- package/dist/types/utils/JsViewVueTools/FeatureActive.d.ts +15 -0
- package/dist/types/utils/JsViewVueTools/ForgeConstDefine.d.ts +15 -0
- package/dist/types/utils/JsViewVueTools/ForgeHandles.d.ts +11 -0
- package/dist/types/utils/JsViewVueTools/JsvDynamicCssStyle.d.ts +33 -0
- package/dist/types/utils/JsViewVueTools/JsvDynamicKeyFrames.d.ts +40 -0
- package/dist/types/utils/JsViewVueTools/JsvFederationTools.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvHashHistory.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvImpactTracer.d.ts +44 -0
- package/dist/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/JsvPerformance.d.ts +9 -0
- package/dist/types/utils/JsViewVueTools/JsvPreDownloader.d.ts +55 -0
- package/dist/types/utils/JsViewVueTools/JsvRefTaker.d.ts +52 -0
- package/dist/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +378 -0
- package/dist/types/utils/JsViewVueTools/JsvStyleClass.d.ts +35 -0
- package/dist/types/utils/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +35 -0
- package/dist/types/utils/JsViewVueTools/JsvTextTools.d.ts +66 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureDefines.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +47 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +99 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +58 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +113 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +17 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +170 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +16 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +31 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +53 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueTools/NinePatchHelper.d.ts +25 -0
- package/dist/types/utils/JsViewVueTools/TextureManagerTools.d.ts +11 -0
- package/dist/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +7 -0
- package/dist/types/utils/JsViewVueTools/index.d.ts +29 -0
- package/dist/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +124 -0
- package/dist/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +148 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +35 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +102 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +37 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +77 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +54 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +44 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +17 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +26 -0
- package/dist/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +74 -0
- package/dist/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +34 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +33 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +105 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +65 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +62 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +108 -0
- package/dist/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +61 -0
- package/dist/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +91 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +106 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +100 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +108 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +63 -0
- package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.d.ts +4 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +228 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorState.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +106 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +107 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +11 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +12 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +118 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +244 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +169 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +22 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +24 -0
- package/dist/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +241 -0
- package/dist/types/utils/JsViewVueWidget/JsvHole.d.ts +19 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +52 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +98 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +32 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +33 -0
- package/dist/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +101 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/Constant.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/DataTree.d.ts +75 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +72 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +235 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +44 -0
- package/dist/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +93 -0
- package/dist/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +55 -0
- package/dist/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +68 -0
- package/dist/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +31 -0
- package/dist/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +85 -0
- package/dist/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +37 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +129 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +28 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +278 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +157 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +76 -0
- package/dist/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +114 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +58 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +18 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +70 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +85 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +15 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +21 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/index.d.ts +9 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +141 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +248 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +181 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +121 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +121 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +38 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
- package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +88 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +94 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +115 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +94 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +115 -0
- package/dist/types/utils/JsViewVueWidget/index.d.ts +53 -0
- package/dist/types/utils/index.d.ts +8 -0
- package/dist/utils/browser/BrowserAudio.vue.mjs +258 -0
- package/dist/utils/browser/BrowserJsvLatex.vue.mjs +64 -0
- package/dist/utils/export-sfc.mjs +12 -0
- package/dist/utils/index.mjs +29000 -0
- package/dist/utils/jsview-vue-common.mjs +39 -0
- package/package.json +1 -1
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +32 -16
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +51 -3
- package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +193 -89
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +347 -145
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.ts +15 -0
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +1603 -588
- package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +146 -38
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +39 -26
- package/utils/JsViewEngineWidget/MetroWidget/Utils.ts +6 -0
- package/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.ts +2 -1
- package/utils/JsViewEngineWidget/RectUtils.js +1 -1
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue +62 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.ts +260 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.ts +32 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.ts +236 -0
- package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +434 -264
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +54 -5
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +109 -41
- package/utils/JsViewEngineWidget/WidgetCommon.ts +29 -7
- package/utils/JsViewEngineWidget/index.ts +7 -2
- package/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue +4 -0
- package/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue +13 -13
- package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
- package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
- package/utils/JsViewPlugin/JsvLatex/Color.ts +104 -39
- package/utils/JsViewPlugin/JsvLatex/GetVersion.js +65 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +71 -17
- package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +14 -2
- package/utils/JsViewPlugin/JsvLatex/PluginLoader.js +63 -31
- package/utils/JsViewPlugin/JsvLatex/version.mjs +26 -13
- package/utils/JsViewPlugin/JsvPlayer/GetVersion.js +2 -1
- package/utils/JsViewPlugin/JsvPlayer/JsvMedia.js +402 -23
- package/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.js +100 -0
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +363 -468
- package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue → JsvPlayerBrowser-wasm.vue} +61 -11
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue +511 -0
- package/utils/JsViewPlugin/JsvPlayer/index-0.9.js +52 -10
- package/utils/JsViewPlugin/JsvPlayer/index.js +58 -9
- package/utils/JsViewPlugin/JsvPlayer/package.json +8 -0
- package/utils/JsViewVueTools/BlobApi.ts +55 -0
- package/utils/JsViewVueTools/FeatureActive.ts +5 -1
- package/utils/JsViewVueTools/ForgeHandles.ts +8 -2
- package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +125 -8
- package/utils/JsViewVueTools/JsvTextTools.ts +12 -2
- package/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.ts +180 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.ts +1 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.ts +304 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -0
- package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +30 -12
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +157 -51
- package/utils/JsViewVueTools/JsvTextureStore/Store.ts +33 -21
- package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +56 -41
- package/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.ts +92 -0
- package/utils/JsViewVueTools/JsvTextureStore/index.js +2 -0
- package/utils/JsViewVueTools/index.js +3 -1
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +111 -86
- package/utils/JsViewVueWidget/JsvDashPath.vue +150 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.ts +212 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.ts +146 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.ts +748 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/index.ts +1 -0
- package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +10 -1
- package/utils/JsViewVueWidget/JsvEnableRenderBreak.vue +6 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +11 -5
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue +3 -1
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +24 -8
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +269 -26
- package/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts +2 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.ts +24 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.ts +3 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +5 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.ts +10 -2
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +223 -100
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +245 -64
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +95 -29
- package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +27 -5
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +11 -2
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +30 -2
- package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +24 -7
- package/utils/JsViewVueWidget/JsvMarquee.vue +1 -1
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +12 -10
- package/utils/JsViewVueWidget/JsvNinePatch.vue +22 -12
- package/utils/JsViewVueWidget/JsvPieChart.vue +93 -70
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +34 -31
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +56 -25
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +11 -11
- package/utils/JsViewVueWidget/JsvSector.vue +66 -28
- package/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue +108 -0
- package/utils/JsViewVueWidget/JsvSoundPool.js +75 -12
- package/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue +543 -0
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +3 -3
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue +644 -0
- package/utils/JsViewVueWidget/JsvSwiper/index.js +3 -1
- package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +315 -299
- package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +56 -14
- package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +8 -6
- package/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue +54 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue +88 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue +177 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue +267 -0
- package/utils/JsViewVueWidget/index.js +9 -3
- package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
- package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
- /package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +0 -0
- /package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue.d.ts → JsvFreeMoveActor.vue.d.ts} +0 -0
- /package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvImpactTracer.js}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/*!
|
|
6
|
+
* createImpactCallback 参数说明:
|
|
7
|
+
* on_contact (function[]) 接受碰撞事件的回调
|
|
8
|
+
* on_dis_contact (function[]) 接受物体分离事件的回调
|
|
9
|
+
* 返回值:
|
|
10
|
+
* Object 句柄,用于传输给 createImpactTracer
|
|
11
|
+
*/
|
|
12
|
+
export function createImpactCallback(on_contact: any, on_dis_contact: any): any;
|
|
13
|
+
/*!
|
|
14
|
+
* createImpactTracer 参数说明:
|
|
15
|
+
* ele1 (Element) html element句柄,1号碰撞体
|
|
16
|
+
* ele2 (Element) html element句柄,2号碰撞体
|
|
17
|
+
* callback (Object) 由 createImpactCallback 创建的回调构造体句柄
|
|
18
|
+
* auto_froze (Object) 由 createImpactAutoFroze 创建的碰撞即停构造体句柄
|
|
19
|
+
* 返回值:
|
|
20
|
+
* Object 句柄,提供 Recycle() 函数用于停止碰撞检测,需要再componentWillUnmount进行调用(清理)
|
|
21
|
+
*/
|
|
22
|
+
export function createImpactTracer(ele1: any, ele2: any, callback: any, auto_froze: any): any;
|
|
23
|
+
/*!
|
|
24
|
+
* createImpactAutoFroze 参数说明:
|
|
25
|
+
* element_auto_froze_pre_impact (Array<Element>) 关联运动元素的列表,这些元素碰撞前一帧停止运动
|
|
26
|
+
* element_auto_froze_on_impact (Array<Element>) 关联运动元素的列表,这些元素碰撞当前帧停止运动
|
|
27
|
+
* 返回值:
|
|
28
|
+
* Object 句柄,用于传输给 createImpactTracer,也用于 updateImpactAutoFroze 调整关联元素
|
|
29
|
+
*
|
|
30
|
+
* 【注意点】
|
|
31
|
+
* 多个碰撞对可以共享同一个碰撞管理对象,并且建议共享同一个对象以提升效率
|
|
32
|
+
* 该管理对象中的view的列表可以通过 updateImpactAutoFrozeHandler进行更新,
|
|
33
|
+
* 更新后立刻在对所有的共享此管理对象的碰撞对中生效
|
|
34
|
+
*/
|
|
35
|
+
export function createImpactAutoFroze(element_auto_froze_pre_impact: any, element_auto_froze_on_impact: any): any;
|
|
36
|
+
/*!
|
|
37
|
+
* updateImpactAutoFroze 参数说明:
|
|
38
|
+
* handler (Object) 由 createImpactAutoFroze 创建的句柄
|
|
39
|
+
* element_auto_froze_pre_impact (Array<Element>) 关联运动元素的列表,这些元素碰撞前一帧停止运动
|
|
40
|
+
* element_auto_froze_on_impact (Array<Element>) 关联运动元素的列表,这些元素碰撞当前帧停止运动
|
|
41
|
+
* 返回值:
|
|
42
|
+
* 无
|
|
43
|
+
*/
|
|
44
|
+
export function updateImpactAutoFroze(handler: any, element_auto_froze_pre_impact: any, element_auto_froze_on_impact: any): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvInteractionMode.js}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export const KEY_MODE: 1;
|
|
6
|
+
export const TOUCH_MODE: 2;
|
|
7
|
+
export const JsvInteractionMode: import("vue").Ref<number>;
|
|
8
|
+
export function jsvTouchModeSwitcherCreate(): void;
|
|
9
|
+
export function jsvTouchModeSwitcherDestroy(): void;
|
|
10
|
+
export function hasJsvTouchModeSwitcher(): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvPerformance.ts}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export declare class JsvPerformance {
|
|
6
|
+
private static posterSingleThreadDecode;
|
|
7
|
+
static setPosterSingleThreadDecode(v: boolean): void;
|
|
8
|
+
static getPosterSingleThreadDecode(): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvPreDownloader.ts}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file JsvPreDownloader 通用下载器,可以在不同的环境中进行资源下载操作。
|
|
7
|
+
*
|
|
8
|
+
* JsvPreDownloader.download:实例方法,根据传入参数来下载资源。支持单个url或者url列表,返回Promise对象。
|
|
9
|
+
* 参数:
|
|
10
|
+
* url {string | Array}: (必填)图片url
|
|
11
|
+
* netSetting {string}: 网络设置
|
|
12
|
+
* isImage {boolean} : 是否为图片
|
|
13
|
+
*
|
|
14
|
+
* JsvPreDownloader.buildDownloadItem: 实例方法,创建预下载信息项。
|
|
15
|
+
* 参数:
|
|
16
|
+
* url {string}: (必填)图片url
|
|
17
|
+
* netSetting {string}: 网络设置
|
|
18
|
+
* isImage {boolean} : 是否为图片
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/*!
|
|
23
|
+
* @file JsvPreDownloader 通用下载器,可以在不同的环境中进行资源下载操作。
|
|
24
|
+
*
|
|
25
|
+
* JsvPreDownloader.download:实例方法,根据传入参数来下载资源。支持单个url或者url列表,返回Promise对象。
|
|
26
|
+
* 参数:
|
|
27
|
+
* url {string | Array}: (必填)图片url
|
|
28
|
+
* netSetting {string}: 网络设置
|
|
29
|
+
* isImage {boolean} : 是否为图片
|
|
30
|
+
*
|
|
31
|
+
* JsvPreDownloader.buildDownloadItem: 实例方法,创建预下载信息项。
|
|
32
|
+
* 参数:
|
|
33
|
+
* url {string}: (必填)图片url
|
|
34
|
+
* netSetting {string}: 网络设置
|
|
35
|
+
* isImage {boolean} : 是否为图片
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
interface DownloadListItem {
|
|
39
|
+
url: string;
|
|
40
|
+
netSetting?: string;
|
|
41
|
+
isImage?: boolean;
|
|
42
|
+
}
|
|
43
|
+
declare abstract class JsvPreDownloaderBase {
|
|
44
|
+
download(url: string | Array<DownloadListItem>, netSetting?: string, isImage?: boolean): Promise<unknown>;
|
|
45
|
+
buildDownloadItem(url: string, netSetting?: string, isImage?: boolean): DownloadListItem;
|
|
46
|
+
protected abstract downloadInner(url: string, netSetting: string | undefined, isImage: boolean): Promise<Object>;
|
|
47
|
+
}
|
|
48
|
+
declare class JsvPreDownloaderInJsView extends JsvPreDownloaderBase {
|
|
49
|
+
protected downloadInner(url: string, netSetting?: string | undefined, isImage?: boolean): Promise<Object>;
|
|
50
|
+
}
|
|
51
|
+
declare class JsvPreDownloaderInBrowser extends JsvPreDownloaderBase {
|
|
52
|
+
protected downloadInner(url: string, netSetting?: string | undefined, isImage?: boolean): Promise<Object>;
|
|
53
|
+
}
|
|
54
|
+
declare const exportObj: typeof JsvPreDownloaderInJsView | typeof JsvPreDownloaderInBrowser;
|
|
55
|
+
export { exportObj as JsvPreDownloader };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvRefTaker.js}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file JsvRefTaker模块
|
|
7
|
+
*
|
|
8
|
+
* 用于解决 script setup 写法,不容易通过 this.$ref.xxxx 拿到子模块的句柄,
|
|
9
|
+
* 但使用ref(null)的方式构筑的深度reactive对象又会严重影响element的内部处理性能的问题
|
|
10
|
+
*
|
|
11
|
+
* 使用方法:
|
|
12
|
+
* <script setup>
|
|
13
|
+
* const element_ref = buildTaker();
|
|
14
|
+
*
|
|
15
|
+
* onMounted(()=>{
|
|
16
|
+
* // onMounted以后,可以用 .current 访问到引用
|
|
17
|
+
* console.log(element.current)
|
|
18
|
+
* })
|
|
19
|
+
* <\/script>
|
|
20
|
+
*
|
|
21
|
+
* <template>
|
|
22
|
+
* <div :ref="element_ref.fnc" />
|
|
23
|
+
* </template>
|
|
24
|
+
*
|
|
25
|
+
********************/
|
|
26
|
+
|
|
27
|
+
export default buildTaker;
|
|
28
|
+
/*!
|
|
29
|
+
* @file JsvRefTaker模块
|
|
30
|
+
*
|
|
31
|
+
* 用于解决 script setup 写法,不容易通过 this.$ref.xxxx 拿到子模块的句柄,
|
|
32
|
+
* 但使用ref(null)的方式构筑的深度reactive对象又会严重影响element的内部处理性能的问题
|
|
33
|
+
*
|
|
34
|
+
* 使用方法:
|
|
35
|
+
* <script setup>
|
|
36
|
+
* const element_ref = buildTaker();
|
|
37
|
+
*
|
|
38
|
+
* onMounted(()=>{
|
|
39
|
+
* // onMounted以后,可以用 .current 访问到引用
|
|
40
|
+
* console.log(element.current)
|
|
41
|
+
* })
|
|
42
|
+
* </script>
|
|
43
|
+
*
|
|
44
|
+
* <template>
|
|
45
|
+
* <div :ref="element_ref.fnc" />
|
|
46
|
+
* </template>
|
|
47
|
+
*
|
|
48
|
+
********************/
|
|
49
|
+
declare function buildTaker(): {
|
|
50
|
+
fnc: null;
|
|
51
|
+
current: null;
|
|
52
|
+
};
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvRuntimeBridge.js}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
@file JsvRuntimeBridge.js
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export { bridge as jJsvRuntimeBridge };
|
|
10
|
+
declare namespace bridge {
|
|
11
|
+
export { getMac };
|
|
12
|
+
export { getWireMac };
|
|
13
|
+
export { getWifiMac };
|
|
14
|
+
export { getDeviceUUID };
|
|
15
|
+
export { getAndroidId };
|
|
16
|
+
export { openWindow };
|
|
17
|
+
export { openMiniApp };
|
|
18
|
+
export { startUrlInNewTab };
|
|
19
|
+
export { openAppInNewTab };
|
|
20
|
+
export { onWindowResult };
|
|
21
|
+
export { reloadWindow };
|
|
22
|
+
export { closePage };
|
|
23
|
+
export { getStartParams };
|
|
24
|
+
export { getSystemProperty };
|
|
25
|
+
export { getInstalledApps };
|
|
26
|
+
export { startNativeApp };
|
|
27
|
+
export { openNativeApp };
|
|
28
|
+
export { sendNativeBroadcast };
|
|
29
|
+
export { startService };
|
|
30
|
+
export { getDeviceInfo };
|
|
31
|
+
export { getAppInfo };
|
|
32
|
+
export { notifyVisibleReady };
|
|
33
|
+
export { notifyPageLoadDone };
|
|
34
|
+
export { notifyPageLoaded };
|
|
35
|
+
export { hasFavouriteFunction };
|
|
36
|
+
export { addFavourite };
|
|
37
|
+
export { updateFavourite };
|
|
38
|
+
export { removeFavourite };
|
|
39
|
+
export { getFavourite };
|
|
40
|
+
export { getFavouriteAll };
|
|
41
|
+
export { setPopupInitSize };
|
|
42
|
+
export { popupResizePosition };
|
|
43
|
+
export { popupGainFocus };
|
|
44
|
+
export { popupDiscardFocus };
|
|
45
|
+
export { warmUpView };
|
|
46
|
+
export { warmLoadView };
|
|
47
|
+
export { closeWarmedView };
|
|
48
|
+
export { preDownloadSdk };
|
|
49
|
+
export { getNetworkTypeStatusImmediate };
|
|
50
|
+
export { registerNetStateListener };
|
|
51
|
+
export { unRegisterNetStateListener };
|
|
52
|
+
export { getSnId };
|
|
53
|
+
export { getEmmcCid };
|
|
54
|
+
export { providerQuery };
|
|
55
|
+
export { providerInsert };
|
|
56
|
+
export { providerDelete };
|
|
57
|
+
export { providerUpdate };
|
|
58
|
+
export { getBootTime };
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 获取设备mac地址,优先获取有线mac,无则获取wifi mac
|
|
62
|
+
* @returns {string} mac address
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
declare function getMac(): string;
|
|
66
|
+
/**
|
|
67
|
+
* 获取设备有线mac地址
|
|
68
|
+
* @returns {string} mac address
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
declare function getWireMac(): string;
|
|
72
|
+
/**
|
|
73
|
+
* 获取设备wifi mac地址
|
|
74
|
+
* @returns {string} mac address
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
declare function getWifiMac(): string;
|
|
78
|
+
/**
|
|
79
|
+
* 获取设备UUID
|
|
80
|
+
* @returns {string} UUID
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
declare function getDeviceUUID(): string;
|
|
84
|
+
/**
|
|
85
|
+
* 获取设备Android ID
|
|
86
|
+
* @returns {string} Android ID
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
declare function getAndroidId(): string;
|
|
90
|
+
/**
|
|
91
|
+
* 打开另外一个小程序
|
|
92
|
+
* @param {string} url 小程序url
|
|
93
|
+
* @param {string} startup_image 启动图url
|
|
94
|
+
* @param {string} startup_video 启动视频url
|
|
95
|
+
* @param {int} startup_duration 启动图时长,默认0
|
|
96
|
+
* @param {int} add_history 是否添加历史,0不添加,1添加
|
|
97
|
+
* @returns {Promise} 可用于监听新的小程序返回的结果
|
|
98
|
+
*/
|
|
99
|
+
declare function openWindow(url: string, startup_image: string, startup_video: string, startup_duration: int, add_history: int): Promise<any>;
|
|
100
|
+
/**
|
|
101
|
+
* 打开另外一个小程序
|
|
102
|
+
* @param {string} url 小程序url
|
|
103
|
+
* @param {string} startup_image 启动图url
|
|
104
|
+
* @param {string} startup_video 启动视频url
|
|
105
|
+
* @param {int} startup_duration 启动图时长,默认0
|
|
106
|
+
* @param {int} add_history 是否添加历史,0不添加,1添加
|
|
107
|
+
* @returns {Promise} 比openWindow返回信息更丰富, 可获取启动者的更多返回信息
|
|
108
|
+
*/
|
|
109
|
+
declare function openMiniApp(url: string, startup_image: string, startup_video: string, startup_duration: int, add_history: int): Promise<any>;
|
|
110
|
+
/**
|
|
111
|
+
* 用新的进程打开另外一个小程序
|
|
112
|
+
* @param {string} url 小程序url
|
|
113
|
+
* @param {string} startup_image 启动图url
|
|
114
|
+
* @param {string} startup_video 启动视频url
|
|
115
|
+
* @param {int} startup_duration 启动图时长,默认0
|
|
116
|
+
* @param {int} add_history 是否添加历史,0不添加,1添加
|
|
117
|
+
* @returns {Promise} 可用于监听新的小程序返回的结果
|
|
118
|
+
*/
|
|
119
|
+
declare function startUrlInNewTab(url: string, startup_image: string, startup_video: string, startup_duration: int, add_history: int): Promise<any>;
|
|
120
|
+
/**
|
|
121
|
+
* 用新的进程打开另外一个小程序
|
|
122
|
+
* @param {string} url 小程序url
|
|
123
|
+
* @param {string} startup_image 启动图url
|
|
124
|
+
* @param {string} startup_video 启动视频url
|
|
125
|
+
* @param {int} startup_duration 启动图时长,默认0
|
|
126
|
+
* @param {int} add_history 是否添加历史,0不添加,1添加
|
|
127
|
+
* @returns {Promise}
|
|
128
|
+
*/
|
|
129
|
+
declare function openAppInNewTab(url: string, startup_image: string, startup_video: string, startup_duration: int, add_history: int): Promise<any>;
|
|
130
|
+
/**
|
|
131
|
+
* 用于给上一个小程序返回结果,通常与startUrlInNewTab和openWindow配合使用
|
|
132
|
+
* @param {string} data 返回给上一个小程序的结果
|
|
133
|
+
*/
|
|
134
|
+
declare function onWindowResult(data: string): void;
|
|
135
|
+
/**
|
|
136
|
+
* 重新加载一个小程序覆盖当前小程序
|
|
137
|
+
* @param {string} url 小程序url
|
|
138
|
+
* @param {string} startup_image 启动图url
|
|
139
|
+
* @param {string} startup_video 启动视频url
|
|
140
|
+
* @param {int} startup_duration 启动图时长,默认0
|
|
141
|
+
* @param {int} add_history 是否添加历史,0不添加,1添加
|
|
142
|
+
*/
|
|
143
|
+
declare function reloadWindow(url: string, startup_image: string, startup_video: string, startup_duration: int, add_history: int): any;
|
|
144
|
+
/**
|
|
145
|
+
* 关闭当前小程序
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
148
|
+
declare function closePage(): void;
|
|
149
|
+
/**
|
|
150
|
+
* 获取启动内核版本和引擎
|
|
151
|
+
* @returns {Object} 包含
|
|
152
|
+
* COREVERSIONRANGE: 启动时设定的内核版本范围
|
|
153
|
+
* ENGINE: 启动时设定的Js引擎的URL
|
|
154
|
+
*/
|
|
155
|
+
declare function getStartParams(): Object;
|
|
156
|
+
/**
|
|
157
|
+
* 获取系统属性
|
|
158
|
+
* @param {string} key 属性名称,比如:ro.product.model。
|
|
159
|
+
* @returns {string} 属性值
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
declare function getSystemProperty(key: string): string;
|
|
163
|
+
/**
|
|
164
|
+
* 获取已安装应用列表
|
|
165
|
+
* @returns {string} 应用列表,JSON结构的数组
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
declare function getInstalledApps(): string;
|
|
169
|
+
/**
|
|
170
|
+
* 启动安卓APP
|
|
171
|
+
* @param {string} package_name 包名
|
|
172
|
+
* @param {string} activity Activity方式启动
|
|
173
|
+
* @param {string} action Action方式启动
|
|
174
|
+
* @param {string} uri Uri方式启动
|
|
175
|
+
* @param {Array} flags 数组,用于intent.addFlags
|
|
176
|
+
* @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
|
|
177
|
+
* @param {Array} category string数组,用于intent.addCategory
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
declare function startNativeApp(package_name: string, activity: string, action: string, uri: string, flags: any[], param: any[], category: any[]): void;
|
|
181
|
+
/**
|
|
182
|
+
* 启动安卓APP
|
|
183
|
+
* @param {string} package_name 包名
|
|
184
|
+
* @param {string} activity Activity方式启动
|
|
185
|
+
* @param {string} action Action方式启动
|
|
186
|
+
* @param {string} uri Uri方式启动
|
|
187
|
+
* @param {Array} flags 数组,用于intent.addFlags
|
|
188
|
+
* @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
|
|
189
|
+
* @param {Array} category string数组,用于intent.addCategory
|
|
190
|
+
*
|
|
191
|
+
*/
|
|
192
|
+
declare function openNativeApp(package_name: string, activity: string, action: string, uri: string, flags: any[], param: any[], category: any[]): any;
|
|
193
|
+
/**
|
|
194
|
+
* 发送安卓广播
|
|
195
|
+
* @param {string} package_name 包名
|
|
196
|
+
* @param {string} broadcast 广播类名,比如“com.qcode.MyBroadcastReceiver”,用于intent.setComponent()
|
|
197
|
+
* @param {string} action 对应 intent.setAction()
|
|
198
|
+
* @param {string} uri 对应intent.setData()
|
|
199
|
+
* @param {Array} flags 数组,用于intent.addFlags
|
|
200
|
+
* @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
|
|
201
|
+
*
|
|
202
|
+
*/
|
|
203
|
+
declare function sendNativeBroadcast(package_name: string, broadcast: string, action: string, uri: string, flags: any[], param: any[]): void;
|
|
204
|
+
/**
|
|
205
|
+
* 启动Android 服务
|
|
206
|
+
* @param {string} package_name 包名
|
|
207
|
+
* @param {string} services 服务类名,比如“com.qcode.MyService”,用于intent.setComponent()
|
|
208
|
+
* @param {string} action 对应 intent.setAction()
|
|
209
|
+
* @param {string} uri 对应intent.setData()
|
|
210
|
+
* @param {Array} flags 数组,用于intent.addFlags
|
|
211
|
+
* @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
|
|
212
|
+
* @param {boolean} is_foreground 是否使用startForegroundService
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
215
|
+
declare function startService(package_name: string, services: string, action: string, uri: string, flags: any[], param: any[], is_foreground: boolean): void;
|
|
216
|
+
/**
|
|
217
|
+
* 获取设备信息
|
|
218
|
+
* @returns {string} 终端设备信息,JSON数据结构
|
|
219
|
+
*
|
|
220
|
+
*/
|
|
221
|
+
declare function getDeviceInfo(): string;
|
|
222
|
+
/**
|
|
223
|
+
* 获取自己的app信息
|
|
224
|
+
* @returns
|
|
225
|
+
*/
|
|
226
|
+
declare function getAppInfo(): any;
|
|
227
|
+
/**
|
|
228
|
+
* 通知JsView页面可见性准备好, 主要用于JsView界面从不可见到可见切换时,
|
|
229
|
+
* 避免JsView的未绘制的黑屏被看见, 一般会在android层用张图来进行遮盖, 然后通过此接口来通知拿掉遮盖
|
|
230
|
+
* @returns
|
|
231
|
+
*/
|
|
232
|
+
declare function notifyVisibleReady(): void;
|
|
233
|
+
/**
|
|
234
|
+
* 页面加载成功后调用去除启动图
|
|
235
|
+
*
|
|
236
|
+
*/
|
|
237
|
+
declare function notifyPageLoadDone(): void;
|
|
238
|
+
declare function notifyPageLoaded(): void;
|
|
239
|
+
/**
|
|
240
|
+
* 是否支持收藏功能
|
|
241
|
+
* @returns {boolean} true支持,false不支持
|
|
242
|
+
*
|
|
243
|
+
*/
|
|
244
|
+
declare function hasFavouriteFunction(): boolean;
|
|
245
|
+
/**
|
|
246
|
+
* 添加收藏
|
|
247
|
+
* @param {string} url 收藏的url
|
|
248
|
+
* @param {function} callback 执行接口回调, 处理可能被用户否决
|
|
249
|
+
*
|
|
250
|
+
*/
|
|
251
|
+
declare function addFavourite(url: string, callback: Function): void;
|
|
252
|
+
/**
|
|
253
|
+
* 更新收藏
|
|
254
|
+
* @param {string} url 收藏的url
|
|
255
|
+
* @param {function} callback 执行接口回调, 处理可能被用户否决
|
|
256
|
+
*
|
|
257
|
+
*/
|
|
258
|
+
declare function updateFavourite(url: string, callback: Function): void;
|
|
259
|
+
/**
|
|
260
|
+
* 删除指定收藏
|
|
261
|
+
* @param {string} app_name app name 唯一标识
|
|
262
|
+
* @param {function} callback 执行接口回调, 处理可能被用户否决
|
|
263
|
+
*
|
|
264
|
+
*/
|
|
265
|
+
declare function removeFavourite(app_name: string, callback: Function): void;
|
|
266
|
+
/**
|
|
267
|
+
* 获取指定收藏
|
|
268
|
+
* @param {string} app_name app name 唯一标识
|
|
269
|
+
*/
|
|
270
|
+
declare function getFavourite(app_name: string): any;
|
|
271
|
+
/**
|
|
272
|
+
* 获取所有收藏
|
|
273
|
+
*
|
|
274
|
+
*/
|
|
275
|
+
declare function getFavouriteAll(): any;
|
|
276
|
+
/**
|
|
277
|
+
* 浮窗控制接口,设置从本浮窗界面进行预热的二级浮窗的启动默认尺寸(若不设置则为全屏)
|
|
278
|
+
* @param {string} mode 全屏模式还是需要Resize的模式。取值范围: "full" 或者 "mini"
|
|
279
|
+
* 设置成 "mini" 模式后,启动后的界面内需要调用popupResizePosition来调整尺寸才能可见
|
|
280
|
+
*/
|
|
281
|
+
declare function setPopupInitSize(mode: string): void;
|
|
282
|
+
/**
|
|
283
|
+
* 浮窗控制接口,设置浮窗显示区域,以相对定位的方式调整弹出框的位置(弹出框弹出后先以尺寸1x1的方式展现)
|
|
284
|
+
* @param {string} align 横纵对齐方式,有left, right, bottom, top, center可选择
|
|
285
|
+
* 例如: 右下角"right bottom", 居中"center center"
|
|
286
|
+
* @param {number} max_width 显示区域最大宽度(占屏幕百分比)
|
|
287
|
+
* @param {number} max_height 显示区域最大高度(占屏幕百分比)
|
|
288
|
+
* @param {number} aspect 横纵比设定
|
|
289
|
+
* 显示区域根据 max_width, max_height, aspect 来计算出同时满足3个条件的最大区域
|
|
290
|
+
*/
|
|
291
|
+
declare function popupResizePosition(align: string, max_width: number, max_height: number, aspect: number): void;
|
|
292
|
+
/**
|
|
293
|
+
* 浮窗系统认为自己准备好后,调用此接口,获取设备的焦点。若不调用的话,默认浮窗系统捕获的焦点
|
|
294
|
+
*/
|
|
295
|
+
declare function popupGainFocus(): void;
|
|
296
|
+
declare function popupDiscardFocus(): void;
|
|
297
|
+
/**
|
|
298
|
+
* 页面预热接口,预热页面将会将以一个新的FrameLayout(内含JsView)的方式加载一个新的应用
|
|
299
|
+
* 但这个应用在warmLoadView之前,不会创建texture/surface的实际描画资源,也不会加载图片
|
|
300
|
+
* 仅加载所有JS代码,并正常走完所有启动逻辑(包括描画逻辑),但不会走setTimeout对应的延时逻辑,也不会显示
|
|
301
|
+
* 预热的界面可以极大加速界面切换的时间,例如应用跳转到购物类界面
|
|
302
|
+
* mode为1表示全预热,app_url不能为空,mode为2表示只预热engine url,如果app_url不为空,engine url来自于app_ur
|
|
303
|
+
* 否则来自于当前使用的engine url,app_url表示小程序的链接。
|
|
304
|
+
* 【特别注意】warmUp起来的view,在warmLoadView调用之前,若启动者JsView关闭的话,此View应该在
|
|
305
|
+
* View管理模块被清理掉,以防泄露,但在warmLoadView完成后,就不需要进行关联清理,请管理模块务必保证此机制。
|
|
306
|
+
* [参数]
|
|
307
|
+
* int mode 预热模式,1:全预热,目前只支持1
|
|
308
|
+
* String app_url 要预热的app_url,当半预热时,可以为null
|
|
309
|
+
* [返回值]
|
|
310
|
+
* int: 为view_refer_id值,预热后的View的ID,用于后续的warmLoadView和closeWarmView使用
|
|
311
|
+
*/
|
|
312
|
+
declare function warmUpView(mode: any, app_url: any): any;
|
|
313
|
+
/**
|
|
314
|
+
* 将warmUpView后的View展示出来
|
|
315
|
+
* 当warmUpView中设置了app_url时,仍可以新的app_url调整history hash(#)部分进行子页面切换
|
|
316
|
+
*
|
|
317
|
+
* @param {number} view_refer_id warmUpView调用后返回来的View ID
|
|
318
|
+
* @param {string} app_url 无意义,请传固定值 null
|
|
319
|
+
* @param {boolean} add_history 启动的界面是否进访问历史列表
|
|
320
|
+
* @returns {Promise} 可用于监听新的小程序返回的结果
|
|
321
|
+
*/
|
|
322
|
+
declare function warmLoadView(view_refer_id: number, app_url: string, add_history: boolean): Promise<any>;
|
|
323
|
+
/**
|
|
324
|
+
* 关闭warmUp后未进行warmLoad的View,释放资源
|
|
325
|
+
* @param {number} view_refer_id warmUpView调用后返回来的View ID
|
|
326
|
+
*/
|
|
327
|
+
declare function closeWarmedView(view_refer_id: number): void;
|
|
328
|
+
/**
|
|
329
|
+
* 触发预下载内核
|
|
330
|
+
* @param {string} core_version 带branch(主分支版本不带此信息)和版本信息的内核版本,
|
|
331
|
+
* 例如: 1021265_release_build_xxx
|
|
332
|
+
* @returns promise 对象,用于监听下载完成与下载失败
|
|
333
|
+
*/
|
|
334
|
+
declare function preDownloadSdk(core_version: string): any;
|
|
335
|
+
declare function getNetworkTypeStatusImmediate(): any;
|
|
336
|
+
declare function registerNetStateListener(callback: any): any;
|
|
337
|
+
declare function unRegisterNetStateListener(callback: any): any;
|
|
338
|
+
declare function getSnId(): any;
|
|
339
|
+
declare function getEmmcCid(): any;
|
|
340
|
+
/**
|
|
341
|
+
* android ContentProvider 查询接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.query 接口
|
|
342
|
+
* @param {string} uri
|
|
343
|
+
* @param {string} projection
|
|
344
|
+
* @param {string} selection
|
|
345
|
+
* @param {string[]} selectionArgs
|
|
346
|
+
* @param {string} sortOrder
|
|
347
|
+
* @returns
|
|
348
|
+
*/
|
|
349
|
+
declare function providerQuery(uri: string, projection: string, selection: string, selectionArgs: string[], sortOrder: string): any;
|
|
350
|
+
/**
|
|
351
|
+
* android ContentProvider 插入接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.insert 接口
|
|
352
|
+
* @param {string} uri
|
|
353
|
+
* @param {object} contentValue
|
|
354
|
+
* @returns
|
|
355
|
+
*/
|
|
356
|
+
declare function providerInsert(uri: string, contentValue: object): any;
|
|
357
|
+
/**
|
|
358
|
+
* android ContentProvider 删除接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.delete 接口
|
|
359
|
+
* @param {string} uri
|
|
360
|
+
* @param {string} selection
|
|
361
|
+
* @param {string[]} selectionArgs
|
|
362
|
+
* @returns
|
|
363
|
+
*/
|
|
364
|
+
declare function providerDelete(uri: string, selection: string, selectionArgs: string[]): any;
|
|
365
|
+
/**
|
|
366
|
+
* android ContentProvider 更新接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.update 接口
|
|
367
|
+
* @param {string} uri
|
|
368
|
+
* @param {object} contentValue
|
|
369
|
+
* @param {string} selection
|
|
370
|
+
* @param {string[]} selectionArgs
|
|
371
|
+
* @returns
|
|
372
|
+
*/
|
|
373
|
+
declare function providerUpdate(uri: string, contentValue: object, selection: string, selectionArgs: string[]): any;
|
|
374
|
+
/**
|
|
375
|
+
*
|
|
376
|
+
* @returns 设备开机时长
|
|
377
|
+
*/
|
|
378
|
+
declare function getBootTime(): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvStyleClass.js}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export class JsvStyleClass {
|
|
6
|
+
constructor(styles_define: any);
|
|
7
|
+
_Name: string | null;
|
|
8
|
+
_Styles: any;
|
|
9
|
+
_StyleGroup: any;
|
|
10
|
+
_JsvInnerAttach: any;
|
|
11
|
+
reset(styles_define: any): void;
|
|
12
|
+
getName(): string | null;
|
|
13
|
+
recycle(): void;
|
|
14
|
+
_UpdateInner(styles_define: any): void;
|
|
15
|
+
_RecycleInner(): void;
|
|
16
|
+
classType(): null;
|
|
17
|
+
getStyles(): any;
|
|
18
|
+
getAttach(): any;
|
|
19
|
+
updateAttach(new_attach: any): void;
|
|
20
|
+
}
|
|
21
|
+
export class JsvTextStyleClass extends JsvStyleClass {
|
|
22
|
+
jsvTextAttributes: {
|
|
23
|
+
jsv_text_line_align: string;
|
|
24
|
+
jsv_text_vertical_align: string;
|
|
25
|
+
};
|
|
26
|
+
setVerticalAlign(new_align: any): void;
|
|
27
|
+
setLineAlign(new_align: any): void;
|
|
28
|
+
getVerticalAlign(): string;
|
|
29
|
+
getLineAlign(): string;
|
|
30
|
+
classType(): string;
|
|
31
|
+
}
|
|
32
|
+
export function combinedStyles(style_array: any, extract_all: any): {
|
|
33
|
+
combinedClass: string;
|
|
34
|
+
combinedStyle: {};
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvStyleSheetsDeclarer.js}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file
|
|
7
|
+
*
|
|
8
|
+
* 【模块 export 内容】
|
|
9
|
+
* JsvStyleSheetsDeclarer: 动态和删除全局的 CssStyle
|
|
10
|
+
* 接口:
|
|
11
|
+
* DeclareClass(className:string, styleProperties:object) 新加全局Class
|
|
12
|
+
* className: 定义的class的名称, 为了规避全局重名,建议用'-'进行区域区分,例如主界面叫 main-xxxx, 详情页用 detail-xxxx
|
|
13
|
+
* styleProperties: 具体的style定义的对象,内部的名字采用驼峰规范
|
|
14
|
+
*
|
|
15
|
+
* UndeclareClass(className:string) 删除全局Class
|
|
16
|
+
* className: 通过 DeclareClass 声明的出来的动态className
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/*!
|
|
20
|
+
* @file
|
|
21
|
+
*
|
|
22
|
+
* 【模块 export 内容】
|
|
23
|
+
* JsvStyleSheetsDeclarer: 动态和删除全局的 CssStyle
|
|
24
|
+
* 接口:
|
|
25
|
+
* DeclareClass(className:string, styleProperties:object) 新加全局Class
|
|
26
|
+
* className: 定义的class的名称, 为了规避全局重名,建议用'-'进行区域区分,例如主界面叫 main-xxxx, 详情页用 detail-xxxx
|
|
27
|
+
* styleProperties: 具体的style定义的对象,内部的名字采用驼峰规范
|
|
28
|
+
*
|
|
29
|
+
* UndeclareClass(className:string) 删除全局Class
|
|
30
|
+
* className: 通过 DeclareClass 声明的出来的动态className
|
|
31
|
+
*/
|
|
32
|
+
export class JsvStyleSheetsDeclarer {
|
|
33
|
+
static DeclareClass(className: any, styleProperties: any): void;
|
|
34
|
+
static UndeclareClass(className: any): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvTextTools.ts}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
declare interface FontStyleDefine {
|
|
6
|
+
fontFamily: string;
|
|
7
|
+
fontSize: number;
|
|
8
|
+
fontStyle: string;
|
|
9
|
+
fontWeight: string;
|
|
10
|
+
}
|
|
11
|
+
/*!
|
|
12
|
+
* 获取文字宽度, 一般用于测量文字宽度
|
|
13
|
+
*
|
|
14
|
+
* @param {string} text 文字
|
|
15
|
+
* @param {object} style 文字的css style
|
|
16
|
+
* @return {int} 文字宽度
|
|
17
|
+
**/
|
|
18
|
+
declare const getTextWidth: (text: string, style: FontStyleDefine) => any;
|
|
19
|
+
declare interface CssFontStyle {
|
|
20
|
+
fontFamily: string;
|
|
21
|
+
fontSize: number;
|
|
22
|
+
fontStyle: string;
|
|
23
|
+
fontWeight: string;
|
|
24
|
+
}
|
|
25
|
+
declare interface CssTextLayoutStyle {
|
|
26
|
+
width?: number;
|
|
27
|
+
height?: number;
|
|
28
|
+
textAlign?: String;
|
|
29
|
+
lineHeight?: number;
|
|
30
|
+
whiteSpace?: String;
|
|
31
|
+
wordWrap?: String;
|
|
32
|
+
textOverflow?: String;
|
|
33
|
+
}
|
|
34
|
+
declare interface CursorResult {
|
|
35
|
+
parseSuccess: boolean;
|
|
36
|
+
x: number;
|
|
37
|
+
y: number;
|
|
38
|
+
cachedId: number;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* 获取光标的位置
|
|
42
|
+
*
|
|
43
|
+
* @public
|
|
44
|
+
* @func GetCursorPosition
|
|
45
|
+
* @return {CursorResult} 光标的所在位置{x:0,y:0}
|
|
46
|
+
**/
|
|
47
|
+
declare function getCursorPosition(cursorOffset: number, text: String, fontStyle: CssFontStyle, textLayoutStyle: CssTextLayoutStyle, buildCache: boolean): CursorResult;
|
|
48
|
+
/**
|
|
49
|
+
* 获取光标的位置
|
|
50
|
+
*
|
|
51
|
+
* @public
|
|
52
|
+
* @func GetCursorPositionCached
|
|
53
|
+
* @return {CursorResult} 光标的所在位置{x:0,y:0}
|
|
54
|
+
**/
|
|
55
|
+
declare function getCursorPositionCached(cachedId: number, cursorOffset: number): CursorResult;
|
|
56
|
+
declare function recycleCursorPositionCache(cached_id: number): void;
|
|
57
|
+
declare const TextTools: {
|
|
58
|
+
getOneLineTextDrawWidth: (text: string, style: FontStyleDefine) => any;
|
|
59
|
+
getTextWidth: (text: string, style: FontStyleDefine) => any;
|
|
60
|
+
isRtl: (str: string) => boolean;
|
|
61
|
+
getCursorPosition: typeof getCursorPosition;
|
|
62
|
+
getCursorPositionCached: typeof getCursorPositionCached;
|
|
63
|
+
recycleCursorPositionCache: typeof recycleCursorPositionCache;
|
|
64
|
+
breakLines: (text: string, style: FontStyleDefine, width: number) => any;
|
|
65
|
+
};
|
|
66
|
+
export { getTextWidth, TextTools };
|