@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
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
var number_convert_tmp = new Float32Array(1);
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 创建基于基地址的全地址模式
|
|
5
|
+
* 主要用于转化以下的URL类型
|
|
6
|
+
* 类型1: "url(/相对路径/项目资源/1.png)"
|
|
7
|
+
* 类型2: "/相对路径/项目资源/1.png"
|
|
8
|
+
* 类型3: jsview内定类型 "jsvtexturestore:xxxx"
|
|
9
|
+
* 类型4: 未知的内定类型 "data:xxxx"
|
|
10
|
+
*
|
|
11
|
+
* 同时兼容送入http://完整路径/1.png,转换出来结果等同于没有对此url进行变化
|
|
12
|
+
*
|
|
13
|
+
* @param {string} origin_url
|
|
14
|
+
* @return {String}
|
|
15
|
+
*/
|
|
16
|
+
function parseUrl(origin_url: String): String {
|
|
17
|
+
let url_result = origin_url;
|
|
18
|
+
|
|
19
|
+
// url(/xxx/xxx) 格式
|
|
20
|
+
if (url_result.startsWith('url') === true) {
|
|
21
|
+
let startIdx = url_result.indexOf('(') + 1;
|
|
22
|
+
let endIdx = url_result.lastIndexOf(')');
|
|
23
|
+
url_result = url_result.substring(startIdx, endIdx).trim();
|
|
24
|
+
if (url_result === "undefined" || url_result === "null" || url_result.length === 0) {
|
|
25
|
+
// 空内容,不进行其他自动解析和填充
|
|
26
|
+
return url_result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// data:xxxx, jsvtexturestore:xxxx 格式
|
|
31
|
+
if (url_result.startsWith('data:') === true || url_result.startsWith('jsvtexturestore:') === true) {
|
|
32
|
+
return url_result;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// 拆掉 url() 包装后的url相对路径转换
|
|
36
|
+
let base_url = (window.location as any).jsvGetLocation ?
|
|
37
|
+
(window.location as any).jsvGetLocation() // native运行场景,启动链接为 mjs 非 index.html场景
|
|
38
|
+
: window.location.href;
|
|
39
|
+
let url_parse = new (window as any).JsvCoreApi.UrlBuilder(url_result, base_url);
|
|
40
|
+
|
|
41
|
+
return url_parse.href;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function numberCheckSet(number: number): number {
|
|
45
|
+
number_convert_tmp[0] = number; // 强制类型转换, 避免JSON化时类型出错,因为 '123' 123 都能通过Nan检测
|
|
46
|
+
if (!isNaN(number_convert_tmp[0])) {
|
|
47
|
+
return number_convert_tmp[0];
|
|
48
|
+
} else {
|
|
49
|
+
console.warn(`${number} is not type of number, default as 0`);
|
|
50
|
+
return 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function urlCheckSet(origin_url: String): String {
|
|
55
|
+
if (origin_url && origin_url.indexOf("http") === 0) {
|
|
56
|
+
// 包含http和https两种请求
|
|
57
|
+
return origin_url;
|
|
58
|
+
} else {
|
|
59
|
+
return parseUrl(origin_url);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
numberCheckSet,
|
|
65
|
+
urlCheckSet
|
|
66
|
+
};
|
|
@@ -9,7 +9,7 @@ export * from "./JsvDynamicCssStyle";
|
|
|
9
9
|
export * from "./JsvDynamicKeyFrames";
|
|
10
10
|
export * from "./JsvRuntimeBridge";
|
|
11
11
|
export * from "./NinePatchHelper";
|
|
12
|
-
export * from "./TypeCheckAndSet";
|
|
12
|
+
export * from "./TypeCheckAndSet.ts";
|
|
13
13
|
export * from "./JsvRefTaker";
|
|
14
14
|
export * from "./JsvStyleClass";
|
|
15
15
|
export * from "./JsvStyleSheetsDeclarer";
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
29
29
|
import { shallowRef, watchEffect, onUnmounted } from "vue";
|
|
30
30
|
import JsvFlexDiv from "./JsvFlexDiv.vue";
|
|
31
|
+
import { urlCheckSet } from "../../JsViewVueTools/TypeCheckAndSet.ts";
|
|
31
32
|
import { ForgeTextureApis } from "../../JsViewVueTools/TextureManagerTools.ts";
|
|
32
33
|
import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
33
34
|
|
|
@@ -52,7 +53,7 @@ const cDivWidth = Forge.sRenderBridge.GetScreenInfo().designedWidth;
|
|
|
52
53
|
|
|
53
54
|
let rConfig = shallowRef({});
|
|
54
55
|
|
|
55
|
-
let
|
|
56
|
+
let vTextureStringCache = null; // 用于判断是否需要texture更换的flag
|
|
56
57
|
let vStretchViewRef = null;
|
|
57
58
|
|
|
58
59
|
// 创建AutoStretchView来自动识别JsView的视窗大小
|
|
@@ -74,29 +75,23 @@ watchEffect(() => {
|
|
|
74
75
|
rConfig.value.askSize = rProps.askSize;
|
|
75
76
|
rConfig.value.onSized = rProps.onSized;
|
|
76
77
|
|
|
77
|
-
if (rProps.background !=
|
|
78
|
+
if (rProps.background != vTextureStringCache) {
|
|
78
79
|
// 构建背景Texture
|
|
79
|
-
|
|
80
|
+
vTextureStringCache = rProps.background;
|
|
80
81
|
|
|
81
82
|
let texture_setting = null;
|
|
82
83
|
|
|
83
|
-
if (
|
|
84
|
+
if (vTextureStringCache != null) {
|
|
84
85
|
const texture_manager = ForgeHandles.TextureManager;
|
|
85
86
|
if (
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
vTextureStringCache.trim().startsWith("#") ||
|
|
88
|
+
vTextureStringCache.trim().startsWith("rgba")
|
|
88
89
|
) {
|
|
89
90
|
texture_setting = new Forge.TextureSetting(
|
|
90
|
-
ForgeTextureApis.GetColorTexture(texture_manager,
|
|
91
|
+
ForgeTextureApis.GetColorTexture(texture_manager, vTextureStringCache)
|
|
91
92
|
);
|
|
92
93
|
} else {
|
|
93
|
-
|
|
94
|
-
let image_url = base_url;
|
|
95
|
-
if (base_url && base_url.indexOf("http") === 0) {
|
|
96
|
-
image_url = base_url;
|
|
97
|
-
} else if (window.JsView?.Dom.UrlRef) {
|
|
98
|
-
image_url = new window.JsView.Dom.UrlRef(base_url).href;
|
|
99
|
-
}
|
|
94
|
+
let image_url = urlCheckSet(vTextureStringCache);
|
|
100
95
|
texture_setting = new Forge.ExternalTextureSetting(
|
|
101
96
|
ForgeTextureApis.GetImage(texture_manager, image_url)
|
|
102
97
|
);
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
<script setup>
|
|
45
45
|
import { onMounted, onUnmounted, shallowRef } from "vue";
|
|
46
46
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
47
|
+
import { urlCheckSet } from "../../JsViewVueTools/TypeCheckAndSet.ts";
|
|
47
48
|
import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
48
49
|
import {
|
|
49
50
|
FeatureNames,
|
|
@@ -87,6 +88,8 @@ const rProps = defineProps({
|
|
|
87
88
|
// 激活引擎中的功能支持
|
|
88
89
|
JsvUseFeature("JsvFragShaderView", FeatureNames.CustomFragShader);
|
|
89
90
|
|
|
91
|
+
console.log("LudlDebug using JsvFragShaderView...");
|
|
92
|
+
|
|
90
93
|
let rAnimRunning = shallowRef(false); // 动画是否在执行,画面只在动画进行时进行显示
|
|
91
94
|
let vPreloadHandler = null;
|
|
92
95
|
let vPreloadDone = false;
|
|
@@ -115,7 +118,7 @@ if (rProps.textures) {
|
|
|
115
118
|
if (typeof item.resource == "string") {
|
|
116
119
|
let image_url = item.resource;
|
|
117
120
|
if (item.resource && item.resource.trim().indexOf("url(") === 0) {
|
|
118
|
-
image_url =
|
|
121
|
+
image_url = urlCheckSet(image_url);
|
|
119
122
|
}
|
|
120
123
|
const texture = texture_manager.GetImage2(
|
|
121
124
|
image_url,
|
|
@@ -6,13 +6,6 @@
|
|
|
6
6
|
* @Description: file content
|
|
7
7
|
*/
|
|
8
8
|
//! 考虑到.vue文件除了export default的component外,还有可能export其他对象,因此使用import * as
|
|
9
|
-
import * as JsvFragShaderView from "./JsvFragShaderView.vue";
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
_JsvFragShaderView = JsvFragShaderView.default;
|
|
14
|
-
} else {
|
|
15
|
-
const BrowserJsvFragShaderView = await import("./BrowserJsvFragShaderView.vue");
|
|
16
|
-
_JsvFragShaderView = BrowserJsvFragShaderView.default;
|
|
17
|
-
}
|
|
18
|
-
export default _JsvFragShaderView;
|
|
10
|
+
export { default } from "./JsvFragShaderView.vue"
|
|
11
|
+
|
|
@@ -41,6 +41,8 @@ export class EditViewOperator {
|
|
|
41
41
|
|
|
42
42
|
private _EditVisibleArea?: EditVisibleArea;
|
|
43
43
|
|
|
44
|
+
private _TextChangedCount: number = 0; // 记录文字变化的次数,可用于确认文字是否变化,当style变化或者文字内容变化时+1
|
|
45
|
+
|
|
44
46
|
// Callback
|
|
45
47
|
private _OnTextChangedCallback: TextChangedFunc;
|
|
46
48
|
private _OnCursorMoved: CursorMovedFunc;
|
|
@@ -68,7 +70,9 @@ export class EditViewOperator {
|
|
|
68
70
|
this._EditViewHandle.showIme(
|
|
69
71
|
this._InputType,
|
|
70
72
|
this._CurrentFullText,
|
|
71
|
-
this._CurrentCursorOffset
|
|
73
|
+
this._CurrentCursorOffset,
|
|
74
|
+
Math.ceil(-this._TextLeft),
|
|
75
|
+
0
|
|
72
76
|
);
|
|
73
77
|
}
|
|
74
78
|
}
|
|
@@ -88,7 +92,9 @@ export class EditViewOperator {
|
|
|
88
92
|
this._EditViewHandle.showIme(
|
|
89
93
|
this._InputType,
|
|
90
94
|
this._CurrentFullText,
|
|
91
|
-
this._CurrentCursorOffset
|
|
95
|
+
this._CurrentCursorOffset,
|
|
96
|
+
Math.ceil(-this._TextLeft),
|
|
97
|
+
0
|
|
92
98
|
);
|
|
93
99
|
}
|
|
94
100
|
|
|
@@ -96,8 +102,12 @@ export class EditViewOperator {
|
|
|
96
102
|
box_width: number, box_height: number,
|
|
97
103
|
cursor_width: number,
|
|
98
104
|
font_style: FontStyleDefine,
|
|
99
|
-
input_type: number,
|
|
100
|
-
|
|
105
|
+
input_type: number,
|
|
106
|
+
max_input_lenth: number,
|
|
107
|
+
text_read_only: boolean,
|
|
108
|
+
editorTextColor: string,
|
|
109
|
+
editorBackground: string
|
|
110
|
+
) {
|
|
101
111
|
|
|
102
112
|
// format fontStyle
|
|
103
113
|
this._FontStyle = {
|
|
@@ -118,13 +128,23 @@ export class EditViewOperator {
|
|
|
118
128
|
font_style,
|
|
119
129
|
font_style.textAlign === "right"
|
|
120
130
|
);
|
|
131
|
+
|
|
132
|
+
this._EditViewHandle.setEditorStyle(
|
|
133
|
+
this._FontStyle.fontSize,
|
|
134
|
+
this._FontStyle.textAlign,
|
|
135
|
+
editorTextColor,
|
|
136
|
+
editorBackground
|
|
137
|
+
)
|
|
121
138
|
}
|
|
122
139
|
|
|
123
140
|
generateView(): number {
|
|
124
141
|
// 构建EditControlView来处理输入
|
|
125
142
|
this._EditViewHandle = new Forge.EditControlView();
|
|
126
|
-
this._EditViewHandle.
|
|
127
|
-
|
|
143
|
+
this._EditViewHandle.addImeEventListener({
|
|
144
|
+
OnTextChanged: this._OnTextChanged.bind(this),
|
|
145
|
+
OnStatusChanged: this._OnStatusChanged.bind(this),
|
|
146
|
+
OnEditAction: null
|
|
147
|
+
});
|
|
128
148
|
|
|
129
149
|
this._EditViewId = Forge.sViewStore.add(
|
|
130
150
|
new Forge.ViewInfo(this._EditViewHandle)
|
|
@@ -163,7 +183,8 @@ export class EditViewOperator {
|
|
|
163
183
|
this._CurrentDspWith,
|
|
164
184
|
this._CurrentDspWith,
|
|
165
185
|
new_cursor_index,
|
|
166
|
-
true
|
|
186
|
+
true,
|
|
187
|
+
this._TextChangedCount
|
|
167
188
|
);
|
|
168
189
|
this._UpdateDispay(new_text_left, new_cursor_index)
|
|
169
190
|
}
|
|
@@ -181,6 +202,8 @@ export class EditViewOperator {
|
|
|
181
202
|
}
|
|
182
203
|
|
|
183
204
|
onUnmounted() {
|
|
205
|
+
this._EditViewHandle?.releaseResource();
|
|
206
|
+
this._EditVisibleArea!.releaseResource();
|
|
184
207
|
if (this._EditViewId != -1) {
|
|
185
208
|
Forge.sViewStore.remove(this._EditViewId);
|
|
186
209
|
this._EditViewId = -1;
|
|
@@ -208,13 +231,20 @@ export class EditViewOperator {
|
|
|
208
231
|
}
|
|
209
232
|
|
|
210
233
|
// EditControlView当输入变化时的回调
|
|
211
|
-
private _OnTextChanged(text: string, cursor_index: number) {
|
|
234
|
+
private _OnTextChanged(text: string, cursor_index: number, scroll_left?: number) {
|
|
235
|
+
let p = {
|
|
236
|
+
text,
|
|
237
|
+
cursor_index,
|
|
238
|
+
scroll_left
|
|
239
|
+
}
|
|
212
240
|
if (typeof text != 'string' || text.length >= this._MaxInputLenth) {
|
|
213
241
|
// 非法输入或者输入限制,超输入限制,文字内容不改变
|
|
214
242
|
if (this._EditViewHandle && this._IsFocus) {
|
|
215
243
|
this._EditViewHandle.updateCursorOffset(
|
|
216
244
|
this._CurrentDspText,
|
|
217
|
-
this._CurrentCursorOffset
|
|
245
|
+
this._CurrentCursorOffset,
|
|
246
|
+
Math.ceil(-this._TextLeft),
|
|
247
|
+
0
|
|
218
248
|
);
|
|
219
249
|
}
|
|
220
250
|
return;
|
|
@@ -231,7 +261,9 @@ export class EditViewOperator {
|
|
|
231
261
|
// 输入内容非法,不更换内容
|
|
232
262
|
this._EditViewHandle!.updateCursorOffset(
|
|
233
263
|
this._CurrentDspText,
|
|
234
|
-
this._CurrentCursorOffset
|
|
264
|
+
this._CurrentCursorOffset,
|
|
265
|
+
Math.ceil(-this._TextLeft),
|
|
266
|
+
0
|
|
235
267
|
);
|
|
236
268
|
return;
|
|
237
269
|
}
|
|
@@ -251,6 +283,7 @@ export class EditViewOperator {
|
|
|
251
283
|
this._CurrentDspText = text;
|
|
252
284
|
}
|
|
253
285
|
this._CurrentDspWith = getTextDisplayWidth(this._CurrentDspText, this._FontStyle!);
|
|
286
|
+
this._TextChangedCount++; // 记录文字信息发生了变化
|
|
254
287
|
} else {
|
|
255
288
|
// 仅由EditView发出来的光标移动事件
|
|
256
289
|
}
|
|
@@ -262,7 +295,8 @@ export class EditViewOperator {
|
|
|
262
295
|
origin_dsp_width,
|
|
263
296
|
this._CurrentDspWith,
|
|
264
297
|
cursor_index,
|
|
265
|
-
false
|
|
298
|
+
false,
|
|
299
|
+
this._TextChangedCount
|
|
266
300
|
);
|
|
267
301
|
|
|
268
302
|
this._UpdateDispay(new_text_left, cursor_index);
|
|
@@ -272,8 +306,7 @@ export class EditViewOperator {
|
|
|
272
306
|
}
|
|
273
307
|
}
|
|
274
308
|
|
|
275
|
-
private _OnStatusChanged() {
|
|
276
|
-
// console.log("OnStatusChanged status", status);
|
|
309
|
+
private _OnStatusChanged(visible: boolean) {
|
|
277
310
|
}
|
|
278
311
|
|
|
279
312
|
public addText(text: string) {
|
|
@@ -317,4 +350,4 @@ export class EditViewOperator {
|
|
|
317
350
|
// 全部内容替换
|
|
318
351
|
this._OnTextChanged(text, text?.length);
|
|
319
352
|
}
|
|
320
|
-
}
|
|
353
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { calculateCursorPosition } from "./SystemTextTools";
|
|
1
|
+
import { calculateCursorPosition, calculateCursorPositionCached, recycleCursorMeasureCache } from "./SystemTextTools";
|
|
2
2
|
import { FontStyleDefine, MAX_WIDTH } from "./SharedDefine";
|
|
3
3
|
|
|
4
4
|
export class EditVisibleArea {
|
|
@@ -13,6 +13,10 @@ export class EditVisibleArea {
|
|
|
13
13
|
private _TextVisibleEndPos: number = 0; // 显示区域的末尾是整段文字第几个像素上
|
|
14
14
|
private _VisibleAreaCurPos: number = 0; // 光标在整段文字的第几个像素上
|
|
15
15
|
|
|
16
|
+
// 管理Cursor measure的cache
|
|
17
|
+
private _CursorMeasureCachedId: number = 0;
|
|
18
|
+
private _CursorMeasuredToken: number = 0;
|
|
19
|
+
|
|
16
20
|
constructor(area_width: number, area_height: number,
|
|
17
21
|
cursor_width: number,
|
|
18
22
|
font_style: FontStyleDefine,
|
|
@@ -33,10 +37,17 @@ export class EditVisibleArea {
|
|
|
33
37
|
return this._VisibleAreaCurPos;
|
|
34
38
|
}
|
|
35
39
|
|
|
40
|
+
releaseResource() {
|
|
41
|
+
if (this._CursorMeasureCachedId > 0) {
|
|
42
|
+
recycleCursorMeasureCache(this._CursorMeasureCachedId);
|
|
43
|
+
this._CursorMeasureCachedId = 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
36
47
|
calculateSlide(
|
|
37
48
|
pre_str: string, target_str: string,
|
|
38
49
|
pre_str_dsp_width: number, target_str_dsp_width: number, // 使用外部缓存,减少本地计算
|
|
39
|
-
cur_index: number, moved: boolean): number {
|
|
50
|
+
cur_index: number, moved: boolean, text_info_token: number): number {
|
|
40
51
|
if (target_str.length === 0) {
|
|
41
52
|
// 当字符内容清空的场景
|
|
42
53
|
this._VisibleAreaCurPos = 0;
|
|
@@ -45,14 +56,36 @@ export class EditVisibleArea {
|
|
|
45
56
|
}
|
|
46
57
|
|
|
47
58
|
let new_left = this._TextLeft;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
target_str_dsp_width
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
this.
|
|
55
|
-
|
|
59
|
+
let current_cursor_position = 0;
|
|
60
|
+
if (cur_index == target_str.length) {
|
|
61
|
+
// calculateCursorPosition 无法计算最后一个字的位置,所以在此支持返回文字的边缘
|
|
62
|
+
current_cursor_position = target_str_dsp_width;
|
|
63
|
+
} else {
|
|
64
|
+
// 使用 calculateCursorPosition 获得光标显示位置
|
|
65
|
+
if (this._CursorMeasuredToken == text_info_token && this._CursorMeasureCachedId > 0) {
|
|
66
|
+
current_cursor_position = calculateCursorPositionCached(
|
|
67
|
+
cur_index,
|
|
68
|
+
this._CursorMeasureCachedId
|
|
69
|
+
)
|
|
70
|
+
} else {
|
|
71
|
+
if (this._CursorMeasureCachedId > 0) {
|
|
72
|
+
recycleCursorMeasureCache(this._CursorMeasureCachedId);
|
|
73
|
+
this._CursorMeasureCachedId = 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
let measure_result = calculateCursorPosition(
|
|
77
|
+
target_str,
|
|
78
|
+
cur_index,
|
|
79
|
+
target_str_dsp_width,
|
|
80
|
+
this._AreaHeight,
|
|
81
|
+
this._AreaHeight,
|
|
82
|
+
this._FontStyle
|
|
83
|
+
);
|
|
84
|
+
current_cursor_position = measure_result.x;
|
|
85
|
+
this._CursorMeasureCachedId = measure_result.cachedId; // 注意cached资源需要手动释放
|
|
86
|
+
this._CursorMeasuredToken = text_info_token; // 记录此token的数据已经有measure cache
|
|
87
|
+
}
|
|
88
|
+
}
|
|
56
89
|
let option_mode = "op_vis_normal"; // 可视区域内移动
|
|
57
90
|
// 计算模式
|
|
58
91
|
if (pre_str.length > target_str.length) {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* type Input.type.TEXT 若为number类型,则输入时,非number无法输入
|
|
11
11
|
* placeholder {string} 文字颜色值为灰色,默认值为"请输入文字"
|
|
12
12
|
* placeholderColor {string} 默认文字颜色,默认值为灰色
|
|
13
|
+
* editorBackground {string} 当ime出现时,输入框呈现的强调颜色,注意:不能为半透明色
|
|
13
14
|
* maxLength {number} 最大字符长度, 默认100,支持单行最大宽度为1920*2,
|
|
14
15
|
* fontsize为30,则字数大约为1920*2/30 = 100个左右
|
|
15
16
|
* readonly {bool} 属性规定输入字段是只读的, 默认false
|
|
@@ -89,6 +90,10 @@ const rProps = defineProps({
|
|
|
89
90
|
type: String,
|
|
90
91
|
default: "#CDCCD6",
|
|
91
92
|
},
|
|
93
|
+
editorBackground: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: "#5d5c76",
|
|
96
|
+
},
|
|
92
97
|
maxLength: {
|
|
93
98
|
type: Number,
|
|
94
99
|
default: 100,
|
|
@@ -155,12 +160,6 @@ function _OnTextChanged(input_final_text, dsp_text) {
|
|
|
155
160
|
}
|
|
156
161
|
|
|
157
162
|
function _OnCursorPositionChanged(text_left, cursor_left) {
|
|
158
|
-
console.log(
|
|
159
|
-
"_OnCursorPositionChanged text_left=" +
|
|
160
|
-
text_left +
|
|
161
|
-
" cursor_left=" +
|
|
162
|
-
cursor_left
|
|
163
|
-
);
|
|
164
163
|
rTextPosLeft.value = text_left;
|
|
165
164
|
rCursorLeft.value = cursor_left + text_left;
|
|
166
165
|
}
|
|
@@ -172,6 +171,7 @@ let cEditViewOperator = new EditViewOperator(
|
|
|
172
171
|
rProps.onTextOverflow
|
|
173
172
|
);
|
|
174
173
|
let vEditViewInnerId = cEditViewOperator.generateView(); // 建立Forge.EditView
|
|
174
|
+
|
|
175
175
|
cEditViewOperator.updateInputConfig(
|
|
176
176
|
rProps.width,
|
|
177
177
|
rProps.height,
|
|
@@ -179,7 +179,9 @@ cEditViewOperator.updateInputConfig(
|
|
|
179
179
|
rProps.fontStyle,
|
|
180
180
|
rProps.type,
|
|
181
181
|
rProps.maxLength,
|
|
182
|
-
rProps.readonly
|
|
182
|
+
rProps.readonly,
|
|
183
|
+
rProps.fontStyle.color,
|
|
184
|
+
rProps.editorBackground
|
|
183
185
|
);
|
|
184
186
|
|
|
185
187
|
function _FocusBlockOnFocus() {
|
|
@@ -252,7 +254,7 @@ function _FocusBlockOnKeyDown(keyEvent) {
|
|
|
252
254
|
}
|
|
253
255
|
|
|
254
256
|
function _FocusBlockOnKeyUp(ev) {
|
|
255
|
-
if (
|
|
257
|
+
if (ev.keyCode == 10000) {
|
|
256
258
|
return !!rProps.onBackKey?.(true);
|
|
257
259
|
}
|
|
258
260
|
|
|
@@ -354,6 +356,17 @@ defineExpose({
|
|
|
354
356
|
:color="rCursorColorInner"
|
|
355
357
|
:width="rProps.cursorWidth"
|
|
356
358
|
/>
|
|
357
|
-
<div
|
|
359
|
+
<div
|
|
360
|
+
:style="{
|
|
361
|
+
width: rProps.width,
|
|
362
|
+
height: rProps.height,
|
|
363
|
+
}"
|
|
364
|
+
:data-jsv-vw-innerview="vEditViewInnerId"
|
|
365
|
+
/>
|
|
358
366
|
</jsv-focus-block>
|
|
359
367
|
</template>
|
|
368
|
+
<style scoped>
|
|
369
|
+
.testColor {
|
|
370
|
+
background-color: #5d5c76;
|
|
371
|
+
}
|
|
372
|
+
</style>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
TextTools
|
|
3
|
+
} from "../../JsViewVueTools/JsvTextTools"
|
|
3
4
|
|
|
4
5
|
declare interface FontStyleDefine {
|
|
5
6
|
fontSize: number,
|
|
@@ -9,6 +10,11 @@ declare interface FontStyleDefine {
|
|
|
9
10
|
fontWeight: string
|
|
10
11
|
}
|
|
11
12
|
|
|
13
|
+
export interface CursorResult {
|
|
14
|
+
x: number,
|
|
15
|
+
cachedId: number
|
|
16
|
+
}
|
|
17
|
+
|
|
12
18
|
// 获取单行输入框光标所在位置
|
|
13
19
|
export function calculateCursorPosition(
|
|
14
20
|
display_text: string,
|
|
@@ -16,32 +22,40 @@ export function calculateCursorPosition(
|
|
|
16
22
|
rect_width: number,
|
|
17
23
|
rect_height: number,
|
|
18
24
|
line_height: number,
|
|
19
|
-
font_style: FontStyleDefine) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
font_style: FontStyleDefine): CursorResult {
|
|
26
|
+
|
|
27
|
+
let css_font_style = {
|
|
28
|
+
fontFamily: font_style.fontFamily,
|
|
29
|
+
fontSize: font_style.fontSize,
|
|
30
|
+
fontStyle: font_style.fontStyle,
|
|
31
|
+
fontWeight: font_style.fontWeight
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
let css_textlayout_style = {
|
|
35
|
+
width: rect_width,
|
|
36
|
+
height: rect_height,
|
|
37
|
+
lineHeight: line_height,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
let cursor_info = TextTools.getCursorPosition(cursor_offset, display_text, css_font_style, css_textlayout_style, true);
|
|
41
|
+
|
|
42
|
+
return {
|
|
43
|
+
x: cursor_info.x,
|
|
44
|
+
cachedId: cursor_info.cachedId
|
|
45
|
+
}
|
|
34
46
|
}
|
|
35
47
|
|
|
36
|
-
export function
|
|
37
|
-
|
|
48
|
+
export function calculateCursorPositionCached(
|
|
49
|
+
cursor_offset: number,
|
|
50
|
+
cached_id: number): number {
|
|
51
|
+
let cursor_info = TextTools.getCursorPositionCached(cached_id, cursor_offset);
|
|
52
|
+
return cursor_info.x;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function recycleCursorMeasureCache(cached_id: any) {
|
|
56
|
+
TextTools.recycleCursorPositionCache(cached_id);
|
|
38
57
|
}
|
|
39
58
|
|
|
40
|
-
function
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const alignment = font_style.textAlign;
|
|
44
|
-
const italic = font_style.fontStyle === "italic";
|
|
45
|
-
const bold = font_style.fontWeight === "bold";
|
|
46
|
-
return TextTools.PackFontParams(font!, size, bold, italic, alignment!, null)
|
|
47
|
-
}
|
|
59
|
+
export function getTextDisplayWidth(text: string, font_style: FontStyleDefine) {
|
|
60
|
+
return TextTools.getTextWidth(text, font_style);
|
|
61
|
+
}
|
|
@@ -15,11 +15,6 @@
|
|
|
15
15
|
-->
|
|
16
16
|
<script>
|
|
17
17
|
import { Forge, ForgeExtension } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
18
|
-
import ForgeHandles from "../JsViewVueTools/ForgeHandles";
|
|
19
|
-
|
|
20
|
-
const renderDocument = window.JsvCode.Dom.RenderDocument
|
|
21
|
-
? window.JsvCode.Dom.RenderDocument
|
|
22
|
-
: window.JsvCode.Dom.BrowserDocument;
|
|
23
18
|
|
|
24
19
|
export default {
|
|
25
20
|
props: {
|
|
@@ -59,7 +54,6 @@ export default {
|
|
|
59
54
|
innerView: null,
|
|
60
55
|
innerViewId: -1,
|
|
61
56
|
styleDetail: null,
|
|
62
|
-
html: !window.JsView,
|
|
63
57
|
cache: {
|
|
64
58
|
viewSrc: null,
|
|
65
59
|
maskSrc: null,
|
|
@@ -114,37 +108,6 @@ export default {
|
|
|
114
108
|
this.cache.maskWidth = this.maskWidth;
|
|
115
109
|
this.cache.maskHeight = this.maskHeight;
|
|
116
110
|
},
|
|
117
|
-
_initForHtml() {
|
|
118
|
-
let _this = this;
|
|
119
|
-
this.$refs.innerViewDiv
|
|
120
|
-
?.jsvGetProxyView(true)
|
|
121
|
-
.RegisterOnProxyReady(() => {
|
|
122
|
-
const canvas = renderDocument.createElement("canvas");
|
|
123
|
-
canvas.style.width = _this.style.width + "px";
|
|
124
|
-
canvas.style.height = _this.style.height + "px";
|
|
125
|
-
_this.$refs.innerViewDiv
|
|
126
|
-
?.jsvGetProxyView(true)
|
|
127
|
-
.HtmlGetElement()
|
|
128
|
-
.appendChild(canvas);
|
|
129
|
-
|
|
130
|
-
const clip_image = new Image();
|
|
131
|
-
const bg_image = new Image();
|
|
132
|
-
clip_image.src = _this.maskSrc;
|
|
133
|
-
bg_image.src = _this.viewSrc;
|
|
134
|
-
let clip_ready = false;
|
|
135
|
-
let bg_ready = false;
|
|
136
|
-
|
|
137
|
-
clip_image.onload = () => {
|
|
138
|
-
clip_ready = true;
|
|
139
|
-
_this._drawClip(canvas, clip_image, clip_ready, bg_image, bg_ready);
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
bg_image.onload = () => {
|
|
143
|
-
bg_ready = true;
|
|
144
|
-
_this._drawClip(canvas, clip_image, clip_ready, bg_image, bg_ready);
|
|
145
|
-
};
|
|
146
|
-
});
|
|
147
|
-
},
|
|
148
111
|
_updateInnerView() {
|
|
149
112
|
if (this.innerView === null) {
|
|
150
113
|
// 初始化View
|
|
@@ -186,19 +149,11 @@ export default {
|
|
|
186
149
|
},
|
|
187
150
|
},
|
|
188
151
|
created() {
|
|
189
|
-
|
|
190
|
-
this._updateInnerView();
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
mounted() {
|
|
194
|
-
if (!window.JsView) {
|
|
195
|
-
this._initForHtml();
|
|
196
|
-
}
|
|
152
|
+
this._updateInnerView();
|
|
197
153
|
},
|
|
154
|
+
mounted() {},
|
|
198
155
|
updated() {
|
|
199
|
-
|
|
200
|
-
this._updateInnerView();
|
|
201
|
-
}
|
|
156
|
+
this._updateInnerView();
|
|
202
157
|
},
|
|
203
158
|
beforeUnmount() {
|
|
204
159
|
// 清理View管理缓存
|
|
@@ -52,7 +52,6 @@ const isPosterImage = computed(() => {
|
|
|
52
52
|
|
|
53
53
|
let common_style = reactive({});
|
|
54
54
|
let image_style = reactive({});
|
|
55
|
-
let show_background_holder = !!window.JsView; // PC浏览器模拟时, 不显示占位图,避免误导
|
|
56
55
|
|
|
57
56
|
watchEffect(() => {
|
|
58
57
|
if (props.style) {
|
|
@@ -80,7 +79,7 @@ watchEffect(() => {
|
|
|
80
79
|
|
|
81
80
|
<template>
|
|
82
81
|
<div :style="common_style">
|
|
83
|
-
<slot
|
|
82
|
+
<slot />
|
|
84
83
|
<img
|
|
85
84
|
v-if="!!props.src"
|
|
86
85
|
:data-jsv-vw-enable-fade="props.fadeIn"
|