@shijiu/jsview-vue 2.2.201 → 2.2.373
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/browser/BrowserApic.vue.mjs +2 -13
- package/bin/browser/BrowserApic2.vue.mjs +2 -13
- package/bin/browser/BrowserApicLib.mjs +24 -24
- package/bin/browser/BrowserAudio.vue.mjs +2 -10
- package/bin/browser/BrowserJsvFragShaderView.vue.mjs +21 -5
- package/bin/browser/BrowserJsvLatex.vue.mjs +39 -16
- package/bin/browser/BrowserPreload.vue.mjs +1 -5
- package/bin/browser/BrowserQrcode.vue.mjs +1 -5
- package/bin/browser/BrowserSpray.vue.mjs +2 -12
- package/bin/browser/BrowserTextureAnim.vue.mjs +2 -12
- package/bin/export-sfc.mjs +3 -3
- package/bin/jsview-vue-common.mjs +3 -3
- package/bin/jsview-vue.mjs +3216 -2086
- package/bin/types/JsViewEngineWidget/CheckType.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +37 -33
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +15 -2
- package/bin/types/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +14 -3
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +280 -3
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +7 -1
- package/bin/types/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Slide.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/RangeModel.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/Fence.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/index.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/WidgetCommon.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/index.d.ts +5 -1
- package/bin/types/JsViewPlugin/JsvAccount/JsvAccount.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/CheckType.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/Events.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/index.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvAudio/version.d.ts +5 -0
- package/bin/types/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +24 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +4 -0
- package/bin/types/JsViewPlugin/JsvLatex/index.d.ts +5 -0
- package/bin/types/JsViewPlugin/JsvLatex/version.d.ts +4 -0
- package/bin/types/JsViewPlugin/index.d.ts +4 -0
- package/bin/types/JsViewVueTools/ConstSymbol.d.ts +4 -0
- package/bin/types/JsViewVueTools/DebugContentShellJBridge.d.ts +4 -0
- package/bin/types/JsViewVueTools/DebugTool.d.ts +4 -0
- package/bin/types/JsViewVueTools/DefaultKeyMap.d.ts +4 -0
- package/bin/types/JsViewVueTools/FeatureActive.d.ts +14 -0
- package/bin/types/JsViewVueTools/ForgeConstDefine.d.ts +4 -0
- package/bin/types/JsViewVueTools/ForgeHandles.d.ts +7 -3
- package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvDynamicCssStyle.d.ts +20 -1
- package/bin/types/JsViewVueTools/JsvDynamicKeyFrames.d.ts +21 -2
- package/bin/types/JsViewVueTools/JsvFederationTools.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvHashHistory.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvImpactTracer.d.ts +8 -4
- package/bin/types/JsViewVueTools/JsvPerformance.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvPreDownloader.d.ts +24 -2
- package/bin/types/JsViewVueTools/JsvRefTaker.d.ts +28 -3
- package/bin/types/JsViewVueTools/JsvRuntimeBridge.d.ts +50 -0
- package/bin/types/JsViewVueTools/JsvStyleClass.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +21 -1
- package/bin/types/JsViewVueTools/JsvTextTools.d.ts +85 -27
- package/bin/types/JsViewVueTools/JsvTextureDefines.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +30 -4
- package/bin/types/JsViewVueTools/JsvTextureStore/Store.d.ts +4 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/Texture.d.ts +4 -0
- package/bin/types/JsViewVueTools/NinePatchHelper.d.ts +5 -1
- package/bin/types/JsViewVueTools/TextureManagerTools.d.ts +11 -0
- package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +4 -0
- package/bin/types/JsViewVueTools/index.d.ts +7 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +38 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +27 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +28 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +21 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
- package/bin/types/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFilterView.vue.d.ts +19 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +34 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +106 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/index.d.ts +6 -2
- package/bin/types/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts +6 -0
- package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +48 -1
- package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +22 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvGrid.vue.d.ts +73 -0
- package/bin/types/JsViewVueWidget/JsvHole.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +14 -34
- package/bin/types/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +48 -0
- package/bin/types/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +27 -0
- package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +64 -209
- package/bin/types/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvInput/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +20 -0
- package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +21 -0
- package/bin/types/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +20 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/Constant.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/DataTree.d.ts +7 -1
- package/bin/types/JsViewVueWidget/JsvMindMap/Geometry.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +90 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/rtree.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +24 -0
- package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +30 -0
- package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvPosterDiv.vue.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvPosterImage.vue.d.ts +18 -0
- package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +42 -0
- package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +19 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +24 -0
- package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +45 -0
- package/bin/types/JsViewVueWidget/JsvRipple/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +18 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSector.vue.d.ts +18 -0
- package/bin/types/JsViewVueWidget/JsvSoundPool.d.ts +42 -0
- package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +40 -0
- package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +52 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +16 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +39 -0
- package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +24 -0
- package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvTextBox.vue.d.ts +26 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +7 -2
- package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +100 -0
- package/bin/types/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvVisibleSensor/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/index.d.ts +6 -0
- package/bin/types/index.d.ts +4 -0
- package/index.d.ts +8 -0
- package/package.json +1 -1
- package/tools/config/toolkit.mjs +81 -0
- package/tools/config/tsconfig.json +1 -0
- package/tools/config/vite.config.ts +24 -14
- package/tools/jsview-vue-build.mjs +66 -21
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +6 -2
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.ts +22 -3
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +3 -1
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +12 -5
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +208 -84
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +15 -9
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -2
- package/utils/JsViewPlugin/JsvAudio/version.js +1 -1
- package/utils/JsViewPlugin/JsvAudio/version.mjs +1 -1
- package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +13 -3
- package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +27 -6
- package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +34 -28
- package/utils/JsViewPlugin/JsvLatex/index.js +22 -0
- package/utils/JsViewVueTools/FeatureActive.ts +84 -0
- package/utils/JsViewVueTools/ForgeHandles.ts +7 -3
- package/utils/JsViewVueTools/JsvDynamicCssStyle.js +2 -0
- package/utils/JsViewVueTools/JsvDynamicKeyFrames.ts +2 -0
- package/utils/JsViewVueTools/JsvImpactTracer.js +2 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -1
- package/utils/JsViewVueTools/JsvRefTaker.js +1 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +67 -1
- package/utils/JsViewVueTools/JsvStyleClass.js +2 -0
- package/utils/JsViewVueTools/JsvStyleSheetsDeclarer.js +2 -0
- package/utils/JsViewVueTools/JsvTextTools.ts +223 -0
- package/utils/JsViewVueTools/JsvTextureLoadTool.ts +233 -0
- package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +4 -1
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +7 -3
- package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +1 -0
- package/utils/JsViewVueTools/TextureManagerTools.ts +17 -0
- package/utils/JsViewVueTools/index.js +3 -0
- package/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue +2 -0
- package/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue +10 -2
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +12 -1
- package/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue +4 -2
- package/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue +2 -0
- package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +219 -0
- package/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue +11 -9
- package/utils/JsViewVueWidget/JsvFilterView.vue +2 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +5 -2
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +145 -0
- package/utils/JsViewVueWidget/JsvFlexCell/index.js +2 -5
- package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +39 -12
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +210 -62
- package/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue +9 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue +2 -0
- package/utils/JsViewVueWidget/JsvGrid.vue +2 -0
- package/utils/JsViewVueWidget/JsvHole.js +2 -0
- package/utils/JsViewVueWidget/JsvInput/Cursor.vue +49 -45
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +320 -0
- package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +222 -0
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +281 -681
- package/utils/JsViewVueWidget/JsvInput/SharedDefine.ts +17 -0
- package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +47 -0
- package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +2 -0
- package/utils/JsViewVueWidget/JsvMarquee.vue +2 -0
- package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +2 -0
- package/utils/JsViewVueWidget/JsvMindMap/DataTree.ts +14 -1
- package/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue +277 -117
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +91 -68
- package/utils/JsViewVueWidget/JsvNinePatch.vue +5 -0
- package/utils/JsViewVueWidget/JsvPieChart.vue +2 -0
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +2 -0
- package/utils/JsViewVueWidget/JsvPosterImage.vue +2 -0
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +2 -0
- package/utils/JsViewVueWidget/JsvProgressBar.vue +2 -0
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +10 -11
- package/utils/JsViewVueWidget/JsvRadarChart.vue +2 -0
- package/utils/JsViewVueWidget/JsvRipple/Constant.js +2 -2
- package/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue +3 -1
- package/utils/JsViewVueWidget/JsvScaleTextBox.vue +2 -0
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +9 -0
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +9 -0
- package/utils/JsViewVueWidget/JsvSector.vue +2 -0
- package/utils/JsViewVueWidget/JsvSoundPool.js +2 -0
- package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +30 -13
- package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +2 -0
- package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue +2 -0
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +2 -0
- package/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue +2 -0
- package/utils/JsViewVueWidget/JsvTextBox.vue +2 -4
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +44 -41
- package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +101 -0
- package/utils/JsViewVueWidget/JsvVideo.vue +2 -2
- package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +2 -0
- package/utils/JsViewVueWidget/index.js +2 -0
- package/utils/JsViewVueTools/JsvTextTools.js +0 -89
|
@@ -84,6 +84,11 @@ const TexAlignAnchor = {
|
|
|
84
84
|
};
|
|
85
85
|
export { TexAlignAnchor };
|
|
86
86
|
|
|
87
|
+
const STATE_IDLE = 0;
|
|
88
|
+
const STATE_RUNNING = 1;
|
|
89
|
+
const STATE_PAUSED = 2;
|
|
90
|
+
const STATE_END = 3;
|
|
91
|
+
|
|
87
92
|
export default {
|
|
88
93
|
props: {
|
|
89
94
|
src: String,
|
|
@@ -128,7 +133,7 @@ export default {
|
|
|
128
133
|
},
|
|
129
134
|
setup() {
|
|
130
135
|
return {
|
|
131
|
-
|
|
136
|
+
runningState: STATE_IDLE, // 0:未开始, 1:运行中, 2:暂停, 3:正常结束
|
|
132
137
|
innerViewId: -1,
|
|
133
138
|
};
|
|
134
139
|
},
|
|
@@ -244,7 +249,10 @@ export default {
|
|
|
244
249
|
return new Forge.LayoutView(texture_set);
|
|
245
250
|
},
|
|
246
251
|
|
|
247
|
-
_onAnimationEnd() {
|
|
252
|
+
_onAnimationEnd(normal_end) {
|
|
253
|
+
if (normal_end) {
|
|
254
|
+
this.runningState = STATE_END;
|
|
255
|
+
}
|
|
248
256
|
this.onAnimationEnd?.();
|
|
249
257
|
},
|
|
250
258
|
|
|
@@ -273,9 +281,34 @@ export default {
|
|
|
273
281
|
}
|
|
274
282
|
},
|
|
275
283
|
|
|
284
|
+
_buildAnimation() {
|
|
285
|
+
if (this.animation) {
|
|
286
|
+
let anim = new Forge.CssKeyframeAnimation(
|
|
287
|
+
"@keyframes texAnimDef" + this.animation,
|
|
288
|
+
this.duration,
|
|
289
|
+
null,
|
|
290
|
+
1,
|
|
291
|
+
1
|
|
292
|
+
);
|
|
293
|
+
anim.EnableDelay(this.delay).SetRepeat(this.repeat);
|
|
294
|
+
anim.Enable(Forge.AnimationEnable.ReleaseAfterEndCallback);
|
|
295
|
+
anim.SetAnimationListener(
|
|
296
|
+
new Forge.AnimationListener(null, this._onAnimationEnd, null)
|
|
297
|
+
);
|
|
298
|
+
|
|
299
|
+
return anim;
|
|
300
|
+
} else {
|
|
301
|
+
return null;
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
|
|
276
305
|
start() {
|
|
277
|
-
if (this.
|
|
278
|
-
this.
|
|
306
|
+
if (this.innerView) {
|
|
307
|
+
let anim = this._buildAnimation();
|
|
308
|
+
if (anim) {
|
|
309
|
+
this.runningState = STATE_RUNNING;
|
|
310
|
+
this.innerView.StartTextureAnimation(anim);
|
|
311
|
+
}
|
|
279
312
|
}
|
|
280
313
|
},
|
|
281
314
|
|
|
@@ -327,24 +360,6 @@ export default {
|
|
|
327
360
|
}
|
|
328
361
|
this._updateTexCoord();
|
|
329
362
|
|
|
330
|
-
// 4.设置texture的动画形变
|
|
331
|
-
if (this.animation) {
|
|
332
|
-
this.forgeAnimation = new Forge.CssKeyframeAnimation(
|
|
333
|
-
"@keyframes texAnimDef" + this.animation,
|
|
334
|
-
this.duration,
|
|
335
|
-
null,
|
|
336
|
-
1,
|
|
337
|
-
1
|
|
338
|
-
);
|
|
339
|
-
this.forgeAnimation.EnableDelay(this.delay).SetRepeat(this.repeat);
|
|
340
|
-
this.forgeAnimation.Enable(Forge.AnimationEnable.ReleaseAfterEndCallback);
|
|
341
|
-
this.forgeAnimation.SetAnimationListener(
|
|
342
|
-
new Forge.AnimationListener(null, this._onAnimationEnd, null)
|
|
343
|
-
);
|
|
344
|
-
} else {
|
|
345
|
-
this.forgeAnimation = null;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
363
|
// 5. inner view标准处理
|
|
349
364
|
|
|
350
365
|
this.innerViewId = Forge.sViewStore.add(
|
|
@@ -364,31 +379,19 @@ export default {
|
|
|
364
379
|
}
|
|
365
380
|
},
|
|
366
381
|
activated() {
|
|
367
|
-
if (this.innerView) {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
this.duration,
|
|
372
|
-
null,
|
|
373
|
-
1,
|
|
374
|
-
1
|
|
375
|
-
);
|
|
376
|
-
this.forgeAnimation.EnableDelay(this.delay).SetRepeat(this.repeat);
|
|
377
|
-
this.forgeAnimation.Enable(Forge.AnimationEnable.ReleaseAfterEndCallback);
|
|
378
|
-
this.forgeAnimation.SetAnimationListener(
|
|
379
|
-
new Forge.AnimationListener(null, this._onAnimationEnd, null)
|
|
380
|
-
);
|
|
381
|
-
this.innerView.StartTextureAnimation(this.forgeAnimation);
|
|
382
|
-
} else {
|
|
383
|
-
this.forgeAnimation = null;
|
|
384
|
-
}
|
|
382
|
+
if (this.innerView && this.runningState == STATE_PAUSED) {
|
|
383
|
+
// 动画未正常结束,重新开始动画
|
|
384
|
+
let anim = this._buildAnimation();
|
|
385
|
+
this.innerView.StartTextureAnimation(anim); // pause状态,一定有值
|
|
385
386
|
}
|
|
386
387
|
},
|
|
387
388
|
deactivated() {
|
|
388
389
|
if (this.innerView) {
|
|
389
390
|
this.innerView.StopTextureAnimation();
|
|
391
|
+
if (this.runningState == STATE_RUNNING) {
|
|
392
|
+
this.runningState = STATE_PAUSED;
|
|
393
|
+
}
|
|
390
394
|
}
|
|
391
|
-
this.forgeAnimation = null;
|
|
392
395
|
},
|
|
393
396
|
};
|
|
394
397
|
</script>
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* 【模块 export 内容】
|
|
5
|
+
* JsvTouchModeSwitcher:Vue高阶组件,监听交互模式的变更
|
|
6
|
+
* props说明:
|
|
7
|
+
* width {number} 宽
|
|
8
|
+
* height {number} 高
|
|
9
|
+
* initMode {number} 初始模式, 1:按键, 2:触控, 默认为1
|
|
10
|
+
* methods:
|
|
11
|
+
* registerCallback: (callback: (mode: number) => void) => void
|
|
12
|
+
注册回调
|
|
13
|
+
* unregisterCallback: (callback: (mode: number) => void) => void
|
|
14
|
+
注销回调
|
|
15
|
+
* getInteractiveMode: () => number
|
|
16
|
+
获取当前的交互模式. 1:按键, 2:触控
|
|
17
|
+
* 注意:
|
|
18
|
+
* 在MetroWidget的item中,如需监听交互模式变动, 为了避免过多回调, 一般在onFocus中注册, 在onBlur中注销
|
|
19
|
+
*
|
|
20
|
+
-->
|
|
21
|
+
<script setup>
|
|
22
|
+
import { shallowRef, onMounted } from "vue";
|
|
23
|
+
const props = defineProps({
|
|
24
|
+
width: {
|
|
25
|
+
type: Number,
|
|
26
|
+
},
|
|
27
|
+
height: {
|
|
28
|
+
type: Number,
|
|
29
|
+
},
|
|
30
|
+
initMode: {
|
|
31
|
+
type: Number,
|
|
32
|
+
default: 1,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const KEY_MODE = 1;
|
|
37
|
+
const TOUCH_MODE = 2;
|
|
38
|
+
let mode = props.initMode;
|
|
39
|
+
let callbacks = [];
|
|
40
|
+
const divRef = shallowRef();
|
|
41
|
+
const registerCallback = (callback) => {
|
|
42
|
+
callbacks.push(callback);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const unregisterCallback = (callback) => {
|
|
46
|
+
callbacks = callbacks.filter((i) => i !== callback);
|
|
47
|
+
};
|
|
48
|
+
const getInteractiveMode = () => {
|
|
49
|
+
return mode;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const updateMode = (m) => {
|
|
53
|
+
let preMode = mode;
|
|
54
|
+
mode = m;
|
|
55
|
+
if (preMode !== mode) {
|
|
56
|
+
for (let c of callbacks) {
|
|
57
|
+
c(mode);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const onDispatchKeyDown = (ev) => {
|
|
63
|
+
if (ev.keyCode == 37 || ev.keyCode == 38 || ev.keyCode == 39 || ev.keyCode == 40) {
|
|
64
|
+
updateMode(KEY_MODE);
|
|
65
|
+
}
|
|
66
|
+
return false;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const onTouchStart = () => {
|
|
70
|
+
updateMode(TOUCH_MODE);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
onMounted(() => {
|
|
74
|
+
divRef.value.jsvSetTapListener({
|
|
75
|
+
onTouchStart,
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
defineExpose({
|
|
80
|
+
registerCallback,
|
|
81
|
+
unregisterCallback,
|
|
82
|
+
getInteractiveMode,
|
|
83
|
+
});
|
|
84
|
+
</script>
|
|
85
|
+
<template>
|
|
86
|
+
<jsv-focus-block
|
|
87
|
+
:onAction="{
|
|
88
|
+
onDispatchKeyDown,
|
|
89
|
+
}"
|
|
90
|
+
>
|
|
91
|
+
<div
|
|
92
|
+
ref="divRef"
|
|
93
|
+
:style="{
|
|
94
|
+
width: width,
|
|
95
|
+
height: height,
|
|
96
|
+
}"
|
|
97
|
+
>
|
|
98
|
+
<slot></slot>
|
|
99
|
+
</div>
|
|
100
|
+
</jsv-focus-block>
|
|
101
|
+
</template>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
3
4
|
* JsvVideo:Vue高阶组件,包装<video>标签,添加离屏模式这种可以支持圆角和旋转效果,但绘制性能略有焦点的特效
|
|
4
5
|
* props说明:
|
|
5
6
|
* usetexture {bool} 是否使用texture即离屏模式,true:使用离屏模式,false:使用普通video
|
|
6
7
|
* videoref {object} (必须) video 句柄,对video进行播控
|
|
7
8
|
* 特别说明:
|
|
8
9
|
* 其他属性同video标签
|
|
9
|
-
*/
|
|
10
10
|
-->
|
|
11
11
|
|
|
12
12
|
<script>
|
|
@@ -61,3 +61,5 @@ export * from "./JsvScrollBox"
|
|
|
61
61
|
export { default as JsvFragShaderView } from "./JsvFragShaderView"
|
|
62
62
|
export * from "./JsvClipDiv"
|
|
63
63
|
export * from "./JsvDriftScope"
|
|
64
|
+
export { default as JsvTouchModeSwitcher } from "./JsvTouchModeSwitcher.vue"
|
|
65
|
+
export { default as JsvDragBox } from "./JsvDragBox/JsvDragBox.vue"
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: ChenChanghua
|
|
3
|
-
* @Date: 2022-11-29 14:26:20
|
|
4
|
-
* @LastEditors: Please set LastEditors
|
|
5
|
-
* @LastEditTime: 2023-02-02 10:20:45
|
|
6
|
-
* @Description: file content
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/*!
|
|
10
|
-
* 获取文字宽度, 一般用于测量文字宽度
|
|
11
|
-
*
|
|
12
|
-
* @param {string} text 文字
|
|
13
|
-
* @param {object} style 文字的css style
|
|
14
|
-
* @return {int} 文字宽度
|
|
15
|
-
**/
|
|
16
|
-
const getTextWidth = (text, style) => {
|
|
17
|
-
const textParams = {
|
|
18
|
-
str: text ? text : "",
|
|
19
|
-
font: style.fontFamily ? style.fontFamily : Forge.TextUtils._sDefaultFont,
|
|
20
|
-
size: style.fontSize ? style.fontSize : Forge.TextUtils._sDefaultFontSize,
|
|
21
|
-
italic: style.fontStyle === "italic" ? "italic" : "",
|
|
22
|
-
bold: style.fontWeight === "bold" ? "bold" : "",
|
|
23
|
-
};
|
|
24
|
-
return window.PlatformUtils.GetTextWidth(textParams);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/*!
|
|
28
|
-
* @typedef {object} SliceInfo
|
|
29
|
-
* @property {int} start - 文字起始index
|
|
30
|
-
* @property {int} end - 文字结束index
|
|
31
|
-
* @property {int} width - 文字宽度
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/*!
|
|
35
|
-
* @typedef {object} TextInfo
|
|
36
|
-
* @property {int} totalWidth - 文字整体宽度
|
|
37
|
-
* @property {Array<SliceInfo>} sliceInfo - 每段文字的信息
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
/*!
|
|
41
|
-
* 单行超长文字会切成多个div拼接, 由于jsview坐标的取整机制, 拼接出的width和文字width会产生误差, 此接口会返回拼接后的width
|
|
42
|
-
*
|
|
43
|
-
* @param {string} text 文字
|
|
44
|
-
* @param {object} style 文字的css style
|
|
45
|
-
* @return {TextInfo} 文字信息
|
|
46
|
-
**/
|
|
47
|
-
const getOneLineTextDrawWidth = (text, style) => {
|
|
48
|
-
const info = window.PlatformUtils.GetOneLineTextDrawWidth(
|
|
49
|
-
text ?? "",
|
|
50
|
-
style.fontFamily ?? Forge.TextUtils._sDefaultFont,
|
|
51
|
-
style.fontSize ?? Forge.TextUtils._sDefaultFontSize,
|
|
52
|
-
style.fontStyle === "italic" ? "italic" : "",
|
|
53
|
-
style.fontWeight === "bold" ? "bold" : "");
|
|
54
|
-
const result = {
|
|
55
|
-
totalWidth: info[0],
|
|
56
|
-
sliceInfo: [],
|
|
57
|
-
}
|
|
58
|
-
for (let i = 1; i < info.length; i += 3) {
|
|
59
|
-
result.sliceInfo.push({
|
|
60
|
-
start: info[i],
|
|
61
|
-
end: info[i + 1],
|
|
62
|
-
width: info[2 + 2],
|
|
63
|
-
})
|
|
64
|
-
}
|
|
65
|
-
return result;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const isRtl = (str) => {
|
|
69
|
-
//arabic
|
|
70
|
-
for (let i = 0; i < str.length; i++) {
|
|
71
|
-
let c = str.charCodeAt(i);
|
|
72
|
-
if (c != 32) {
|
|
73
|
-
if (c >= 0x0600 && c <= 0x06ff) {
|
|
74
|
-
return true;
|
|
75
|
-
} else {
|
|
76
|
-
return false;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
const TextTools = {
|
|
84
|
-
getOneLineTextDrawWidth,
|
|
85
|
-
getTextWidth,
|
|
86
|
-
isRtl,
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export { getTextWidth, TextTools };
|