@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
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
+ @file {@link file://./../../../../utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.ts}
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
declare const useFocusHub: (withNameSpace: any) => unknown;
|
|
6
|
-
export declare class JsvFocusManager {
|
|
7
|
-
private $_appMount;
|
|
8
|
-
private $_topFDiv;
|
|
9
|
-
private $_autoSearchFocus;
|
|
10
|
-
constructor(config: any);
|
|
11
|
-
install(app: any, ...options: any): void;
|
|
12
|
-
getCurrentFocusStack(): any;
|
|
13
|
-
$_hookMount(app: any, rootNodeId: any): (rootContainer: any) => any;
|
|
14
|
-
$_doAppMount(rootContainer: any): any;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* 创建 JsView 焦点管理器
|
|
18
|
-
*
|
|
19
|
-
* @param {Object} config: 对象设置,子参数有{
|
|
20
|
-
* autoSearchFocus{boolean}: 是否开启自动寻焦,默认为false(兼容旧代码)
|
|
21
|
-
* }
|
|
22
|
-
* @return JsvFocusManager
|
|
23
|
-
*/
|
|
24
|
-
declare function jsvCreateFocusManager(config?: Object | null): JsvFocusManager;
|
|
25
|
-
export { jsvCreateFocusManager, useFocusHub };
|
|
@@ -1,435 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
+ @file {@link file://./../../../../utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue}
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @file
|
|
7
|
-
*
|
|
8
|
-
* 【界面概述】
|
|
9
|
-
* 展示MetroWidget控件的用法
|
|
10
|
-
*
|
|
11
|
-
* 【控件介绍】
|
|
12
|
-
* MetroWidget:
|
|
13
|
-
* props:
|
|
14
|
-
* top {int} 控件的y,默认为0
|
|
15
|
-
* left {int} 控件的x, 默认为0
|
|
16
|
-
* width {int} (必选)控件的宽
|
|
17
|
-
* height {int} (必选)控件的高
|
|
18
|
-
* layoutType {String} 布局的类型, 目前支持 "relative"(默认)|"absolute", relative为自动布局,
|
|
19
|
-
absolute为依据measures中给的top, left布局
|
|
20
|
-
*
|
|
21
|
-
* name {string} 用于设置焦点的名称
|
|
22
|
-
* padding {object} 控件内边距, 默认为{left: 0, right: 0, top: 0, bottom: 0}
|
|
23
|
-
* direction {enum} (必选)控件方向 HORIZONTAL/VERTICAL
|
|
24
|
-
* focusMoveType {int} 焦点移动的模式, 可通过 | 运算进行组合
|
|
25
|
-
NO_ADJUST: 无特殊处理
|
|
26
|
-
COLUMN_LOOP: 到达列首/尾后跳转到上/下一列, 只在水平滚动时生效
|
|
27
|
-
ROW_LOOP: 到达行首/尾后跳转到上/下一行, 只在竖直滚动时生效
|
|
28
|
-
COLUMN_FIND_NEAR: 一列中没有下一个元素时是否跳转到相邻列
|
|
29
|
-
ROW_FIND_NEAR: 一行中没有下一个元素时是否跳转到相邻行
|
|
30
|
-
* keepTraceRange { number } 可视区域前后多少屏的item在移出可视范围后不释放(默认移出可视区域的item会被释放)
|
|
31
|
-
* initFocusId {int} 初始焦点,默认为0
|
|
32
|
-
* slideSetting {SlideSetting} 页面滑动的设置, 目前SlideSetting有三个子类, 具体见 WidgetCommon 中的说明
|
|
33
|
-
WholePageSlide
|
|
34
|
-
@description 整页滚动的设置类
|
|
35
|
-
@constructor {Object} {speed, easing, boundProtect}
|
|
36
|
-
SeamlessSlide
|
|
37
|
-
@description 无缝滚动的设置类
|
|
38
|
-
@constructor {Object} {
|
|
39
|
-
* startPercent: 左/上侧触发滚动的比例 0-1
|
|
40
|
-
* endPercennt: 右/下侧触发滚动的比例 0-1
|
|
41
|
-
* headRange: 左/上按键触发滚动的区域比例 0-1
|
|
42
|
-
* tailRange: 右/下按键触发滚动的区域比例 0-1
|
|
43
|
-
* speed: 滚动速度, 像素/毫秒
|
|
44
|
-
* easing: 滚动动画的easing
|
|
45
|
-
* boundaryProtect: 确定滚动位置能否小于0或者大于最大长度
|
|
46
|
-
* fixFirstPage: 首页不滚动
|
|
47
|
-
* }
|
|
48
|
-
FixPositionSlide
|
|
49
|
-
@description 固定位置滚动的设置类
|
|
50
|
-
@constructor {Object} {fixPercent, speed, easing, boundProtect}
|
|
51
|
-
* itemConfig {Function (item) => {takeOverSlide: true}} 返回item的配置信息
|
|
52
|
-
* enableItemRenderBreak {boolean} 按键事件是否能打断item的描画, 默认为false
|
|
53
|
-
* placeHolderSetting {Object} item描画可打断时, 显示的占位符
|
|
54
|
-
{
|
|
55
|
-
backgroundColor: 纯色占位符
|
|
56
|
-
focusBackgroundColor: 获焦时的颜色
|
|
57
|
-
borderRadius: 占位符圆角设置
|
|
58
|
-
gap: 占位符之间的gap
|
|
59
|
-
}
|
|
60
|
-
* sendFocusRectEvent {boolean} item获焦时在焦点树上冒泡一个事件, MetroWidget接收到事件时会触发滚动操作, 一般用于嵌套
|
|
61
|
-
时的滚动
|
|
62
|
-
|
|
63
|
-
* data {array} 数据列表
|
|
64
|
-
* provideData {function} 获取数据的回调, 与data二选一
|
|
65
|
-
* measures {function} (必选)返回item的模板信息的回调,
|
|
66
|
-
* @params item {object} data中的数据
|
|
67
|
-
* @return 模板信息,
|
|
68
|
-
{
|
|
69
|
-
left {int}: 绝对布局时的left,
|
|
70
|
-
top {int}: 绝对布局时的top,
|
|
71
|
-
width {int}: item的宽,
|
|
72
|
-
height {int}: item的高,
|
|
73
|
-
focusable {boolean}: item是否可以获得焦点,
|
|
74
|
-
marginBottom {int}: item的下方margin,
|
|
75
|
-
marginRight {int}: item的右方margin,
|
|
76
|
-
findNextAnchor {object}: 自定义上下左右四条边寻找临近item的基准位置,值为0-1 {left: 0.5, right: 0.5, top: 0.5, bottom: 0.5}
|
|
77
|
-
itemSlide {number}: item的滚动控制, 可选值为:
|
|
78
|
-
METRO_WIDGET_CONST.ITEM_SLIDE.DISABLE 不滚动
|
|
79
|
-
METRO_WIDGET_CONST.ITEM_SLIDE.ACT_ITEM_FOCUS 按照SlideSetting滚动
|
|
80
|
-
METRO_WIDGET_CONST.ITEM_SLIDE.ACT_FOCUS_RECT_EVENT 按照子组件发送的focusRect事件滚动
|
|
81
|
-
zIndex {int | object}: item的zIndex, 为object时可以分别设置{focus: 0, normal: 0}, 为number时则同时设置获焦和不获焦的zIndex,
|
|
82
|
-
uid {string}: item的uid, 可以通过uid来设置焦点
|
|
83
|
-
permanent {boolean}: 出去与是否保留
|
|
84
|
-
enableTap {boolean}: 是否接受触控tap
|
|
85
|
-
showSkeleton {boolean}: 打断描画时, 是否显示骨架图
|
|
86
|
-
}
|
|
87
|
-
*
|
|
88
|
-
* onFocus {function} 控件获取焦点的回调
|
|
89
|
-
* onBlur {function} 控件失去焦点的回调
|
|
90
|
-
* onEdge {function} 焦点移动到边缘时的回调
|
|
91
|
-
* @params {object} edgeInfo {
|
|
92
|
-
"direction": {EdgeDirection}边缘方向,
|
|
93
|
-
"rect": 到达边缘时的区域{x: 0, y: 0, width: 0,height: 0}
|
|
94
|
-
}
|
|
95
|
-
onScroll {function} 滚动时的回调 (visibleStart, visibleRange, totalSize) => {}
|
|
96
|
-
visibleStart: 可视区域的起点
|
|
97
|
-
visibleRange: 可视区域大小(不含padding)
|
|
98
|
-
totalSize: 所有item的总长
|
|
99
|
-
* onFocusRectChange {() => void} 焦点区域变化的回调
|
|
100
|
-
* onAllItemResizeDone {() => void} 所有item resize完成的回调
|
|
101
|
-
* loadAll {boolean} 加载不显示的view,触控场景使用
|
|
102
|
-
* flingPageWidth {}
|
|
103
|
-
* flingPageEdge {}
|
|
104
|
-
* disableClip {boolean} 取消显示范围的clipView
|
|
105
|
-
* touchFlag {int} 触控的开关, 0:关闭, 1:打开. 打开后支持drag, fling; item的tap则由measuresObject的enableTap控制
|
|
106
|
-
|
|
107
|
-
* methods:
|
|
108
|
-
getFocusBlockRef 获取此MetroWidget的 jsv-focus-block句柄,可以使用requestFocus完成获焦
|
|
109
|
-
|
|
110
|
-
slideTo
|
|
111
|
-
@description 滚动到指定位置
|
|
112
|
-
@params {int} position 滚动目标位置
|
|
113
|
-
@params {boolean} doAnim 是否做动画
|
|
114
|
-
slideToItem
|
|
115
|
-
@description 滚动到指定item
|
|
116
|
-
@params {int} index 目标item的index, 注意与item的id区别, id是可获焦item的序号
|
|
117
|
-
@params {boolean} doAnim 是否做动画
|
|
118
|
-
slideToDiv
|
|
119
|
-
@description 滚动到指定div, div必需是MetroWidget的子
|
|
120
|
-
@params {object} div 目标div
|
|
121
|
-
@params {boolean} doAnim 是否做动画
|
|
122
|
-
setEnterFocusId
|
|
123
|
-
@description 设置落焦时的焦点
|
|
124
|
-
@params {int} id 落焦时的焦点id
|
|
125
|
-
setEnterFocusRect
|
|
126
|
-
@description 设置落焦时的焦点查找去区域
|
|
127
|
-
@params {Object} rectInfo 焦点移入时的区域,MetroWidget 将会根据此区域寻找最近的item
|
|
128
|
-
{
|
|
129
|
-
direction: {EdgeDirection}
|
|
130
|
-
rect: {
|
|
131
|
-
x: {int},
|
|
132
|
-
y: {int},
|
|
133
|
-
width: {int},
|
|
134
|
-
height: {int}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
setFocusId
|
|
138
|
-
@description 设置焦点
|
|
139
|
-
@params {int} id 焦点id
|
|
140
|
-
@params {boolean} needSlide 是否需要滚动
|
|
141
|
-
@params {boolean} doAnim 滚动时是否做动画
|
|
142
|
-
@params {object} extraSetting 额外的参数设置
|
|
143
|
-
{
|
|
144
|
-
lockChildSlideEvent: {boolean} 设置焦点时忽略子发过来的滚动事件
|
|
145
|
-
}
|
|
146
|
-
setFocusByUid
|
|
147
|
-
@description 通过uid设置焦点
|
|
148
|
-
@params {int} id 焦点id
|
|
149
|
-
@params {boolean} needSlide 是否需要滚动
|
|
150
|
-
@params {boolean} doAnim 滚动时是否做动画
|
|
151
|
-
@params {object} extraSetting 额外的参数设置
|
|
152
|
-
{
|
|
153
|
-
lockChildSlideEvent: {boolean} 设置焦点时忽略子发过来的滚动事件
|
|
154
|
-
}
|
|
155
|
-
refreshData
|
|
156
|
-
@description 刷新数据, 只有存在provideData时才会生效
|
|
157
|
-
当refresh时,根据下面的数据对比规则找出变化的数据
|
|
158
|
-
refresh时的对比逻辑:
|
|
159
|
-
1. 对比array里的object是否是同一个对象
|
|
160
|
-
2. 对比array里的jsvKey字段, 若一致则认为该数据未改变,即使object不相同
|
|
161
|
-
发现array中存在数据变化时,会如下的场景进行处理
|
|
162
|
-
场景1: array内部的数据变化了,无论末尾有没有增加: 变化的项目会重新触发measure,
|
|
163
|
-
若measure返回尺寸变化则调用所有项目measure重做布局
|
|
164
|
-
若measure返回尺寸未变化,则仅对变化项目的div进行key的调整来触发item的remount
|
|
165
|
-
场景2: array内部未变化,仅array末尾新增内容: 对末尾内容的项目做measure,布局进行追加处理,原布局内容保持(节省性能)
|
|
166
|
-
特别说明: jsvKey的使用方法提示
|
|
167
|
-
1. 用lastModify设置jsvKey,并将所有的item设置成同一个jsvKey,后续局部更新项目的jsvKey代表的lastModify
|
|
168
|
-
2. 后台运营对于素材是只新增不改动的策略时,用素材的id来命名jsvKey,array中间位置素材变化的时候,
|
|
169
|
-
更换jsvKey,以达到局部更新的目的,防止全体更新,从而提高响应的性能
|
|
170
|
-
|
|
171
|
-
@params {boolean} forceUpdate 是否强制刷新
|
|
172
|
-
getVisibleItems
|
|
173
|
-
@description 获取可视item的列表信息
|
|
174
|
-
@return {start: 开始的index, end: 结束的index, dataList: 可视item的数据列表}
|
|
175
|
-
lock
|
|
176
|
-
@description 设置内部的锁
|
|
177
|
-
@params {int} type 锁的类型, 通过|来实现多个类型的复合
|
|
178
|
-
SLIDE: 滚动动画锁
|
|
179
|
-
CHILD_SLIDE_EVENT: 子组件发送的滚动事件锁
|
|
180
|
-
ON_KEY_DOWN: 按键锁
|
|
181
|
-
@return {function} 解锁的函数
|
|
182
|
-
unlock
|
|
183
|
-
@description 解锁
|
|
184
|
-
@params {int} type 参考lock的type参数
|
|
185
|
-
moveFocus
|
|
186
|
-
@description 移动焦点
|
|
187
|
-
@params {int | string | EdgeDirection} 可传三种类型的值:
|
|
188
|
-
1. 方向键的数值 37|38|39|40,
|
|
189
|
-
2. 字符串 left|top|right|bottom,
|
|
190
|
-
3. EdgeDirection
|
|
191
|
-
getCustomerDataSize
|
|
192
|
-
@description 获取用户数据长度
|
|
193
|
-
getCurrentFocusIndex
|
|
194
|
-
@description 获取当前获焦item的index
|
|
195
|
-
setZIndex
|
|
196
|
-
@description 设置item的zIndex
|
|
197
|
-
@params {int} index: item的index
|
|
198
|
-
@params {int} blurZIndex: blur状态下的zIndex
|
|
199
|
-
@params {int} focusZIndex: focus状态下的zIndex, 缺省时采用blurZIndex相同的值
|
|
200
|
-
getTemplatePosition
|
|
201
|
-
@description 获取item的template位置
|
|
202
|
-
@params {int} index: item的index
|
|
203
|
-
@return {object} {left: number, top: number, width: number, height: number,}
|
|
204
|
-
lockSlide
|
|
205
|
-
@description 锁定滚动
|
|
206
|
-
unlockSlide
|
|
207
|
-
@description 取消锁定
|
|
208
|
-
setSlideSetting
|
|
209
|
-
@description 设置slideSetting
|
|
210
|
-
@params { SlideSetting | null } setting 滚动设置, 为null时使用props.slideSetting
|
|
211
|
-
cancelDelayLoad
|
|
212
|
-
@description 取消延迟加载首屏以外内容
|
|
213
|
-
setSensorSensitivity
|
|
214
|
-
@description 触控模式下, 设置运动回调敏感度, 每移动多少像素进行回调,适当放大(推荐10以上)可以极大减小对js回调过多引起的性能降低
|
|
215
|
-
@params {number} sensitivity 敏感度, 等于0时关闭触控的移动监听
|
|
216
|
-
|
|
217
|
-
slots:
|
|
218
|
-
renderItem: 该slot用于描画每个单元格
|
|
219
|
-
background: 该slot描画在item后, 一般用于描画需要跟随MetroWidget滚动的内容
|
|
220
|
-
foreground: 该slot描画在item前, 一般用于描画需要跟随MetroWidget滚动的内容
|
|
221
|
-
* 【技巧说明】
|
|
222
|
-
* Q: 插槽props如何使用?
|
|
223
|
-
* A: data: 当前item的数据
|
|
224
|
-
* query: 获取一些额外信息的对象
|
|
225
|
-
{
|
|
226
|
-
id: {int} item的id,
|
|
227
|
-
position: {Function} (index : int) => {left: 0, top: 0, width: 0, height: 0}
|
|
228
|
-
获取 item 相对 MetroWidget 左上角坐标
|
|
229
|
-
templatePosition: {Function} (index : int) => {left: 0, top: 0, width: 0, height: 0}
|
|
230
|
-
获取 item 的布局坐标, 一般用于自定义滚动
|
|
231
|
-
getCurrentFocusId: {Function} () => {id: 0, index: 0}
|
|
232
|
-
获取当前焦点信息,id 为在可获得焦点元素列表中的索引,index 为在所有元素列表中的索引
|
|
233
|
-
slideTo: {Function} (targetPosition : int, doAnim : Boolean) => void
|
|
234
|
-
滚动到指定位置,注意这个位置是 item 的布局坐标,另外当某些item需要接管滚动时,itemConfig中takeOverSlide要为true。
|
|
235
|
-
updateItemSize: {(index: number, newSize: {width: number, height: number}, animInfo: {anchor: number, duration: number, onEnd: Function}) => void} 更新item的尺寸, 目前仅在list模式下可用.
|
|
236
|
-
params:
|
|
237
|
-
index: 更新item的index,
|
|
238
|
-
newSize: 新的尺寸
|
|
239
|
-
animInfo: 动画设置
|
|
240
|
-
anchor: 缩放锚点
|
|
241
|
-
duration: 动画时长(毫秒)
|
|
242
|
-
onEnd: 动画结束回调
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
* onItemEdge: 若单元格内另有可接管按键的控件(如MetroWidget),该控件到达边缘需要通知MetroWidget时的回调
|
|
246
|
-
* onAction: 单元格内控件需要通过onAction.register方法向MetroWidget注册 item 的回调,回调函数有
|
|
247
|
-
onFocus, onBlur, onClick, onWidgetEdge
|
|
248
|
-
*
|
|
249
|
-
* Q: 如何进行布局,定制每个格的尺寸?
|
|
250
|
-
* A: 首先选定一个布局的方式,一列列地横向布局(HROIZONTAL)还是一行行地纵向(VERTICAL)布局,设置给属性direction
|
|
251
|
-
* 然后将单元格尺寸反馈器(函数)设置到measures中,进行布局时,组件会回调measures函数获得每个单元格的尺寸,
|
|
252
|
-
* 当一列放满单元格后(如果是纵向布局,则是一行放满后),自动换列去布局下一列。
|
|
253
|
-
*
|
|
254
|
-
* Q: 单元格的普通状态,焦点状态,失焦状态如何渲染?
|
|
255
|
-
* A: 在单元的空间中通过往onAction注册的onFocus,onBlur控制显示
|
|
256
|
-
*
|
|
257
|
-
* Q: 控件中的导航处理(上下左右,OK键)需要什么响应的开发?
|
|
258
|
-
* A: 上下左右键已经由控件接管,不需要开发者而外处理,上下左右键会触发翻页时间,翻页的形式由属性slideStyle来定制。
|
|
259
|
-
* 另外,通过OnClick属性可以注册按键回调函数,来处理用户的OK键动作。
|
|
260
|
-
*
|
|
261
|
-
* Q: 边缘格获取焦点放大后显示不全?
|
|
262
|
-
* A: 设置padding,注意item的排布范围是控件的宽高减去对应的padding
|
|
263
|
-
*
|
|
264
|
-
* Q: 焦点怎么移出控件?
|
|
265
|
-
* A: 当焦点移动到控件边缘时,会调用onEdge回调。在回调中通过参数传递的值来决定焦点转移的行为
|
|
266
|
-
*
|
|
267
|
-
* Q: item内是可获焦的元素时该如何处理?
|
|
268
|
-
* A: 焦点处理: item内的元素需要在注册的onFocus和onBlue回调中管理焦点. 即在onFocus时把焦点设置到内部的可获焦节点;
|
|
269
|
-
onBlur时将焦点给回父MetroWidget, 注意此时是焦点树上的子节点往父节点切换, 此时为了把子节点blur掉,
|
|
270
|
-
requestFocus函数需要传递一个false参数
|
|
271
|
-
* 注意点:
|
|
272
|
-
* 1. MetroWidget中存在一些处理依赖vue的callback执行顺序, 因此涉及更改MetroWidget状态的处理不要在watchPostEffect中调用
|
|
273
|
-
*/
|
|
274
|
-
|
|
275
|
-
declare const _default: {
|
|
276
|
-
new (...args: any[]): {
|
|
277
|
-
$: import("vue").ComponentInternalInstance;
|
|
278
|
-
$data: {};
|
|
279
|
-
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
280
|
-
$attrs: {
|
|
281
|
-
[x: string]: unknown;
|
|
282
|
-
};
|
|
283
|
-
$refs: {
|
|
284
|
-
[x: string]: unknown;
|
|
285
|
-
};
|
|
286
|
-
$slots: Readonly<{
|
|
287
|
-
[name: string]: import("vue").Slot | undefined;
|
|
288
|
-
}>;
|
|
289
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
290
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
291
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
292
|
-
$el: any;
|
|
293
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
294
|
-
lockSlide: () => void;
|
|
295
|
-
unlockSlide: () => void;
|
|
296
|
-
lock: (type: any) => () => void;
|
|
297
|
-
unlock: (type: any) => void;
|
|
298
|
-
refreshData: (forceUpdate: any) => void;
|
|
299
|
-
moveFocus: (direction: any) => void;
|
|
300
|
-
slideTo: (position: any, doAnim: any) => void;
|
|
301
|
-
slideToItem: (index: any, doAnim: any) => void;
|
|
302
|
-
slideToDiv: (div: any, doAnim: any) => void;
|
|
303
|
-
setFocusId: (id: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
304
|
-
setFocusByUid: (uid: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
305
|
-
setEnterFocusId: (id: any) => void;
|
|
306
|
-
setEnterFocusRect: (rect: any) => void;
|
|
307
|
-
setZIndex: (index: any, normalZIndex: any, focusZIndex: any) => void;
|
|
308
|
-
getFocusBlockRef: () => any;
|
|
309
|
-
getVisibleItems: () => {
|
|
310
|
-
start: number;
|
|
311
|
-
end: number;
|
|
312
|
-
dataList: any[];
|
|
313
|
-
};
|
|
314
|
-
getCustomerDataSize: () => number;
|
|
315
|
-
getCurrentFocusIndex: () => number;
|
|
316
|
-
getTemplatePosition: (index: any) => {
|
|
317
|
-
left: any;
|
|
318
|
-
top: any;
|
|
319
|
-
width: any;
|
|
320
|
-
height: any;
|
|
321
|
-
};
|
|
322
|
-
setSlideSetting: (setting: any) => void;
|
|
323
|
-
cancelDelayLoad: () => void;
|
|
324
|
-
setSensorSensitivity: (sensitivity?: number) => void;
|
|
325
|
-
$props: {
|
|
326
|
-
[x: string]: any;
|
|
327
|
-
};
|
|
328
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
329
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
330
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
331
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
332
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
333
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
334
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
335
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
336
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
337
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
338
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
339
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
340
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
341
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
342
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
343
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
344
|
-
};
|
|
345
|
-
$forceUpdate: () => void;
|
|
346
|
-
$nextTick: typeof import("vue").nextTick;
|
|
347
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
348
|
-
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
349
|
-
lockSlide: () => void;
|
|
350
|
-
unlockSlide: () => void;
|
|
351
|
-
lock: (type: any) => () => void;
|
|
352
|
-
unlock: (type: any) => void;
|
|
353
|
-
refreshData: (forceUpdate: any) => void;
|
|
354
|
-
moveFocus: (direction: any) => void;
|
|
355
|
-
slideTo: (position: any, doAnim: any) => void;
|
|
356
|
-
slideToItem: (index: any, doAnim: any) => void;
|
|
357
|
-
slideToDiv: (div: any, doAnim: any) => void;
|
|
358
|
-
setFocusId: (id: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
359
|
-
setFocusByUid: (uid: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
360
|
-
setEnterFocusId: (id: any) => void;
|
|
361
|
-
setEnterFocusRect: (rect: any) => void;
|
|
362
|
-
setZIndex: (index: any, normalZIndex: any, focusZIndex: any) => void;
|
|
363
|
-
getFocusBlockRef: () => any;
|
|
364
|
-
getVisibleItems: () => {
|
|
365
|
-
start: number;
|
|
366
|
-
end: number;
|
|
367
|
-
dataList: any[];
|
|
368
|
-
};
|
|
369
|
-
getCustomerDataSize: () => number;
|
|
370
|
-
getCurrentFocusIndex: () => number;
|
|
371
|
-
getTemplatePosition: (index: any) => {
|
|
372
|
-
left: any;
|
|
373
|
-
top: any;
|
|
374
|
-
width: any;
|
|
375
|
-
height: any;
|
|
376
|
-
};
|
|
377
|
-
setSlideSetting: (setting: any) => void;
|
|
378
|
-
cancelDelayLoad: () => void;
|
|
379
|
-
setSensorSensitivity: (sensitivity?: number) => void;
|
|
380
|
-
$props: {
|
|
381
|
-
[x: string]: any;
|
|
382
|
-
};
|
|
383
|
-
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
384
|
-
__isFragment?: undefined;
|
|
385
|
-
__isTeleport?: undefined;
|
|
386
|
-
__isSuspense?: undefined;
|
|
387
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
388
|
-
lockSlide: () => void;
|
|
389
|
-
unlockSlide: () => void;
|
|
390
|
-
lock: (type: any) => () => void;
|
|
391
|
-
unlock: (type: any) => void;
|
|
392
|
-
refreshData: (forceUpdate: any) => void;
|
|
393
|
-
moveFocus: (direction: any) => void;
|
|
394
|
-
slideTo: (position: any, doAnim: any) => void;
|
|
395
|
-
slideToItem: (index: any, doAnim: any) => void;
|
|
396
|
-
slideToDiv: (div: any, doAnim: any) => void;
|
|
397
|
-
setFocusId: (id: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
398
|
-
setFocusByUid: (uid: any, needSlide: boolean | undefined, doAnim: boolean | undefined, extraSetting: any) => void;
|
|
399
|
-
setEnterFocusId: (id: any) => void;
|
|
400
|
-
setEnterFocusRect: (rect: any) => void;
|
|
401
|
-
setZIndex: (index: any, normalZIndex: any, focusZIndex: any) => void;
|
|
402
|
-
getFocusBlockRef: () => any;
|
|
403
|
-
getVisibleItems: () => {
|
|
404
|
-
start: number;
|
|
405
|
-
end: number;
|
|
406
|
-
dataList: any[];
|
|
407
|
-
};
|
|
408
|
-
getCustomerDataSize: () => number;
|
|
409
|
-
getCurrentFocusIndex: () => number;
|
|
410
|
-
getTemplatePosition: (index: any) => {
|
|
411
|
-
left: any;
|
|
412
|
-
top: any;
|
|
413
|
-
width: any;
|
|
414
|
-
height: any;
|
|
415
|
-
};
|
|
416
|
-
setSlideSetting: (setting: any) => void;
|
|
417
|
-
cancelDelayLoad: () => void;
|
|
418
|
-
setSensorSensitivity: (sensitivity?: number) => void;
|
|
419
|
-
$props: {
|
|
420
|
-
[x: string]: any;
|
|
421
|
-
};
|
|
422
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
423
|
-
$slots: {
|
|
424
|
-
background: (_: {}) => any;
|
|
425
|
-
renderItem: (_: {
|
|
426
|
-
data: any;
|
|
427
|
-
onEdge: (edge_info: any) => void;
|
|
428
|
-
onAction: any;
|
|
429
|
-
query: any;
|
|
430
|
-
onItemEdge: (edge_info: any) => void;
|
|
431
|
-
}) => any;
|
|
432
|
-
foreground: (_: {}) => any;
|
|
433
|
-
};
|
|
434
|
-
});
|
|
435
|
-
export default _default;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
+ @file {@link file://./../../../utils/JsViewVueTools/JsvTextTools.ts}
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
declare interface FontStyleDefine {
|
|
6
|
-
fontFamily: string;
|
|
7
|
-
fontSize: number;
|
|
8
|
-
fontStyle: string;
|
|
9
|
-
fontWeight: string;
|
|
10
|
-
}
|
|
11
|
-
/*!
|
|
12
|
-
* 获取文字宽度, 一般用于测量文字宽度
|
|
13
|
-
*
|
|
14
|
-
* @param {string} text 文字
|
|
15
|
-
* @param {object} style 文字的css style
|
|
16
|
-
* @return {int} 文字宽度
|
|
17
|
-
**/
|
|
18
|
-
declare const getTextWidth: (text: string, style: FontStyleDefine) => any;
|
|
19
|
-
declare interface RectSize {
|
|
20
|
-
width: number;
|
|
21
|
-
height: number;
|
|
22
|
-
}
|
|
23
|
-
declare interface PostionDefine {
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* 获取光标的位置
|
|
29
|
-
*
|
|
30
|
-
* @public
|
|
31
|
-
* @func GetCursorPosition
|
|
32
|
-
* @memberof Forge.TextUtils
|
|
33
|
-
* @params {string} str 文字字符串
|
|
34
|
-
* @params {Forge.RectArea} max_rect
|
|
35
|
-
* @param {PackedFontParams} font_params 文本描述符(来源自 PackFontParams 函数)
|
|
36
|
-
* @param {PackedTextAttrs} text_attr (来源自 PackTextAttrs 函数)
|
|
37
|
-
* @param {int} line_height
|
|
38
|
-
* @param {int} pos_x 光标的偏移
|
|
39
|
-
* @return {Object} 光标的所在位置{x:0,y:0}
|
|
40
|
-
**/
|
|
41
|
-
declare function GetCursorPosition(str: string, max_rect: RectSize, font_params: PackedFontParams, text_attr: PackedTextAttrs, line_height: number, cursor_offset: number): PostionDefine;
|
|
42
|
-
declare class PackedFontParams {
|
|
43
|
-
font?: string;
|
|
44
|
-
size?: number;
|
|
45
|
-
bold?: string;
|
|
46
|
-
italic?: string;
|
|
47
|
-
alignment?: string;
|
|
48
|
-
textColour?: string;
|
|
49
|
-
}
|
|
50
|
-
/**k
|
|
51
|
-
* 创建文本描述符
|
|
52
|
-
*
|
|
53
|
-
* @public
|
|
54
|
-
* @func PackFontParam
|
|
55
|
-
* @param {string} font_family CSS字体名字,如“黑体 欧文”(支持多字体设置)
|
|
56
|
-
* @param {int} font_size
|
|
57
|
-
* @param {boolean} italic 是否为斜体
|
|
58
|
-
* @param {boolean} bold 是否加粗
|
|
59
|
-
* @param {string} alignment 水平对齐方式,支持("left", "middle", "right", "justify")
|
|
60
|
-
* @param {string} text_color 文字颜色(format "#FFFFFF")
|
|
61
|
-
**/
|
|
62
|
-
declare function PackFontParams(font_family: string | null, font_size: number, bold: boolean, italic: boolean, alignment: string, text_color: string | null): PackedFontParams;
|
|
63
|
-
declare interface PackedTextAttrs {
|
|
64
|
-
text_overflow: string;
|
|
65
|
-
word_wrap: string;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* 创建文本区域描述符
|
|
69
|
-
*
|
|
70
|
-
* @public
|
|
71
|
-
* @func PackTextAttrs
|
|
72
|
-
* @param {String} text_overflow 超过描画边界时的处理方式:<br>
|
|
73
|
-
* "none" 按照文字宽度描画<br>
|
|
74
|
-
* "clip" 超出本分不显示(默认)<br>
|
|
75
|
-
* "ellipsis" 如果超出,则末尾显示“...”
|
|
76
|
-
* 其余字符 当文字超出时,用此字符替换“...”的位置
|
|
77
|
-
* @param {String} word_wrap 设置自然换行规则<br>
|
|
78
|
-
* "none":“不折行”<br>
|
|
79
|
-
* "normal":折行时,尽量不切断单词(仅支持英文单词)<br>
|
|
80
|
-
* "break_word":不去识别单词,到达边缘就折行(执行效率高)
|
|
81
|
-
* @return {PackedTextAttrs} 文本区域描述符
|
|
82
|
-
**/
|
|
83
|
-
declare function PackTextAttrs(text_overflow: string, word_wrap: string): PackedTextAttrs;
|
|
84
|
-
declare const TextTools: {
|
|
85
|
-
getOneLineTextDrawWidth: (text: string, style: FontStyleDefine) => {
|
|
86
|
-
totalWidth: number;
|
|
87
|
-
sliceInfo: Array<any>;
|
|
88
|
-
};
|
|
89
|
-
getTextWidth: (text: string, style: FontStyleDefine) => any;
|
|
90
|
-
isRtl: (str: string) => boolean;
|
|
91
|
-
PackFontParams: typeof PackFontParams;
|
|
92
|
-
PackTextAttrs: typeof PackTextAttrs;
|
|
93
|
-
GetCursorPosition: typeof GetCursorPosition;
|
|
94
|
-
};
|
|
95
|
-
export { getTextWidth, TextTools };
|