@shijiu/jsview-vue 2.2.373 → 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/jsview-vue.mjs +333 -487
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/CheckType.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusBlock.vue.d.ts +0 -34
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusHub.d.ts +0 -4
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +12 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Const.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Dispatcher.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/ListWidget.vue.d.ts +0 -8
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +161 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidgetSetup.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/PageUpdater.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/RenderItem.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Slide.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/SlotComponent.vue.d.ts +0 -4
- 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/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/VisibleInfo.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/WidgetRectInfo.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/RangeModel.d.ts +0 -4
- package/bin/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/CommonMetroTemplate.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/Fence.d.ts +2 -6
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/ListMetroTemplate.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/MetroTemplate.d.ts +3 -7
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/TemplateItemAdder.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/index.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/WidgetCommon.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/index.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAccount/JsvAccount.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -8
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/CheckType.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/Events.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudio.vue.d.ts +4 -8
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioBridgeProxy.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioProxy.vue.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/ScreenLockManager.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/index.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +13 -0
- package/bin/types/{JsViewPlugin/JsvLatex → utils/JsViewPlugin/JsvAudio}/version.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserDomBuilder.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserJsvLatex.vue.d.ts +4 -8
- package/bin/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatex.vue.d.ts +4 -28
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexProxy.vue.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/index.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +13 -0
- package/bin/types/{JsViewPlugin/JsvAudio → utils/JsViewPlugin/JsvLatex}/version.d.ts +0 -5
- 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/{JsViewPlugin → utils/JsViewPlugin}/index.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ConstSymbol.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugContentShellJBridge.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugTool.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DefaultKeyMap.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/FeatureActive.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeConstDefine.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeHandles.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDemoTester.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicCssStyle.d.ts +0 -17
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicKeyFrames.d.ts +0 -17
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvFederationTools.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvHashHistory.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvImpactTracer.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPerformance.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPreDownloader.d.ts +0 -21
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRefTaker.d.ts +0 -26
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRuntimeBridge.d.ts +0 -8
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleClass.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleSheetsDeclarer.d.ts +0 -18
- package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +61 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureDefines.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureLoadTool.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CommandList.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/Path.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts +0 -22
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Store.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Texture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/NinePatchHelper.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/TextureManagerTools.d.ts +0 -4
- package/bin/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +3 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/index.d.ts +0 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/ActorControlBase.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMoveControl.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts +0 -20
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -5
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/GifData.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/Viewer.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/WebpData.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvCommonLoopToolBase.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/JsvClipDiv.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDragBox/JsvDragBox.vue.d.ts +0 -25
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/JsvDriftScope.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvEnableRenderBreak.vue.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFilterView.vue.d.ts +3 -22
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +75 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFlexCell/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts → utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts} +1 -5
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorControl.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/CallbackManager.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ForgeTypeDefine.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +9 -34
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +3 -25
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +7 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/NexusNode.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetAction.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetCondition.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetState.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SyncLinkManager.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvGrid.vue.d.ts +0 -73
- package/bin/types/utils/JsViewVueWidget/JsvHole.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/Cursor.vue.d.ts +1 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditViewOperator.d.ts +2 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditVisibleArea.d.ts +4 -5
- package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SharedDefine.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SystemTextTools.d.ts +7 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
- package/bin/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvLine/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMaskClipDiv.vue.d.ts +0 -22
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Constant.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/DataTree.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Geometry.d.ts +2 -6
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/JsvMindMap.vue.d.ts +9 -92
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/rtree.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNativeSharedDiv.vue.d.ts +0 -18
- package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +21 -0
- package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterDiv.vue.d.ts +0 -17
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterImage.vue.d.ts +0 -18
- package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
- package/bin/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvQrcode/JsvQrcode.vue.d.ts +1 -26
- package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
- package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
- package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollBox.vue.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollFollow.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollSymbol.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSector.vue.d.ts +0 -18
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSoundPool.d.ts +0 -42
- package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +38 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/FrameBuidler.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +0 -16
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteTools.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/SpriteController.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/JsvSwiper.vue.d.ts +1 -40
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -27
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextBox.vue.d.ts +0 -26
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/CommonType.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/JsvTextureAnim.vue.d.ts +2 -7
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTouchModeSwitcher.vue.d.ts +3 -28
- package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +6 -31
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/index.d.ts +6 -10
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/index.d.ts +2 -6
- package/bin/types/{index.d.ts → utils/index.d.ts} +0 -4
- package/index.d.ts +2 -2
- package/package.json +1 -1
- package/tools/jsview-vue-build.mjs +3 -2
- package/tsconfig.json +27 -0
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.ts +3 -22
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +19 -33
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -1
- package/utils/JsViewEngineWidget/TemplateParser/Fence.ts +2 -2
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -4
- package/utils/JsViewPlugin/JsvAudio/version.js +1 -1
- package/utils/JsViewPlugin/JsvAudio/version.mjs +1 -1
- package/utils/JsViewVueTools/JsvHashHistory.js +26 -29
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +70 -70
- package/utils/JsViewVueTools/JsvTextTools.ts +63 -130
- package/utils/JsViewVueTools/TypeCheckAndSet.ts +66 -0
- package/utils/JsViewVueTools/index.js +1 -1
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +9 -14
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +4 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/index.js +2 -9
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +47 -14
- package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +43 -10
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +22 -9
- package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +41 -27
- package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +3 -48
- package/utils/JsViewVueWidget/JsvPosterImage.vue +1 -2
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +21 -44
- package/utils/JsViewVueWidget/JsvPreload/index.js +2 -13
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
- package/utils/JsViewVueWidget/JsvSoundPool.js +3 -7
- package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +17 -14
- package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +0 -5
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +70 -75
- package/utils/JsViewVueWidget/JsvTextureAnim/index.js +2 -9
- package/utils/JsViewVueWidget/index.js +2 -2
- package/bin/browser/BrowserJsvFragShaderView.vue.mjs +0 -79
- package/bin/browser/BrowserPreload.vue.mjs +0 -139
- package/bin/browser/BrowserQrcode.vue.mjs +0 -176
- package/bin/browser/BrowserSpray.vue.mjs +0 -56
- package/bin/browser/BrowserTextureAnim.vue.mjs +0 -322
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +0 -25
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +0 -435
- package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +0 -6
- package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +0 -5
- package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +0 -5
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +0 -7
- package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +0 -5
- package/bin/types/JsViewVueTools/JsvTextTools.d.ts +0 -95
- package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +0 -102
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +0 -51
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +0 -34
- package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +0 -106
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +0 -106
- package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +0 -60
- package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvHole.d.ts +0 -19
- package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +0 -65
- package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +0 -32
- package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +0 -33
- package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +0 -50
- package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +0 -26
- package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +0 -14
- package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +0 -67
- package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +0 -21
- package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +0 -31
- package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +0 -15
- package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +0 -37
- package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +0 -8
- package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +0 -129
- package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +0 -28
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +0 -8
- package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +0 -29
- package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +0 -78
- package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +0 -70
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +0 -155
- package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +0 -18
- package/tools/config/tsconfig.json +0 -16
- package/utils/JsViewVueTools/TypeCheckAndSet.js +0 -27
- package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +0 -75
- 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/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActionRefObject.d.ts +0 -0
- /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorState.d.ts +0 -0
- /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/CommonType.d.ts +0 -0
|
@@ -21,7 +21,7 @@ function direct_call(name, ...args) {
|
|
|
21
21
|
direct_call_map[name] = func;
|
|
22
22
|
if (func) {
|
|
23
23
|
return func(...args);
|
|
24
|
-
}
|
|
24
|
+
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
return null;
|
|
@@ -47,7 +47,7 @@ function getExtFeatureSupports() {
|
|
|
47
47
|
* @returns {string} mac address
|
|
48
48
|
*
|
|
49
49
|
*/
|
|
50
|
-
function getMac(){
|
|
50
|
+
function getMac() {
|
|
51
51
|
return direct_call("getMac");
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -56,7 +56,7 @@ function getMac(){
|
|
|
56
56
|
* @returns {string} mac address
|
|
57
57
|
*
|
|
58
58
|
*/
|
|
59
|
-
function getWireMac(){
|
|
59
|
+
function getWireMac() {
|
|
60
60
|
return direct_call("getWireMac");
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -65,7 +65,7 @@ function getWireMac(){
|
|
|
65
65
|
* @returns {string} mac address
|
|
66
66
|
*
|
|
67
67
|
*/
|
|
68
|
-
function getWifiMac(){
|
|
68
|
+
function getWifiMac() {
|
|
69
69
|
return direct_call("getWifiMac");
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -74,7 +74,7 @@ function getWifiMac(){
|
|
|
74
74
|
* @returns {string} UUID
|
|
75
75
|
*
|
|
76
76
|
*/
|
|
77
|
-
function getDeviceUUID(){
|
|
77
|
+
function getDeviceUUID() {
|
|
78
78
|
return direct_call("getDeviceUUID");
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -83,7 +83,7 @@ function getDeviceUUID(){
|
|
|
83
83
|
* @returns {string} Android ID
|
|
84
84
|
*
|
|
85
85
|
*/
|
|
86
|
-
function getAndroidId(){
|
|
86
|
+
function getAndroidId() {
|
|
87
87
|
return direct_call("getAndroidId");
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -96,12 +96,12 @@ function getAndroidId(){
|
|
|
96
96
|
* @param {int} add_history 是否添加历史,0不添加,1添加
|
|
97
97
|
* @returns {Promise} 可用于监听新的小程序返回的结果
|
|
98
98
|
*/
|
|
99
|
-
function openWindow(url, startup_image, startup_video, startup_duration, add_history){
|
|
99
|
+
function openWindow(url, startup_image, startup_video, startup_duration, add_history) {
|
|
100
100
|
let setting = {};
|
|
101
|
-
if(startup_image !== null && startup_image !== "")
|
|
101
|
+
if (startup_image !== null && startup_image !== "")
|
|
102
102
|
setting.startupImage = startup_image;
|
|
103
103
|
|
|
104
|
-
if(startup_video !== null && startup_video !== ""){
|
|
104
|
+
if (startup_video !== null && startup_video !== "") {
|
|
105
105
|
setting.startupVideo = startup_video;
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -121,12 +121,12 @@ function openWindow(url, startup_image, startup_video, startup_duration, add_his
|
|
|
121
121
|
* @param {int} add_history 是否添加历史,0不添加,1添加
|
|
122
122
|
* @returns {Promise} 可用于监听新的小程序返回的结果
|
|
123
123
|
*/
|
|
124
|
-
function startUrlInNewTab(url, startup_image, startup_video, startup_duration, add_history){
|
|
124
|
+
function startUrlInNewTab(url, startup_image, startup_video, startup_duration, add_history) {
|
|
125
125
|
let setting = {};
|
|
126
|
-
if(startup_image !== null && startup_image !== "")
|
|
126
|
+
if (startup_image !== null && startup_image !== "")
|
|
127
127
|
setting.startupImage = startup_image;
|
|
128
128
|
|
|
129
|
-
if(startup_video !== null && startup_video !== ""){
|
|
129
|
+
if (startup_video !== null && startup_video !== "") {
|
|
130
130
|
setting.startupVideo = startup_video;
|
|
131
131
|
}
|
|
132
132
|
|
|
@@ -140,8 +140,8 @@ function startUrlInNewTab(url, startup_image, startup_video, startup_duration, a
|
|
|
140
140
|
* 用于给上一个小程序返回结果,通常与startUrlInNewTab和openWindow配合使用
|
|
141
141
|
* @param {string} data 返回给上一个小程序的结果
|
|
142
142
|
*/
|
|
143
|
-
function onWindowResult(data){
|
|
144
|
-
direct_call("onWindowResult",data)
|
|
143
|
+
function onWindowResult(data) {
|
|
144
|
+
direct_call("onWindowResult", data)
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
/**
|
|
@@ -152,12 +152,12 @@ function onWindowResult(data){
|
|
|
152
152
|
* @param {int} startup_duration 启动图时长,默认0
|
|
153
153
|
* @param {int} add_history 是否添加历史,0不添加,1添加
|
|
154
154
|
*/
|
|
155
|
-
function reloadWindow(url, startup_image, startup_video, startup_duration, add_history){
|
|
155
|
+
function reloadWindow(url, startup_image, startup_video, startup_duration, add_history) {
|
|
156
156
|
let setting = {};
|
|
157
|
-
if(startup_image !== null && startup_image !== "")
|
|
157
|
+
if (startup_image !== null && startup_image !== "")
|
|
158
158
|
setting.startupImage = startup_image;
|
|
159
159
|
|
|
160
|
-
if(startup_video !== null && startup_video !== ""){
|
|
160
|
+
if (startup_video !== null && startup_video !== "") {
|
|
161
161
|
setting.startupVideo = startup_video;
|
|
162
162
|
}
|
|
163
163
|
|
|
@@ -171,7 +171,7 @@ function reloadWindow(url, startup_image, startup_video, startup_duration, add_h
|
|
|
171
171
|
* 关闭当前小程序
|
|
172
172
|
*
|
|
173
173
|
*/
|
|
174
|
-
function closePage(){
|
|
174
|
+
function closePage() {
|
|
175
175
|
direct_call("closePage");
|
|
176
176
|
}
|
|
177
177
|
|
|
@@ -181,7 +181,7 @@ function closePage(){
|
|
|
181
181
|
* @returns {string} 属性值
|
|
182
182
|
*
|
|
183
183
|
*/
|
|
184
|
-
function getSystemProperty(key){
|
|
184
|
+
function getSystemProperty(key) {
|
|
185
185
|
return direct_call("getSystemProperty", key);
|
|
186
186
|
}
|
|
187
187
|
|
|
@@ -190,7 +190,7 @@ function getSystemProperty(key){
|
|
|
190
190
|
* @returns {string} 应用列表,JSON结构的数组
|
|
191
191
|
*
|
|
192
192
|
*/
|
|
193
|
-
function getInstalledApps(){
|
|
193
|
+
function getInstalledApps() {
|
|
194
194
|
return direct_call("getInstalledApps");
|
|
195
195
|
}
|
|
196
196
|
|
|
@@ -204,24 +204,24 @@ function getInstalledApps(){
|
|
|
204
204
|
* @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
|
|
205
205
|
*
|
|
206
206
|
*/
|
|
207
|
-
function startNativeApp(package_name, activity, action, uri, flags, param){
|
|
207
|
+
function startNativeApp(package_name, activity, action, uri, flags, param) {
|
|
208
208
|
var obj = {};
|
|
209
|
-
if(package_name !== null && package_name !== "")
|
|
209
|
+
if (package_name !== null && package_name !== "")
|
|
210
210
|
obj.packageName = package_name;
|
|
211
211
|
|
|
212
|
-
if(activity !== null && activity !== "")
|
|
212
|
+
if (activity !== null && activity !== "")
|
|
213
213
|
obj.activity = activity;
|
|
214
214
|
|
|
215
|
-
if(action !== null && action !== "")
|
|
215
|
+
if (action !== null && action !== "")
|
|
216
216
|
obj.action = action;
|
|
217
217
|
|
|
218
|
-
if(uri !== null && uri !== "")
|
|
218
|
+
if (uri !== null && uri !== "")
|
|
219
219
|
obj.uri = uri;
|
|
220
220
|
|
|
221
|
-
if(flags !== null && flags.length > 0)
|
|
221
|
+
if (flags !== null && flags.length > 0)
|
|
222
222
|
obj.flags = flags;
|
|
223
223
|
|
|
224
|
-
if(param !== null && param.length > 0)
|
|
224
|
+
if (param !== null && param.length > 0)
|
|
225
225
|
obj.param = param;
|
|
226
226
|
|
|
227
227
|
direct_call("startNativeApp", JSON.stringify(obj));
|
|
@@ -237,25 +237,25 @@ function startNativeApp(package_name, activity, action, uri, flags, param){
|
|
|
237
237
|
* @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
|
|
238
238
|
*
|
|
239
239
|
*/
|
|
240
|
-
function sendNativeBroadcast(package_name, broadcast, action, uri, flags, param){
|
|
240
|
+
function sendNativeBroadcast(package_name, broadcast, action, uri, flags, param) {
|
|
241
241
|
|
|
242
242
|
var obj = {};
|
|
243
|
-
if(typeof package_name != undefined && package_name !== null && package_name !== "")
|
|
243
|
+
if (typeof package_name != undefined && package_name !== null && package_name !== "")
|
|
244
244
|
obj.packageName = package_name;
|
|
245
245
|
|
|
246
|
-
if(typeof broadcast != undefined && broadcast !== null && broadcast !== "")
|
|
246
|
+
if (typeof broadcast != undefined && broadcast !== null && broadcast !== "")
|
|
247
247
|
obj.broadcast = broadcast;
|
|
248
248
|
|
|
249
|
-
if(typeof action != undefined && action !== null && action !== "")
|
|
249
|
+
if (typeof action != undefined && action !== null && action !== "")
|
|
250
250
|
obj.action = action;
|
|
251
251
|
|
|
252
|
-
if(typeof uri != undefined && uri !== null && uri !== "")
|
|
252
|
+
if (typeof uri != undefined && uri !== null && uri !== "")
|
|
253
253
|
obj.uri = uri;
|
|
254
254
|
|
|
255
|
-
if(typeof flags != undefined && flags !== null && flags.length > 0)
|
|
255
|
+
if (typeof flags != undefined && flags !== null && flags.length > 0)
|
|
256
256
|
obj.flags = flags;
|
|
257
257
|
|
|
258
|
-
if(typeof param != undefined && param !== null && param.length > 0)
|
|
258
|
+
if (typeof param != undefined && param !== null && param.length > 0)
|
|
259
259
|
obj.param = param;
|
|
260
260
|
direct_call("sendNativeBroadcast", JSON.stringify(obj));
|
|
261
261
|
}
|
|
@@ -271,27 +271,27 @@ function sendNativeBroadcast(package_name, broadcast, action, uri, flags, param)
|
|
|
271
271
|
* @param {boolean} is_foreground 是否使用startForegroundService
|
|
272
272
|
*
|
|
273
273
|
*/
|
|
274
|
-
function startService(package_name, services, action, uri, flags, param,is_foreground){
|
|
274
|
+
function startService(package_name, services, action, uri, flags, param, is_foreground) {
|
|
275
275
|
|
|
276
276
|
var obj = {};
|
|
277
|
-
if(typeof package_name != undefined && package_name !== null && package_name !== "")
|
|
277
|
+
if (typeof package_name != undefined && package_name !== null && package_name !== "")
|
|
278
278
|
obj.packageName = package_name;
|
|
279
279
|
|
|
280
|
-
if(typeof services != undefined && services !== null && services !== "")
|
|
280
|
+
if (typeof services != undefined && services !== null && services !== "")
|
|
281
281
|
obj.services = services;
|
|
282
282
|
|
|
283
|
-
if(typeof action != undefined && action !== null && action !== "")
|
|
283
|
+
if (typeof action != undefined && action !== null && action !== "")
|
|
284
284
|
obj.action = action;
|
|
285
285
|
|
|
286
|
-
if(typeof uri != undefined && uri !== null && uri !== "")
|
|
286
|
+
if (typeof uri != undefined && uri !== null && uri !== "")
|
|
287
287
|
obj.uri = uri;
|
|
288
288
|
|
|
289
|
-
if(typeof flags != undefined && flags !== null && flags.length > 0)
|
|
289
|
+
if (typeof flags != undefined && flags !== null && flags.length > 0)
|
|
290
290
|
obj.flags = flags;
|
|
291
291
|
|
|
292
|
-
if(typeof param != undefined && param !== null && param.length > 0)
|
|
292
|
+
if (typeof param != undefined && param !== null && param.length > 0)
|
|
293
293
|
obj.param = param;
|
|
294
|
-
direct_call("startServices", JSON.stringify(obj),is_foreground);
|
|
294
|
+
direct_call("startServices", JSON.stringify(obj), is_foreground);
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
/**
|
|
@@ -307,7 +307,7 @@ function getDeviceInfo() {
|
|
|
307
307
|
* 获取自己的app信息
|
|
308
308
|
* @returns
|
|
309
309
|
*/
|
|
310
|
-
function getAppInfo(){
|
|
310
|
+
function getAppInfo() {
|
|
311
311
|
return direct_call("getAppInfo");
|
|
312
312
|
}
|
|
313
313
|
|
|
@@ -321,7 +321,7 @@ function notifyPageLoadDone() {
|
|
|
321
321
|
|
|
322
322
|
function notifyPageLoaded() {
|
|
323
323
|
// 激活JsView的按键优化处理逻辑
|
|
324
|
-
window.
|
|
324
|
+
window.JsvCoreApi.enableReceivingUserInput?.();
|
|
325
325
|
|
|
326
326
|
direct_call("notifyPageLoaded");
|
|
327
327
|
}
|
|
@@ -331,7 +331,7 @@ function notifyPageLoaded() {
|
|
|
331
331
|
* @returns {boolean} true支持,false不支持
|
|
332
332
|
*
|
|
333
333
|
*/
|
|
334
|
-
function hasFavouriteFunction(){
|
|
334
|
+
function hasFavouriteFunction() {
|
|
335
335
|
let features = getExtFeatureSupports();
|
|
336
336
|
if (features && features.indexOf("favourite") >= 0) {
|
|
337
337
|
return true;
|
|
@@ -363,11 +363,11 @@ function getStartParams() {
|
|
|
363
363
|
function addFavourite(url, callback) {
|
|
364
364
|
if (window.jJsvRuntimeBridge && typeof window.jJsvRuntimeBridge.addFavourite === "function") {
|
|
365
365
|
let async_message = window.jJsvRuntimeBridge.addFavourite(url);
|
|
366
|
-
async_message.then((result)=>{
|
|
366
|
+
async_message.then((result) => {
|
|
367
367
|
if (callback) {
|
|
368
368
|
callback(result);
|
|
369
369
|
}
|
|
370
|
-
}).catch((result)=>{
|
|
370
|
+
}).catch((result) => {
|
|
371
371
|
if (callback) {
|
|
372
372
|
callback(result);
|
|
373
373
|
}
|
|
@@ -384,11 +384,11 @@ function addFavourite(url, callback) {
|
|
|
384
384
|
function updateFavourite(url, callback) {
|
|
385
385
|
if (window.jJsvRuntimeBridge && typeof window.jJsvRuntimeBridge.updateFavourite === "function") {
|
|
386
386
|
let async_message = window.jJsvRuntimeBridge.updateFavourite(url);
|
|
387
|
-
async_message.then((result)=>{
|
|
387
|
+
async_message.then((result) => {
|
|
388
388
|
if (callback) {
|
|
389
389
|
callback(result)
|
|
390
390
|
}
|
|
391
|
-
}).catch((result)=>{
|
|
391
|
+
}).catch((result) => {
|
|
392
392
|
if (callback) {
|
|
393
393
|
callback(result);
|
|
394
394
|
}
|
|
@@ -405,11 +405,11 @@ function updateFavourite(url, callback) {
|
|
|
405
405
|
function removeFavourite(app_name, callback) {
|
|
406
406
|
if (window.jJsvRuntimeBridge && typeof window.jJsvRuntimeBridge.removeFavourite === "function") {
|
|
407
407
|
let async_message = window.jJsvRuntimeBridge.removeFavourite(app_name);
|
|
408
|
-
async_message.then((result)=>{
|
|
408
|
+
async_message.then((result) => {
|
|
409
409
|
if (callback) {
|
|
410
410
|
callback(result)
|
|
411
411
|
}
|
|
412
|
-
}).catch((result)=>{
|
|
412
|
+
}).catch((result) => {
|
|
413
413
|
if (callback) {
|
|
414
414
|
callback(result);
|
|
415
415
|
}
|
|
@@ -468,7 +468,7 @@ function popupGainFocus() {
|
|
|
468
468
|
direct_call("popupGainFocus");
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
-
function popupDiscardFocus(){
|
|
471
|
+
function popupDiscardFocus() {
|
|
472
472
|
direct_call("popupGainFocus");
|
|
473
473
|
}
|
|
474
474
|
|
|
@@ -488,12 +488,12 @@ function popupDiscardFocus(){
|
|
|
488
488
|
* int: 为view_refer_id值,预热后的View的ID,用于后续的warmLoadView和closeWarmView使用
|
|
489
489
|
*/
|
|
490
490
|
function warmUpView(mode, app_url) {
|
|
491
|
-
if(mode !== 1 && mode !== 2) {
|
|
491
|
+
if (mode !== 1 && mode !== 2) {
|
|
492
492
|
console.error(`not support mode(${mode})`);
|
|
493
493
|
return -1;
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
-
if(mode === 1 && (app_url === null || app_url.length === 0)) {
|
|
496
|
+
if (mode === 1 && (app_url === null || app_url.length === 0)) {
|
|
497
497
|
console.error(`not support params(${mode} ${app_url})`);
|
|
498
498
|
return -1;
|
|
499
499
|
}
|
|
@@ -528,27 +528,27 @@ function closeWarmedView(view_refer_id) {
|
|
|
528
528
|
* 例如: 1021265_release_build_xxx
|
|
529
529
|
* @returns promise 对象,用于监听下载完成与下载失败
|
|
530
530
|
*/
|
|
531
|
-
function preDownloadSdk(core_version){
|
|
531
|
+
function preDownloadSdk(core_version) {
|
|
532
532
|
return direct_call("preDownloadSdk", core_version);
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
function getNetworkTypeStatusImmediate(){
|
|
535
|
+
function getNetworkTypeStatusImmediate() {
|
|
536
536
|
return direct_call("getNetworkTypeStatusImmediate");
|
|
537
537
|
}
|
|
538
538
|
|
|
539
|
-
function registerNetStateListener(callback){
|
|
539
|
+
function registerNetStateListener(callback) {
|
|
540
540
|
return direct_call("registerNetStateListener", callback);
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
-
function unRegisterNetStateListener(callback){
|
|
543
|
+
function unRegisterNetStateListener(callback) {
|
|
544
544
|
return direct_call("unRegisterNetStateListener", callback);
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
function getSnId(){
|
|
547
|
+
function getSnId() {
|
|
548
548
|
return direct_call("getSnId");
|
|
549
549
|
}
|
|
550
550
|
|
|
551
|
-
function getEmmcCid(){
|
|
551
|
+
function getEmmcCid() {
|
|
552
552
|
return direct_call("getEmmcCid");
|
|
553
553
|
}
|
|
554
554
|
|
|
@@ -561,10 +561,10 @@ function getEmmcCid(){
|
|
|
561
561
|
* @param {string} sortOrder
|
|
562
562
|
* @returns
|
|
563
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);
|
|
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
568
|
}
|
|
569
569
|
|
|
570
570
|
/**
|
|
@@ -573,8 +573,8 @@ function providerQuery(uri,projection,selection,selectionArgs,sortOrder){
|
|
|
573
573
|
* @param {object} contentValue
|
|
574
574
|
* @returns
|
|
575
575
|
*/
|
|
576
|
-
function providerInsert(uri,contentValue){
|
|
577
|
-
return direct_call("providerInsert",uri,contentValue?JSON.stringify(contentValue):null)
|
|
576
|
+
function providerInsert(uri, contentValue) {
|
|
577
|
+
return direct_call("providerInsert", uri, contentValue ? JSON.stringify(contentValue) : null)
|
|
578
578
|
}
|
|
579
579
|
|
|
580
580
|
/**
|
|
@@ -584,8 +584,8 @@ function providerInsert(uri,contentValue){
|
|
|
584
584
|
* @param {string[]} selectionArgs
|
|
585
585
|
* @returns
|
|
586
586
|
*/
|
|
587
|
-
function providerDelete(uri,selection,selectionArgs){
|
|
588
|
-
return direct_call("providerDelete",uri,selection,selectionArgs?JSON.stringify(selectionArgs):null)
|
|
587
|
+
function providerDelete(uri, selection, selectionArgs) {
|
|
588
|
+
return direct_call("providerDelete", uri, selection, selectionArgs ? JSON.stringify(selectionArgs) : null)
|
|
589
589
|
}
|
|
590
590
|
|
|
591
591
|
/**
|
|
@@ -596,8 +596,8 @@ function providerDelete(uri,selection,selectionArgs){
|
|
|
596
596
|
* @param {string[]} selectionArgs
|
|
597
597
|
* @returns
|
|
598
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)
|
|
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
601
|
}
|
|
602
602
|
|
|
603
603
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define.mjs";
|
|
2
2
|
|
|
3
|
+
// 按照Css的style设置名称对应
|
|
3
4
|
declare interface FontStyleDefine {
|
|
4
5
|
fontFamily: string,
|
|
5
6
|
fontSize: number,
|
|
@@ -23,14 +24,8 @@ declare interface FontStyleDefine {
|
|
|
23
24
|
* @return {int} 文字宽度
|
|
24
25
|
**/
|
|
25
26
|
const getTextWidth = (text: string, style: FontStyleDefine) => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
font: style.fontFamily ? style.fontFamily : Forge.TextUtils.sDefaultFont,
|
|
29
|
-
size: style.fontSize ? style.fontSize : Forge.TextUtils.sDefaultFontSize,
|
|
30
|
-
italic: style.fontStyle === "italic" ? "italic" : "",
|
|
31
|
-
bold: style.fontWeight === "bold" ? "bold" : "",
|
|
32
|
-
};
|
|
33
|
-
return (window as any).PlatformUtils.GetTextWidth(textParams);
|
|
27
|
+
let forgeRef = Forge;
|
|
28
|
+
return Forge.TextUtils.GetTextWidth(text, style);
|
|
34
29
|
};
|
|
35
30
|
|
|
36
31
|
/*!
|
|
@@ -57,27 +52,8 @@ const getOneLineTextDrawWidth = (text: string, style: FontStyleDefine) => {
|
|
|
57
52
|
if (text && typeof text != "string") {
|
|
58
53
|
text = "" + text; // 规避text为非字符串导致接口调用错误的问题
|
|
59
54
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
style.fontFamily ?? Forge.TextUtils.sDefaultFont,
|
|
63
|
-
style.fontSize ?? Forge.TextUtils.sDefaultFontSize,
|
|
64
|
-
style.fontStyle === "italic" ? "italic" : "",
|
|
65
|
-
style.fontWeight === "bold" ? "bold" : "");
|
|
66
|
-
const result: {
|
|
67
|
-
totalWidth: number,
|
|
68
|
-
sliceInfo: Array<any>
|
|
69
|
-
} = {
|
|
70
|
-
totalWidth: info[0],
|
|
71
|
-
sliceInfo: [],
|
|
72
|
-
}
|
|
73
|
-
for (let i = 1; i < info.length; i += 3) {
|
|
74
|
-
result.sliceInfo.push({
|
|
75
|
-
start: info[i],
|
|
76
|
-
end: info[i + 1],
|
|
77
|
-
width: info[2 + 2],
|
|
78
|
-
})
|
|
79
|
-
}
|
|
80
|
-
return result;
|
|
55
|
+
|
|
56
|
+
return Forge.TextUtils.GetOneLineTextDrawWidth(text, style);
|
|
81
57
|
}
|
|
82
58
|
|
|
83
59
|
const isRtl = (str: string) => {
|
|
@@ -95,16 +71,28 @@ const isRtl = (str: string) => {
|
|
|
95
71
|
return false;
|
|
96
72
|
}
|
|
97
73
|
|
|
74
|
+
declare interface CssFontStyle {
|
|
75
|
+
fontFamily: string,
|
|
76
|
+
fontSize: number,
|
|
77
|
+
fontStyle: string,
|
|
78
|
+
fontWeight: string
|
|
79
|
+
}
|
|
98
80
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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,
|
|
103
89
|
}
|
|
104
90
|
|
|
105
|
-
declare interface
|
|
91
|
+
declare interface CursorResult {
|
|
92
|
+
parseSuccess: boolean,
|
|
106
93
|
x: number,
|
|
107
|
-
y: number
|
|
94
|
+
y: number,
|
|
95
|
+
cachedId: number, // 解析缓存的id,当设置不变的时候使用cache, 0为无效cache
|
|
108
96
|
}
|
|
109
97
|
|
|
110
98
|
/**
|
|
@@ -112,112 +100,57 @@ declare interface PostionDefine {
|
|
|
112
100
|
*
|
|
113
101
|
* @public
|
|
114
102
|
* @func GetCursorPosition
|
|
115
|
-
* @
|
|
116
|
-
* @params {string} str 文字字符串
|
|
117
|
-
* @params {Forge.RectArea} max_rect
|
|
118
|
-
* @param {PackedFontParams} font_params 文本描述符(来源自 PackFontParams 函数)
|
|
119
|
-
* @param {PackedTextAttrs} text_attr (来源自 PackTextAttrs 函数)
|
|
120
|
-
* @param {int} line_height
|
|
121
|
-
* @param {int} pos_x 光标的偏移
|
|
122
|
-
* @return {Object} 光标的所在位置{x:0,y:0}
|
|
103
|
+
* @return {CursorResult} 光标的所在位置{x:0,y:0}
|
|
123
104
|
**/
|
|
124
|
-
function
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
return { x: 0, y: 0 }
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
class PackedFontParams {
|
|
142
|
-
public font?: string; // font family name
|
|
143
|
-
public size?: number; // font size
|
|
144
|
-
public bold?: string; // ""/"bold"
|
|
145
|
-
public italic?: string; // ""/"italic"
|
|
146
|
-
public alignment?: string; // left / right /center
|
|
147
|
-
public textColour?: string;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**k
|
|
151
|
-
* 创建文本描述符
|
|
152
|
-
*
|
|
153
|
-
* @public
|
|
154
|
-
* @func PackFontParam
|
|
155
|
-
* @param {string} font_family CSS字体名字,如“黑体 欧文”(支持多字体设置)
|
|
156
|
-
* @param {int} font_size
|
|
157
|
-
* @param {boolean} italic 是否为斜体
|
|
158
|
-
* @param {boolean} bold 是否加粗
|
|
159
|
-
* @param {string} alignment 水平对齐方式,支持("left", "middle", "right", "justify")
|
|
160
|
-
* @param {string} text_color 文字颜色(format "#FFFFFF")
|
|
161
|
-
**/
|
|
162
|
-
function PackFontParams(
|
|
163
|
-
font_family: string | null,
|
|
164
|
-
font_size: number,
|
|
165
|
-
bold: boolean,
|
|
166
|
-
italic: boolean,
|
|
167
|
-
alignment: string,
|
|
168
|
-
text_color: string | null): PackedFontParams {
|
|
169
|
-
|
|
170
|
-
let packed = new PackedFontParams();
|
|
171
|
-
|
|
172
|
-
if (!font_size) font_size = Forge.TextUtils.sDefaultFontSize;
|
|
173
|
-
if (!font_family) font_family = Forge.TextUtils.sDefaultFont;
|
|
174
|
-
|
|
175
|
-
packed.size = font_size;
|
|
176
|
-
packed.font = font_family!;
|
|
177
|
-
packed.italic = italic ? "italic" : "";
|
|
178
|
-
packed.bold = bold ? "bold" : "";
|
|
179
|
-
|
|
180
|
-
packed.alignment = (alignment && alignment.length > 0) ? alignment : "left";
|
|
181
|
-
packed.textColour = text_color ? text_color : Forge.TextUtils.sDefaultFontColor;
|
|
182
|
-
|
|
183
|
-
return packed;
|
|
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;
|
|
184
118
|
}
|
|
185
119
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
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;
|
|
189
139
|
}
|
|
190
140
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
* @func PackTextAttrs
|
|
196
|
-
* @param {String} text_overflow 超过描画边界时的处理方式:<br>
|
|
197
|
-
* "none" 按照文字宽度描画<br>
|
|
198
|
-
* "clip" 超出本分不显示(默认)<br>
|
|
199
|
-
* "ellipsis" 如果超出,则末尾显示“...”
|
|
200
|
-
* 其余字符 当文字超出时,用此字符替换“...”的位置
|
|
201
|
-
* @param {String} word_wrap 设置自然换行规则<br>
|
|
202
|
-
* "none":“不折行”<br>
|
|
203
|
-
* "normal":折行时,尽量不切断单词(仅支持英文单词)<br>
|
|
204
|
-
* "break_word":不去识别单词,到达边缘就折行(执行效率高)
|
|
205
|
-
* @return {PackedTextAttrs} 文本区域描述符
|
|
206
|
-
**/
|
|
207
|
-
function PackTextAttrs(text_overflow: string, word_wrap: string): PackedTextAttrs {
|
|
208
|
-
if (!text_overflow) text_overflow = "none";
|
|
209
|
-
if (!word_wrap) word_wrap = "none";
|
|
210
|
-
|
|
211
|
-
return { text_overflow: text_overflow, word_wrap: word_wrap };
|
|
141
|
+
function recycleCursorPositionCache(
|
|
142
|
+
cached_id: number
|
|
143
|
+
) {
|
|
144
|
+
Forge.TextUtils.RemoveCursorTextCache(cached_id);
|
|
212
145
|
}
|
|
213
146
|
|
|
214
147
|
const TextTools = {
|
|
215
148
|
getOneLineTextDrawWidth,
|
|
216
149
|
getTextWidth,
|
|
217
150
|
isRtl,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
151
|
+
getCursorPosition,
|
|
152
|
+
getCursorPositionCached,
|
|
153
|
+
recycleCursorPositionCache
|
|
221
154
|
}
|
|
222
155
|
|
|
223
156
|
export { getTextWidth, TextTools };
|