@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
package/bin/jsview-vue.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Forge as Forge$1 } from '@shijiu/jsview/dom/jsv-forge-define.mjs';
|
|
2
2
|
import { ref, computed, toRaw, reactive, nextTick, onMounted, onUpdated, onBeforeUnmount, onBeforeUpdate, openBlock, createElementBlock, renderSlot, shallowRef, resolveComponent, normalizeStyle, createElementVNode, unref, createVNode, withCtx, Fragment, renderList, createCommentVNode, inject, provide, onUnmounted, onActivated, onDeactivated, createBlock, defineAsyncComponent, normalizeProps, guardReactiveProps, watchEffect, mergeProps, toDisplayString, watch, shallowReactive, withDirectives, vShow, defineComponent } from 'vue';
|
|
3
3
|
import { Forge as Forge$2, ForgeExtension } from '@shijiu/jsview/dom/jsv-forge-define';
|
|
4
|
-
import {
|
|
4
|
+
import { createMemoryHistory } from 'vue-router';
|
|
5
5
|
import { _ as _export_sfc } from './export-sfc.mjs';
|
|
6
6
|
export { A as ApicEndState, L as LoopType } from './jsview-vue-common.mjs';
|
|
7
7
|
|
|
@@ -3771,7 +3771,7 @@ class SlideAnimWrapper {
|
|
|
3771
3771
|
} else if (typeof setting.speed == "number") {
|
|
3772
3772
|
duration = Math.round(Math.max(Math.abs(to[0] - from[0]), Math.abs(to[1] - from[1])) / setting.speed);
|
|
3773
3773
|
}
|
|
3774
|
-
this.forgeAnim = new Forge$
|
|
3774
|
+
this.forgeAnim = new Forge$1.TranslateAnimation(
|
|
3775
3775
|
from[0],
|
|
3776
3776
|
to[0],
|
|
3777
3777
|
from[1],
|
|
@@ -3780,7 +3780,7 @@ class SlideAnimWrapper {
|
|
|
3780
3780
|
setting.easing
|
|
3781
3781
|
);
|
|
3782
3782
|
this.forgeAnim.SetAnimationListener(
|
|
3783
|
-
new Forge$
|
|
3783
|
+
new Forge$1.AnimationListener(this.onStart.bind(this), this.onEnd.bind(this), null)
|
|
3784
3784
|
);
|
|
3785
3785
|
}
|
|
3786
3786
|
start() {
|
|
@@ -3806,7 +3806,7 @@ class AnimationManager {
|
|
|
3806
3806
|
animList = [];
|
|
3807
3807
|
frameCount = 0;
|
|
3808
3808
|
startSlideAnim(element, from, to, setting) {
|
|
3809
|
-
let curFrameCount = Forge$
|
|
3809
|
+
let curFrameCount = Forge$1.sFrameCount.count;
|
|
3810
3810
|
if (curFrameCount != this.frameCount) {
|
|
3811
3811
|
this.tryCleanOldAnim();
|
|
3812
3812
|
this.frameCount = curFrameCount;
|
|
@@ -3815,7 +3815,7 @@ class AnimationManager {
|
|
|
3815
3815
|
this.animList.push(obj);
|
|
3816
3816
|
obj.start();
|
|
3817
3817
|
return () => {
|
|
3818
|
-
if (obj.getFrameCount() == Forge$
|
|
3818
|
+
if (obj.getFrameCount() == Forge$1.sFrameCount.count) {
|
|
3819
3819
|
obj.removeListener();
|
|
3820
3820
|
}
|
|
3821
3821
|
obj.stop();
|
|
@@ -3879,10 +3879,10 @@ class TaskManager {
|
|
|
3879
3879
|
this.allTaskList.resize = [];
|
|
3880
3880
|
}
|
|
3881
3881
|
addTask(type, params, subtype = null) {
|
|
3882
|
-
if (this.frameCount != Forge$
|
|
3882
|
+
if (this.frameCount != Forge$1.sFrameCount.count) {
|
|
3883
3883
|
this.cleanTaskCache();
|
|
3884
3884
|
this.cancellableRunnerList = [];
|
|
3885
|
-
this.frameCount = Forge$
|
|
3885
|
+
this.frameCount = Forge$1.sFrameCount.count;
|
|
3886
3886
|
}
|
|
3887
3887
|
this.cancellableRunnerList.forEach((t) => {
|
|
3888
3888
|
t.cancel();
|
|
@@ -3891,7 +3891,7 @@ class TaskManager {
|
|
|
3891
3891
|
type,
|
|
3892
3892
|
subType: subtype,
|
|
3893
3893
|
params,
|
|
3894
|
-
frameCount: Forge$
|
|
3894
|
+
frameCount: Forge$1.sFrameCount.count
|
|
3895
3895
|
};
|
|
3896
3896
|
switch (type) {
|
|
3897
3897
|
case 2:
|
|
@@ -4181,13 +4181,11 @@ const setup = (props, itemRender, locateDiv, renderData, slideDiv, slideDivLeft,
|
|
|
4181
4181
|
let targetRect = null;
|
|
4182
4182
|
let direction = void 0;
|
|
4183
4183
|
let validSlideTask = false;
|
|
4184
|
-
let forceSlide = false;
|
|
4185
4184
|
if (allTask.slide.length > 0) {
|
|
4186
4185
|
validSlideTask = true;
|
|
4187
4186
|
tryCancelDelayLoad();
|
|
4188
4187
|
let slideTask = lastOfArray(allTask.slide);
|
|
4189
4188
|
slideDoAnim = slideTask.params.doAnim;
|
|
4190
|
-
forceSlide = slideTask.params.force;
|
|
4191
4189
|
switch (slideTask.subType) {
|
|
4192
4190
|
case SlideTaskType.SLIDE_BY_DIV:
|
|
4193
4191
|
{
|
|
@@ -4344,7 +4342,7 @@ const setup = (props, itemRender, locateDiv, renderData, slideDiv, slideDivLeft,
|
|
|
4344
4342
|
}
|
|
4345
4343
|
}
|
|
4346
4344
|
}
|
|
4347
|
-
if (
|
|
4345
|
+
if (needSlide) {
|
|
4348
4346
|
let animInfo = void 0;
|
|
4349
4347
|
if (slideDoAnim) {
|
|
4350
4348
|
animInfo = {
|
|
@@ -4658,15 +4656,14 @@ const setup = (props, itemRender, locateDiv, renderData, slideDiv, slideDivLeft,
|
|
|
4658
4656
|
slideToInner(position, doAnim);
|
|
4659
4657
|
}
|
|
4660
4658
|
};
|
|
4661
|
-
const slideToItemInner = (index, doAnim, direction = void 0, preItem = void 0
|
|
4659
|
+
const slideToItemInner = (index, doAnim, direction = void 0, preItem = void 0) => {
|
|
4662
4660
|
taskManager.addTask(
|
|
4663
4661
|
TaskType.SLIDE,
|
|
4664
4662
|
{
|
|
4665
4663
|
index,
|
|
4666
4664
|
doAnim,
|
|
4667
4665
|
direction,
|
|
4668
|
-
preItem
|
|
4669
|
-
force
|
|
4666
|
+
preItem
|
|
4670
4667
|
},
|
|
4671
4668
|
SlideTaskType.SLIDE_BY_ITEM
|
|
4672
4669
|
);
|
|
@@ -4690,23 +4687,19 @@ const setup = (props, itemRender, locateDiv, renderData, slideDiv, slideDivLeft,
|
|
|
4690
4687
|
);
|
|
4691
4688
|
}
|
|
4692
4689
|
};
|
|
4693
|
-
const
|
|
4690
|
+
const slideToRect = (rect, doAnim, direction = void 0) => {
|
|
4694
4691
|
if (rect && typeof rect.left == "number" && typeof rect.top == "number" && typeof rect.width == "number" && typeof rect.height == "number") {
|
|
4695
4692
|
taskManager.addTask(
|
|
4696
4693
|
TaskType.SLIDE,
|
|
4697
4694
|
{
|
|
4698
4695
|
rect,
|
|
4699
4696
|
doAnim,
|
|
4700
|
-
direction
|
|
4701
|
-
force
|
|
4697
|
+
direction
|
|
4702
4698
|
},
|
|
4703
4699
|
SlideTaskType.SLIDE_BY_RECT
|
|
4704
4700
|
);
|
|
4705
4701
|
}
|
|
4706
4702
|
};
|
|
4707
|
-
const slideToRect = (rect, doAnim, direction = void 0) => {
|
|
4708
|
-
slideToRectInner(rect, doAnim, direction, false);
|
|
4709
|
-
};
|
|
4710
4703
|
function ifLayoutChange(type, oldMeasureItem, newMeasureItem) {
|
|
4711
4704
|
let changed = newMeasureItem.width !== oldMeasureItem.width || newMeasureItem.height !== oldMeasureItem.height || newMeasureItem.focusable !== oldMeasureItem.focusable || newMeasureItem.marginRight !== oldMeasureItem.marginRight || newMeasureItem.marginBottom !== oldMeasureItem.marginBottom;
|
|
4712
4705
|
if (type !== "relative") {
|
|
@@ -4721,14 +4714,13 @@ const setup = (props, itemRender, locateDiv, renderData, slideDiv, slideDivLeft,
|
|
|
4721
4714
|
return;
|
|
4722
4715
|
}
|
|
4723
4716
|
try {
|
|
4724
|
-
let newData = toRaw(props.provideData())
|
|
4717
|
+
let newData = toRaw(props.provideData());
|
|
4725
4718
|
if (newData instanceof Array) {
|
|
4726
4719
|
let maxSameIndex = -1;
|
|
4727
4720
|
let layoutChange = false;
|
|
4728
4721
|
let onlyDataChangeList = [];
|
|
4729
|
-
let targetFocusId = focusId;
|
|
4730
4722
|
if (focusId >= newData.length) {
|
|
4731
|
-
|
|
4723
|
+
_changeFocusId(newData.length - 1, false);
|
|
4732
4724
|
}
|
|
4733
4725
|
if (!forceUpdate) {
|
|
4734
4726
|
for (let i = 0; i < dataList.length; ++i) {
|
|
@@ -4764,7 +4756,7 @@ const setup = (props, itemRender, locateDiv, renderData, slideDiv, slideDivLeft,
|
|
|
4764
4756
|
}
|
|
4765
4757
|
}
|
|
4766
4758
|
}
|
|
4767
|
-
dataList = newData;
|
|
4759
|
+
dataList = newData.concat();
|
|
4768
4760
|
if (forceUpdate || layoutChange) {
|
|
4769
4761
|
pageUpdateToken.value++;
|
|
4770
4762
|
permanentItemList = [];
|
|
@@ -4788,15 +4780,15 @@ const setup = (props, itemRender, locateDiv, renderData, slideDiv, slideDivLeft,
|
|
|
4788
4780
|
if (props.onScroll) {
|
|
4789
4781
|
templateItemAdder.tryAddItemByIndex(dataList.length - 1);
|
|
4790
4782
|
} else {
|
|
4791
|
-
templateItemAdder.tryAddItemById(
|
|
4783
|
+
templateItemAdder.tryAddItemById(focusId);
|
|
4792
4784
|
}
|
|
4793
4785
|
} else {
|
|
4794
|
-
if (maxSameIndex < newData.length
|
|
4786
|
+
if (maxSameIndex < newData.length) {
|
|
4795
4787
|
templateItemAdder.updateData(newData);
|
|
4796
4788
|
if (props.onScroll) {
|
|
4797
4789
|
templateItemAdder.tryAddItemByIndex(dataList.length - 1);
|
|
4798
4790
|
} else {
|
|
4799
|
-
templateItemAdder.tryAddItemById(
|
|
4791
|
+
templateItemAdder.tryAddItemById(focusId);
|
|
4800
4792
|
}
|
|
4801
4793
|
}
|
|
4802
4794
|
if (onlyDataChangeList.length > 0) {
|
|
@@ -4810,14 +4802,6 @@ const setup = (props, itemRender, locateDiv, renderData, slideDiv, slideDivLeft,
|
|
|
4810
4802
|
}
|
|
4811
4803
|
}
|
|
4812
4804
|
}
|
|
4813
|
-
if (targetFocusId != focusId) {
|
|
4814
|
-
_changeFocusId(targetFocusId, false);
|
|
4815
|
-
visibleInfo = visibleInfo.copy();
|
|
4816
|
-
visibleInfo.start = 0;
|
|
4817
|
-
visibleInfo._startMax = 0;
|
|
4818
|
-
slideDivLeft.value = 0;
|
|
4819
|
-
slideDivTop.value = 0;
|
|
4820
|
-
}
|
|
4821
4805
|
const updater = pageUpdater.update(
|
|
4822
4806
|
metroTemplate,
|
|
4823
4807
|
visibleInfo.startWithPadding - innerKeepTraceRange * pageRange,
|
|
@@ -4830,9 +4814,9 @@ const setup = (props, itemRender, locateDiv, renderData, slideDiv, slideDivLeft,
|
|
|
4830
4814
|
onItemFocus(getItemById(focusId), null);
|
|
4831
4815
|
let targetRect = mRectCache.getCurRect() ?? mRectCache.getPreRect();
|
|
4832
4816
|
if (targetRect) {
|
|
4833
|
-
|
|
4817
|
+
slideToRect(targetRect, false);
|
|
4834
4818
|
} else {
|
|
4835
|
-
|
|
4819
|
+
slideToItem(id2Index(focusId), false);
|
|
4836
4820
|
}
|
|
4837
4821
|
updateTouchBoxCondition();
|
|
4838
4822
|
}
|
|
@@ -5981,9 +5965,9 @@ const setup = (props, itemRender, locateDiv, renderData, slideDiv, slideDivLeft,
|
|
|
5981
5965
|
visibleInfo.range = vertical ? widgetRectInfo.contentHeight : widgetRectInfo.contentWidth;
|
|
5982
5966
|
visibleInfo.padding = vertical ? { start: widgetRectInfo.padding.top, end: widgetRectInfo.padding.bottom } : { start: widgetRectInfo.padding.left, end: widgetRectInfo.padding.right };
|
|
5983
5967
|
if (props.provideData) {
|
|
5984
|
-
dataList = toRaw(props.provideData())
|
|
5968
|
+
dataList = toRaw(props.provideData());
|
|
5985
5969
|
} else if (props.data) {
|
|
5986
|
-
dataList = toRaw(props.data)
|
|
5970
|
+
dataList = toRaw(props.data);
|
|
5987
5971
|
}
|
|
5988
5972
|
templateItemAdder = new TemplateItemAdder(
|
|
5989
5973
|
metroTemplate,
|
|
@@ -7350,9 +7334,7 @@ class JsvFocusManager {
|
|
|
7350
7334
|
// #aliasMap = {}
|
|
7351
7335
|
$_appMount = void 0;
|
|
7352
7336
|
$_topFDiv = void 0;
|
|
7353
|
-
|
|
7354
|
-
constructor(config) {
|
|
7355
|
-
this.$_autoSearchFocus = config.autoSearchFocus;
|
|
7337
|
+
constructor() {
|
|
7356
7338
|
}
|
|
7357
7339
|
install(app, ...options) {
|
|
7358
7340
|
console.log("JsvFocusManager install");
|
|
@@ -7409,7 +7391,6 @@ class JsvFocusManager {
|
|
|
7409
7391
|
$_hookMount(app, rootNodeId) {
|
|
7410
7392
|
rootNodeId = rootNodeId.replace("#", "");
|
|
7411
7393
|
this.$_topFDiv = document.jsvInitFDivRoot(rootNodeId);
|
|
7412
|
-
this.$_topFDiv.enableAutoSearchFocus(this.$_autoSearchFocus);
|
|
7413
7394
|
this.$_appMount = app.mount.bind(app);
|
|
7414
7395
|
return this.$_doAppMount.bind(this);
|
|
7415
7396
|
}
|
|
@@ -7419,14 +7400,8 @@ class JsvFocusManager {
|
|
|
7419
7400
|
return rootComponent;
|
|
7420
7401
|
}
|
|
7421
7402
|
}
|
|
7422
|
-
function jsvCreateFocusManager(
|
|
7423
|
-
|
|
7424
|
-
autoSearchFocus: false
|
|
7425
|
-
};
|
|
7426
|
-
return new JsvFocusManager({
|
|
7427
|
-
...defualt_config,
|
|
7428
|
-
...config
|
|
7429
|
-
});
|
|
7403
|
+
function jsvCreateFocusManager() {
|
|
7404
|
+
return new JsvFocusManager();
|
|
7430
7405
|
}
|
|
7431
7406
|
|
|
7432
7407
|
/*
|
|
@@ -7657,10 +7632,9 @@ let PluginInfo$1 = {
|
|
|
7657
7632
|
//插件初始化方法
|
|
7658
7633
|
listener: "top.JsvAudioPluginLoadResult",
|
|
7659
7634
|
//插件加载结果回调
|
|
7660
|
-
listener2: "top.JsvAudioPluginStatus"
|
|
7635
|
+
listener2: "top.JsvAudioPluginStatus"
|
|
7661
7636
|
// debug:true,
|
|
7662
|
-
md5:
|
|
7663
|
-
// 插件的md5, 此信息是内网场景回使用,一定要对齐md5
|
|
7637
|
+
// md5:"baafc8ea737adcad5443f44cc0112498"
|
|
7664
7638
|
};
|
|
7665
7639
|
|
|
7666
7640
|
/*
|
|
@@ -8863,11 +8837,7 @@ function processLatexStr(origin) {
|
|
|
8863
8837
|
*/
|
|
8864
8838
|
class JsvHashHistory {
|
|
8865
8839
|
constructor(base) {
|
|
8866
|
-
|
|
8867
|
-
this.#history = createWebHashHistory(base);
|
|
8868
|
-
} else {
|
|
8869
|
-
this.#history = this.#createMockHashHistory(base);
|
|
8870
|
-
}
|
|
8840
|
+
this.#history = this.#createMockHashHistory(base);
|
|
8871
8841
|
}
|
|
8872
8842
|
get location() {
|
|
8873
8843
|
return this.#history.location;
|
|
@@ -8928,25 +8898,21 @@ class JsvHashHistory {
|
|
|
8928
8898
|
}
|
|
8929
8899
|
#getInitHash() {
|
|
8930
8900
|
let initHash;
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
} else {
|
|
8938
|
-
initHash = window.location.hash;
|
|
8939
|
-
}
|
|
8901
|
+
initHash = window.JsvCoreApi.takeNativeHashChange((new_hash) => {
|
|
8902
|
+
});
|
|
8903
|
+
if (initHash != null) {
|
|
8904
|
+
console.log("History: found init hash change to:" + initHash);
|
|
8905
|
+
} else {
|
|
8906
|
+
initHash = window.location.hash;
|
|
8940
8907
|
}
|
|
8941
8908
|
return initHash;
|
|
8942
8909
|
}
|
|
8943
8910
|
#updateLocation(location2) {
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
location2 ? this.baseURL + location2 : this.baseURL,
|
|
8947
|
-
true
|
|
8948
|
-
);
|
|
8911
|
+
const url = new URL(location2 ? this.baseURL + location2 : this.baseURL);
|
|
8912
|
+
if (window.location.applyUrlInfo) {
|
|
8949
8913
|
window.location.applyUrlInfo(url);
|
|
8914
|
+
} else {
|
|
8915
|
+
window.history.pushState(null, "", url.href);
|
|
8950
8916
|
}
|
|
8951
8917
|
}
|
|
8952
8918
|
#convertUrlParams(value) {
|
|
@@ -9173,7 +9139,7 @@ function notifyPageLoadDone() {
|
|
|
9173
9139
|
notifyPageLoaded();
|
|
9174
9140
|
}
|
|
9175
9141
|
function notifyPageLoaded() {
|
|
9176
|
-
window.
|
|
9142
|
+
window.JsvCoreApi.enableReceivingUserInput?.();
|
|
9177
9143
|
direct_call("notifyPageLoaded");
|
|
9178
9144
|
}
|
|
9179
9145
|
function hasFavouriteFunction() {
|
|
@@ -9385,9 +9351,26 @@ function toNinePatchForgeViewSet(imageWidth, centerWidth, imageDspWidth, borderO
|
|
|
9385
9351
|
}
|
|
9386
9352
|
|
|
9387
9353
|
/*
|
|
9388
|
-
+ @file {@link file://./../../../utils/JsViewVueTools/TypeCheckAndSet.
|
|
9354
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/TypeCheckAndSet.ts}
|
|
9389
9355
|
*/
|
|
9390
9356
|
var number_convert_tmp = new Float32Array(1);
|
|
9357
|
+
function parseUrl(origin_url) {
|
|
9358
|
+
let url_result = origin_url;
|
|
9359
|
+
if (url_result.startsWith("url") === true) {
|
|
9360
|
+
let startIdx = url_result.indexOf("(") + 1;
|
|
9361
|
+
let endIdx = url_result.lastIndexOf(")");
|
|
9362
|
+
url_result = url_result.substring(startIdx, endIdx).trim();
|
|
9363
|
+
if (url_result === "undefined" || url_result === "null" || url_result.length === 0) {
|
|
9364
|
+
return url_result;
|
|
9365
|
+
}
|
|
9366
|
+
}
|
|
9367
|
+
if (url_result.startsWith("data:") === true || url_result.startsWith("jsvtexturestore:") === true) {
|
|
9368
|
+
return url_result;
|
|
9369
|
+
}
|
|
9370
|
+
let base_url = window.location.jsvGetLocation ? window.location.jsvGetLocation() : window.location.href;
|
|
9371
|
+
let url_parse = new window.JsvCoreApi.UrlBuilder(url_result, base_url);
|
|
9372
|
+
return url_parse.href;
|
|
9373
|
+
}
|
|
9391
9374
|
function numberCheckSet(number) {
|
|
9392
9375
|
number_convert_tmp[0] = number;
|
|
9393
9376
|
if (!isNaN(number_convert_tmp[0])) {
|
|
@@ -9400,11 +9383,8 @@ function numberCheckSet(number) {
|
|
|
9400
9383
|
function urlCheckSet(origin_url) {
|
|
9401
9384
|
if (origin_url && origin_url.indexOf("http") === 0) {
|
|
9402
9385
|
return origin_url;
|
|
9403
|
-
} else if (window.JsView.Dom.UrlRef) {
|
|
9404
|
-
return new window.JsView.Dom.UrlRef(origin_url).href;
|
|
9405
9386
|
} else {
|
|
9406
|
-
|
|
9407
|
-
return null;
|
|
9387
|
+
return parseUrl(origin_url);
|
|
9408
9388
|
}
|
|
9409
9389
|
}
|
|
9410
9390
|
|
|
@@ -9829,14 +9809,8 @@ function updateImpactAutoFroze(handler, element_auto_froze_pre_impact, element_a
|
|
|
9829
9809
|
* @return {int} 文字宽度
|
|
9830
9810
|
**/
|
|
9831
9811
|
const getTextWidth = (text, style) => {
|
|
9832
|
-
|
|
9833
|
-
|
|
9834
|
-
font: style.fontFamily ? style.fontFamily : Forge$1.TextUtils.sDefaultFont,
|
|
9835
|
-
size: style.fontSize ? style.fontSize : Forge$1.TextUtils.sDefaultFontSize,
|
|
9836
|
-
italic: style.fontStyle === "italic" ? "italic" : "",
|
|
9837
|
-
bold: style.fontWeight === "bold" ? "bold" : ""
|
|
9838
|
-
};
|
|
9839
|
-
return window.PlatformUtils.GetTextWidth(textParams);
|
|
9812
|
+
let forgeRef = Forge$1;
|
|
9813
|
+
return Forge$1.TextUtils.GetTextWidth(text, style);
|
|
9840
9814
|
};
|
|
9841
9815
|
/*
|
|
9842
9816
|
* @typedef {object} SliceInfo
|
|
@@ -9860,25 +9834,7 @@ const getOneLineTextDrawWidth = (text, style) => {
|
|
|
9860
9834
|
if (text && typeof text != "string") {
|
|
9861
9835
|
text = "" + text;
|
|
9862
9836
|
}
|
|
9863
|
-
|
|
9864
|
-
text ?? "",
|
|
9865
|
-
style.fontFamily ?? Forge$1.TextUtils.sDefaultFont,
|
|
9866
|
-
style.fontSize ?? Forge$1.TextUtils.sDefaultFontSize,
|
|
9867
|
-
style.fontStyle === "italic" ? "italic" : "",
|
|
9868
|
-
style.fontWeight === "bold" ? "bold" : ""
|
|
9869
|
-
);
|
|
9870
|
-
const result = {
|
|
9871
|
-
totalWidth: info[0],
|
|
9872
|
-
sliceInfo: []
|
|
9873
|
-
};
|
|
9874
|
-
for (let i = 1; i < info.length; i += 3) {
|
|
9875
|
-
result.sliceInfo.push({
|
|
9876
|
-
start: info[i],
|
|
9877
|
-
end: info[i + 1],
|
|
9878
|
-
width: info[2 + 2]
|
|
9879
|
-
});
|
|
9880
|
-
}
|
|
9881
|
-
return result;
|
|
9837
|
+
return Forge$1.TextUtils.GetOneLineTextDrawWidth(text, style);
|
|
9882
9838
|
};
|
|
9883
9839
|
const isRtl = (str) => {
|
|
9884
9840
|
for (let i = 0; i < str.length; i++) {
|
|
@@ -9893,55 +9849,38 @@ const isRtl = (str) => {
|
|
|
9893
9849
|
}
|
|
9894
9850
|
return false;
|
|
9895
9851
|
};
|
|
9896
|
-
function
|
|
9897
|
-
let
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
// font family name
|
|
9907
|
-
size;
|
|
9908
|
-
// font size
|
|
9909
|
-
bold;
|
|
9910
|
-
// ""/"bold"
|
|
9911
|
-
italic;
|
|
9912
|
-
// ""/"italic"
|
|
9913
|
-
alignment;
|
|
9914
|
-
// left / right /center
|
|
9915
|
-
textColour;
|
|
9852
|
+
function getCursorPosition(cursorOffset, text, fontStyle, textLayoutStyle, buildCache) {
|
|
9853
|
+
let result = Forge$1.TextUtils.GetCursorPosition(
|
|
9854
|
+
0,
|
|
9855
|
+
cursorOffset,
|
|
9856
|
+
text,
|
|
9857
|
+
fontStyle,
|
|
9858
|
+
textLayoutStyle,
|
|
9859
|
+
buildCache
|
|
9860
|
+
);
|
|
9861
|
+
return result;
|
|
9916
9862
|
}
|
|
9917
|
-
function
|
|
9918
|
-
let
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
packed.alignment = alignment && alignment.length > 0 ? alignment : "left";
|
|
9928
|
-
packed.textColour = text_color ? text_color : Forge$1.TextUtils.sDefaultFontColor;
|
|
9929
|
-
return packed;
|
|
9863
|
+
function getCursorPositionCached(cachedId, cursorOffset) {
|
|
9864
|
+
let result = Forge$1.TextUtils.GetCursorPosition(
|
|
9865
|
+
cachedId,
|
|
9866
|
+
cursorOffset,
|
|
9867
|
+
null,
|
|
9868
|
+
null,
|
|
9869
|
+
null,
|
|
9870
|
+
true
|
|
9871
|
+
);
|
|
9872
|
+
return result;
|
|
9930
9873
|
}
|
|
9931
|
-
function
|
|
9932
|
-
|
|
9933
|
-
text_overflow = "none";
|
|
9934
|
-
if (!word_wrap)
|
|
9935
|
-
word_wrap = "none";
|
|
9936
|
-
return { text_overflow, word_wrap };
|
|
9874
|
+
function recycleCursorPositionCache(cached_id) {
|
|
9875
|
+
Forge$1.TextUtils.RemoveCursorTextCache(cached_id);
|
|
9937
9876
|
}
|
|
9938
9877
|
const TextTools = {
|
|
9939
9878
|
getOneLineTextDrawWidth,
|
|
9940
9879
|
getTextWidth,
|
|
9941
9880
|
isRtl,
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
|
|
9881
|
+
getCursorPosition,
|
|
9882
|
+
getCursorPositionCached,
|
|
9883
|
+
recycleCursorPositionCache
|
|
9945
9884
|
};
|
|
9946
9885
|
|
|
9947
9886
|
/*
|
|
@@ -12068,7 +12007,7 @@ const _sfc_main$D = {
|
|
|
12068
12007
|
const rProps = __props;
|
|
12069
12008
|
const cDivWidth = Forge$2.sRenderBridge.GetScreenInfo().designedWidth;
|
|
12070
12009
|
let rConfig = shallowRef({});
|
|
12071
|
-
let
|
|
12010
|
+
let vTextureStringCache = null;
|
|
12072
12011
|
let vStretchViewRef = null;
|
|
12073
12012
|
const fncBuildForgeView = () => {
|
|
12074
12013
|
vStretchViewRef = new Forge$2.AutoStretchView();
|
|
@@ -12086,23 +12025,17 @@ const _sfc_main$D = {
|
|
|
12086
12025
|
}
|
|
12087
12026
|
rConfig.value.askSize = rProps.askSize;
|
|
12088
12027
|
rConfig.value.onSized = rProps.onSized;
|
|
12089
|
-
if (rProps.background !=
|
|
12090
|
-
|
|
12028
|
+
if (rProps.background != vTextureStringCache) {
|
|
12029
|
+
vTextureStringCache = rProps.background;
|
|
12091
12030
|
let texture_setting = null;
|
|
12092
|
-
if (
|
|
12031
|
+
if (vTextureStringCache != null) {
|
|
12093
12032
|
const texture_manager = handles.TextureManager;
|
|
12094
|
-
if (
|
|
12033
|
+
if (vTextureStringCache.trim().startsWith("#") || vTextureStringCache.trim().startsWith("rgba")) {
|
|
12095
12034
|
texture_setting = new Forge$2.TextureSetting(
|
|
12096
|
-
ForgeTextureApis.GetColorTexture(texture_manager,
|
|
12035
|
+
ForgeTextureApis.GetColorTexture(texture_manager, vTextureStringCache)
|
|
12097
12036
|
);
|
|
12098
12037
|
} else {
|
|
12099
|
-
|
|
12100
|
-
let image_url = base_url;
|
|
12101
|
-
if (base_url && base_url.indexOf("http") === 0) {
|
|
12102
|
-
image_url = base_url;
|
|
12103
|
-
} else if (window.JsView?.Dom.UrlRef) {
|
|
12104
|
-
image_url = new window.JsView.Dom.UrlRef(base_url).href;
|
|
12105
|
-
}
|
|
12038
|
+
let image_url = urlCheckSet(vTextureStringCache);
|
|
12106
12039
|
texture_setting = new Forge$2.ExternalTextureSetting(
|
|
12107
12040
|
ForgeTextureApis.GetImage(texture_manager, image_url)
|
|
12108
12041
|
);
|
|
@@ -12501,44 +12434,36 @@ const _sfc_main$A = {
|
|
|
12501
12434
|
}
|
|
12502
12435
|
};
|
|
12503
12436
|
|
|
12504
|
-
/*
|
|
12505
|
-
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvInput/SharedDefine.ts}
|
|
12506
|
-
*/
|
|
12507
|
-
const InputType = {
|
|
12508
|
-
TEXT: Forge$1.TextInputType.TEXT,
|
|
12509
|
-
NUMBER: Forge$1.TextInputType.NUMBER,
|
|
12510
|
-
PASSWORD: Forge$1.TextInputType.PASSWORD
|
|
12511
|
-
};
|
|
12512
|
-
const MAX_WIDTH = 2e3;
|
|
12513
|
-
|
|
12514
12437
|
/*
|
|
12515
12438
|
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvInput/SystemTextTools.ts}
|
|
12516
12439
|
*/
|
|
12517
12440
|
function calculateCursorPosition(display_text, cursor_offset, rect_width, rect_height, line_height, font_style) {
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
line_height
|
|
12528
|
-
|
|
12529
|
-
);
|
|
12530
|
-
return
|
|
12441
|
+
let css_font_style = {
|
|
12442
|
+
fontFamily: font_style.fontFamily,
|
|
12443
|
+
fontSize: font_style.fontSize,
|
|
12444
|
+
fontStyle: font_style.fontStyle,
|
|
12445
|
+
fontWeight: font_style.fontWeight
|
|
12446
|
+
};
|
|
12447
|
+
let css_textlayout_style = {
|
|
12448
|
+
width: rect_width,
|
|
12449
|
+
height: rect_height,
|
|
12450
|
+
lineHeight: line_height
|
|
12451
|
+
};
|
|
12452
|
+
let cursor_info = TextTools.getCursorPosition(cursor_offset, display_text, css_font_style, css_textlayout_style, true);
|
|
12453
|
+
return {
|
|
12454
|
+
x: cursor_info.x,
|
|
12455
|
+
cachedId: cursor_info.cachedId
|
|
12456
|
+
};
|
|
12531
12457
|
}
|
|
12532
|
-
function
|
|
12533
|
-
|
|
12458
|
+
function calculateCursorPositionCached(cursor_offset, cached_id) {
|
|
12459
|
+
let cursor_info = TextTools.getCursorPositionCached(cached_id, cursor_offset);
|
|
12460
|
+
return cursor_info.x;
|
|
12534
12461
|
}
|
|
12535
|
-
function
|
|
12536
|
-
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12540
|
-
const bold = font_style.fontWeight === "bold";
|
|
12541
|
-
return TextTools.PackFontParams(font, size, bold, italic, alignment, null);
|
|
12462
|
+
function recycleCursorMeasureCache(cached_id) {
|
|
12463
|
+
TextTools.recycleCursorPositionCache(cached_id);
|
|
12464
|
+
}
|
|
12465
|
+
function getTextDisplayWidth(text, font_style) {
|
|
12466
|
+
return TextTools.getTextWidth(text, font_style);
|
|
12542
12467
|
}
|
|
12543
12468
|
|
|
12544
12469
|
/*
|
|
@@ -12557,6 +12482,9 @@ class EditVisibleArea {
|
|
|
12557
12482
|
// 显示区域的末尾是整段文字第几个像素上
|
|
12558
12483
|
_VisibleAreaCurPos = 0;
|
|
12559
12484
|
// 光标在整段文字的第几个像素上
|
|
12485
|
+
// 管理Cursor measure的cache
|
|
12486
|
+
_CursorMeasureCachedId = 0;
|
|
12487
|
+
_CursorMeasuredToken = 0;
|
|
12560
12488
|
constructor(area_width, area_height, cursor_width, font_style, is_right_align) {
|
|
12561
12489
|
this._CursorWidth = cursor_width;
|
|
12562
12490
|
this._FontStyle = font_style;
|
|
@@ -12570,21 +12498,46 @@ class EditVisibleArea {
|
|
|
12570
12498
|
getCursorPosition() {
|
|
12571
12499
|
return this._VisibleAreaCurPos;
|
|
12572
12500
|
}
|
|
12573
|
-
|
|
12501
|
+
releaseResource() {
|
|
12502
|
+
if (this._CursorMeasureCachedId > 0) {
|
|
12503
|
+
recycleCursorMeasureCache(this._CursorMeasureCachedId);
|
|
12504
|
+
this._CursorMeasureCachedId = 0;
|
|
12505
|
+
}
|
|
12506
|
+
}
|
|
12507
|
+
calculateSlide(pre_str, target_str, pre_str_dsp_width, target_str_dsp_width, cur_index, moved, text_info_token) {
|
|
12574
12508
|
if (target_str.length === 0) {
|
|
12575
12509
|
this._VisibleAreaCurPos = 0;
|
|
12576
12510
|
this._updateVisibleAreaPos(0, target_str_dsp_width);
|
|
12577
12511
|
return this._caculateTextLeft(target_str_dsp_width);
|
|
12578
12512
|
}
|
|
12579
12513
|
let new_left = this._TextLeft;
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
this.
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12514
|
+
let current_cursor_position = 0;
|
|
12515
|
+
if (cur_index == target_str.length) {
|
|
12516
|
+
current_cursor_position = target_str_dsp_width;
|
|
12517
|
+
} else {
|
|
12518
|
+
if (this._CursorMeasuredToken == text_info_token && this._CursorMeasureCachedId > 0) {
|
|
12519
|
+
current_cursor_position = calculateCursorPositionCached(
|
|
12520
|
+
cur_index,
|
|
12521
|
+
this._CursorMeasureCachedId
|
|
12522
|
+
);
|
|
12523
|
+
} else {
|
|
12524
|
+
if (this._CursorMeasureCachedId > 0) {
|
|
12525
|
+
recycleCursorMeasureCache(this._CursorMeasureCachedId);
|
|
12526
|
+
this._CursorMeasureCachedId = 0;
|
|
12527
|
+
}
|
|
12528
|
+
let measure_result = calculateCursorPosition(
|
|
12529
|
+
target_str,
|
|
12530
|
+
cur_index,
|
|
12531
|
+
target_str_dsp_width,
|
|
12532
|
+
this._AreaHeight,
|
|
12533
|
+
this._AreaHeight,
|
|
12534
|
+
this._FontStyle
|
|
12535
|
+
);
|
|
12536
|
+
current_cursor_position = measure_result.x;
|
|
12537
|
+
this._CursorMeasureCachedId = measure_result.cachedId;
|
|
12538
|
+
this._CursorMeasuredToken = text_info_token;
|
|
12539
|
+
}
|
|
12540
|
+
}
|
|
12588
12541
|
let option_mode = "op_vis_normal";
|
|
12589
12542
|
if (pre_str.length > target_str.length) {
|
|
12590
12543
|
option_mode = "op_del";
|
|
@@ -12715,6 +12668,16 @@ class EditVisibleArea {
|
|
|
12715
12668
|
}
|
|
12716
12669
|
}
|
|
12717
12670
|
|
|
12671
|
+
/*
|
|
12672
|
+
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvInput/SharedDefine.ts}
|
|
12673
|
+
*/
|
|
12674
|
+
const InputType = {
|
|
12675
|
+
TEXT: Forge$1.TextInputType.TEXT,
|
|
12676
|
+
NUMBER: Forge$1.TextInputType.NUMBER,
|
|
12677
|
+
PASSWORD: Forge$1.TextInputType.PASSWORD
|
|
12678
|
+
};
|
|
12679
|
+
const MAX_WIDTH = 2e3;
|
|
12680
|
+
|
|
12718
12681
|
/*
|
|
12719
12682
|
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvInput/EditViewOperator.ts}
|
|
12720
12683
|
*/
|
|
@@ -12742,6 +12705,8 @@ class EditViewOperator {
|
|
|
12742
12705
|
// 相对可视区域的左边缘的焦点显示位置
|
|
12743
12706
|
_IsFocus = false;
|
|
12744
12707
|
_EditVisibleArea;
|
|
12708
|
+
_TextChangedCount = 0;
|
|
12709
|
+
// 记录文字变化的次数,可用于确认文字是否变化,当style变化或者文字内容变化时+1
|
|
12745
12710
|
// Callback
|
|
12746
12711
|
_OnTextChangedCallback;
|
|
12747
12712
|
_OnCursorMoved;
|
|
@@ -12762,7 +12727,9 @@ class EditViewOperator {
|
|
|
12762
12727
|
this._EditViewHandle.showIme(
|
|
12763
12728
|
this._InputType,
|
|
12764
12729
|
this._CurrentFullText,
|
|
12765
|
-
this._CurrentCursorOffset
|
|
12730
|
+
this._CurrentCursorOffset,
|
|
12731
|
+
Math.ceil(-this._TextLeft),
|
|
12732
|
+
0
|
|
12766
12733
|
);
|
|
12767
12734
|
}
|
|
12768
12735
|
}
|
|
@@ -12779,10 +12746,12 @@ class EditViewOperator {
|
|
|
12779
12746
|
this._EditViewHandle.showIme(
|
|
12780
12747
|
this._InputType,
|
|
12781
12748
|
this._CurrentFullText,
|
|
12782
|
-
this._CurrentCursorOffset
|
|
12749
|
+
this._CurrentCursorOffset,
|
|
12750
|
+
Math.ceil(-this._TextLeft),
|
|
12751
|
+
0
|
|
12783
12752
|
);
|
|
12784
12753
|
}
|
|
12785
|
-
updateInputConfig(box_width, box_height, cursor_width, font_style, input_type, max_input_lenth, text_read_only) {
|
|
12754
|
+
updateInputConfig(box_width, box_height, cursor_width, font_style, input_type, max_input_lenth, text_read_only, editorTextColor, editorBackground) {
|
|
12786
12755
|
this._FontStyle = {
|
|
12787
12756
|
fontSize: !font_style.fontSize || isNaN(font_style.fontSize) ? Forge$1.TextUtils.sDefaultFontSize : font_style.fontSize,
|
|
12788
12757
|
fontFamily: !font_style.fontFamily ? Forge$1.TextUtils.sDefaultFontSize : font_style.fontFamily,
|
|
@@ -12801,11 +12770,20 @@ class EditViewOperator {
|
|
|
12801
12770
|
font_style,
|
|
12802
12771
|
font_style.textAlign === "right"
|
|
12803
12772
|
);
|
|
12773
|
+
this._EditViewHandle.setEditorStyle(
|
|
12774
|
+
this._FontStyle.fontSize,
|
|
12775
|
+
this._FontStyle.textAlign,
|
|
12776
|
+
editorTextColor,
|
|
12777
|
+
editorBackground
|
|
12778
|
+
);
|
|
12804
12779
|
}
|
|
12805
12780
|
generateView() {
|
|
12806
12781
|
this._EditViewHandle = new Forge$1.EditControlView();
|
|
12807
|
-
this._EditViewHandle.
|
|
12808
|
-
|
|
12782
|
+
this._EditViewHandle.addImeEventListener({
|
|
12783
|
+
OnTextChanged: this._OnTextChanged.bind(this),
|
|
12784
|
+
OnStatusChanged: this._OnStatusChanged.bind(this),
|
|
12785
|
+
OnEditAction: null
|
|
12786
|
+
});
|
|
12809
12787
|
this._EditViewId = Forge$1.sViewStore.add(
|
|
12810
12788
|
new Forge$1.ViewInfo(this._EditViewHandle)
|
|
12811
12789
|
);
|
|
@@ -12834,7 +12812,8 @@ class EditViewOperator {
|
|
|
12834
12812
|
this._CurrentDspWith,
|
|
12835
12813
|
this._CurrentDspWith,
|
|
12836
12814
|
new_cursor_index,
|
|
12837
|
-
true
|
|
12815
|
+
true,
|
|
12816
|
+
this._TextChangedCount
|
|
12838
12817
|
);
|
|
12839
12818
|
this._UpdateDispay(new_text_left, new_cursor_index);
|
|
12840
12819
|
}
|
|
@@ -12849,6 +12828,8 @@ class EditViewOperator {
|
|
|
12849
12828
|
}
|
|
12850
12829
|
}
|
|
12851
12830
|
onUnmounted() {
|
|
12831
|
+
this._EditViewHandle?.releaseResource();
|
|
12832
|
+
this._EditVisibleArea.releaseResource();
|
|
12852
12833
|
if (this._EditViewId != -1) {
|
|
12853
12834
|
Forge$1.sViewStore.remove(this._EditViewId);
|
|
12854
12835
|
this._EditViewId = -1;
|
|
@@ -12869,12 +12850,19 @@ class EditViewOperator {
|
|
|
12869
12850
|
}
|
|
12870
12851
|
}
|
|
12871
12852
|
// EditControlView当输入变化时的回调
|
|
12872
|
-
_OnTextChanged(text, cursor_index) {
|
|
12853
|
+
_OnTextChanged(text, cursor_index, scroll_left) {
|
|
12854
|
+
let p = {
|
|
12855
|
+
text,
|
|
12856
|
+
cursor_index,
|
|
12857
|
+
scroll_left
|
|
12858
|
+
};
|
|
12873
12859
|
if (typeof text != "string" || text.length >= this._MaxInputLenth) {
|
|
12874
12860
|
if (this._EditViewHandle && this._IsFocus) {
|
|
12875
12861
|
this._EditViewHandle.updateCursorOffset(
|
|
12876
12862
|
this._CurrentDspText,
|
|
12877
|
-
this._CurrentCursorOffset
|
|
12863
|
+
this._CurrentCursorOffset,
|
|
12864
|
+
Math.ceil(-this._TextLeft),
|
|
12865
|
+
0
|
|
12878
12866
|
);
|
|
12879
12867
|
}
|
|
12880
12868
|
return;
|
|
@@ -12886,7 +12874,9 @@ class EditViewOperator {
|
|
|
12886
12874
|
if (add_text && !ifDigital(add_text) && this._InputType === InputType.NUMBER) {
|
|
12887
12875
|
this._EditViewHandle.updateCursorOffset(
|
|
12888
12876
|
this._CurrentDspText,
|
|
12889
|
-
this._CurrentCursorOffset
|
|
12877
|
+
this._CurrentCursorOffset,
|
|
12878
|
+
Math.ceil(-this._TextLeft),
|
|
12879
|
+
0
|
|
12890
12880
|
);
|
|
12891
12881
|
return;
|
|
12892
12882
|
}
|
|
@@ -12902,6 +12892,7 @@ class EditViewOperator {
|
|
|
12902
12892
|
this._CurrentDspText = text;
|
|
12903
12893
|
}
|
|
12904
12894
|
this._CurrentDspWith = getTextDisplayWidth(this._CurrentDspText, this._FontStyle);
|
|
12895
|
+
this._TextChangedCount++;
|
|
12905
12896
|
} else {
|
|
12906
12897
|
}
|
|
12907
12898
|
let new_text_left = this._EditVisibleArea.calculateSlide(
|
|
@@ -12910,14 +12901,15 @@ class EditViewOperator {
|
|
|
12910
12901
|
origin_dsp_width,
|
|
12911
12902
|
this._CurrentDspWith,
|
|
12912
12903
|
cursor_index,
|
|
12913
|
-
false
|
|
12904
|
+
false,
|
|
12905
|
+
this._TextChangedCount
|
|
12914
12906
|
);
|
|
12915
12907
|
this._UpdateDispay(new_text_left, cursor_index);
|
|
12916
12908
|
if (text_changed) {
|
|
12917
12909
|
this._OnTextChangedCallback?.(this._CurrentFullText, this._CurrentDspText);
|
|
12918
12910
|
}
|
|
12919
12911
|
}
|
|
12920
|
-
_OnStatusChanged() {
|
|
12912
|
+
_OnStatusChanged(visible) {
|
|
12921
12913
|
}
|
|
12922
12914
|
addText(text) {
|
|
12923
12915
|
if (this._InputType === InputType.NUMBER && !ifDigital(text)) {
|
|
@@ -12950,6 +12942,11 @@ class EditViewOperator {
|
|
|
12950
12942
|
}
|
|
12951
12943
|
}
|
|
12952
12944
|
|
|
12945
|
+
/*
|
|
12946
|
+
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvInput/JsvInput.vue?vue&type=style&index=0&scoped=3de0c16d&lang.css}
|
|
12947
|
+
*/
|
|
12948
|
+
const JsvInput_vue_vue_type_style_index_0_scoped_3de0c16d_lang = "";
|
|
12949
|
+
|
|
12953
12950
|
/*
|
|
12954
12951
|
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvInput/JsvInput.vue}
|
|
12955
12952
|
*/
|
|
@@ -12964,6 +12961,7 @@ class EditViewOperator {
|
|
|
12964
12961
|
* type Input.type.TEXT 若为number类型,则输入时,非number无法输入
|
|
12965
12962
|
* placeholder {string} 文字颜色值为灰色,默认值为"请输入文字"
|
|
12966
12963
|
* placeholderColor {string} 默认文字颜色,默认值为灰色
|
|
12964
|
+
* editorBackground {string} 当ime出现时,输入框呈现的强调颜色,注意:不能为半透明色
|
|
12967
12965
|
* maxLength {number} 最大字符长度, 默认100,支持单行最大宽度为1920*2,
|
|
12968
12966
|
* fontsize为30,则字数大约为1920*2/30 = 100个左右
|
|
12969
12967
|
* readonly {bool} 属性规定输入字段是只读的, 默认false
|
|
@@ -13035,6 +13033,10 @@ const _sfc_main$z = {
|
|
|
13035
13033
|
type: String,
|
|
13036
13034
|
default: "#CDCCD6"
|
|
13037
13035
|
},
|
|
13036
|
+
editorBackground: {
|
|
13037
|
+
type: String,
|
|
13038
|
+
default: "#5d5c76"
|
|
13039
|
+
},
|
|
13038
13040
|
maxLength: {
|
|
13039
13041
|
type: Number,
|
|
13040
13042
|
default: 100
|
|
@@ -13097,9 +13099,6 @@ const _sfc_main$z = {
|
|
|
13097
13099
|
rInputFinalTextLenth.value = dsp_text.length;
|
|
13098
13100
|
}
|
|
13099
13101
|
function _OnCursorPositionChanged(text_left, cursor_left) {
|
|
13100
|
-
console.log(
|
|
13101
|
-
"_OnCursorPositionChanged text_left=" + text_left + " cursor_left=" + cursor_left
|
|
13102
|
-
);
|
|
13103
13102
|
rTextPosLeft.value = text_left;
|
|
13104
13103
|
rCursorLeft.value = cursor_left + text_left;
|
|
13105
13104
|
}
|
|
@@ -13116,7 +13115,9 @@ const _sfc_main$z = {
|
|
|
13116
13115
|
rProps.fontStyle,
|
|
13117
13116
|
rProps.type,
|
|
13118
13117
|
rProps.maxLength,
|
|
13119
|
-
rProps.readonly
|
|
13118
|
+
rProps.readonly,
|
|
13119
|
+
rProps.fontStyle.color,
|
|
13120
|
+
rProps.editorBackground
|
|
13120
13121
|
);
|
|
13121
13122
|
function _FocusBlockOnFocus() {
|
|
13122
13123
|
cEditViewOperator.updateFocus(true);
|
|
@@ -13131,10 +13132,10 @@ const _sfc_main$z = {
|
|
|
13131
13132
|
39: EdgeDirection.right,
|
|
13132
13133
|
40: EdgeDirection.bottom
|
|
13133
13134
|
};
|
|
13134
|
-
function _FocusBlockOnKeyDown(
|
|
13135
|
+
function _FocusBlockOnKeyDown(keyEvent) {
|
|
13135
13136
|
let key_used = false;
|
|
13136
13137
|
let valid_move = false;
|
|
13137
|
-
switch (
|
|
13138
|
+
switch (keyEvent.keyCode) {
|
|
13138
13139
|
case 37:
|
|
13139
13140
|
valid_move = cEditViewOperator.moveCursorOffset(-1);
|
|
13140
13141
|
key_used = true;
|
|
@@ -13161,10 +13162,10 @@ const _sfc_main$z = {
|
|
|
13161
13162
|
}
|
|
13162
13163
|
break;
|
|
13163
13164
|
}
|
|
13164
|
-
if (fncIfDirectionKeyCode(
|
|
13165
|
-
if (rProps.onEdge && cEdgeMap[
|
|
13165
|
+
if (fncIfDirectionKeyCode(keyEvent.keyCode) && !valid_move) {
|
|
13166
|
+
if (rProps.onEdge && cEdgeMap[keyEvent.keyCode]) {
|
|
13166
13167
|
rProps.onEdge({
|
|
13167
|
-
direction: cEdgeMap[
|
|
13168
|
+
direction: cEdgeMap[keyEvent.keyCode],
|
|
13168
13169
|
rect: {
|
|
13169
13170
|
x: rProps.left,
|
|
13170
13171
|
y: rProps.top,
|
|
@@ -13177,7 +13178,7 @@ const _sfc_main$z = {
|
|
|
13177
13178
|
return key_used;
|
|
13178
13179
|
}
|
|
13179
13180
|
function _FocusBlockOnKeyUp(ev) {
|
|
13180
|
-
if (
|
|
13181
|
+
if (ev.keyCode == 1e4) {
|
|
13181
13182
|
return !!rProps.onBackKey?.(true);
|
|
13182
13183
|
}
|
|
13183
13184
|
return false;
|
|
@@ -13268,13 +13269,22 @@ const _sfc_main$z = {
|
|
|
13268
13269
|
color: unref(rCursorColorInner),
|
|
13269
13270
|
width: rProps.cursorWidth
|
|
13270
13271
|
}, null, 8, ["left", "height", "color", "width"])) : createCommentVNode("", true),
|
|
13271
|
-
createElementVNode("div", {
|
|
13272
|
+
createElementVNode("div", {
|
|
13273
|
+
style: normalizeStyle({
|
|
13274
|
+
width: rProps.width,
|
|
13275
|
+
height: rProps.height
|
|
13276
|
+
}),
|
|
13277
|
+
"data-jsv-vw-innerview": unref(vEditViewInnerId)
|
|
13278
|
+
}, null, 12, ["data-jsv-vw-innerview"])
|
|
13272
13279
|
]),
|
|
13273
13280
|
_: 1
|
|
13274
13281
|
}, 8, ["name", "onAction", "style"]);
|
|
13275
13282
|
};
|
|
13276
13283
|
}
|
|
13277
13284
|
};
|
|
13285
|
+
const styleSheetsContent$2 = { "3de0c16d": { ".testColor": '{"backgroundColor":"#5d5c76"}' } };
|
|
13286
|
+
window.JsvCode.Dom.DeclareStyleSheets(styleSheetsContent$2);
|
|
13287
|
+
const JsvInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-3de0c16d"]]);
|
|
13278
13288
|
|
|
13279
13289
|
/*
|
|
13280
13290
|
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvInput/index.js}
|
|
@@ -13321,7 +13331,7 @@ const _sfc_main$z = {
|
|
|
13321
13331
|
* net_setting {object}: (未实现)网络加载参数,cookie, refer等,默认值 null
|
|
13322
13332
|
*/
|
|
13323
13333
|
const CONST_FORMAT_TOKEN = "_JsvP_";
|
|
13324
|
-
const buildPreloadInfo
|
|
13334
|
+
const buildPreloadInfo = (url, width = 0, height = 0, color_type = "RGBA_8888", net_setting = null, is_poster_img) => {
|
|
13325
13335
|
return {
|
|
13326
13336
|
url,
|
|
13327
13337
|
width,
|
|
@@ -13333,7 +13343,7 @@ const buildPreloadInfo$1 = (url, width = 0, height = 0, color_type = "RGBA_8888"
|
|
|
13333
13343
|
isPosterImage: is_poster_img ?? false
|
|
13334
13344
|
};
|
|
13335
13345
|
};
|
|
13336
|
-
const buildDownloadInfo
|
|
13346
|
+
const buildDownloadInfo = (url, net_setting = null, get_image_size) => {
|
|
13337
13347
|
return {
|
|
13338
13348
|
url,
|
|
13339
13349
|
netSetting: net_setting,
|
|
@@ -13353,7 +13363,6 @@ const _sfc_main$y = {
|
|
|
13353
13363
|
},
|
|
13354
13364
|
setup(__props) {
|
|
13355
13365
|
const props = __props;
|
|
13356
|
-
const CONST_FORMAT_TOKEN2 = "_JsvP_";
|
|
13357
13366
|
const loadViewList = reactive({
|
|
13358
13367
|
preloadViewList: [],
|
|
13359
13368
|
downloadViewList: []
|
|
@@ -13367,35 +13376,27 @@ const _sfc_main$y = {
|
|
|
13367
13376
|
let preloadToken = 1;
|
|
13368
13377
|
let downloadToken = 1;
|
|
13369
13378
|
const _releasePreloadView = () => {
|
|
13370
|
-
if (
|
|
13371
|
-
|
|
13372
|
-
|
|
13373
|
-
|
|
13374
|
-
|
|
13375
|
-
|
|
13376
|
-
|
|
13377
|
-
view_info.callToken
|
|
13378
|
-
);
|
|
13379
|
-
Forge$2.sViewStore.remove(id);
|
|
13380
|
-
}
|
|
13379
|
+
if (loadViewList.preloadViewList.length > 0) {
|
|
13380
|
+
for (const view_info of loadViewList.preloadViewList) {
|
|
13381
|
+
if (view_info) {
|
|
13382
|
+
const id = view_info.viewId;
|
|
13383
|
+
view_info.textureRef?.DisableBackgroundLoad();
|
|
13384
|
+
view_info.textureRef?.UnregisterLoadImageCallback(view_info.callToken);
|
|
13385
|
+
Forge$2.sViewStore.remove(id);
|
|
13381
13386
|
}
|
|
13382
13387
|
}
|
|
13383
|
-
loadViewList.preloadViewList = [];
|
|
13384
|
-
preloadStateList = [];
|
|
13385
13388
|
}
|
|
13389
|
+
loadViewList.preloadViewList = [];
|
|
13390
|
+
preloadStateList = [];
|
|
13386
13391
|
};
|
|
13387
13392
|
const _releaseDownloadView = () => {
|
|
13388
|
-
if (
|
|
13389
|
-
|
|
13390
|
-
|
|
13391
|
-
|
|
13392
|
-
|
|
13393
|
-
|
|
13394
|
-
|
|
13395
|
-
view_info.callToken
|
|
13396
|
-
);
|
|
13397
|
-
Forge$2.sViewStore.remove(id);
|
|
13398
|
-
}
|
|
13393
|
+
if (loadViewList.downloadViewList.length > 0) {
|
|
13394
|
+
for (const view_info of loadViewList.downloadViewList) {
|
|
13395
|
+
if (view_info) {
|
|
13396
|
+
const id = view_info.viewId;
|
|
13397
|
+
view_info.textureRef?.DisableBackgroundLoad();
|
|
13398
|
+
view_info.textureRef?.UnregisterLoadImageCallback(view_info.callToken);
|
|
13399
|
+
Forge$2.sViewStore.remove(id);
|
|
13399
13400
|
}
|
|
13400
13401
|
}
|
|
13401
13402
|
}
|
|
@@ -13432,18 +13433,12 @@ const _sfc_main$y = {
|
|
|
13432
13433
|
}
|
|
13433
13434
|
}
|
|
13434
13435
|
loadViewList.preloadViewList = preloadListData.map((item, index) => {
|
|
13435
|
-
if (item.magicToken !==
|
|
13436
|
+
if (item.magicToken !== CONST_FORMAT_TOKEN) {
|
|
13436
13437
|
console.error(
|
|
13437
13438
|
"Error:format mismatch, data should comes from function buildPreloadInfo()"
|
|
13438
13439
|
);
|
|
13439
13440
|
}
|
|
13440
|
-
|
|
13441
|
-
let image_url = base_url;
|
|
13442
|
-
if (base_url && base_url.indexOf("http") < 0) {
|
|
13443
|
-
if (window.JsView.Dom.UrlRef) {
|
|
13444
|
-
image_url = new window.JsView.Dom.UrlRef(base_url).href;
|
|
13445
|
-
}
|
|
13446
|
-
}
|
|
13441
|
+
let image_url = urlCheckSet(item.url);
|
|
13447
13442
|
let target_size = null;
|
|
13448
13443
|
if (item.width !== 0 && item.height !== 0) {
|
|
13449
13444
|
target_size = { width: item.width, height: item.height };
|
|
@@ -13511,19 +13506,13 @@ const _sfc_main$y = {
|
|
|
13511
13506
|
}
|
|
13512
13507
|
}
|
|
13513
13508
|
loadViewList.downloadViewList = downloadListData.map((item, index) => {
|
|
13514
|
-
if (item.magicToken !==
|
|
13509
|
+
if (item.magicToken !== CONST_FORMAT_TOKEN) {
|
|
13515
13510
|
console.error(
|
|
13516
13511
|
"Error:format mismatch, data should comes from function buildDownloadInfo()"
|
|
13517
13512
|
);
|
|
13518
13513
|
}
|
|
13519
13514
|
console.log(`OnDownload get${index} url=${item.url}`);
|
|
13520
|
-
|
|
13521
|
-
let image_url = base_url;
|
|
13522
|
-
if (base_url && base_url.indexOf("http") < 0) {
|
|
13523
|
-
if (window.JsView.Dom.UrlRef) {
|
|
13524
|
-
image_url = new window.JsView.Dom.UrlRef(base_url).href;
|
|
13525
|
-
}
|
|
13526
|
-
}
|
|
13515
|
+
let image_url = urlCheckSet(item.url);
|
|
13527
13516
|
const texture = handles.TextureManager.GetDownloadTexture(
|
|
13528
13517
|
image_url,
|
|
13529
13518
|
null,
|
|
@@ -13620,17 +13609,6 @@ const _sfc_main$y = {
|
|
|
13620
13609
|
/*
|
|
13621
13610
|
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvPreload/index.js}
|
|
13622
13611
|
*/
|
|
13623
|
-
// 考虑到.vue文件除了export default的component外,还有可能export其他对象,因此使用import * as
|
|
13624
|
-
let _JsvPreload;
|
|
13625
|
-
if (window.JsView) {
|
|
13626
|
-
_JsvPreload = _sfc_main$y;
|
|
13627
|
-
} else {
|
|
13628
|
-
const BrowserPreload = await import('./browser/BrowserPreload.vue.mjs');
|
|
13629
|
-
_JsvPreload = BrowserPreload.default;
|
|
13630
|
-
}
|
|
13631
|
-
let buildPreloadInfo = buildPreloadInfo$1;
|
|
13632
|
-
let buildDownloadInfo = buildDownloadInfo$1;
|
|
13633
|
-
const JsvPreload = _JsvPreload;
|
|
13634
13612
|
|
|
13635
13613
|
/*
|
|
13636
13614
|
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue}
|
|
@@ -13725,7 +13703,7 @@ const _sfc_main$x = {
|
|
|
13725
13703
|
if (this.imageSettings && calculatedImageSettings) {
|
|
13726
13704
|
let url = this.imageSettings.src;
|
|
13727
13705
|
if (typeof url === "string") {
|
|
13728
|
-
url =
|
|
13706
|
+
url = urlCheckSet(this.imageSettings.src);
|
|
13729
13707
|
}
|
|
13730
13708
|
const img_texture = texture_manager.GetImage(url);
|
|
13731
13709
|
const img_view = new Forge$2.LayoutView(
|
|
@@ -13790,19 +13768,6 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13790
13768
|
}
|
|
13791
13769
|
const JsvQrcode = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$6]]);
|
|
13792
13770
|
|
|
13793
|
-
/*
|
|
13794
|
-
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvQrcode/index.js}
|
|
13795
|
-
*/
|
|
13796
|
-
// 考虑到.vue文件除了export default的component外,还有可能export其他对象,因此使用import * as
|
|
13797
|
-
let _JsvQrcode;
|
|
13798
|
-
if (window.JsView) {
|
|
13799
|
-
_JsvQrcode = JsvQrcode;
|
|
13800
|
-
} else {
|
|
13801
|
-
const BrowserQrcode = await import('./browser/BrowserQrcode.vue.mjs');
|
|
13802
|
-
_JsvQrcode = BrowserQrcode.default;
|
|
13803
|
-
}
|
|
13804
|
-
const _JsvQrcode$1 = _JsvQrcode;
|
|
13805
|
-
|
|
13806
13771
|
/*
|
|
13807
13772
|
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvSpray/JsvSpray.vue}
|
|
13808
13773
|
*/
|
|
@@ -13852,13 +13817,7 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
|
|
|
13852
13817
|
texture_manager.GetColorTexture(pointRes)
|
|
13853
13818
|
);
|
|
13854
13819
|
} else {
|
|
13855
|
-
|
|
13856
|
-
let image_url = base_url;
|
|
13857
|
-
if (base_url && base_url.indexOf("http") === 0) {
|
|
13858
|
-
image_url = base_url;
|
|
13859
|
-
} else if (window.JsView.Dom.UrlRef) {
|
|
13860
|
-
image_url = new window.JsView.Dom.UrlRef(pointRes).href;
|
|
13861
|
-
}
|
|
13820
|
+
let image_url = urlCheckSet(pointRes);
|
|
13862
13821
|
texture_setting = new Forge$2.ExternalTextureSetting(
|
|
13863
13822
|
texture_manager.GetImage2(image_url, false, null, "RGB_8888", null)
|
|
13864
13823
|
);
|
|
@@ -13882,7 +13841,10 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
|
|
|
13882
13841
|
}
|
|
13883
13842
|
let lifeMin = sprayStyle.lifeMin, lifeMax = sprayStyle.lifeMax;
|
|
13884
13843
|
if (sprayStyle.lifeMax > 50 * 1e3) {
|
|
13885
|
-
console.warn(
|
|
13844
|
+
console.warn(
|
|
13845
|
+
"JsvSpray: particle maximum lifetime is 50000ms, current value is",
|
|
13846
|
+
sprayStyle.lifeMax
|
|
13847
|
+
);
|
|
13886
13848
|
lifeMin = sprayStyle.lifeMin > 5e4 ? 5e4 : sprayStyle.lifeMin;
|
|
13887
13849
|
lifeMax = sprayStyle.lifeMax > 5e4 ? 5e4 : sprayStyle.lifeMax;
|
|
13888
13850
|
}
|
|
@@ -13985,19 +13947,6 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13985
13947
|
}
|
|
13986
13948
|
const JsvSpray = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$5]]);
|
|
13987
13949
|
|
|
13988
|
-
/*
|
|
13989
|
-
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvSpray/index.js}
|
|
13990
|
-
*/
|
|
13991
|
-
// 考虑到.vue文件除了export default的component外,还有可能export其他对象,因此使用import * as
|
|
13992
|
-
let _JsvSpray;
|
|
13993
|
-
if (window.JsView) {
|
|
13994
|
-
_JsvSpray = JsvSpray;
|
|
13995
|
-
} else {
|
|
13996
|
-
const BrowserSpray = await import('./browser/BrowserSpray.vue.mjs');
|
|
13997
|
-
_JsvSpray = BrowserSpray.default;
|
|
13998
|
-
}
|
|
13999
|
-
const _JsvSpray$1 = _JsvSpray;
|
|
14000
|
-
|
|
14001
13950
|
/*
|
|
14002
13951
|
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.ts}
|
|
14003
13952
|
*/
|
|
@@ -14181,9 +14130,9 @@ function newFrozeFrame(image_url, frame_info_list, index, canvas_width, canvas_h
|
|
|
14181
14130
|
;
|
|
14182
14131
|
|
|
14183
14132
|
/*
|
|
14184
|
-
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue?vue&type=style&index=0&scoped=
|
|
14133
|
+
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue?vue&type=style&index=0&scoped=a0fb356d&lang.css}
|
|
14185
14134
|
*/
|
|
14186
|
-
const
|
|
14135
|
+
const JsvSpriteAnim_vue_vue_type_style_index_0_scoped_a0fb356d_lang = "";
|
|
14187
14136
|
|
|
14188
14137
|
/*
|
|
14189
14138
|
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue}
|
|
@@ -14473,11 +14422,6 @@ const _sfc_main$v = {
|
|
|
14473
14422
|
});
|
|
14474
14423
|
const onAnimEndDelegate = () => {
|
|
14475
14424
|
if (props.onAnimEnd) {
|
|
14476
|
-
if (!window.JsView) {
|
|
14477
|
-
console.log(
|
|
14478
|
-
"JsvSpriteAnim 结束回调时进行隐藏在PC环境会有一帧残留,盒子环境是正常,可忽略这个问题"
|
|
14479
|
-
);
|
|
14480
|
-
}
|
|
14481
14425
|
props.onAnimEnd();
|
|
14482
14426
|
}
|
|
14483
14427
|
if (apiStartEndCallback) {
|
|
@@ -14570,9 +14514,9 @@ const _sfc_main$v = {
|
|
|
14570
14514
|
};
|
|
14571
14515
|
}
|
|
14572
14516
|
};
|
|
14573
|
-
const styleSheetsContent$1 = { "0": { "sprite-tag-
|
|
14517
|
+
const styleSheetsContent$1 = { "0": { "sprite-tag-a0fb356d": "@keyframes sprite-tag-a0fb356d {}" } };
|
|
14574
14518
|
window.JsvCode.Dom.DeclareStyleSheets(styleSheetsContent$1);
|
|
14575
|
-
const JsvSpriteAnim = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
14519
|
+
const JsvSpriteAnim = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-a0fb356d"]]);
|
|
14576
14520
|
|
|
14577
14521
|
/*
|
|
14578
14522
|
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue}
|
|
@@ -14665,7 +14609,7 @@ const _sfc_main$u = {
|
|
|
14665
14609
|
id: "sprite-loader",
|
|
14666
14610
|
key: unref(resetId)
|
|
14667
14611
|
}, [
|
|
14668
|
-
createVNode(unref(
|
|
14612
|
+
createVNode(unref(_sfc_main$y), {
|
|
14669
14613
|
preloadList: unref(preloadInfo),
|
|
14670
14614
|
onPreloadDone: unref(_onPreloadDone)
|
|
14671
14615
|
}, null, 8, ["preloadList", "onPreloadDone"]),
|
|
@@ -15937,10 +15881,6 @@ const TexAlignAnchor$1 = {
|
|
|
15937
15881
|
CENTER_BOTTOM: 8,
|
|
15938
15882
|
RIGHT_BOTTOM: 9
|
|
15939
15883
|
};
|
|
15940
|
-
const STATE_IDLE = 0;
|
|
15941
|
-
const STATE_RUNNING = 1;
|
|
15942
|
-
const STATE_PAUSED = 2;
|
|
15943
|
-
const STATE_END = 3;
|
|
15944
15884
|
const _sfc_main$q = {
|
|
15945
15885
|
props: {
|
|
15946
15886
|
src: String,
|
|
@@ -15985,8 +15925,7 @@ const _sfc_main$q = {
|
|
|
15985
15925
|
},
|
|
15986
15926
|
setup() {
|
|
15987
15927
|
return {
|
|
15988
|
-
|
|
15989
|
-
// 0:未开始, 1:运行中, 2:暂停, 3:正常结束
|
|
15928
|
+
forgeAnimation: null,
|
|
15990
15929
|
innerViewId: -1
|
|
15991
15930
|
};
|
|
15992
15931
|
},
|
|
@@ -16085,10 +16024,7 @@ const _sfc_main$q = {
|
|
|
16085
16024
|
);
|
|
16086
16025
|
return new Forge$2.LayoutView(texture_set);
|
|
16087
16026
|
},
|
|
16088
|
-
_onAnimationEnd(
|
|
16089
|
-
if (normal_end) {
|
|
16090
|
-
this.runningState = STATE_END;
|
|
16091
|
-
}
|
|
16027
|
+
_onAnimationEnd() {
|
|
16092
16028
|
this.onAnimationEnd?.();
|
|
16093
16029
|
},
|
|
16094
16030
|
_updateTexCoord() {
|
|
@@ -16109,32 +16045,9 @@ const _sfc_main$q = {
|
|
|
16109
16045
|
}
|
|
16110
16046
|
}
|
|
16111
16047
|
},
|
|
16112
|
-
_buildAnimation() {
|
|
16113
|
-
if (this.animation) {
|
|
16114
|
-
let anim = new Forge$2.CssKeyframeAnimation(
|
|
16115
|
-
"@keyframes texAnimDef" + this.animation,
|
|
16116
|
-
this.duration,
|
|
16117
|
-
null,
|
|
16118
|
-
1,
|
|
16119
|
-
1
|
|
16120
|
-
);
|
|
16121
|
-
anim.EnableDelay(this.delay).SetRepeat(this.repeat);
|
|
16122
|
-
anim.Enable(Forge$2.AnimationEnable.ReleaseAfterEndCallback);
|
|
16123
|
-
anim.SetAnimationListener(
|
|
16124
|
-
new Forge$2.AnimationListener(null, this._onAnimationEnd, null)
|
|
16125
|
-
);
|
|
16126
|
-
return anim;
|
|
16127
|
-
} else {
|
|
16128
|
-
return null;
|
|
16129
|
-
}
|
|
16130
|
-
},
|
|
16131
16048
|
start() {
|
|
16132
|
-
if (this.innerView) {
|
|
16133
|
-
|
|
16134
|
-
if (anim) {
|
|
16135
|
-
this.runningState = STATE_RUNNING;
|
|
16136
|
-
this.innerView.StartTextureAnimation(anim);
|
|
16137
|
-
}
|
|
16049
|
+
if (this.forgeAnimation && this.innerView) {
|
|
16050
|
+
this.innerView.StartTextureAnimation(this.forgeAnimation);
|
|
16138
16051
|
}
|
|
16139
16052
|
},
|
|
16140
16053
|
getTransition() {
|
|
@@ -16148,32 +16061,41 @@ const _sfc_main$q = {
|
|
|
16148
16061
|
}
|
|
16149
16062
|
},
|
|
16150
16063
|
created() {
|
|
16151
|
-
|
|
16152
|
-
|
|
16153
|
-
|
|
16154
|
-
|
|
16155
|
-
|
|
16156
|
-
|
|
16064
|
+
const textureManager = handles.TextureManager;
|
|
16065
|
+
let image_url = urlCheckSet(this.src);
|
|
16066
|
+
let view_texture = textureManager.GetImage2(
|
|
16067
|
+
image_url,
|
|
16068
|
+
false,
|
|
16069
|
+
null,
|
|
16070
|
+
"RGB_8888",
|
|
16071
|
+
null
|
|
16072
|
+
);
|
|
16073
|
+
let decorate = this.$props.decorate;
|
|
16074
|
+
this.innerView = this._createForgeView(view_texture, decorate);
|
|
16075
|
+
if (this.transform) {
|
|
16076
|
+
this.innerView.ResetTextureCssTransform(
|
|
16077
|
+
this.transform,
|
|
16078
|
+
this.transformOrigin
|
|
16079
|
+
);
|
|
16080
|
+
}
|
|
16081
|
+
this._updateTexCoord();
|
|
16082
|
+
if (this.animation) {
|
|
16083
|
+
this.forgeAnimation = new Forge$2.CssKeyframeAnimation(
|
|
16084
|
+
"@keyframes texAnimDef" + this.animation,
|
|
16085
|
+
this.duration,
|
|
16157
16086
|
null,
|
|
16158
|
-
|
|
16159
|
-
|
|
16087
|
+
1,
|
|
16088
|
+
1
|
|
16160
16089
|
);
|
|
16161
|
-
|
|
16162
|
-
|
|
16163
|
-
|
|
16164
|
-
|
|
16165
|
-
this.innerView = this._createForgeView(view_texture, decorate);
|
|
16166
|
-
if (this.transform) {
|
|
16167
|
-
this.innerView.ResetTextureCssTransform(
|
|
16168
|
-
this.transform,
|
|
16169
|
-
this.transformOrigin
|
|
16170
|
-
);
|
|
16171
|
-
}
|
|
16172
|
-
this._updateTexCoord();
|
|
16173
|
-
this.innerViewId = Forge$2.sViewStore.add(
|
|
16174
|
-
new Forge$2.ViewInfo(this.innerView)
|
|
16090
|
+
this.forgeAnimation.EnableDelay(this.delay).SetRepeat(this.repeat);
|
|
16091
|
+
this.forgeAnimation.Enable(Forge$2.AnimationEnable.ReleaseAfterEndCallback);
|
|
16092
|
+
this.forgeAnimation.SetAnimationListener(
|
|
16093
|
+
new Forge$2.AnimationListener(null, this._onAnimationEnd, null)
|
|
16175
16094
|
);
|
|
16095
|
+
} else {
|
|
16096
|
+
this.forgeAnimation = null;
|
|
16176
16097
|
}
|
|
16098
|
+
this.innerViewId = Forge$2.sViewStore.add(new Forge$2.ViewInfo(this.innerView));
|
|
16177
16099
|
},
|
|
16178
16100
|
beforeUnmount() {
|
|
16179
16101
|
if (this.innerViewId !== -1) {
|
|
@@ -16187,18 +16109,33 @@ const _sfc_main$q = {
|
|
|
16187
16109
|
}
|
|
16188
16110
|
},
|
|
16189
16111
|
activated() {
|
|
16190
|
-
if (this.innerView
|
|
16191
|
-
|
|
16192
|
-
|
|
16112
|
+
if (this.innerView) {
|
|
16113
|
+
if (this.animation && this.forgeAnimation == null) {
|
|
16114
|
+
this.forgeAnimation = new Forge$2.CssKeyframeAnimation(
|
|
16115
|
+
"@keyframes texAnimDef" + this.animation,
|
|
16116
|
+
this.duration,
|
|
16117
|
+
null,
|
|
16118
|
+
1,
|
|
16119
|
+
1
|
|
16120
|
+
);
|
|
16121
|
+
this.forgeAnimation.EnableDelay(this.delay).SetRepeat(this.repeat);
|
|
16122
|
+
this.forgeAnimation.Enable(
|
|
16123
|
+
Forge$2.AnimationEnable.ReleaseAfterEndCallback
|
|
16124
|
+
);
|
|
16125
|
+
this.forgeAnimation.SetAnimationListener(
|
|
16126
|
+
new Forge$2.AnimationListener(null, this._onAnimationEnd, null)
|
|
16127
|
+
);
|
|
16128
|
+
this.innerView.StartTextureAnimation(this.forgeAnimation);
|
|
16129
|
+
} else {
|
|
16130
|
+
this.forgeAnimation = null;
|
|
16131
|
+
}
|
|
16193
16132
|
}
|
|
16194
16133
|
},
|
|
16195
16134
|
deactivated() {
|
|
16196
16135
|
if (this.innerView) {
|
|
16197
16136
|
this.innerView.StopTextureAnimation();
|
|
16198
|
-
if (this.runningState == STATE_RUNNING) {
|
|
16199
|
-
this.runningState = STATE_PAUSED;
|
|
16200
|
-
}
|
|
16201
16137
|
}
|
|
16138
|
+
this.forgeAnimation = null;
|
|
16202
16139
|
}
|
|
16203
16140
|
};
|
|
16204
16141
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -16218,15 +16155,7 @@ const JsvTextureAnim = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc
|
|
|
16218
16155
|
/*
|
|
16219
16156
|
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvTextureAnim/index.js}
|
|
16220
16157
|
*/
|
|
16221
|
-
|
|
16222
|
-
if (window.JsView) {
|
|
16223
|
-
_JsvTextureAnim = JsvTextureAnim;
|
|
16224
|
-
} else {
|
|
16225
|
-
const BrowserTextureAnim = await import('./browser/BrowserTextureAnim.vue.mjs');
|
|
16226
|
-
_JsvTextureAnim = BrowserTextureAnim.default;
|
|
16227
|
-
}
|
|
16228
|
-
const _JsvTextureAnim$1 = _JsvTextureAnim;
|
|
16229
|
-
const TexAlignAnchor = TexAlignAnchor$1;
|
|
16158
|
+
const TexAlignAnchor = JsvTextureAnim.TexAlignAnchor;
|
|
16230
16159
|
|
|
16231
16160
|
/*
|
|
16232
16161
|
+ @file {@link file://./../../../utils/JsViewVueWidget/JsvFilterView.vue}
|
|
@@ -17592,7 +17521,6 @@ const _sfc_main$l = {
|
|
|
17592
17521
|
* maskHeight{double} 蒙版相对于被遮罩图片高度的百分比(蒙版的高度 / 被遮罩图片的宽)
|
|
17593
17522
|
*
|
|
17594
17523
|
*/
|
|
17595
|
-
const renderDocument = window.JsvCode.Dom.RenderDocument ? window.JsvCode.Dom.RenderDocument : window.JsvCode.Dom.BrowserDocument;
|
|
17596
17524
|
const _sfc_main$k = {
|
|
17597
17525
|
props: {
|
|
17598
17526
|
class: {
|
|
@@ -17631,7 +17559,6 @@ const _sfc_main$k = {
|
|
|
17631
17559
|
innerView: null,
|
|
17632
17560
|
innerViewId: -1,
|
|
17633
17561
|
styleDetail: null,
|
|
17634
|
-
html: !window.JsView,
|
|
17635
17562
|
cache: {
|
|
17636
17563
|
viewSrc: null,
|
|
17637
17564
|
maskSrc: null,
|
|
@@ -17678,29 +17605,6 @@ const _sfc_main$k = {
|
|
|
17678
17605
|
this.cache.maskWidth = this.maskWidth;
|
|
17679
17606
|
this.cache.maskHeight = this.maskHeight;
|
|
17680
17607
|
},
|
|
17681
|
-
_initForHtml() {
|
|
17682
|
-
let _this = this;
|
|
17683
|
-
this.$refs.innerViewDiv?.jsvGetProxyView(true).RegisterOnProxyReady(() => {
|
|
17684
|
-
const canvas = renderDocument.createElement("canvas");
|
|
17685
|
-
canvas.style.width = _this.style.width + "px";
|
|
17686
|
-
canvas.style.height = _this.style.height + "px";
|
|
17687
|
-
_this.$refs.innerViewDiv?.jsvGetProxyView(true).HtmlGetElement().appendChild(canvas);
|
|
17688
|
-
const clip_image = new Image();
|
|
17689
|
-
const bg_image = new Image();
|
|
17690
|
-
clip_image.src = _this.maskSrc;
|
|
17691
|
-
bg_image.src = _this.viewSrc;
|
|
17692
|
-
let clip_ready = false;
|
|
17693
|
-
let bg_ready = false;
|
|
17694
|
-
clip_image.onload = () => {
|
|
17695
|
-
clip_ready = true;
|
|
17696
|
-
_this._drawClip(canvas, clip_image, clip_ready, bg_image, bg_ready);
|
|
17697
|
-
};
|
|
17698
|
-
bg_image.onload = () => {
|
|
17699
|
-
bg_ready = true;
|
|
17700
|
-
_this._drawClip(canvas, clip_image, clip_ready, bg_image, bg_ready);
|
|
17701
|
-
};
|
|
17702
|
-
});
|
|
17703
|
-
},
|
|
17704
17608
|
_updateInnerView() {
|
|
17705
17609
|
if (this.innerView === null) {
|
|
17706
17610
|
this.innerView = new Forge$2.LayoutView();
|
|
@@ -17727,19 +17631,12 @@ const _sfc_main$k = {
|
|
|
17727
17631
|
}
|
|
17728
17632
|
},
|
|
17729
17633
|
created() {
|
|
17730
|
-
|
|
17731
|
-
this._updateInnerView();
|
|
17732
|
-
}
|
|
17634
|
+
this._updateInnerView();
|
|
17733
17635
|
},
|
|
17734
17636
|
mounted() {
|
|
17735
|
-
if (!window.JsView) {
|
|
17736
|
-
this._initForHtml();
|
|
17737
|
-
}
|
|
17738
17637
|
},
|
|
17739
17638
|
updated() {
|
|
17740
|
-
|
|
17741
|
-
this._updateInnerView();
|
|
17742
|
-
}
|
|
17639
|
+
this._updateInnerView();
|
|
17743
17640
|
},
|
|
17744
17641
|
beforeUnmount() {
|
|
17745
17642
|
if (this.innerViewId !== -1) {
|
|
@@ -17750,7 +17647,7 @@ const _sfc_main$k = {
|
|
|
17750
17647
|
}
|
|
17751
17648
|
};
|
|
17752
17649
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17753
|
-
return
|
|
17650
|
+
return _ctx.html ? (openBlock(), createElementBlock("div", {
|
|
17754
17651
|
key: 0,
|
|
17755
17652
|
ref: "innerViewDiv",
|
|
17756
17653
|
style: normalizeStyle({
|
|
@@ -17870,7 +17767,6 @@ const _sfc_main$i = {
|
|
|
17870
17767
|
});
|
|
17871
17768
|
let common_style = reactive({});
|
|
17872
17769
|
let image_style = reactive({});
|
|
17873
|
-
let show_background_holder = !!window.JsView;
|
|
17874
17770
|
watchEffect(() => {
|
|
17875
17771
|
if (props.style) {
|
|
17876
17772
|
let {
|
|
@@ -17893,9 +17789,9 @@ const _sfc_main$i = {
|
|
|
17893
17789
|
return openBlock(), createElementBlock("div", {
|
|
17894
17790
|
style: normalizeStyle(unref(common_style))
|
|
17895
17791
|
}, [
|
|
17896
|
-
|
|
17792
|
+
renderSlot(_ctx.$slots, "default"),
|
|
17897
17793
|
!!props.src ? (openBlock(), createElementBlock("img", mergeProps({
|
|
17898
|
-
key:
|
|
17794
|
+
key: 0,
|
|
17899
17795
|
"data-jsv-vw-enable-fade": props.fadeIn,
|
|
17900
17796
|
"data-jsv-vw-mask-poster-on-top": "true",
|
|
17901
17797
|
"data-jsv-img-scaledown-tex": unref(scaleddown),
|
|
@@ -17942,43 +17838,6 @@ const JsvScaleTextBox = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sf
|
|
|
17942
17838
|
/*
|
|
17943
17839
|
+ @file {@link file://./../../../utils/JsViewVueWidget/JsvSoundPool.js}
|
|
17944
17840
|
*/
|
|
17945
|
-
/*
|
|
17946
|
-
* @file
|
|
17947
|
-
*
|
|
17948
|
-
* 【模块 export 内容】
|
|
17949
|
-
* JsvSoundPool: 面向对象的类,用于播放效果音,创建JsvSoundPool对象后通过request的回调获得AudioController句柄后进行控制
|
|
17950
|
-
* 功能函数: (参数说明见函数本体)
|
|
17951
|
-
* constructor(max)
|
|
17952
|
-
* 功能: 构造JsvSoundPool,构造后需要destroy进行资源释放
|
|
17953
|
-
* request(url, netSetting, priority, callback)
|
|
17954
|
-
* 功能: 创建加载指定音轨(url)的控制器(AudioController),在回调中获得AudioController
|
|
17955
|
-
* release(controller)
|
|
17956
|
-
* 功能: 释放指定AudioController资源
|
|
17957
|
-
* destroy()
|
|
17958
|
-
* 功能: 释放JsvSoundPool管理的所有资源
|
|
17959
|
-
* autoPause()
|
|
17960
|
-
* 功能: 暂停当前Pool中所有正在播放的音轨
|
|
17961
|
-
* autoResume()
|
|
17962
|
-
* 功能: 播放当前Pool中所有暂停掉的音轨
|
|
17963
|
-
* AudioController:
|
|
17964
|
-
* 功能函数: (参数说明见函数本体)
|
|
17965
|
-
* play()
|
|
17966
|
-
* 功能: 播放当前音轨,与stop()配套
|
|
17967
|
-
* pause()
|
|
17968
|
-
* 功能: 暂停当前音轨,与resume()配套
|
|
17969
|
-
* stop()
|
|
17970
|
-
* 功能: 停止当前音轨,与play()配套
|
|
17971
|
-
* resume()
|
|
17972
|
-
* 功能: 恢复当前音轨播放,与pause()配套
|
|
17973
|
-
* setRate(rate)
|
|
17974
|
-
* 功能: 当前播放速率
|
|
17975
|
-
* setVolume(leftVolume, rightVolume)
|
|
17976
|
-
* 功能: 调整音量
|
|
17977
|
-
* setLoop(loop)
|
|
17978
|
-
* 功能: 设置是否进行循环和循环次数
|
|
17979
|
-
* setPriority(priority)
|
|
17980
|
-
* 功能: 设置播放优先级
|
|
17981
|
-
*/
|
|
17982
17841
|
const supportSoundPool = !!window.SoundPool;
|
|
17983
17842
|
class AudioController {
|
|
17984
17843
|
constructor(soundPool, soundId, url) {
|
|
@@ -18093,12 +17952,7 @@ class JsvSoundPool {
|
|
|
18093
17952
|
console.log("not support sound pool.");
|
|
18094
17953
|
return;
|
|
18095
17954
|
}
|
|
18096
|
-
let realUrl;
|
|
18097
|
-
if (window.JsView) {
|
|
18098
|
-
realUrl = new window.JsView.Dom.UrlRef(url).href;
|
|
18099
|
-
} else {
|
|
18100
|
-
realUrl = url;
|
|
18101
|
-
}
|
|
17955
|
+
let realUrl = urlCheckSet(url);
|
|
18102
17956
|
if (this._SoundIdMap[realUrl]) {
|
|
18103
17957
|
this._SoundIdMap[realUrl].referCount++;
|
|
18104
17958
|
const controller = new AudioController(this._SoundPool, this._SoundIdMap[realUrl].soundId);
|
|
@@ -22343,6 +22197,7 @@ const _sfc_main$3 = {
|
|
|
22343
22197
|
setup(__props, { expose }) {
|
|
22344
22198
|
const rProps = __props;
|
|
22345
22199
|
JsvUseFeature("JsvFragShaderView", FeatureNames.CustomFragShader);
|
|
22200
|
+
console.log("LudlDebug using JsvFragShaderView...");
|
|
22346
22201
|
let rAnimRunning = shallowRef(false);
|
|
22347
22202
|
let vPreloadHandler = null;
|
|
22348
22203
|
let vPreloadDone = false;
|
|
@@ -22367,7 +22222,7 @@ const _sfc_main$3 = {
|
|
|
22367
22222
|
if (typeof item.resource == "string") {
|
|
22368
22223
|
let image_url = item.resource;
|
|
22369
22224
|
if (item.resource && item.resource.trim().indexOf("url(") === 0) {
|
|
22370
|
-
image_url =
|
|
22225
|
+
image_url = urlCheckSet(image_url);
|
|
22371
22226
|
}
|
|
22372
22227
|
const texture = texture_manager.GetImage2(
|
|
22373
22228
|
image_url,
|
|
@@ -22513,15 +22368,6 @@ const _sfc_main$3 = {
|
|
|
22513
22368
|
/*
|
|
22514
22369
|
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvFragShaderView/index.js}
|
|
22515
22370
|
*/
|
|
22516
|
-
// 考虑到.vue文件除了export default的component外,还有可能export其他对象,因此使用import * as
|
|
22517
|
-
let _JsvFragShaderView;
|
|
22518
|
-
if (window.JsView) {
|
|
22519
|
-
_JsvFragShaderView = _sfc_main$3;
|
|
22520
|
-
} else {
|
|
22521
|
-
const BrowserJsvFragShaderView = await import('./browser/BrowserJsvFragShaderView.vue.mjs');
|
|
22522
|
-
_JsvFragShaderView = BrowserJsvFragShaderView.default;
|
|
22523
|
-
}
|
|
22524
|
-
const _JsvFragShaderView$1 = _JsvFragShaderView;
|
|
22525
22371
|
|
|
22526
22372
|
/*
|
|
22527
22373
|
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue?vue&type=script&setup=true&lang.ts}
|
|
@@ -22760,4 +22606,4 @@ const _sfc_main = {
|
|
|
22760
22606
|
+ @file {@link file://./../../utils/index.js}
|
|
22761
22607
|
*/
|
|
22762
22608
|
|
|
22763
|
-
export { BaseDispatcher, DECORATE_BORDER_RADIUS, DECORATE_NINEPATCH_ALPHA_MIX, DebugObjectRefer, DebugTools, DebugWrap81ErrorStack, DebugWrap81WarnStack, DefaultKeyCodeMap, EdgeDirection, FeatureNames, FixPositionSlide, FocusMoveType, ForgeConst, ForgeTextureApis, FreeMoveDef, FreeMoveFunc, HORIZONTAL, InputType, instance as JSBridge, JsvAccount, JsvActiveFeature, _sfc_main$H as JsvActorMove, JsvActorMoveControl, _JsvApic$1 as JsvApic, _JsvApic2$1 as JsvApic2, _sfc_main$K as JsvAudio, _sfc_main$2 as JsvClipDiv, _sfc_main$a as JsvConnectLine, _sfc_main$7 as JsvDragBox, _sfc_main$1 as JsvDriftScope, _sfc_main$8 as JsvEnableRenderBreak, _sfc_main$F as JsvEnvBlocker, FeatureNames as JsvFeatureNames, JsvFederationTools, _sfc_main$p as JsvFilterView, _sfc_main$E as JsvFlexDiv, _sfc_main$M as JsvFocusBlock,
|
|
22609
|
+
export { BaseDispatcher, DECORATE_BORDER_RADIUS, DECORATE_NINEPATCH_ALPHA_MIX, DebugObjectRefer, DebugTools, DebugWrap81ErrorStack, DebugWrap81WarnStack, DefaultKeyCodeMap, EdgeDirection, FeatureNames, FixPositionSlide, FocusMoveType, ForgeConst, ForgeTextureApis, FreeMoveDef, FreeMoveFunc, HORIZONTAL, InputType, instance as JSBridge, JsvAccount, JsvActiveFeature, _sfc_main$H as JsvActorMove, JsvActorMoveControl, _JsvApic$1 as JsvApic, _JsvApic2$1 as JsvApic2, _sfc_main$K as JsvAudio, _sfc_main$2 as JsvClipDiv, _sfc_main$a as JsvConnectLine, _sfc_main$7 as JsvDragBox, _sfc_main$1 as JsvDriftScope, _sfc_main$8 as JsvEnableRenderBreak, _sfc_main$F as JsvEnvBlocker, FeatureNames as JsvFeatureNames, JsvFederationTools, _sfc_main$p as JsvFilterView, _sfc_main$E as JsvFlexDiv, _sfc_main$M as JsvFocusBlock, _sfc_main$3 as JsvFragShaderView, _sfc_main$G as JsvFreeMoveActor, _sfc_main$G as JsvFreeMoveDiv, JsvGrid, _sfc_main$m as JsvHole, JsvInput, _sfc_main$I as JsvLatex, JsvLine, _sfc_main$l as JsvMarquee, JsvMaskClipDiv, _sfc_main$6 as JsvMindMap, _sfc_main$m as JsvNativeSharedDiv, _sfc_main$n as JsvNinePatch, JsvPerformance, _sfc_main$b as JsvPieChart, _sfc_main$j as JsvPosterDiv, _sfc_main$i as JsvPosterImage, exportObj as JsvPreDownloader, _sfc_main$y as JsvPreload, _sfc_main$9 as JsvProgressBar, JsvQrcode, _sfc_main$f as JsvRadarChart, _sfc_main$e as JsvRipple, JsvRippleShape, JsvScaleTextBox, _sfc_main$D as JsvScreenFlex, _sfc_main$5 as JsvScrollBox, _sfc_main$4 as JsvScrollFollow, _sfc_main$c as JsvSector, JsvShutdownFeatures, JsvSoundPool, JsvSpray, JsvSpriteAnim, _sfc_main$u as JsvSpriteLoader, JsvSpriteAnim as JsvSpriteStatic, JsvSpriteTools, JsvStyleClass, JsvStyleSheetsDeclarer, JsvSwiper, _sfc_main$r as JsvSwiper3D, _sfc_main$g as JsvTextBox, JsvTextStyleClass, JsvTextureAnim, sJsvTextureConst as JsvTextureConst, JsvTextureLoadTool, sTextureStoreApi as JsvTextureStoreApi, _sfc_main as JsvTouchModeSwitcher, _sfc_main$m as JsvTransparentDiv, JsvUseFeature, JsvVisibleSensor, LineType, _sfc_main$N as ListWidget, METRO_WIDGET, METRO_WIDGET as METRO_WIDGET_CONST, _sfc_main$O as MetroWidget, PageType, RENDER_ITEM_BREAK_KEY, Dispatcher as SWidgetDispatcher, ScrollBoxStyle, SeamlessSlide, _sfc_main$O as SimpleWidget, SlideSetting, SlideStyle, SpriteController, TexAlignAnchor, TextTools, TextureInstantType, VERTICAL, WholePageSlide, buildDownloadInfo, buildPreloadInfo, combinedStyles, createImpactAutoFroze, createImpactCallback, createImpactTracer, disableNativeViewListener, enableNativeViewListener, getCssStyleGroup, getCurFrameCount, getKeyFramesGroup, getMeasureObj, getPositionRelativeToView, getTextWidth, globalLoadJsvAudioPlugin, globalLoadJsvLatexPlugin, bridge as jJsvRuntimeBridge, jsvCreateFocusManager, jsvCreateHashHistory, numberCheckSet, processLatexStr, toHtmlBorderSet, toNinePatchForgeViewSet, updateImpactAutoFroze, urlCheckSet, useFocusHub };
|