@shijiu/jsview-vue 2.2.128 → 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 +4 -15
- package/bin/browser/BrowserApic2.vue.mjs +4 -15
- package/bin/browser/BrowserApicLib.mjs +32 -26
- package/bin/browser/BrowserAudio.vue.mjs +2 -10
- package/bin/browser/BrowserJsvFragShaderView.vue.mjs +79 -0
- 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 +4636 -2325
- 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 +21 -6
- package/bin/types/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +14 -12
- package/bin/types/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +17 -6
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +283 -6
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +9 -3
- package/bin/types/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +7 -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 +5 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +5 -1
- 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 +14 -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 +6 -2
- 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 +20 -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 +9 -0
- package/bin/types/JsViewVueTools/JsvPreDownloader.d.ts +55 -0
- 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 +73 -3
- 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 +26 -11
- 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 +5 -1
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +28 -1
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +5 -1
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +29 -1
- 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 +6 -1
- 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 +74 -0
- package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +5 -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 +108 -0
- package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +5 -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 +19 -0
- package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +60 -0
- package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +6 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +47 -17
- 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 +9 -5
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +8 -2
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +11 -7
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +22 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +6 -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 +31 -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 +65 -1
- package/bin/types/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +157 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +8 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +13 -4
- package/bin/types/JsViewVueWidget/JsvScrollBox/index.d.ts +6 -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 +9 -0
- package/bin/types/index.d.ts +4 -0
- package/index.d.ts +8 -0
- package/package.json +1 -1
- package/tools/config/rollup.config.mjs +1 -0
- 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.js → JsvFocusManager.ts} +34 -15
- package/utils/JsViewEngineWidget/MetroWidget/Dispatcher.ts +20 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +30 -11
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +54 -15
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +509 -268
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +11 -0
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +8 -0
- package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +20 -10
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +33 -9
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -2
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +7 -0
- package/utils/JsViewEngineWidget/{index.js → index.ts} +1 -1
- package/utils/JsViewPlugin/JsvAudio/AudioProxy.js +21 -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/ConstSymbol.ts +2 -2
- 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 +5 -4
- 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 +8 -4
- package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +1 -0
- package/utils/JsViewVueTools/TextureManagerTools.ts +17 -0
- package/utils/JsViewVueTools/index.js +22 -19
- package/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue +2 -0
- package/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue +2 -2
- package/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue +13 -5
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue +2 -2
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +15 -4
- package/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.js +8 -3
- package/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue +44 -0
- package/utils/JsViewVueWidget/JsvClipDiv/index.ts +1 -0
- package/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue +7 -1
- package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +219 -0
- package/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue +84 -0
- package/utils/JsViewVueWidget/JsvDriftScope/index.ts +1 -0
- 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 +75 -0
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +293 -0
- package/utils/JsViewVueWidget/JsvFragShaderView/index.js +18 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +142 -63
- package/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue +9 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue +2 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +15 -6
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +19 -7
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +15 -11
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.ts +120 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +5 -1
- 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 +18 -1
- 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 +266 -48
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +477 -0
- package/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.ts +9 -0
- package/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.ts +13 -4
- package/utils/JsViewVueWidget/JsvScrollBox/index.ts +3 -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 +5 -0
- package/utils/JsViewEngineWidget/MetroWidget/Dispatcher.js +0 -19
- package/utils/JsViewVueTools/JsvTextTools.js +0 -89
- package/utils/JsViewVueWidget/JsvScrollBox/index.js +0 -2
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvPreDownloader.ts}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file JsvPreDownloader 通用下载器,可以在不同的环境中进行资源下载操作。
|
|
7
|
+
*
|
|
8
|
+
* JsvPreDownloader.download:实例方法,根据传入参数来下载资源。支持单个url或者url列表,返回Promise对象。
|
|
9
|
+
* 参数:
|
|
10
|
+
* url {string | Array}: (必填)图片url
|
|
11
|
+
* netSetting {string}: 网络设置
|
|
12
|
+
* isImage {boolean} : 是否为图片
|
|
13
|
+
*
|
|
14
|
+
* JsvPreDownloader.buildDownloadItem: 实例方法,创建预下载信息项。
|
|
15
|
+
* 参数:
|
|
16
|
+
* url {string}: (必填)图片url
|
|
17
|
+
* netSetting {string}: 网络设置
|
|
18
|
+
* isImage {boolean} : 是否为图片
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/*!
|
|
23
|
+
* @file JsvPreDownloader 通用下载器,可以在不同的环境中进行资源下载操作。
|
|
24
|
+
*
|
|
25
|
+
* JsvPreDownloader.download:实例方法,根据传入参数来下载资源。支持单个url或者url列表,返回Promise对象。
|
|
26
|
+
* 参数:
|
|
27
|
+
* url {string | Array}: (必填)图片url
|
|
28
|
+
* netSetting {string}: 网络设置
|
|
29
|
+
* isImage {boolean} : 是否为图片
|
|
30
|
+
*
|
|
31
|
+
* JsvPreDownloader.buildDownloadItem: 实例方法,创建预下载信息项。
|
|
32
|
+
* 参数:
|
|
33
|
+
* url {string}: (必填)图片url
|
|
34
|
+
* netSetting {string}: 网络设置
|
|
35
|
+
* isImage {boolean} : 是否为图片
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
interface DownloadListItem {
|
|
39
|
+
url: string;
|
|
40
|
+
netSetting?: string;
|
|
41
|
+
isImage?: boolean;
|
|
42
|
+
}
|
|
43
|
+
declare abstract class JsvPreDownloaderBase {
|
|
44
|
+
download(url: string | Array<DownloadListItem>, netSetting?: string, isImage?: boolean): Promise<unknown>;
|
|
45
|
+
buildDownloadItem(url: string, netSetting?: string, isImage?: boolean): DownloadListItem;
|
|
46
|
+
protected abstract downloadInner(url: string, netSetting: string | undefined, isImage: boolean): Promise<Object>;
|
|
47
|
+
}
|
|
48
|
+
declare class JsvPreDownloaderInJsView extends JsvPreDownloaderBase {
|
|
49
|
+
protected downloadInner(url: string, netSetting?: string | undefined, isImage?: boolean): Promise<Object>;
|
|
50
|
+
}
|
|
51
|
+
declare class JsvPreDownloaderInBrowser extends JsvPreDownloaderBase {
|
|
52
|
+
protected downloadInner(url: string, netSetting?: string | undefined, isImage?: boolean): Promise<Object>;
|
|
53
|
+
}
|
|
54
|
+
declare const exportObj: typeof JsvPreDownloaderInJsView | typeof JsvPreDownloaderInBrowser;
|
|
55
|
+
export { exportObj as JsvPreDownloader };
|
|
@@ -1,7 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvRefTaker.js}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file JsvRefTaker模块
|
|
7
|
+
*
|
|
8
|
+
* 用于解决 script setup 写法,不容易通过 this.$ref.xxxx 拿到子模块的句柄,
|
|
9
|
+
* 但使用ref(null)的方式构筑的深度reactive对象又会严重影响element的内部处理性能的问题
|
|
10
|
+
*
|
|
11
|
+
* 使用方法:
|
|
12
|
+
* <script setup>
|
|
13
|
+
* const element_ref = buildTaker();
|
|
14
|
+
*
|
|
15
|
+
* onMounted(()=>{
|
|
16
|
+
* // onMounted以后,可以用 .current 访问到引用
|
|
17
|
+
* console.log(element.current)
|
|
18
|
+
* })
|
|
19
|
+
* <\/script>
|
|
20
|
+
*
|
|
21
|
+
* <template>
|
|
22
|
+
* <div :ref="element_ref.fnc" />
|
|
23
|
+
* </template>
|
|
24
|
+
*
|
|
25
|
+
********************/
|
|
26
|
+
|
|
1
27
|
export default buildTaker;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* JsvRefTaker模块
|
|
28
|
+
/*!
|
|
29
|
+
* @file JsvRefTaker模块
|
|
5
30
|
*
|
|
6
31
|
* 用于解决 script setup 写法,不容易通过 this.$ref.xxxx 拿到子模块的句柄,
|
|
7
32
|
* 但使用ref(null)的方式构筑的深度reactive对象又会严重影响element的内部处理性能的问题
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvRuntimeBridge.js}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
@file JsvRuntimeBridge.js
|
|
7
|
+
*/
|
|
8
|
+
|
|
1
9
|
export { bridge as jJsvRuntimeBridge };
|
|
2
10
|
declare namespace bridge {
|
|
3
11
|
export { getMac };
|
|
@@ -37,6 +45,12 @@ declare namespace bridge {
|
|
|
37
45
|
export { getNetworkTypeStatusImmediate };
|
|
38
46
|
export { registerNetStateListener };
|
|
39
47
|
export { unRegisterNetStateListener };
|
|
48
|
+
export { getSnId };
|
|
49
|
+
export { getEmmcCid };
|
|
50
|
+
export { providerQuery };
|
|
51
|
+
export { providerInsert };
|
|
52
|
+
export { providerDelete };
|
|
53
|
+
export { providerUpdate };
|
|
40
54
|
}
|
|
41
55
|
/**
|
|
42
56
|
* 获取设备mac地址,优先获取有线mac,无则获取wifi mac
|
|
@@ -277,3 +291,39 @@ declare function preDownloadSdk(core_version: string): any;
|
|
|
277
291
|
declare function getNetworkTypeStatusImmediate(): any;
|
|
278
292
|
declare function registerNetStateListener(callback: any): any;
|
|
279
293
|
declare function unRegisterNetStateListener(callback: any): any;
|
|
294
|
+
declare function getSnId(): any;
|
|
295
|
+
declare function getEmmcCid(): any;
|
|
296
|
+
/**
|
|
297
|
+
* android ContentProvider 查询接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.query 接口
|
|
298
|
+
* @param {string} uri
|
|
299
|
+
* @param {string} projection
|
|
300
|
+
* @param {string} selection
|
|
301
|
+
* @param {string[]} selectionArgs
|
|
302
|
+
* @param {string} sortOrder
|
|
303
|
+
* @returns
|
|
304
|
+
*/
|
|
305
|
+
declare function providerQuery(uri: string, projection: string, selection: string, selectionArgs: string[], sortOrder: string): any;
|
|
306
|
+
/**
|
|
307
|
+
* android ContentProvider 插入接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.insert 接口
|
|
308
|
+
* @param {string} uri
|
|
309
|
+
* @param {object} contentValue
|
|
310
|
+
* @returns
|
|
311
|
+
*/
|
|
312
|
+
declare function providerInsert(uri: string, contentValue: object): any;
|
|
313
|
+
/**
|
|
314
|
+
* android ContentProvider 删除接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.delete 接口
|
|
315
|
+
* @param {string} uri
|
|
316
|
+
* @param {string} selection
|
|
317
|
+
* @param {string[]} selectionArgs
|
|
318
|
+
* @returns
|
|
319
|
+
*/
|
|
320
|
+
declare function providerDelete(uri: string, selection: string, selectionArgs: string[]): any;
|
|
321
|
+
/**
|
|
322
|
+
* android ContentProvider 更新接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.update 接口
|
|
323
|
+
* @param {string} uri
|
|
324
|
+
* @param {object} contentValue
|
|
325
|
+
* @param {string} selection
|
|
326
|
+
* @param {string[]} selectionArgs
|
|
327
|
+
* @returns
|
|
328
|
+
*/
|
|
329
|
+
declare function providerUpdate(uri: string, contentValue: object, selection: string, selectionArgs: string[]): any;
|
|
@@ -1,4 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvStyleSheetsDeclarer.js}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file
|
|
7
|
+
*
|
|
8
|
+
* 【模块 export 内容】
|
|
9
|
+
* JsvStyleSheetsDeclarer: 动态和删除全局的 CssStyle
|
|
10
|
+
* 接口:
|
|
11
|
+
* DeclareClass(className:string, styleProperties:object) 新加全局Class
|
|
12
|
+
* className: 定义的class的名称, 为了规避全局重名,建议用'-'进行区域区分,例如主界面叫 main-xxxx, 详情页用 detail-xxxx
|
|
13
|
+
* styleProperties: 具体的style定义的对象,内部的名字采用驼峰规范
|
|
14
|
+
*
|
|
15
|
+
* UndeclareClass(className:string) 删除全局Class
|
|
16
|
+
* className: 通过 DeclareClass 声明的出来的动态className
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/*!
|
|
20
|
+
* @file
|
|
21
|
+
*
|
|
2
22
|
* 【模块 export 内容】
|
|
3
23
|
* JsvStyleSheetsDeclarer: 动态和删除全局的 CssStyle
|
|
4
24
|
* 接口:
|
|
@@ -1,37 +1,95 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvTextTools.ts}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
declare interface FontStyleDefine {
|
|
6
|
+
fontFamily: string;
|
|
7
|
+
fontSize: number;
|
|
8
|
+
fontStyle: string;
|
|
9
|
+
fontWeight: string;
|
|
10
|
+
}
|
|
11
|
+
/*!
|
|
2
12
|
* 获取文字宽度, 一般用于测量文字宽度
|
|
3
13
|
*
|
|
4
14
|
* @param {string} text 文字
|
|
5
15
|
* @param {object} style 文字的css style
|
|
6
16
|
* @return {int} 文字宽度
|
|
7
17
|
**/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export { isRtl };
|
|
18
|
+
declare const getTextWidth: (text: string, style: FontStyleDefine) => any;
|
|
19
|
+
declare interface RectSize {
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
13
22
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/*
|
|
21
|
-
* @typedef {object} TextInfo
|
|
22
|
-
* @property {int} totalWidth - 文字整体宽度
|
|
23
|
-
* @property {Array<SliceInfo>} sliceInfo - 每段文字的信息
|
|
24
|
-
*/
|
|
25
|
-
/*
|
|
26
|
-
* 单行超长文字会切成多个div拼接, 由于jsview坐标的取整机制, 拼接出的width和文字width会产生误差, 此接口会返回拼接后的width
|
|
23
|
+
declare interface PostionDefine {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 获取光标的位置
|
|
27
29
|
*
|
|
28
|
-
* @
|
|
29
|
-
* @
|
|
30
|
-
* @
|
|
30
|
+
* @public
|
|
31
|
+
* @func GetCursorPosition
|
|
32
|
+
* @memberof Forge.TextUtils
|
|
33
|
+
* @params {string} str 文字字符串
|
|
34
|
+
* @params {Forge.RectArea} max_rect
|
|
35
|
+
* @param {PackedFontParams} font_params 文本描述符(来源自 PackFontParams 函数)
|
|
36
|
+
* @param {PackedTextAttrs} text_attr (来源自 PackTextAttrs 函数)
|
|
37
|
+
* @param {int} line_height
|
|
38
|
+
* @param {int} pos_x 光标的偏移
|
|
39
|
+
* @return {Object} 光标的所在位置{x:0,y:0}
|
|
31
40
|
**/
|
|
32
|
-
declare function
|
|
33
|
-
|
|
34
|
-
|
|
41
|
+
declare function GetCursorPosition(str: string, max_rect: RectSize, font_params: PackedFontParams, text_attr: PackedTextAttrs, line_height: number, cursor_offset: number): PostionDefine;
|
|
42
|
+
declare class PackedFontParams {
|
|
43
|
+
font?: string;
|
|
44
|
+
size?: number;
|
|
45
|
+
bold?: string;
|
|
46
|
+
italic?: string;
|
|
47
|
+
alignment?: string;
|
|
48
|
+
textColour?: string;
|
|
49
|
+
}
|
|
50
|
+
/**k
|
|
51
|
+
* 创建文本描述符
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
* @func PackFontParam
|
|
55
|
+
* @param {string} font_family CSS字体名字,如“黑体 欧文”(支持多字体设置)
|
|
56
|
+
* @param {int} font_size
|
|
57
|
+
* @param {boolean} italic 是否为斜体
|
|
58
|
+
* @param {boolean} bold 是否加粗
|
|
59
|
+
* @param {string} alignment 水平对齐方式,支持("left", "middle", "right", "justify")
|
|
60
|
+
* @param {string} text_color 文字颜色(format "#FFFFFF")
|
|
61
|
+
**/
|
|
62
|
+
declare function PackFontParams(font_family: string | null, font_size: number, bold: boolean, italic: boolean, alignment: string, text_color: string | null): PackedFontParams;
|
|
63
|
+
declare interface PackedTextAttrs {
|
|
64
|
+
text_overflow: string;
|
|
65
|
+
word_wrap: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* 创建文本区域描述符
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
* @func PackTextAttrs
|
|
72
|
+
* @param {String} text_overflow 超过描画边界时的处理方式:<br>
|
|
73
|
+
* "none" 按照文字宽度描画<br>
|
|
74
|
+
* "clip" 超出本分不显示(默认)<br>
|
|
75
|
+
* "ellipsis" 如果超出,则末尾显示“...”
|
|
76
|
+
* 其余字符 当文字超出时,用此字符替换“...”的位置
|
|
77
|
+
* @param {String} word_wrap 设置自然换行规则<br>
|
|
78
|
+
* "none":“不折行”<br>
|
|
79
|
+
* "normal":折行时,尽量不切断单词(仅支持英文单词)<br>
|
|
80
|
+
* "break_word":不去识别单词,到达边缘就折行(执行效率高)
|
|
81
|
+
* @return {PackedTextAttrs} 文本区域描述符
|
|
82
|
+
**/
|
|
83
|
+
declare function PackTextAttrs(text_overflow: string, word_wrap: string): PackedTextAttrs;
|
|
84
|
+
declare const TextTools: {
|
|
85
|
+
getOneLineTextDrawWidth: (text: string, style: FontStyleDefine) => {
|
|
86
|
+
totalWidth: number;
|
|
87
|
+
sliceInfo: Array<any>;
|
|
88
|
+
};
|
|
89
|
+
getTextWidth: (text: string, style: FontStyleDefine) => any;
|
|
90
|
+
isRtl: (str: string) => boolean;
|
|
91
|
+
PackFontParams: typeof PackFontParams;
|
|
92
|
+
PackTextAttrs: typeof PackTextAttrs;
|
|
93
|
+
GetCursorPosition: typeof GetCursorPosition;
|
|
35
94
|
};
|
|
36
|
-
|
|
37
|
-
export {};
|
|
95
|
+
export { getTextWidth, TextTools };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/JsvTextureLoadTool.ts}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file
|
|
7
|
+
*
|
|
8
|
+
* 内部组件
|
|
9
|
+
*
|
|
10
|
+
* JsvTextureLoadTool: 对给定列表的图片资源进行后台预加载
|
|
11
|
+
* 特别注意: 在vue组件进行关联时,要在unmounted中进行对preload返回的句柄进行主动的release动作
|
|
12
|
+
*
|
|
13
|
+
* @method
|
|
14
|
+
* preload
|
|
15
|
+
* @param {Array(ItemSet)} preloadList
|
|
16
|
+
* @param {Function} finishCallback
|
|
17
|
+
*/
|
|
18
|
+
declare class ItemSet {
|
|
19
|
+
url: String | null;
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
colorType: String;
|
|
23
|
+
netSetting: any;
|
|
24
|
+
isPosterImg: boolean;
|
|
25
|
+
magicToken: number;
|
|
26
|
+
/**
|
|
27
|
+
* @constructor
|
|
28
|
+
* @param {String} url 必填,图片的url,目前只支持 http:// 和 ./ 两个格式
|
|
29
|
+
* @param {number} width 选填,是否为了省内存而按照给定尺寸压缩图片
|
|
30
|
+
* @param {number} height 选填,是否为了省内存而按照给定尺寸压缩图片
|
|
31
|
+
* @param {String} color_type 选填,是否为了省内存而做成其他的图片解码格式
|
|
32
|
+
* @param {String} net_setting 选填,是否有特殊的网络header设置
|
|
33
|
+
* @param {boolean} is_poster_img 选填, 是否为统计为海报,海报有一套解码优先级处理
|
|
34
|
+
*/
|
|
35
|
+
constructor(url: String, width?: number, height?: number, color_type?: String, net_setting?: any, is_poster_img?: boolean);
|
|
36
|
+
}
|
|
37
|
+
declare class ItemStatus {
|
|
38
|
+
loadStatus: boolean;
|
|
39
|
+
listenerToken: number;
|
|
40
|
+
textureRef: any;
|
|
41
|
+
releaseResource(): void;
|
|
42
|
+
}
|
|
43
|
+
declare class ListStatus {
|
|
44
|
+
loadStatusList: Array<ItemStatus>;
|
|
45
|
+
loadedInfoList: Array<any>;
|
|
46
|
+
originDataList: Array<ItemSet>;
|
|
47
|
+
loadingItemCount: number;
|
|
48
|
+
finishCallback: Function;
|
|
49
|
+
constructor(origin_data: Array<ItemSet>, finish_callback: Function);
|
|
50
|
+
onLoaded(index: number, loaded_info: any): void;
|
|
51
|
+
recycleResource(): void;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 对给定的ItemSet进行preload加载,返回 ListStatus,
|
|
55
|
+
* 注意: 在vue的unmount处理中要调用ListStatus.recycleResource()进行资源回收
|
|
56
|
+
*
|
|
57
|
+
* @function
|
|
58
|
+
* @param {ItemSet} preload_list_data 要加载资源的ItemSet列表
|
|
59
|
+
* @param {Function} finish_callback 全加载完成后的回调函数
|
|
60
|
+
* @returns {ListStatus}
|
|
61
|
+
*/
|
|
62
|
+
declare function preload(preload_list_data: Array<ItemSet> | null, finish_callback: Function): ListStatus | null;
|
|
63
|
+
declare const JsvTextureLoadTool: {
|
|
64
|
+
preload: typeof preload;
|
|
65
|
+
ItemSet: typeof ItemSet;
|
|
66
|
+
};
|
|
67
|
+
export { JsvTextureLoadTool };
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../../../utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.ts}
|
|
3
|
+
*/
|
|
4
|
+
|
|
1
5
|
import { TextureBase } from "../Texture";
|
|
2
6
|
import { RectPath, CirclePath, CustomPath } from "./Path";
|
|
3
7
|
declare class CanvasTexture extends TextureBase {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../../../utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts}
|
|
3
|
+
*/
|
|
4
|
+
|
|
1
5
|
import { TextureBase } from "../Texture";
|
|
2
6
|
export type CapturedCallback = (textureAccessName: string, autoRecycleSet: boolean, width: number, height: number) => void;
|
|
3
7
|
export declare class CapturedTexture extends TextureBase {
|
|
@@ -1,5 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../../utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file JsvTextureStoreApi
|
|
7
|
+
*
|
|
8
|
+
* canvasTexture:
|
|
9
|
+
* 创建texture(图片纹理)句柄, 通过 CanvasTexture 的API进行绘制, 使用注意以下几点
|
|
10
|
+
* a. commit() 接口调用之前可以任意绘制, commit之后就无法更改, commit之后才能使用, commit后绘制内容会被全局保存
|
|
11
|
+
* b. commit()的返回是其使用名称, 在div.backgroundImage和img.src中可使用, 格式: jsvtexturestore://commit返回名
|
|
12
|
+
* c.【非常重要】CanvasTexture是全局管理, commit()之后 不会自动释放, 需要手动调用 deleteTexture, 其参数是commit的返回值
|
|
13
|
+
* deleteTexture:
|
|
14
|
+
* 删除全局保存的texture(图片纹理)
|
|
15
|
+
*
|
|
16
|
+
* CanvasTexture的接口(见 ./CanvasTexture/CanvasTexture.ts 的函数头):
|
|
17
|
+
* Path类型: 例如 rectPath, circlePath (见 ./CanvasTexture/Path.ts 的函数头)
|
|
18
|
+
* 通过 canvasTexture.xxxPath() 获得一个path操作对象,然后通过其接口进行游标运动形成绘制路径
|
|
19
|
+
* Path.fill() 或者 Path.stroke 调用前可以移动游标进行路径规划, 一旦fill或者stroke后就不能更改了。
|
|
20
|
+
* 非Path接口: 完成单一绘制动作,例如drawLine, drawColor
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/*!
|
|
24
|
+
* @file JsvTextureStoreApi
|
|
25
|
+
*
|
|
3
26
|
* canvasTexture:
|
|
4
27
|
* 创建texture(图片纹理)句柄, 通过 CanvasTexture 的API进行绘制, 使用注意以下几点
|
|
5
28
|
* a. commit() 接口调用之前可以任意绘制, commit之后就无法更改, commit之后才能使用, commit后绘制内容会被全局保存
|
|
@@ -14,11 +37,58 @@
|
|
|
14
37
|
* Path.fill() 或者 Path.stroke 调用前可以移动游标进行路径规划, 一旦fill或者stroke后就不能更改了。
|
|
15
38
|
* 非Path接口: 完成单一绘制动作,例如drawLine, drawColor
|
|
16
39
|
*/
|
|
40
|
+
import CanvasTexture from "./CanvasTexture/CanvasTexture";
|
|
41
|
+
import { CapturedTexture, CapturedCallback } from "./CapturedTexture/CapturedTexture";
|
|
17
42
|
declare let sJsvTextureConst: {
|
|
18
43
|
LEFT: number;
|
|
19
44
|
TOP: number;
|
|
20
45
|
RIGHT: number;
|
|
21
46
|
BOTTOM: number;
|
|
22
47
|
};
|
|
23
|
-
declare let sTextureStoreApi:
|
|
48
|
+
declare let sTextureStoreApi: {
|
|
49
|
+
/**
|
|
50
|
+
* canvasTexture
|
|
51
|
+
* 创建CanvasTexture句柄,执行commit()后, 获取访问名(访问名规则: 输入参数 baseName + 分配id)
|
|
52
|
+
* 可以在 img.src 或者 div.backgroundImage 通过 "texturestore://访问名" 来使用
|
|
53
|
+
*
|
|
54
|
+
* @param {int} width 此Canvas画布的宽度
|
|
55
|
+
* @param {int} height 此Canvas画布的高度
|
|
56
|
+
* @param {String|null} baseName 可选, 访问名的前缀信息
|
|
57
|
+
* @return {CanvasTexture}
|
|
58
|
+
*/
|
|
59
|
+
canvasTexture: (width: Number, height: Number, baseName: String | null) => CanvasTexture;
|
|
60
|
+
/**
|
|
61
|
+
* capture2Texture
|
|
62
|
+
* 对给定div做截图并生成一个Texture, 在回调函数中返回此Texture的访问名,
|
|
63
|
+
* 此访问名可以在 img.src 或者 div.backgroundImage 通过 "texturestore://访问名" 来使用
|
|
64
|
+
* 注意: PC模拟环境下,无法截取运动物体的中间状态,但盒子端可以正常截取
|
|
65
|
+
*
|
|
66
|
+
* 关于 autoRecycle:
|
|
67
|
+
* true(默认值): 收到callback的访问名后,请立即设置给使用的地方,若此宏任务结束(其触发的所有微任务全完成后)时,
|
|
68
|
+
* 若资源未被div和img使用,则会自动回收,回收后此访问名对应内容为黑屏
|
|
69
|
+
* false: 截图资源永久存在,可被反复使用,直到 JsvTextureStoreApi.deleteTexture(访问名) 进行清理
|
|
70
|
+
*
|
|
71
|
+
* @param {DivVueRef} captureDiv 要截图的div
|
|
72
|
+
* @param {CapturedCallback} callback 完成截屏后的回调, 函数参数:
|
|
73
|
+
* (textureAccessName: string, // 访问名
|
|
74
|
+
* autoRecycleSet: boolean, // 通知是否为自动删除(和入参时一致)
|
|
75
|
+
* width: number, // 截取div的宽
|
|
76
|
+
* height: number) => void // 截取div的高
|
|
77
|
+
* @param {boolean} autoRecycle 可选, 是否当无div/img引用时会自动释放
|
|
78
|
+
* true默认值: 此场景在回调时要立刻赋值给响应式变量控制template的节点立刻使用(并且不是v-if=false的节点),
|
|
79
|
+
否则会自动释放掉, 此时, texture当使用它的template节点从dom树中去掉的时候(v-if=false也算)会自动释放,
|
|
80
|
+
不需要主动调用deleteTexture释放.
|
|
81
|
+
false: 此场景在callback收到资源名后, 需要使用完毕后调用 deleteTexture 手动释放
|
|
82
|
+
在手动释放之前,可以赋给其他div/img来复用
|
|
83
|
+
* @return {CapturedTexture} 用于cancel的句柄,当cancel时,会清理对div和Callback的引用
|
|
84
|
+
*/
|
|
85
|
+
capture2Texture: (captureDiv: any, callback: CapturedCallback, autoRecycle?: boolean) => CapturedTexture;
|
|
86
|
+
/**
|
|
87
|
+
* deleteTexture
|
|
88
|
+
* 删除访问名对应的texture资源
|
|
89
|
+
*
|
|
90
|
+
* @param {String} accessName 此Texture的访问名,访问名来自: CanvasTexture.commit 或 capture2Texture 的回调
|
|
91
|
+
*/
|
|
92
|
+
deleteTexture: (accessName: String) => void;
|
|
93
|
+
};
|
|
24
94
|
export { sTextureStoreApi as JsvTextureStoreApi, sJsvTextureConst as JsvTextureConst, };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/NinePatchHelper.js}
|
|
3
|
+
*/
|
|
4
|
+
|
|
1
5
|
export function toHtmlBorderSet(): void;
|
|
2
|
-
|
|
6
|
+
/*!
|
|
3
7
|
* imageWidth { int } // (必填)原图信息: 原图的宽度(由于正方形,宽高相同)
|
|
4
8
|
* centerWidth { int } // (必填)原图信息: .9图的中心区域宽度(repeat区域)
|
|
5
9
|
* imageDspWidth { int } // (选填)原图缩放后的显示宽度,计算方法:
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/TextureManagerTools.ts}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
declare function GetColorTexture(manager_ref: any, color_define: string): any;
|
|
6
|
+
declare function GetImage(manager_ref: any, image_url: string): any;
|
|
7
|
+
declare let ForgeTextureApis: {
|
|
8
|
+
GetColorTexture: typeof GetColorTexture;
|
|
9
|
+
GetImage: typeof GetImage;
|
|
10
|
+
};
|
|
11
|
+
export { ForgeTextureApis, };
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../utils/JsViewVueTools/index.js}
|
|
3
|
+
*/
|
|
4
|
+
|
|
1
5
|
export * from "./JsvHashHistory";
|
|
2
|
-
export * from "./JsvDynamicCssStyle
|
|
3
|
-
export * from "./
|
|
6
|
+
export * from "./JsvDynamicCssStyle";
|
|
7
|
+
export * from "./JsvDynamicKeyFrames";
|
|
8
|
+
export * from "./JsvRuntimeBridge";
|
|
4
9
|
export * from "./NinePatchHelper";
|
|
5
10
|
export * from "./TypeCheckAndSet";
|
|
6
|
-
export * from "./JsvRefTaker
|
|
7
|
-
export * from "./JsvStyleClass
|
|
8
|
-
export * from "./JsvStyleSheetsDeclarer
|
|
9
|
-
export * from "./DebugContentShellJBridge
|
|
10
|
-
export * from "./DebugTool
|
|
11
|
-
export * from "./JsvImpactTracer
|
|
12
|
-
export * from "./JsvTextTools
|
|
13
|
-
export * from "./
|
|
14
|
-
export
|
|
11
|
+
export * from "./JsvRefTaker";
|
|
12
|
+
export * from "./JsvStyleClass";
|
|
13
|
+
export * from "./JsvStyleSheetsDeclarer";
|
|
14
|
+
export * from "./DebugContentShellJBridge";
|
|
15
|
+
export * from "./DebugTool";
|
|
16
|
+
export * from "./JsvImpactTracer";
|
|
17
|
+
export * from "./JsvTextTools";
|
|
18
|
+
export * from "./JsvPreDownloader";
|
|
19
|
+
export * from "./JsvDemoTester";
|
|
20
|
+
export * from "./JsvPerformance";
|
|
21
|
+
export * from "./JsvTextureStore/JsvTextureStore";
|
|
22
|
+
export * from "./JsvTextureDefines";
|
|
23
|
+
export * from "./JsvFederationTools";
|
|
24
|
+
export * from "./ConstSymbol";
|
|
25
|
+
export * from "./ForgeConstDefine";
|
|
26
|
+
export * from "./TextureManagerTools";
|
|
27
|
+
export * from "./FeatureActive";
|
|
28
|
+
export * from "./JsvTextureLoadTool";
|
|
29
|
+
export { default as DefaultKeyCodeMap } from "./DefaultKeyMap";
|
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue}
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @file
|
|
7
|
+
*
|
|
8
|
+
* 【模块 export 内容】
|
|
9
|
+
* JsvActorMove:单轴(X 或 Y)运动控制控件,可控制完成单方向的匀速运动和变速运动(抛物运动),
|
|
10
|
+
* 若想进行X和Y轴同时的运动,可以通过运动分解后的两个JsvActorMove进行组合来实现
|
|
11
|
+
* props说明:
|
|
12
|
+
* control {JsvActorMoveControl} JsvActorMove控制器实体,通过new JsvActorMoveControl()生成,说明见下文
|
|
13
|
+
*
|
|
14
|
+
* JsvActorMoveControl: 面向对象的类,JsvActorMove控制器
|
|
15
|
+
* 功能函数:(参数说明见函数本体)
|
|
16
|
+
* moveToX(target_x, speed, end_callback)
|
|
17
|
+
* 功能:延X轴进行匀速运动
|
|
18
|
+
* moveToY(target_y, speed, end_callback)
|
|
19
|
+
* 功能:延Y轴进行匀速运动
|
|
20
|
+
* scrollMoveAlongX(target_x, speed, repeat_start, repeat_callback)
|
|
21
|
+
* 功能:延X轴进行重复匀速运动
|
|
22
|
+
* scrollMoveAlongY(target_y, speed, repeat_start, repeat_callback)
|
|
23
|
+
* 功能:延Y轴进行重复匀速运动
|
|
24
|
+
* throwAlongX(init_v, acc, end_condition, end_callback, pole_callback)
|
|
25
|
+
* 功能:延X轴进行回旋运动
|
|
26
|
+
* throwAlongY(init_v, acc, end_condition, end_callback, pole_callback)
|
|
27
|
+
* 功能:延Y轴进行回旋运动(例如Y轴抛物运动)
|
|
28
|
+
* jumpTo(new_x, new_y)
|
|
29
|
+
* 功能:直接将JsvActorMove移动到目标位置,无中间运动动画
|
|
30
|
+
* pause(pause_callback)
|
|
31
|
+
* 功能:暂停动画,并将JsvActorMove保持在暂停的位置上
|
|
32
|
+
* pause(pause_callback)
|
|
33
|
+
* 功能:暂停动画,并将JsvActorMove保持在暂停的位置上
|
|
34
|
+
* altStraightSpeed(newSpeedPerSecond, time)
|
|
35
|
+
* 功能: 将由moveToX, moveToY, scrollMoveAlongX, scrollMoveAlongY 发起的直线运动进行均匀变速
|
|
36
|
+
|
|
37
|
+
*/
|
|
38
|
+
|
|
1
39
|
declare const _default: {
|
|
2
40
|
new (...args: any[]): {
|
|
3
41
|
$: import("vue").ComponentInternalInstance;
|