@shijiu/jsview-vue 2.2.201 → 2.2.426-test.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/BrowserApic.vue.mjs +2 -13
- package/bin/browser/BrowserApic2.vue.mjs +2 -13
- package/bin/browser/BrowserApicLib.mjs +24 -24
- package/bin/browser/BrowserAudio.vue.mjs +2 -10
- package/bin/browser/BrowserJsvLatex.vue.mjs +39 -16
- package/bin/export-sfc.mjs +3 -3
- package/bin/jsview-vue-common.mjs +3 -3
- package/bin/jsview-vue.mjs +3288 -2312
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +72 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/ListWidget.vue.d.ts +6 -3
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidget.vue.d.ts +6 -3
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidgetSetup.d.ts +3 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +64 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
- package/bin/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/Fence.d.ts +2 -2
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/MetroTemplate.d.ts +3 -3
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/index.d.ts +1 -1
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +13 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/index.d.ts +1 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +13 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer-0.9.vue.d.ts +45 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue.d.ts +597 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +420 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +57 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +588 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +358 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +358 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
- package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +10 -0
- package/bin/types/utils/JsViewVueTools/ForgeHandles.d.ts +6 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicCssStyle.d.ts +3 -1
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicKeyFrames.d.ts +4 -2
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvImpactTracer.d.ts +4 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPreDownloader.d.ts +3 -2
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRefTaker.d.ts +2 -3
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRuntimeBridge.d.ts +42 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleSheetsDeclarer.d.ts +3 -1
- package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +61 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureLoadTool.d.ts +63 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts +8 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/NinePatchHelper.d.ts +1 -1
- package/bin/types/utils/JsViewVueTools/TextureManagerTools.d.ts +7 -0
- package/bin/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +3 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/index.d.ts +3 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts +7 -0
- package/bin/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +84 -0
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +75 -0
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFragShaderView/JsvFragShaderView.vue.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +7 -0
- package/bin/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +12 -0
- package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +45 -0
- package/bin/types/utils/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +26 -0
- package/bin/types/{JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts → utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts} +7 -5
- package/bin/types/utils/JsViewVueWidget/JsvInput/SharedDefine.d.ts +13 -0
- package/bin/types/utils/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +16 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMaskClipDiv.vue.d.ts +0 -2
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/DataTree.d.ts +3 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Geometry.d.ts +2 -2
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/JsvMindMap.vue.d.ts +16 -9
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNativeSharedDiv.vue.d.ts +6 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNinePatch.vue.d.ts +2 -1
- package/bin/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
- package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +75 -0
- package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/index.d.ts +4 -2
- package/index.d.ts +9 -1
- package/package.json +1 -1
- package/tools/config/toolkit.mjs +81 -0
- package/tools/config/vite.config.ts +24 -14
- package/tools/jsview-vue-build.mjs +67 -21
- package/tsconfig.json +27 -0
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +6 -2
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +3 -1
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +12 -5
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +175 -65
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -1
- package/utils/JsViewEngineWidget/TemplateParser/Fence.ts +2 -2
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +15 -9
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +4 -6
- package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +13 -3
- package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +27 -6
- package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +34 -28
- package/utils/JsViewPlugin/JsvLatex/index.js +22 -0
- package/utils/JsViewVueTools/FeatureActive.ts +84 -0
- package/utils/JsViewVueTools/ForgeHandles.ts +7 -3
- package/utils/JsViewVueTools/JsvDynamicCssStyle.js +2 -0
- package/utils/JsViewVueTools/JsvDynamicKeyFrames.ts +2 -0
- package/utils/JsViewVueTools/JsvHashHistory.js +26 -29
- package/utils/JsViewVueTools/JsvImpactTracer.js +2 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -1
- package/utils/JsViewVueTools/JsvRefTaker.js +1 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +125 -59
- package/utils/JsViewVueTools/JsvStyleClass.js +2 -0
- package/utils/JsViewVueTools/JsvStyleSheetsDeclarer.js +2 -0
- package/utils/JsViewVueTools/JsvTextTools.ts +156 -0
- package/utils/JsViewVueTools/JsvTextureLoadTool.ts +233 -0
- package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +4 -1
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +7 -3
- package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +1 -0
- package/utils/JsViewVueTools/TextureManagerTools.ts +17 -0
- package/utils/JsViewVueTools/TypeCheckAndSet.ts +66 -0
- package/utils/JsViewVueTools/index.js +4 -1
- package/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue +2 -0
- package/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue +10 -2
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +12 -1
- package/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue +4 -2
- package/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue +2 -0
- package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +219 -0
- package/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue +11 -9
- package/utils/JsViewVueWidget/JsvFilterView.vue +2 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +5 -2
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +140 -0
- package/utils/JsViewVueWidget/JsvFlexCell/index.js +2 -5
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +214 -63
- package/utils/JsViewVueWidget/JsvFragShaderView/index.js +2 -9
- package/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue +9 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue +2 -0
- package/utils/JsViewVueWidget/JsvGrid.vue +2 -0
- package/utils/JsViewVueWidget/JsvHole.js +2 -0
- package/utils/JsViewVueWidget/JsvInput/Cursor.vue +49 -45
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +353 -0
- package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +255 -0
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +294 -681
- package/utils/JsViewVueWidget/JsvInput/SharedDefine.ts +17 -0
- package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +61 -0
- package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +2 -0
- package/utils/JsViewVueWidget/JsvMarquee.vue +2 -0
- package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +5 -48
- package/utils/JsViewVueWidget/JsvMindMap/DataTree.ts +14 -1
- package/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue +277 -117
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +91 -68
- package/utils/JsViewVueWidget/JsvNinePatch.vue +5 -0
- package/utils/JsViewVueWidget/JsvPieChart.vue +2 -0
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +2 -0
- package/utils/JsViewVueWidget/JsvPosterImage.vue +3 -2
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +23 -44
- package/utils/JsViewVueWidget/JsvPreload/index.js +2 -13
- package/utils/JsViewVueWidget/JsvProgressBar.vue +2 -0
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +12 -12
- package/utils/JsViewVueWidget/JsvRadarChart.vue +2 -0
- package/utils/JsViewVueWidget/JsvRipple/Constant.js +2 -2
- package/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue +3 -1
- package/utils/JsViewVueWidget/JsvScaleTextBox.vue +2 -0
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +9 -0
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +9 -0
- package/utils/JsViewVueWidget/JsvSector.vue +2 -0
- package/utils/JsViewVueWidget/JsvSoundPool.js +5 -7
- package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +43 -23
- package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +2 -5
- package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue +2 -0
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +2 -0
- package/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue +2 -0
- package/utils/JsViewVueWidget/JsvTextBox.vue +2 -4
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +48 -50
- package/utils/JsViewVueWidget/JsvTextureAnim/index.js +2 -9
- package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +101 -0
- package/utils/JsViewVueWidget/JsvVideo.vue +2 -2
- package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +2 -0
- package/utils/JsViewVueWidget/index.js +4 -2
- package/bin/browser/BrowserJsvFragShaderView.vue.mjs +0 -63
- package/bin/browser/BrowserPreload.vue.mjs +0 -143
- package/bin/browser/BrowserQrcode.vue.mjs +0 -180
- package/bin/browser/BrowserSpray.vue.mjs +0 -66
- package/bin/browser/BrowserTextureAnim.vue.mjs +0 -332
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +0 -102
- package/bin/types/JsViewVueTools/ForgeHandles.d.ts +0 -6
- package/bin/types/JsViewVueTools/JsvTextTools.d.ts +0 -37
- package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +0 -2
- package/bin/types/JsViewVueWidget/JsvFlexCell/index.d.ts +0 -2
- package/bin/types/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts +0 -13
- package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +0 -2
- package/bin/types/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +0 -36
- package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +0 -210
- package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +0 -17
- package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +0 -11
- package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +0 -2
- package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +0 -25
- package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +0 -2
- package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +0 -151
- package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +0 -14
- package/tools/config/tsconfig.json +0 -15
- package/utils/JsViewVueTools/JsvTextTools.js +0 -89
- package/utils/JsViewVueTools/TypeCheckAndSet.js +0 -27
- package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +0 -48
- package/utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue +0 -144
- package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +0 -189
- package/utils/JsViewVueWidget/JsvQrcode/index.js +0 -18
- package/utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue +0 -55
- package/utils/JsViewVueWidget/JsvSpray/index.js +0 -17
- package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +0 -359
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/CheckType.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusHub.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusManager.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Const.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Dispatcher.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/PageUpdater.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/RenderItem.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Slide.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/SlotComponent.vue.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/VisibleInfo.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/WidgetRectInfo.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/RangeModel.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/CommonMetroTemplate.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/ListMetroTemplate.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/TemplateItemAdder.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/index.d.ts +0 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/WidgetCommon.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAccount/JsvAccount.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/AudioProxy.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/CheckType.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/Events.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudio.vue.d.ts +4 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioBridgeProxy.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioProxy.vue.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/PluginLoader.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/ScreenLockManager.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/index.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/version.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserDomBuilder.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserJsvLatex.vue.d.ts +4 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/Color.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatex.vue.d.ts +4 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexBridgeProxy.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexProxy.vue.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/PluginLoader.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/version.d.ts +0 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/index.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ConstSymbol.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugContentShellJBridge.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugTool.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DefaultKeyMap.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeConstDefine.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDemoTester.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvFederationTools.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvHashHistory.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPerformance.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleClass.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureDefines.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CommandList.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/Path.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Store.d.ts +0 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Texture.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/ActorControlBase.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMove.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMoveControl.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/JsvApic2.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/GifData.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/Viewer.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/WebpData.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvCommonLoopToolBase.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/JsvClipDiv.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvConnectLine/ArcLineManager.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvConnectLine/JsvConnectLine.vue.d.ts +2 -2
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvConnectLine/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/JsvDriftScope.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvEnableRenderBreak.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFilterView.vue.d.ts +3 -3
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFlexCell/JsvFlexDiv.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActionRefObject.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorControl.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorState.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/CallbackManager.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ForgeTypeDefine.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +9 -9
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +3 -3
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/NexusNode.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetAction.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetCondition.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetState.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SyncLinkManager.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvGrid.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvHole.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvLine/JsvLine.vue.d.ts +3 -3
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvLine/LineManager.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvLine/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMarquee.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/CommonType.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Constant.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/rtree.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPieChart.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterDiv.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterImage.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPreload/JsvPreload.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvProgressBar.vue.d.ts +1 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvQrcode/JsvQrcode.vue.d.ts +1 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRadarChart.vue.d.ts +1 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/Constant.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/JsvRipple.vue.d.ts +3 -3
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScaleTextBox.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollBox.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollFollow.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollInnerSymbol.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollSymbol.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSector.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSoundPool.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpray/JsvSpray.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/FrameBuidler.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteTools.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/SpriteController.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/sAnimationToken.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/JsvSwiper.vue.d.ts +1 -1
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -3
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/index.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextBox.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/CommonType.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/JsvTextureAnim.vue.d.ts +0 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +6 -6
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/index.d.ts +6 -6
- /package/bin/types/{index.d.ts → utils/index.d.ts} +0 -0
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
@file JsvRuntimeBridge.js
|
|
3
|
+
*/
|
|
4
|
+
|
|
1
5
|
let feature_supports = null;
|
|
2
6
|
|
|
3
7
|
let direct_call_map = {};
|
|
@@ -17,7 +21,7 @@ function direct_call(name, ...args) {
|
|
|
17
21
|
direct_call_map[name] = func;
|
|
18
22
|
if (func) {
|
|
19
23
|
return func(...args);
|
|
20
|
-
}
|
|
24
|
+
}
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
return null;
|
|
@@ -43,7 +47,7 @@ function getExtFeatureSupports() {
|
|
|
43
47
|
* @returns {string} mac address
|
|
44
48
|
*
|
|
45
49
|
*/
|
|
46
|
-
function getMac(){
|
|
50
|
+
function getMac() {
|
|
47
51
|
return direct_call("getMac");
|
|
48
52
|
}
|
|
49
53
|
|
|
@@ -52,7 +56,7 @@ function getMac(){
|
|
|
52
56
|
* @returns {string} mac address
|
|
53
57
|
*
|
|
54
58
|
*/
|
|
55
|
-
function getWireMac(){
|
|
59
|
+
function getWireMac() {
|
|
56
60
|
return direct_call("getWireMac");
|
|
57
61
|
}
|
|
58
62
|
|
|
@@ -61,7 +65,7 @@ function getWireMac(){
|
|
|
61
65
|
* @returns {string} mac address
|
|
62
66
|
*
|
|
63
67
|
*/
|
|
64
|
-
function getWifiMac(){
|
|
68
|
+
function getWifiMac() {
|
|
65
69
|
return direct_call("getWifiMac");
|
|
66
70
|
}
|
|
67
71
|
|
|
@@ -70,7 +74,7 @@ function getWifiMac(){
|
|
|
70
74
|
* @returns {string} UUID
|
|
71
75
|
*
|
|
72
76
|
*/
|
|
73
|
-
function getDeviceUUID(){
|
|
77
|
+
function getDeviceUUID() {
|
|
74
78
|
return direct_call("getDeviceUUID");
|
|
75
79
|
}
|
|
76
80
|
|
|
@@ -79,7 +83,7 @@ function getDeviceUUID(){
|
|
|
79
83
|
* @returns {string} Android ID
|
|
80
84
|
*
|
|
81
85
|
*/
|
|
82
|
-
function getAndroidId(){
|
|
86
|
+
function getAndroidId() {
|
|
83
87
|
return direct_call("getAndroidId");
|
|
84
88
|
}
|
|
85
89
|
|
|
@@ -92,12 +96,12 @@ function getAndroidId(){
|
|
|
92
96
|
* @param {int} add_history 是否添加历史,0不添加,1添加
|
|
93
97
|
* @returns {Promise} 可用于监听新的小程序返回的结果
|
|
94
98
|
*/
|
|
95
|
-
function openWindow(url, startup_image, startup_video, startup_duration, add_history){
|
|
99
|
+
function openWindow(url, startup_image, startup_video, startup_duration, add_history) {
|
|
96
100
|
let setting = {};
|
|
97
|
-
if(startup_image !== null && startup_image !== "")
|
|
101
|
+
if (startup_image !== null && startup_image !== "")
|
|
98
102
|
setting.startupImage = startup_image;
|
|
99
103
|
|
|
100
|
-
if(startup_video !== null && startup_video !== ""){
|
|
104
|
+
if (startup_video !== null && startup_video !== "") {
|
|
101
105
|
setting.startupVideo = startup_video;
|
|
102
106
|
}
|
|
103
107
|
|
|
@@ -117,12 +121,12 @@ function openWindow(url, startup_image, startup_video, startup_duration, add_his
|
|
|
117
121
|
* @param {int} add_history 是否添加历史,0不添加,1添加
|
|
118
122
|
* @returns {Promise} 可用于监听新的小程序返回的结果
|
|
119
123
|
*/
|
|
120
|
-
function startUrlInNewTab(url, startup_image, startup_video, startup_duration, add_history){
|
|
124
|
+
function startUrlInNewTab(url, startup_image, startup_video, startup_duration, add_history) {
|
|
121
125
|
let setting = {};
|
|
122
|
-
if(startup_image !== null && startup_image !== "")
|
|
126
|
+
if (startup_image !== null && startup_image !== "")
|
|
123
127
|
setting.startupImage = startup_image;
|
|
124
128
|
|
|
125
|
-
if(startup_video !== null && startup_video !== ""){
|
|
129
|
+
if (startup_video !== null && startup_video !== "") {
|
|
126
130
|
setting.startupVideo = startup_video;
|
|
127
131
|
}
|
|
128
132
|
|
|
@@ -136,8 +140,8 @@ function startUrlInNewTab(url, startup_image, startup_video, startup_duration, a
|
|
|
136
140
|
* 用于给上一个小程序返回结果,通常与startUrlInNewTab和openWindow配合使用
|
|
137
141
|
* @param {string} data 返回给上一个小程序的结果
|
|
138
142
|
*/
|
|
139
|
-
function onWindowResult(data){
|
|
140
|
-
direct_call("onWindowResult",data)
|
|
143
|
+
function onWindowResult(data) {
|
|
144
|
+
direct_call("onWindowResult", data)
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
/**
|
|
@@ -148,12 +152,12 @@ function onWindowResult(data){
|
|
|
148
152
|
* @param {int} startup_duration 启动图时长,默认0
|
|
149
153
|
* @param {int} add_history 是否添加历史,0不添加,1添加
|
|
150
154
|
*/
|
|
151
|
-
function reloadWindow(url, startup_image, startup_video, startup_duration, add_history){
|
|
155
|
+
function reloadWindow(url, startup_image, startup_video, startup_duration, add_history) {
|
|
152
156
|
let setting = {};
|
|
153
|
-
if(startup_image !== null && startup_image !== "")
|
|
157
|
+
if (startup_image !== null && startup_image !== "")
|
|
154
158
|
setting.startupImage = startup_image;
|
|
155
159
|
|
|
156
|
-
if(startup_video !== null && startup_video !== ""){
|
|
160
|
+
if (startup_video !== null && startup_video !== "") {
|
|
157
161
|
setting.startupVideo = startup_video;
|
|
158
162
|
}
|
|
159
163
|
|
|
@@ -167,7 +171,7 @@ function reloadWindow(url, startup_image, startup_video, startup_duration, add_h
|
|
|
167
171
|
* 关闭当前小程序
|
|
168
172
|
*
|
|
169
173
|
*/
|
|
170
|
-
function closePage(){
|
|
174
|
+
function closePage() {
|
|
171
175
|
direct_call("closePage");
|
|
172
176
|
}
|
|
173
177
|
|
|
@@ -177,7 +181,7 @@ function closePage(){
|
|
|
177
181
|
* @returns {string} 属性值
|
|
178
182
|
*
|
|
179
183
|
*/
|
|
180
|
-
function getSystemProperty(key){
|
|
184
|
+
function getSystemProperty(key) {
|
|
181
185
|
return direct_call("getSystemProperty", key);
|
|
182
186
|
}
|
|
183
187
|
|
|
@@ -186,7 +190,7 @@ function getSystemProperty(key){
|
|
|
186
190
|
* @returns {string} 应用列表,JSON结构的数组
|
|
187
191
|
*
|
|
188
192
|
*/
|
|
189
|
-
function getInstalledApps(){
|
|
193
|
+
function getInstalledApps() {
|
|
190
194
|
return direct_call("getInstalledApps");
|
|
191
195
|
}
|
|
192
196
|
|
|
@@ -200,24 +204,24 @@ function getInstalledApps(){
|
|
|
200
204
|
* @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
|
|
201
205
|
*
|
|
202
206
|
*/
|
|
203
|
-
function startNativeApp(package_name, activity, action, uri, flags, param){
|
|
207
|
+
function startNativeApp(package_name, activity, action, uri, flags, param) {
|
|
204
208
|
var obj = {};
|
|
205
|
-
if(package_name !== null && package_name !== "")
|
|
209
|
+
if (package_name !== null && package_name !== "")
|
|
206
210
|
obj.packageName = package_name;
|
|
207
211
|
|
|
208
|
-
if(activity !== null && activity !== "")
|
|
212
|
+
if (activity !== null && activity !== "")
|
|
209
213
|
obj.activity = activity;
|
|
210
214
|
|
|
211
|
-
if(action !== null && action !== "")
|
|
215
|
+
if (action !== null && action !== "")
|
|
212
216
|
obj.action = action;
|
|
213
217
|
|
|
214
|
-
if(uri !== null && uri !== "")
|
|
218
|
+
if (uri !== null && uri !== "")
|
|
215
219
|
obj.uri = uri;
|
|
216
220
|
|
|
217
|
-
if(flags !== null && flags.length > 0)
|
|
221
|
+
if (flags !== null && flags.length > 0)
|
|
218
222
|
obj.flags = flags;
|
|
219
223
|
|
|
220
|
-
if(param !== null && param.length > 0)
|
|
224
|
+
if (param !== null && param.length > 0)
|
|
221
225
|
obj.param = param;
|
|
222
226
|
|
|
223
227
|
direct_call("startNativeApp", JSON.stringify(obj));
|
|
@@ -233,25 +237,25 @@ function startNativeApp(package_name, activity, action, uri, flags, param){
|
|
|
233
237
|
* @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
|
|
234
238
|
*
|
|
235
239
|
*/
|
|
236
|
-
function sendNativeBroadcast(package_name, broadcast, action, uri, flags, param){
|
|
240
|
+
function sendNativeBroadcast(package_name, broadcast, action, uri, flags, param) {
|
|
237
241
|
|
|
238
242
|
var obj = {};
|
|
239
|
-
if(typeof package_name != undefined && package_name !== null && package_name !== "")
|
|
243
|
+
if (typeof package_name != undefined && package_name !== null && package_name !== "")
|
|
240
244
|
obj.packageName = package_name;
|
|
241
245
|
|
|
242
|
-
if(typeof broadcast != undefined && broadcast !== null && broadcast !== "")
|
|
246
|
+
if (typeof broadcast != undefined && broadcast !== null && broadcast !== "")
|
|
243
247
|
obj.broadcast = broadcast;
|
|
244
248
|
|
|
245
|
-
if(typeof action != undefined && action !== null && action !== "")
|
|
249
|
+
if (typeof action != undefined && action !== null && action !== "")
|
|
246
250
|
obj.action = action;
|
|
247
251
|
|
|
248
|
-
if(typeof uri != undefined && uri !== null && uri !== "")
|
|
252
|
+
if (typeof uri != undefined && uri !== null && uri !== "")
|
|
249
253
|
obj.uri = uri;
|
|
250
254
|
|
|
251
|
-
if(typeof flags != undefined && flags !== null && flags.length > 0)
|
|
255
|
+
if (typeof flags != undefined && flags !== null && flags.length > 0)
|
|
252
256
|
obj.flags = flags;
|
|
253
257
|
|
|
254
|
-
if(typeof param != undefined && param !== null && param.length > 0)
|
|
258
|
+
if (typeof param != undefined && param !== null && param.length > 0)
|
|
255
259
|
obj.param = param;
|
|
256
260
|
direct_call("sendNativeBroadcast", JSON.stringify(obj));
|
|
257
261
|
}
|
|
@@ -267,27 +271,27 @@ function sendNativeBroadcast(package_name, broadcast, action, uri, flags, param)
|
|
|
267
271
|
* @param {boolean} is_foreground 是否使用startForegroundService
|
|
268
272
|
*
|
|
269
273
|
*/
|
|
270
|
-
function startService(package_name, services, action, uri, flags, param,is_foreground){
|
|
274
|
+
function startService(package_name, services, action, uri, flags, param, is_foreground) {
|
|
271
275
|
|
|
272
276
|
var obj = {};
|
|
273
|
-
if(typeof package_name != undefined && package_name !== null && package_name !== "")
|
|
277
|
+
if (typeof package_name != undefined && package_name !== null && package_name !== "")
|
|
274
278
|
obj.packageName = package_name;
|
|
275
279
|
|
|
276
|
-
if(typeof services != undefined && services !== null && services !== "")
|
|
280
|
+
if (typeof services != undefined && services !== null && services !== "")
|
|
277
281
|
obj.services = services;
|
|
278
282
|
|
|
279
|
-
if(typeof action != undefined && action !== null && action !== "")
|
|
283
|
+
if (typeof action != undefined && action !== null && action !== "")
|
|
280
284
|
obj.action = action;
|
|
281
285
|
|
|
282
|
-
if(typeof uri != undefined && uri !== null && uri !== "")
|
|
286
|
+
if (typeof uri != undefined && uri !== null && uri !== "")
|
|
283
287
|
obj.uri = uri;
|
|
284
288
|
|
|
285
|
-
if(typeof flags != undefined && flags !== null && flags.length > 0)
|
|
289
|
+
if (typeof flags != undefined && flags !== null && flags.length > 0)
|
|
286
290
|
obj.flags = flags;
|
|
287
291
|
|
|
288
|
-
if(typeof param != undefined && param !== null && param.length > 0)
|
|
292
|
+
if (typeof param != undefined && param !== null && param.length > 0)
|
|
289
293
|
obj.param = param;
|
|
290
|
-
direct_call("startServices", JSON.stringify(obj),is_foreground);
|
|
294
|
+
direct_call("startServices", JSON.stringify(obj), is_foreground);
|
|
291
295
|
}
|
|
292
296
|
|
|
293
297
|
/**
|
|
@@ -303,7 +307,7 @@ function getDeviceInfo() {
|
|
|
303
307
|
* 获取自己的app信息
|
|
304
308
|
* @returns
|
|
305
309
|
*/
|
|
306
|
-
function getAppInfo(){
|
|
310
|
+
function getAppInfo() {
|
|
307
311
|
return direct_call("getAppInfo");
|
|
308
312
|
}
|
|
309
313
|
|
|
@@ -317,7 +321,7 @@ function notifyPageLoadDone() {
|
|
|
317
321
|
|
|
318
322
|
function notifyPageLoaded() {
|
|
319
323
|
// 激活JsView的按键优化处理逻辑
|
|
320
|
-
window.
|
|
324
|
+
window.JsvCoreApi.enableReceivingUserInput?.();
|
|
321
325
|
|
|
322
326
|
direct_call("notifyPageLoaded");
|
|
323
327
|
}
|
|
@@ -327,7 +331,7 @@ function notifyPageLoaded() {
|
|
|
327
331
|
* @returns {boolean} true支持,false不支持
|
|
328
332
|
*
|
|
329
333
|
*/
|
|
330
|
-
function hasFavouriteFunction(){
|
|
334
|
+
function hasFavouriteFunction() {
|
|
331
335
|
let features = getExtFeatureSupports();
|
|
332
336
|
if (features && features.indexOf("favourite") >= 0) {
|
|
333
337
|
return true;
|
|
@@ -359,11 +363,11 @@ function getStartParams() {
|
|
|
359
363
|
function addFavourite(url, callback) {
|
|
360
364
|
if (window.jJsvRuntimeBridge && typeof window.jJsvRuntimeBridge.addFavourite === "function") {
|
|
361
365
|
let async_message = window.jJsvRuntimeBridge.addFavourite(url);
|
|
362
|
-
async_message.then((result)=>{
|
|
366
|
+
async_message.then((result) => {
|
|
363
367
|
if (callback) {
|
|
364
368
|
callback(result);
|
|
365
369
|
}
|
|
366
|
-
}).catch((result)=>{
|
|
370
|
+
}).catch((result) => {
|
|
367
371
|
if (callback) {
|
|
368
372
|
callback(result);
|
|
369
373
|
}
|
|
@@ -380,11 +384,11 @@ function addFavourite(url, callback) {
|
|
|
380
384
|
function updateFavourite(url, callback) {
|
|
381
385
|
if (window.jJsvRuntimeBridge && typeof window.jJsvRuntimeBridge.updateFavourite === "function") {
|
|
382
386
|
let async_message = window.jJsvRuntimeBridge.updateFavourite(url);
|
|
383
|
-
async_message.then((result)=>{
|
|
387
|
+
async_message.then((result) => {
|
|
384
388
|
if (callback) {
|
|
385
389
|
callback(result)
|
|
386
390
|
}
|
|
387
|
-
}).catch((result)=>{
|
|
391
|
+
}).catch((result) => {
|
|
388
392
|
if (callback) {
|
|
389
393
|
callback(result);
|
|
390
394
|
}
|
|
@@ -401,11 +405,11 @@ function updateFavourite(url, callback) {
|
|
|
401
405
|
function removeFavourite(app_name, callback) {
|
|
402
406
|
if (window.jJsvRuntimeBridge && typeof window.jJsvRuntimeBridge.removeFavourite === "function") {
|
|
403
407
|
let async_message = window.jJsvRuntimeBridge.removeFavourite(app_name);
|
|
404
|
-
async_message.then((result)=>{
|
|
408
|
+
async_message.then((result) => {
|
|
405
409
|
if (callback) {
|
|
406
410
|
callback(result)
|
|
407
411
|
}
|
|
408
|
-
}).catch((result)=>{
|
|
412
|
+
}).catch((result) => {
|
|
409
413
|
if (callback) {
|
|
410
414
|
callback(result);
|
|
411
415
|
}
|
|
@@ -464,7 +468,7 @@ function popupGainFocus() {
|
|
|
464
468
|
direct_call("popupGainFocus");
|
|
465
469
|
}
|
|
466
470
|
|
|
467
|
-
function popupDiscardFocus(){
|
|
471
|
+
function popupDiscardFocus() {
|
|
468
472
|
direct_call("popupGainFocus");
|
|
469
473
|
}
|
|
470
474
|
|
|
@@ -484,12 +488,12 @@ function popupDiscardFocus(){
|
|
|
484
488
|
* int: 为view_refer_id值,预热后的View的ID,用于后续的warmLoadView和closeWarmView使用
|
|
485
489
|
*/
|
|
486
490
|
function warmUpView(mode, app_url) {
|
|
487
|
-
if(mode !== 1 && mode !== 2) {
|
|
491
|
+
if (mode !== 1 && mode !== 2) {
|
|
488
492
|
console.error(`not support mode(${mode})`);
|
|
489
493
|
return -1;
|
|
490
494
|
}
|
|
491
495
|
|
|
492
|
-
if(mode === 1 && (app_url === null || app_url.length === 0)) {
|
|
496
|
+
if (mode === 1 && (app_url === null || app_url.length === 0)) {
|
|
493
497
|
console.error(`not support params(${mode} ${app_url})`);
|
|
494
498
|
return -1;
|
|
495
499
|
}
|
|
@@ -524,22 +528,78 @@ function closeWarmedView(view_refer_id) {
|
|
|
524
528
|
* 例如: 1021265_release_build_xxx
|
|
525
529
|
* @returns promise 对象,用于监听下载完成与下载失败
|
|
526
530
|
*/
|
|
527
|
-
function preDownloadSdk(core_version){
|
|
531
|
+
function preDownloadSdk(core_version) {
|
|
528
532
|
return direct_call("preDownloadSdk", core_version);
|
|
529
533
|
}
|
|
530
534
|
|
|
531
|
-
function getNetworkTypeStatusImmediate(){
|
|
535
|
+
function getNetworkTypeStatusImmediate() {
|
|
532
536
|
return direct_call("getNetworkTypeStatusImmediate");
|
|
533
537
|
}
|
|
534
538
|
|
|
535
|
-
function registerNetStateListener(callback){
|
|
539
|
+
function registerNetStateListener(callback) {
|
|
536
540
|
return direct_call("registerNetStateListener", callback);
|
|
537
541
|
}
|
|
538
542
|
|
|
539
|
-
function unRegisterNetStateListener(callback){
|
|
543
|
+
function unRegisterNetStateListener(callback) {
|
|
540
544
|
return direct_call("unRegisterNetStateListener", callback);
|
|
541
545
|
}
|
|
542
546
|
|
|
547
|
+
function getSnId() {
|
|
548
|
+
return direct_call("getSnId");
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
function getEmmcCid() {
|
|
552
|
+
return direct_call("getEmmcCid");
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* android ContentProvider 查询接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.query 接口
|
|
557
|
+
* @param {string} uri
|
|
558
|
+
* @param {string} projection
|
|
559
|
+
* @param {string} selection
|
|
560
|
+
* @param {string[]} selectionArgs
|
|
561
|
+
* @param {string} sortOrder
|
|
562
|
+
* @returns
|
|
563
|
+
*/
|
|
564
|
+
function providerQuery(uri, projection, selection, selectionArgs, sortOrder) {
|
|
565
|
+
let jsonProjection = projection ? JSON.stringify(projection) : null
|
|
566
|
+
let jsonSelectionArgs = selectionArgs ? JSON.stringify(selectionArgs) : null
|
|
567
|
+
return direct_call("providerQuery", uri, jsonProjection, selection, jsonSelectionArgs, sortOrder);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* android ContentProvider 插入接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.insert 接口
|
|
572
|
+
* @param {string} uri
|
|
573
|
+
* @param {object} contentValue
|
|
574
|
+
* @returns
|
|
575
|
+
*/
|
|
576
|
+
function providerInsert(uri, contentValue) {
|
|
577
|
+
return direct_call("providerInsert", uri, contentValue ? JSON.stringify(contentValue) : null)
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* android ContentProvider 删除接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.delete 接口
|
|
582
|
+
* @param {string} uri
|
|
583
|
+
* @param {string} selection
|
|
584
|
+
* @param {string[]} selectionArgs
|
|
585
|
+
* @returns
|
|
586
|
+
*/
|
|
587
|
+
function providerDelete(uri, selection, selectionArgs) {
|
|
588
|
+
return direct_call("providerDelete", uri, selection, selectionArgs ? JSON.stringify(selectionArgs) : null)
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* android ContentProvider 更新接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.update 接口
|
|
593
|
+
* @param {string} uri
|
|
594
|
+
* @param {object} contentValue
|
|
595
|
+
* @param {string} selection
|
|
596
|
+
* @param {string[]} selectionArgs
|
|
597
|
+
* @returns
|
|
598
|
+
*/
|
|
599
|
+
function providerUpdate(uri, contentValue, selection, selectionArgs) {
|
|
600
|
+
return direct_call("providerUpdate", uri, contentValue ? JSON.stringify(contentValue) : null, selection, selectionArgs ? JSON.stringify(selectionArgs) : null)
|
|
601
|
+
}
|
|
602
|
+
|
|
543
603
|
|
|
544
604
|
// 显示声明,可以提高执行速度和利用上编辑器的成员名提示功能
|
|
545
605
|
const bridge = {
|
|
@@ -579,7 +639,13 @@ const bridge = {
|
|
|
579
639
|
preDownloadSdk,
|
|
580
640
|
getNetworkTypeStatusImmediate,
|
|
581
641
|
registerNetStateListener,
|
|
582
|
-
unRegisterNetStateListener
|
|
642
|
+
unRegisterNetStateListener,
|
|
643
|
+
getSnId,
|
|
644
|
+
getEmmcCid,
|
|
645
|
+
providerQuery,
|
|
646
|
+
providerInsert,
|
|
647
|
+
providerDelete,
|
|
648
|
+
providerUpdate
|
|
583
649
|
};
|
|
584
650
|
|
|
585
651
|
export {
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define.mjs";
|
|
2
|
+
|
|
3
|
+
// 按照Css的style设置名称对应
|
|
4
|
+
declare interface FontStyleDefine {
|
|
5
|
+
fontFamily: string,
|
|
6
|
+
fontSize: number,
|
|
7
|
+
fontStyle: string,
|
|
8
|
+
fontWeight: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* @Author: ChenChanghua
|
|
13
|
+
* @Date: 2022-11-29 14:26:20
|
|
14
|
+
* @LastEditors: Please set LastEditors
|
|
15
|
+
* @LastEditTime: 2023-02-02 10:20:45
|
|
16
|
+
* @Description: file content
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/*!
|
|
20
|
+
* 获取文字宽度, 一般用于测量文字宽度
|
|
21
|
+
*
|
|
22
|
+
* @param {string} text 文字
|
|
23
|
+
* @param {object} style 文字的css style
|
|
24
|
+
* @return {int} 文字宽度
|
|
25
|
+
**/
|
|
26
|
+
const getTextWidth = (text: string, style: FontStyleDefine) => {
|
|
27
|
+
let forgeRef = Forge;
|
|
28
|
+
return Forge.TextUtils.GetTextWidth(text, style);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/*!
|
|
32
|
+
* @typedef {object} SliceInfo
|
|
33
|
+
* @property {int} start - 文字起始index
|
|
34
|
+
* @property {int} end - 文字结束index
|
|
35
|
+
* @property {int} width - 文字宽度
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/*!
|
|
39
|
+
* @typedef {object} TextInfo
|
|
40
|
+
* @property {int} totalWidth - 文字整体宽度
|
|
41
|
+
* @property {Array<SliceInfo>} sliceInfo - 每段文字的信息
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/*!
|
|
45
|
+
* 单行超长文字会切成多个div拼接, 由于jsview坐标的取整机制, 拼接出的width和文字width会产生误差, 此接口会返回拼接后的width
|
|
46
|
+
*
|
|
47
|
+
* @param {string} text 文字
|
|
48
|
+
* @param {object} style 文字的css style
|
|
49
|
+
* @return {TextInfo} 文字信息
|
|
50
|
+
**/
|
|
51
|
+
const getOneLineTextDrawWidth = (text: string, style: FontStyleDefine) => {
|
|
52
|
+
if (text && typeof text != "string") {
|
|
53
|
+
text = "" + text; // 规避text为非字符串导致接口调用错误的问题
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return Forge.TextUtils.GetOneLineTextDrawWidth(text, style);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const isRtl = (str: string) => {
|
|
60
|
+
//arabic
|
|
61
|
+
for (let i = 0; i < str.length; i++) {
|
|
62
|
+
let c = str.charCodeAt(i);
|
|
63
|
+
if (c != 32) {
|
|
64
|
+
if (c >= 0x0600 && c <= 0x06ff) {
|
|
65
|
+
return true;
|
|
66
|
+
} else {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare interface CssFontStyle {
|
|
75
|
+
fontFamily: string,
|
|
76
|
+
fontSize: number,
|
|
77
|
+
fontStyle: string,
|
|
78
|
+
fontWeight: string
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare interface CssTextLayoutStyle {
|
|
82
|
+
width?: number,
|
|
83
|
+
height?: number,
|
|
84
|
+
textAlign?: String,
|
|
85
|
+
lineHeight?: number,
|
|
86
|
+
whiteSpace?: String, // normal, nowrap (换行规则)
|
|
87
|
+
wordWrap?: String, // break-word, normal, (仅对英文有效, 只在whiteSpace规定为非换行时生效)
|
|
88
|
+
textOverflow?: String,
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare interface CursorResult {
|
|
92
|
+
parseSuccess: boolean,
|
|
93
|
+
x: number,
|
|
94
|
+
y: number,
|
|
95
|
+
cachedId: number, // 解析缓存的id,当设置不变的时候使用cache, 0为无效cache
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* 获取光标的位置
|
|
100
|
+
*
|
|
101
|
+
* @public
|
|
102
|
+
* @func GetCursorPosition
|
|
103
|
+
* @return {CursorResult} 光标的所在位置{x:0,y:0}
|
|
104
|
+
**/
|
|
105
|
+
function getCursorPosition(
|
|
106
|
+
cursorOffset: number,
|
|
107
|
+
text: String,
|
|
108
|
+
fontStyle: CssFontStyle,
|
|
109
|
+
textLayoutStyle: CssTextLayoutStyle,
|
|
110
|
+
buildCache: boolean
|
|
111
|
+
): CursorResult {
|
|
112
|
+
let result: CursorResult = Forge.TextUtils.GetCursorPosition(
|
|
113
|
+
0,
|
|
114
|
+
cursorOffset, text,
|
|
115
|
+
fontStyle, textLayoutStyle,
|
|
116
|
+
buildCache);
|
|
117
|
+
return result;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* 获取光标的位置
|
|
122
|
+
*
|
|
123
|
+
* @public
|
|
124
|
+
* @func GetCursorPositionCached
|
|
125
|
+
* @return {CursorResult} 光标的所在位置{x:0,y:0}
|
|
126
|
+
**/
|
|
127
|
+
function getCursorPositionCached(
|
|
128
|
+
cachedId: number,
|
|
129
|
+
cursorOffset: number
|
|
130
|
+
): CursorResult {
|
|
131
|
+
let result: CursorResult = Forge.TextUtils.GetCursorPosition(
|
|
132
|
+
cachedId,
|
|
133
|
+
cursorOffset,
|
|
134
|
+
null,
|
|
135
|
+
null,
|
|
136
|
+
null,
|
|
137
|
+
true);
|
|
138
|
+
return result;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function recycleCursorPositionCache(
|
|
142
|
+
cached_id: number
|
|
143
|
+
) {
|
|
144
|
+
Forge.TextUtils.RemoveCursorTextCache(cached_id);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const TextTools = {
|
|
148
|
+
getOneLineTextDrawWidth,
|
|
149
|
+
getTextWidth,
|
|
150
|
+
isRtl,
|
|
151
|
+
getCursorPosition,
|
|
152
|
+
getCursorPositionCached,
|
|
153
|
+
recycleCursorPositionCache
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export { getTextWidth, TextTools };
|