@shijiu/jsview-vue 2.2.201 → 2.2.373
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/BrowserJsvFragShaderView.vue.mjs +21 -5
- package/bin/browser/BrowserJsvLatex.vue.mjs +39 -16
- package/bin/browser/BrowserPreload.vue.mjs +1 -5
- package/bin/browser/BrowserQrcode.vue.mjs +1 -5
- package/bin/browser/BrowserSpray.vue.mjs +2 -12
- package/bin/browser/BrowserTextureAnim.vue.mjs +2 -12
- package/bin/export-sfc.mjs +3 -3
- package/bin/jsview-vue-common.mjs +3 -3
- package/bin/jsview-vue.mjs +3216 -2086
- package/bin/types/JsViewEngineWidget/CheckType.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +37 -33
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +15 -2
- package/bin/types/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +14 -3
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +280 -3
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +7 -1
- package/bin/types/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Slide.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/RangeModel.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/Fence.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/index.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/WidgetCommon.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/index.d.ts +5 -1
- package/bin/types/JsViewPlugin/JsvAccount/JsvAccount.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/CheckType.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/Events.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/index.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/version.d.ts +5 -0
- package/bin/types/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +24 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvLatex/index.d.ts +5 -0
- package/bin/types/JsViewPlugin/JsvLatex/version.d.ts +4 -0
- package/bin/types/JsViewPlugin/index.d.ts +4 -0
- package/bin/types/JsViewVueTools/ConstSymbol.d.ts +4 -0
- package/bin/types/JsViewVueTools/DebugContentShellJBridge.d.ts +4 -0
- package/bin/types/JsViewVueTools/DebugTool.d.ts +4 -0
- package/bin/types/JsViewVueTools/DefaultKeyMap.d.ts +4 -0
- package/bin/types/JsViewVueTools/FeatureActive.d.ts +14 -0
- package/bin/types/JsViewVueTools/ForgeConstDefine.d.ts +4 -0
- package/bin/types/JsViewVueTools/ForgeHandles.d.ts +7 -3
- package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvDynamicCssStyle.d.ts +20 -1
- package/bin/types/JsViewVueTools/JsvDynamicKeyFrames.d.ts +21 -2
- package/bin/types/JsViewVueTools/JsvFederationTools.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvHashHistory.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvImpactTracer.d.ts +8 -4
- package/bin/types/JsViewVueTools/JsvPerformance.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvPreDownloader.d.ts +24 -2
- package/bin/types/JsViewVueTools/JsvRefTaker.d.ts +28 -3
- package/bin/types/JsViewVueTools/JsvRuntimeBridge.d.ts +50 -0
- package/bin/types/JsViewVueTools/JsvStyleClass.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +21 -1
- package/bin/types/JsViewVueTools/JsvTextTools.d.ts +85 -27
- package/bin/types/JsViewVueTools/JsvTextureDefines.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +30 -4
- package/bin/types/JsViewVueTools/JsvTextureStore/Store.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/Texture.d.ts +4 -0
- package/bin/types/JsViewVueTools/NinePatchHelper.d.ts +5 -1
- package/bin/types/JsViewVueTools/TextureManagerTools.d.ts +11 -0
- package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +4 -0
- package/bin/types/JsViewVueTools/index.d.ts +7 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +38 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +27 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +28 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +21 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
- package/bin/types/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFilterView.vue.d.ts +19 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +34 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +106 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/index.d.ts +6 -2
- package/bin/types/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts +6 -0
- package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +48 -1
- package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +22 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvGrid.vue.d.ts +73 -0
- package/bin/types/JsViewVueWidget/JsvHole.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +14 -34
- package/bin/types/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +48 -0
- package/bin/types/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +27 -0
- package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +64 -209
- package/bin/types/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvInput/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +20 -0
- package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +21 -0
- package/bin/types/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +20 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/Constant.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/DataTree.d.ts +7 -1
- package/bin/types/JsViewVueWidget/JsvMindMap/Geometry.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +90 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/rtree.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +24 -0
- package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +30 -0
- package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvPosterDiv.vue.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvPosterImage.vue.d.ts +18 -0
- package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +42 -0
- package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +19 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +24 -0
- package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +45 -0
- package/bin/types/JsViewVueWidget/JsvRipple/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +18 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSector.vue.d.ts +18 -0
- package/bin/types/JsViewVueWidget/JsvSoundPool.d.ts +42 -0
- package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +40 -0
- package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +52 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +16 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +39 -0
- package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +24 -0
- package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvTextBox.vue.d.ts +26 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +7 -2
- package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +100 -0
- package/bin/types/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvVisibleSensor/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/index.d.ts +6 -0
- package/bin/types/index.d.ts +4 -0
- package/index.d.ts +8 -0
- package/package.json +1 -1
- package/tools/config/toolkit.mjs +81 -0
- package/tools/config/tsconfig.json +1 -0
- package/tools/config/vite.config.ts +24 -14
- package/tools/jsview-vue-build.mjs +66 -21
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +6 -2
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.ts +22 -3
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +3 -1
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +12 -5
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +208 -84
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +15 -9
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -2
- package/utils/JsViewPlugin/JsvAudio/version.js +1 -1
- package/utils/JsViewPlugin/JsvAudio/version.mjs +1 -1
- 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/JsvImpactTracer.js +2 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -1
- package/utils/JsViewVueTools/JsvRefTaker.js +1 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +67 -1
- package/utils/JsViewVueTools/JsvStyleClass.js +2 -0
- package/utils/JsViewVueTools/JsvStyleSheetsDeclarer.js +2 -0
- package/utils/JsViewVueTools/JsvTextTools.ts +223 -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/index.js +3 -0
- 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 +145 -0
- package/utils/JsViewVueWidget/JsvFlexCell/index.js +2 -5
- package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +39 -12
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +210 -62
- 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 +320 -0
- package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +222 -0
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +281 -681
- package/utils/JsViewVueWidget/JsvInput/SharedDefine.ts +17 -0
- package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +47 -0
- package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +2 -0
- package/utils/JsViewVueWidget/JsvMarquee.vue +2 -0
- package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +2 -0
- 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 +2 -0
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +2 -0
- package/utils/JsViewVueWidget/JsvProgressBar.vue +2 -0
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +10 -11
- 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 +2 -0
- package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +30 -13
- package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +2 -0
- 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 +44 -41
- 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 +2 -0
- package/utils/JsViewVueTools/JsvTextTools.js +0 -89
|
@@ -291,12 +291,12 @@ abstract class MetroTemplate {
|
|
|
291
291
|
if (this.direction == VERTICAL) {
|
|
292
292
|
return {
|
|
293
293
|
width: this.lineMax,
|
|
294
|
-
height: lastItem.height + lastItem.top - 1,
|
|
294
|
+
height: lastItem.height + lastItem.top - 1 + 1,
|
|
295
295
|
}
|
|
296
296
|
} else {
|
|
297
297
|
return {
|
|
298
298
|
height: this.lineMax,
|
|
299
|
-
width: lastItem.width + lastItem.left - 1,
|
|
299
|
+
width: lastItem.width + lastItem.left - 1 + 1,
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
} else {
|
|
@@ -16,7 +16,7 @@ let PluginInfo = {
|
|
|
16
16
|
listener: "top.JsvAudioPluginLoadResult", //插件加载结果回调
|
|
17
17
|
listener2: "top.JsvAudioPluginStatus",
|
|
18
18
|
// debug:true,
|
|
19
|
-
|
|
19
|
+
md5: "5ab9bfbec33034a6a26df7c1187b3c8f"
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
// 不要用export default,update-env脚本不能解析
|
|
@@ -16,7 +16,7 @@ let PluginInfo = {
|
|
|
16
16
|
listener: "top.JsvAudioPluginLoadResult", //插件加载结果回调
|
|
17
17
|
listener2: "top.JsvAudioPluginStatus",
|
|
18
18
|
// debug:true,
|
|
19
|
-
|
|
19
|
+
md5: "5ab9bfbec33034a6a26df7c1187b3c8f" // 插件的md5, 此信息是内网场景回使用,一定要对齐md5
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
// 不要用export default,update-env脚本不能解析
|
|
@@ -2,10 +2,18 @@ export const getHtmlStr = (libPath, latexStr, fontSize, width, height, color) =>
|
|
|
2
2
|
return (
|
|
3
3
|
`<html>
|
|
4
4
|
<head>
|
|
5
|
+
<style>
|
|
6
|
+
mjx-container[display="true"] {
|
|
7
|
+
margin: 0 0 !important;
|
|
8
|
+
}
|
|
9
|
+
body {
|
|
10
|
+
margin: 0 !important;
|
|
11
|
+
}
|
|
12
|
+
</style>
|
|
5
13
|
<script type="text/javascript">
|
|
6
14
|
MathJax = {
|
|
7
15
|
tex: {
|
|
8
|
-
inlineMath: [['$', '$'], ['
|
|
16
|
+
inlineMath: [['$', '$'], ['\\\\(', '\\\\)']]
|
|
9
17
|
},
|
|
10
18
|
svg: {
|
|
11
19
|
fontCache: 'global'
|
|
@@ -16,13 +24,15 @@ export const getHtmlStr = (libPath, latexStr, fontSize, width, height, color) =>
|
|
|
16
24
|
divElement.style.display = "inline-block";
|
|
17
25
|
divElement.style.fontSize = "${fontSize}px";
|
|
18
26
|
divElement.style.color = "${color}";
|
|
19
|
-
divElement.innerHTML = String.raw
|
|
27
|
+
divElement.innerHTML = String.raw\`${latexStr}\`;
|
|
28
|
+
//divElement.style.width = ${width} + "px";
|
|
20
29
|
document.body.appendChild(divElement);
|
|
21
30
|
|
|
22
31
|
MathJax.typesetPromise().then(() => {
|
|
23
32
|
// modify the DOM here
|
|
24
33
|
let formulaMetrics = MathJax.getMetricsFor(divElement, true);
|
|
25
|
-
let
|
|
34
|
+
let w = Math.min(${width}, divElement.clientWidth);
|
|
35
|
+
let scale = w / divElement.clientWidth;
|
|
26
36
|
divElement.style.fontSize = Math.floor(scale * ${fontSize}) + "px";
|
|
27
37
|
MathJax.typeset();
|
|
28
38
|
}).catch((err) => console.error(err.message));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
// import "./mathjax-tex-svg.js";
|
|
3
3
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
4
|
-
import { shallowRef, onBeforeUnmount } from "vue";
|
|
4
|
+
import { ref, shallowRef, onBeforeUnmount } from "vue";
|
|
5
5
|
import { getHtmlStr } from "./BrowserDomBuilder.js";
|
|
6
6
|
|
|
7
7
|
const props = defineProps({
|
|
@@ -39,20 +39,39 @@ const props = defineProps({
|
|
|
39
39
|
},
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
+
function precessString(original) {
|
|
43
|
+
return (
|
|
44
|
+
"\\[\\begin{array}{l}" +
|
|
45
|
+
original.replaceAll(/\\[\(\)\[\]]/g, "") +
|
|
46
|
+
"\\end{array}\\]"
|
|
47
|
+
);
|
|
48
|
+
}
|
|
42
49
|
let innerViewId = shallowRef(-1);
|
|
50
|
+
const clientWidth = ref(props.width);
|
|
51
|
+
const clientHeight = ref(props.height);
|
|
43
52
|
|
|
44
53
|
let layoutView = new Forge.IFrameView();
|
|
45
54
|
layoutView.SetIframeSize(props.width, props.height);
|
|
46
55
|
layoutView.SetInnerHtml(
|
|
47
56
|
getHtmlStr(
|
|
48
57
|
"https://qcast-image.oss-cn-qingdao.aliyuncs.com/JsViewTestResource/DocResource/mathjax-tex-svg.txt",
|
|
49
|
-
props.latexStr,
|
|
58
|
+
precessString(props.latexStr),
|
|
50
59
|
props.fontSize,
|
|
51
60
|
props.width,
|
|
52
61
|
props.height,
|
|
53
62
|
props.color
|
|
54
63
|
)
|
|
55
64
|
);
|
|
65
|
+
const resizeObserver = new ResizeObserver(entries => {
|
|
66
|
+
if (entries.length > 0) {
|
|
67
|
+
const e = entries[0];
|
|
68
|
+
if (clientHeight.value == 0) {
|
|
69
|
+
clientHeight.value = e.contentRect.height
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
resizeObserver.observe(layoutView.GetIFrame());
|
|
74
|
+
|
|
56
75
|
innerViewId.value = Forge.sViewStore.add(new Forge.ViewInfo(layoutView));
|
|
57
76
|
|
|
58
77
|
onBeforeUnmount(() => {
|
|
@@ -61,16 +80,18 @@ onBeforeUnmount(() => {
|
|
|
61
80
|
innerViewId.value = -1;
|
|
62
81
|
console.log("success remove innerview");
|
|
63
82
|
}
|
|
83
|
+
resizeObserver.unobserve(layoutView.GetIFrame())
|
|
64
84
|
});
|
|
65
85
|
</script>
|
|
66
86
|
<template>
|
|
67
87
|
<div
|
|
68
|
-
:data-jsv-vw-innerview="innerViewId"
|
|
69
88
|
:style="{
|
|
70
89
|
left: left,
|
|
71
90
|
top: top,
|
|
72
|
-
width:
|
|
73
|
-
height:
|
|
91
|
+
width: clientWidth,
|
|
92
|
+
height: clientHeight,
|
|
74
93
|
}"
|
|
75
|
-
|
|
94
|
+
>
|
|
95
|
+
<div :data-jsv-vw-innerview="innerViewId"></div>
|
|
96
|
+
</div>
|
|
76
97
|
</template>
|
|
@@ -5,21 +5,24 @@
|
|
|
5
5
|
-->
|
|
6
6
|
|
|
7
7
|
<!--
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
* @file
|
|
9
|
+
*
|
|
10
|
+
* [界面概述]
|
|
11
|
+
* 思维导图控件
|
|
12
|
+
* [控件介绍]
|
|
13
|
+
* JsvLatex:
|
|
14
|
+
* props:
|
|
15
|
+
* latexStr: {string} latex公式
|
|
16
|
+
* fontSize: {function} 字号
|
|
17
|
+
* left: {number} left
|
|
18
|
+
* top: {number} top
|
|
19
|
+
* width: {number} width
|
|
20
|
+
* height: {number} height
|
|
21
|
+
* lineSpace: {number} 行距
|
|
22
|
+
* color: {string} 文字颜色
|
|
23
|
+
* [注意事项]
|
|
24
|
+
* 1. 盒子端的字符串是直接作为数学公式解析的, 所以需要将\n替换为\\, 需要前端自己处理, 这里提供了一个辅助方法processLatexStr来处理简单的情况
|
|
25
|
+
-->
|
|
23
26
|
<script setup>
|
|
24
27
|
import { onBeforeUnmount, ref } from "vue";
|
|
25
28
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
@@ -67,13 +70,13 @@ const props = defineProps({
|
|
|
67
70
|
|
|
68
71
|
const show = ref(false);
|
|
69
72
|
let innerViewId = -1;
|
|
70
|
-
let clientWidth = props.width;
|
|
71
|
-
let clientHeight = props.height;
|
|
73
|
+
let clientWidth = ref(props.width);
|
|
74
|
+
let clientHeight = ref(props.height);
|
|
72
75
|
|
|
73
76
|
const getClientSize = () => {
|
|
74
77
|
return {
|
|
75
|
-
width: clientWidth,
|
|
76
|
-
height: clientHeight,
|
|
78
|
+
width: clientWidth.value,
|
|
79
|
+
height: clientHeight.value,
|
|
77
80
|
};
|
|
78
81
|
};
|
|
79
82
|
const showView = () => {
|
|
@@ -104,15 +107,18 @@ const showView = () => {
|
|
|
104
107
|
);
|
|
105
108
|
|
|
106
109
|
pluginTexture.RegisterLoadImageCallback(null, (data) => {
|
|
110
|
+
console.log("testtest texture load callback", data);
|
|
107
111
|
tryUpdateClientSize(data.width, data.height);
|
|
108
112
|
});
|
|
109
113
|
|
|
110
114
|
const tryUpdateClientSize = (textureW, textureH) => {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
+
console.log("testtet latex texture size", textureW, textureH);
|
|
116
|
+
if (textureW <= 0 || textureH <= 0) {
|
|
117
|
+
console.warn("JsvLatex get empth texture", textureW, textureH);
|
|
118
|
+
return;
|
|
115
119
|
}
|
|
120
|
+
clientWidth.value = Math.min(textureW, props.width);
|
|
121
|
+
clientHeight.value = Math.round(clientWidth.value * (textureH / textureW));
|
|
116
122
|
};
|
|
117
123
|
|
|
118
124
|
let layoutView = new Forge.LayoutView(
|
|
@@ -149,13 +155,13 @@ defineExpose({
|
|
|
149
155
|
|
|
150
156
|
<template>
|
|
151
157
|
<div
|
|
152
|
-
v-if="show"
|
|
153
|
-
:data-jsv-vw-innerview="innerViewId"
|
|
154
158
|
:style="{
|
|
155
159
|
left: left,
|
|
156
160
|
top: top,
|
|
157
|
-
width:
|
|
158
|
-
height:
|
|
161
|
+
width: clientWidth,
|
|
162
|
+
height: clientHeight,
|
|
159
163
|
}"
|
|
160
|
-
|
|
164
|
+
>
|
|
165
|
+
<div v-if="show" :data-jsv-vw-innerview="innerViewId"></div>
|
|
166
|
+
</div>
|
|
161
167
|
</template>
|
|
@@ -17,7 +17,29 @@ const globalLoadJsvLatexPlugin = (listener) => {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
function processLatexStr(origin) {
|
|
21
|
+
//只将数学环境外的换行替换为\\
|
|
22
|
+
if (typeof origin !== "string") {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
const index1 = origin.indexOf("\\begin");
|
|
26
|
+
const index2 = origin.indexOf("}", origin.lastIndexOf("\\end"));
|
|
27
|
+
if (index1 >= 0) {
|
|
28
|
+
const head = origin.substring(0, index1);
|
|
29
|
+
const middle = origin.substring(index1, index2 + 1);
|
|
30
|
+
const tail = origin.substring(index2 + 1);
|
|
31
|
+
return (
|
|
32
|
+
head.replaceAll(/(?<!\\\\)[\n]+/g, "\\\\") +
|
|
33
|
+
middle +
|
|
34
|
+
tail.replaceAll(/(?<!\\\\)[\n]+/g, "\\\\")
|
|
35
|
+
);
|
|
36
|
+
} else {
|
|
37
|
+
return origin.replaceAll(/(?<!\\\\)[\n]+/g, "\\\\");
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
20
41
|
export {
|
|
21
42
|
JsvLatex,
|
|
43
|
+
processLatexStr,
|
|
22
44
|
globalLoadJsvLatexPlugin,
|
|
23
45
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define.mjs";
|
|
2
|
+
|
|
3
|
+
// 记录已激活内容,减少激活的重复调用,提高执行性能
|
|
4
|
+
let sActivedMap = new Map();
|
|
5
|
+
let sDisabledMap = new Map();
|
|
6
|
+
|
|
7
|
+
// Component名称列表, 注意大小写
|
|
8
|
+
namespace FeatureNames {
|
|
9
|
+
// 'TouchReceiver': 触屏支持
|
|
10
|
+
export const TouchReceiver: String = "TouchReceiver";
|
|
11
|
+
|
|
12
|
+
// 'FreeMoveDiv': 游戏类平滑动画组件
|
|
13
|
+
export const FreeMoveDiv: String = "FreeMoveDiv";
|
|
14
|
+
|
|
15
|
+
// 'CustomFragShader': 内容3D化效果组件
|
|
16
|
+
export const CustomFragShader: String = "CustomFragShader";
|
|
17
|
+
|
|
18
|
+
// 'Capture2Texture': div拷屏
|
|
19
|
+
export const Capture2Texture: String = "Capture2Texture";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// 激活内核中的模块
|
|
23
|
+
// 特别注意:
|
|
24
|
+
// 此接口调用时,请联系我们确认所在渠道此功能被搭载并已经获取了授权后再调用
|
|
25
|
+
//
|
|
26
|
+
// 场景1: 强制激活未授权的组件
|
|
27
|
+
// 如果激活未授权的组件,屏幕会有未授权的组件列表水印出现
|
|
28
|
+
// 并且如果所在渠道的内核不带此功能的话,会引起崩溃一系列问题
|
|
29
|
+
//
|
|
30
|
+
// 场景2: 未激活组件,而实际使用
|
|
31
|
+
// 组件使用时会自动调用 JsvUseFeature 来确认是否激活
|
|
32
|
+
// 若未激活则,会有console.error提示,并且内核中此功能也不会工作(此处也规避了内核可能未搭载组件而崩溃的问题)
|
|
33
|
+
function JsvActiveFeature(comp_name: String) {
|
|
34
|
+
if (sActivedMap.has(comp_name)) {
|
|
35
|
+
// 已经激活过
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (sDisabledMap.has(comp_name)) {
|
|
40
|
+
console.error(`Error: feature ${comp_name} is disabled`);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
sActivedMap.set(comp_name, comp_name); // 记录已激活内容
|
|
45
|
+
|
|
46
|
+
console.log(`feature ${comp_name} enable`);
|
|
47
|
+
Forge.sRenderBridge.ActiveComponent(comp_name);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// 模块内部调用,确保要使用功能时,功能已经授权并激活
|
|
51
|
+
function JsvUseFeature(from: String, comp_name: String) {
|
|
52
|
+
if (sActivedMap.has(comp_name)) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
console.error(`Error: ${comp_name}(from ${from}) is not activated, need JsvActiveFeature(JsvFeatureNames.${comp_name}) in boot`);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// 备用接口: 防止未授权组件被错误激活引起的崩溃和水印显示
|
|
60
|
+
function JsvShutdownFeatures(comp_name_list: Array<String>) {
|
|
61
|
+
if (sActivedMap.size > 0) {
|
|
62
|
+
console.log(`Error: JsvShutdownFeatures should call before any JsvActiveFeature()`);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
let merged_comps: Array<String> = [];
|
|
67
|
+
for (let i = 0; i < comp_name_list.length; i++) {
|
|
68
|
+
let comp_name: String = comp_name_list[i];
|
|
69
|
+
|
|
70
|
+
// 记录变更信息,一旦记入disable列表,则不可被active,且原active会失效
|
|
71
|
+
sDisabledMap.set(comp_name, comp_name);
|
|
72
|
+
merged_comps.push(comp_name_list[i]);
|
|
73
|
+
console.log(`feature ${comp_name} disable`);
|
|
74
|
+
}
|
|
75
|
+
Forge.sRenderBridge.ShutdownComponents(JSON.stringify(merged_comps));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export {
|
|
79
|
+
FeatureNames,
|
|
80
|
+
FeatureNames as JsvFeatureNames,
|
|
81
|
+
JsvActiveFeature,
|
|
82
|
+
JsvUseFeature,
|
|
83
|
+
JsvShutdownFeatures
|
|
84
|
+
}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
let handles
|
|
1
|
+
let handles: {
|
|
2
|
+
TextureManager: any,
|
|
3
|
+
RootView: any,
|
|
4
|
+
RootActivity: any
|
|
5
|
+
} = {
|
|
2
6
|
TextureManager: null,
|
|
3
7
|
RootView: null,
|
|
4
8
|
RootActivity: null
|
|
5
9
|
}
|
|
6
10
|
|
|
7
11
|
const jsvCode = (window as any).JsvCode;
|
|
8
|
-
jsvCode.ForgeHandles.listenToReady(()=>{
|
|
12
|
+
jsvCode.ForgeHandles.listenToReady(() => {
|
|
9
13
|
handles.TextureManager = jsvCode.ForgeHandles.TextureManager;
|
|
10
14
|
handles.RootView = jsvCode.ForgeHandles.RootView;
|
|
11
|
-
handles.RootActivity = jsvCode.ForgeHandles.RootActivity;
|
|
15
|
+
handles.RootActivity = jsvCode.ForgeHandles.RootActivity;
|
|
12
16
|
})
|
|
13
17
|
|
|
14
18
|
export default handles;
|
|
@@ -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 = {};
|
|
@@ -540,6 +544,62 @@ 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 {
|