@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
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
<script>
|
|
2
|
+
/**
|
|
3
|
+
* @file
|
|
4
|
+
*
|
|
2
5
|
* 【控件介绍】
|
|
3
6
|
* JsvNativeSharedDiv:创建一个Native端可以跟进显示位置的div,用于Native端外挂插件的开发
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
|
|
7
|
+
* @param {Object} style 布局样式(必须),必须包含的信息为{left, top, width, height}
|
|
8
|
+
* @param {function} getId 回调函数,用于接收ID信息,ID信息用于Native端对该view进行跟踪的标识
|
|
9
|
+
* @param {String} setId 给定命名ID,避免同进程不同context重名要和Context相关,
|
|
10
|
+
* 例如`${window.JsView?.getJsContextId()}_${you_name}`
|
|
11
|
+
* @param {number} corner 圆角的尺寸,默认为0
|
|
12
|
+
* @param {number} oversize 为了去除黑边的调整选项,让native video的尺寸信息比扣洞大多少, 默认为0
|
|
13
|
+
* @param {boolean} frontLayer 视图是在JsView界面前方,不是需要扣洞的后方,默认为false
|
|
14
|
+
*/
|
|
15
|
+
</script>
|
|
11
16
|
|
|
12
17
|
<script setup>
|
|
13
18
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
@@ -16,7 +21,7 @@ import { JsvTextureStoreApi } from "../JsViewVueTools/JsvTextureStore/JsvTexture
|
|
|
16
21
|
import { onUnmounted, shallowRef } from "vue";
|
|
17
22
|
import JsvNinePatch from "./JsvNinePatch.vue";
|
|
18
23
|
|
|
19
|
-
const
|
|
24
|
+
const rProps = defineProps({
|
|
20
25
|
style: {
|
|
21
26
|
type: Object,
|
|
22
27
|
default: () => {
|
|
@@ -29,83 +34,101 @@ const props = defineProps({
|
|
|
29
34
|
type: Number,
|
|
30
35
|
default: 0,
|
|
31
36
|
},
|
|
37
|
+
oversize: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 0,
|
|
40
|
+
},
|
|
41
|
+
frontLayer: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: false,
|
|
44
|
+
},
|
|
32
45
|
});
|
|
33
46
|
|
|
34
|
-
let
|
|
35
|
-
let
|
|
36
|
-
let
|
|
37
|
-
let
|
|
47
|
+
let vJsvMainView = undefined;
|
|
48
|
+
let vInnerViewId = -1;
|
|
49
|
+
let vNinePatchSet = null;
|
|
50
|
+
let vBackgroudnColorValue = null;
|
|
51
|
+
|
|
52
|
+
let isBrowserDebug = !window.JsView;
|
|
38
53
|
|
|
39
|
-
if (
|
|
54
|
+
if (window.JsView) {
|
|
40
55
|
// 创建JsView图层穿透的texture,抠洞处理
|
|
41
56
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
57
|
+
if (!rProps.frontLayer) {
|
|
58
|
+
// 有圆角
|
|
59
|
+
if (rProps.corner > 0) {
|
|
60
|
+
let presetGap = 1; // 外延距离,以保证圆角光滑
|
|
61
|
+
vNinePatchSet = {
|
|
62
|
+
imageSize: (rProps.corner + presetGap) * 2, // 半径 + 中心点1像素
|
|
63
|
+
textureName: null,
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// 用 JsvTextureStoreApi 绘制半径对等的圆形
|
|
67
|
+
let sampleImageWidth = vNinePatchSet.imageSize;
|
|
68
|
+
let innerRadius2 = sampleImageWidth; // 内直径
|
|
69
|
+
let circleLineWidth = 1.5 * rProps.corner + presetGap - rProps.corner; // 线粗要把四角盖上
|
|
70
|
+
let canvasRef;
|
|
71
|
+
|
|
72
|
+
// 创建画布
|
|
73
|
+
canvasRef = JsvTextureStoreApi.canvasTexture(
|
|
74
|
+
sampleImageWidth,
|
|
75
|
+
sampleImageWidth
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
let circleRadius =
|
|
79
|
+
Math.floor(innerRadius2 / 2) +
|
|
80
|
+
Math.floor(circleLineWidth / 2) -
|
|
81
|
+
presetGap; // 圆环绘制路径是粗线的中心线,所以要减去一半的线宽
|
|
82
|
+
let customPath = canvasRef.circlePath(
|
|
83
|
+
Math.floor(sampleImageWidth / 2),
|
|
84
|
+
Math.floor(sampleImageWidth / 2),
|
|
85
|
+
circleRadius
|
|
86
|
+
); // 创建圆环绘制路径,圆形在画布的中心点位置
|
|
87
|
+
canvasRef.drawColor("rgba(0,0,0,0)"); // 画布绘制透明底色
|
|
88
|
+
customPath.stroke(circleLineWidth, "#FF0000FF"); // 绘制alpha=1的边缘留色
|
|
89
|
+
|
|
90
|
+
// 获取填入url的内容
|
|
91
|
+
// 进行.9拉伸以适配目标尺寸
|
|
92
|
+
// 通过 alphaOverride 进行alpah叠加
|
|
93
|
+
vNinePatchSet.textureName = canvasRef.commit();
|
|
94
|
+
} else {
|
|
95
|
+
// 用背景色
|
|
96
|
+
vBackgroudnColorValue = "rgba(0,0,0,0)";
|
|
97
|
+
}
|
|
78
98
|
}
|
|
79
99
|
|
|
80
100
|
// 通过内置函数构造定制的NativeSharedView
|
|
81
|
-
|
|
82
|
-
|
|
101
|
+
vJsvMainView = new Forge.NativeSharedView();
|
|
102
|
+
vInnerViewId = Forge.sViewStore.add(new Forge.ViewInfo(vJsvMainView));
|
|
103
|
+
if (rProps.oversize != 0) {
|
|
104
|
+
vJsvMainView.SetOverSize(rProps.oversize);
|
|
105
|
+
}
|
|
83
106
|
|
|
84
107
|
// 更新宽高
|
|
85
|
-
if (typeof
|
|
86
|
-
if (
|
|
108
|
+
if (typeof vJsvMainView != "undefined" && vJsvMainView) {
|
|
109
|
+
if (rProps.setId) {
|
|
87
110
|
// 使用设置进来的track id,而非自动生成
|
|
88
|
-
|
|
111
|
+
vJsvMainView.SetTrackId(rProps.setId);
|
|
89
112
|
}
|
|
90
113
|
|
|
91
|
-
|
|
114
|
+
rProps.getId?.(vJsvMainView.GetTrackId());
|
|
92
115
|
}
|
|
93
116
|
}
|
|
94
117
|
|
|
95
118
|
onUnmounted(() => {
|
|
96
|
-
if (
|
|
119
|
+
if (!window.JsView) {
|
|
97
120
|
return;
|
|
98
121
|
}
|
|
99
122
|
|
|
100
123
|
// 清理View管理缓存
|
|
101
|
-
if (
|
|
102
|
-
Forge.sViewStore.remove(
|
|
103
|
-
|
|
104
|
-
|
|
124
|
+
if (vInnerViewId !== -1) {
|
|
125
|
+
Forge.sViewStore.remove(vInnerViewId);
|
|
126
|
+
vInnerViewId = -1;
|
|
127
|
+
vJsvMainView = null;
|
|
105
128
|
}
|
|
106
129
|
|
|
107
|
-
if (
|
|
108
|
-
JsvTextureStoreApi.deleteTexture(
|
|
130
|
+
if (vNinePatchSet != null) {
|
|
131
|
+
JsvTextureStoreApi.deleteTexture(vNinePatchSet.textureName); // 释放texture资源
|
|
109
132
|
}
|
|
110
133
|
});
|
|
111
134
|
</script>
|
|
@@ -119,13 +142,13 @@ onUnmounted(() => {
|
|
|
119
142
|
}"
|
|
120
143
|
>
|
|
121
144
|
<jsv-nine-patch
|
|
122
|
-
v-if="
|
|
145
|
+
v-if="vNinePatchSet != null"
|
|
123
146
|
:style="{
|
|
124
147
|
width: style.width,
|
|
125
148
|
height: style.height,
|
|
126
149
|
}"
|
|
127
|
-
:imageUrl="`jsvtexturestore://${
|
|
128
|
-
:imageWidth="
|
|
150
|
+
:imageUrl="`jsvtexturestore://${vNinePatchSet.textureName}`"
|
|
151
|
+
:imageWidth="vNinePatchSet.imageSize"
|
|
129
152
|
:centerWidth="1"
|
|
130
153
|
:borderOutset="0"
|
|
131
154
|
:waitForInit="false"
|
|
@@ -136,7 +159,7 @@ onUnmounted(() => {
|
|
|
136
159
|
:style="{
|
|
137
160
|
width: style.width,
|
|
138
161
|
height: style.height,
|
|
139
|
-
backgroundColor:
|
|
162
|
+
backgroundColor: vBackgroudnColorValue,
|
|
140
163
|
JsvImageBlendType: 'alphaOverride',
|
|
141
164
|
}"
|
|
142
165
|
/>
|
|
@@ -145,7 +168,7 @@ onUnmounted(() => {
|
|
|
145
168
|
width: style.width,
|
|
146
169
|
height: style.height,
|
|
147
170
|
}"
|
|
148
|
-
:data-jsv-vw-innerview="
|
|
171
|
+
:data-jsv-vw-innerview="vInnerViewId"
|
|
149
172
|
>
|
|
150
173
|
<slot />
|
|
151
174
|
</div>
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
2
4
|
* 【模块 export 内容】
|
|
3
5
|
* JsvNinePatch:Vue高阶组件,.9图展示控件,该控件的原图要求为正方形,延展后可为长方形
|
|
4
6
|
* centerWidth和borderOutset传值比较抽象,若 imageDspWidth 和图片素材的原图尺寸一直,
|
|
@@ -17,6 +19,7 @@
|
|
|
17
19
|
* animTime {int} (必填)缩放动画的时长(单位秒)
|
|
18
20
|
* waitForInit {boolean} (选填)尺寸为0时是否进行描画(例如: 首次显示不展示动画的场合,设置为true),默认值为true
|
|
19
21
|
* onTransitionEnd { Function } (选填)transition动画结束的回调
|
|
22
|
+
* onAnimationEnd { Function } (选填)animation动画结束的回调
|
|
20
23
|
* imageBlendType {String} (选填) alpha合并模式,默认为普通合成,可设置"alphaOverride", 用于Video挖洞操作
|
|
21
24
|
-->
|
|
22
25
|
|
|
@@ -42,6 +45,7 @@ const props = defineProps({
|
|
|
42
45
|
borderOutset: { type: Number, required: true },
|
|
43
46
|
animTime: { type: Number, default: 0 },
|
|
44
47
|
onTransitionEnd: { type: Function },
|
|
48
|
+
onAnimationEnd: { type: Function },
|
|
45
49
|
animation: { type: String },
|
|
46
50
|
imageBlendType: { type: String, default: null },
|
|
47
51
|
|
|
@@ -119,5 +123,6 @@ function innerOnDivRef(ref) {
|
|
|
119
123
|
JsvImageBlendType: props.imageBlendType,
|
|
120
124
|
}"
|
|
121
125
|
@transitionend="props.onTransitionEnd"
|
|
126
|
+
@animationend="props.onAnimationEnd"
|
|
122
127
|
/>
|
|
123
128
|
</template>
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
2
4
|
* 【模块 export 内容】
|
|
3
5
|
* QRCode:Vue高阶组件,描绘二维码,
|
|
4
6
|
* props说明:
|
|
@@ -100,24 +102,21 @@ export default {
|
|
|
100
102
|
const img_view = new Forge.LayoutView(
|
|
101
103
|
new Forge.TextureSetting(img_texture)
|
|
102
104
|
);
|
|
103
|
-
view.AddView(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
height: calculatedImageSettings.h,
|
|
110
|
-
})
|
|
111
|
-
);
|
|
105
|
+
view.AddView(img_view, {
|
|
106
|
+
x: calculatedImageSettings.x,
|
|
107
|
+
y: calculatedImageSettings.y,
|
|
108
|
+
width: calculatedImageSettings.w,
|
|
109
|
+
height: calculatedImageSettings.h,
|
|
110
|
+
});
|
|
112
111
|
console.log("view = " + view);
|
|
113
112
|
}
|
|
114
113
|
// 二维码都位置与大小
|
|
115
|
-
lp_params =
|
|
114
|
+
lp_params = {
|
|
116
115
|
x: 0,
|
|
117
116
|
y: 0,
|
|
118
117
|
width: this.size,
|
|
119
118
|
height: this.size,
|
|
120
|
-
}
|
|
119
|
+
};
|
|
121
120
|
|
|
122
121
|
// Add new QRCode
|
|
123
122
|
this.qrCodeView = view;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
2
4
|
* 【模块 export 内容】
|
|
3
5
|
* JsvRipple: 波纹组件
|
|
4
6
|
* 组件说明:
|
|
@@ -63,7 +65,7 @@ const props = defineProps({
|
|
|
63
65
|
});
|
|
64
66
|
const TAG = "JsvRipple";
|
|
65
67
|
|
|
66
|
-
let filterView = new Forge.FilterView(null, Forge.
|
|
68
|
+
let filterView = new Forge.FilterView(null, Forge.FilterViewType.Type.WAVE);
|
|
67
69
|
let viewId = Forge.sViewStore.add(new Forge.ViewInfo(filterView, null));
|
|
68
70
|
|
|
69
71
|
// 监控filter改变
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
2
4
|
* 【模块 export 内容】
|
|
3
5
|
* JsvScrollBox:Vue高阶组件,支持触控拖动的滚动型组件。
|
|
4
6
|
* props说明:
|
|
@@ -91,6 +93,10 @@ import {
|
|
|
91
93
|
SyncLinkSource,
|
|
92
94
|
} from "../../JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager";
|
|
93
95
|
import { newNexus, NexusNode } from "../JsvFreeMoveActor/NexusNode";
|
|
96
|
+
import {
|
|
97
|
+
FeatureNames,
|
|
98
|
+
JsvUseFeature,
|
|
99
|
+
} from "../../JsViewVueTools/FeatureActive";
|
|
94
100
|
|
|
95
101
|
let rProps = defineProps({
|
|
96
102
|
// 底座的尺寸
|
|
@@ -146,6 +152,9 @@ let rProps = defineProps({
|
|
|
146
152
|
},
|
|
147
153
|
});
|
|
148
154
|
|
|
155
|
+
// 激活引擎中的功能支持
|
|
156
|
+
JsvUseFeature("JsvScrollBox", FeatureNames.TouchReceiver);
|
|
157
|
+
|
|
149
158
|
/** 本地常量 **/
|
|
150
159
|
const cDirection = rProps.direction;
|
|
151
160
|
const cMode = rProps.mode;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
2
4
|
* 【模块 export 内容】
|
|
3
5
|
* JsvScrollFollow:Vue高阶组件,响应并同步JsvScrollBox的移动的div/ninePatch特殊类型的进度展示组件
|
|
4
6
|
* props说明:
|
|
@@ -64,6 +66,10 @@ import { GetSyncLinkManager } from "../JsvFreeMoveActor/SyncLinkManager";
|
|
|
64
66
|
import { NexusNode } from "../JsvFreeMoveActor/NexusNode";
|
|
65
67
|
import { ScrollInnerStyle } from "./ScrollInnerSymbol";
|
|
66
68
|
import JsvNinePatch from "../JsvNinePatch.vue";
|
|
69
|
+
import {
|
|
70
|
+
FeatureNames,
|
|
71
|
+
JsvUseFeature,
|
|
72
|
+
} from "../../JsViewVueTools/FeatureActive";
|
|
67
73
|
|
|
68
74
|
const rProps = withDefaults(
|
|
69
75
|
defineProps<{
|
|
@@ -103,6 +109,9 @@ const rProps = withDefaults(
|
|
|
103
109
|
}
|
|
104
110
|
);
|
|
105
111
|
|
|
112
|
+
// 激活引擎中的功能支持
|
|
113
|
+
JsvUseFeature("JsvScrollFollow", FeatureNames.TouchReceiver);
|
|
114
|
+
|
|
106
115
|
/** 本地类型定义 **/
|
|
107
116
|
interface PosSizeType {
|
|
108
117
|
start: number;
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
-->
|
|
6
6
|
|
|
7
7
|
<!--
|
|
8
|
+
* @file
|
|
9
|
+
*
|
|
8
10
|
* 【模块 export 内容】
|
|
9
11
|
* JsvSpray:Vue高阶组件,粒子效果控件
|
|
10
12
|
* prop说明:
|
|
@@ -15,9 +17,9 @@
|
|
|
15
17
|
* prop中的sprayStyle说明:
|
|
16
18
|
* type {int} (必需)喷射类型 0: 一次喷射 1: 持续喷射
|
|
17
19
|
* particleNum {int} (必需)粒子个数
|
|
18
|
-
* deltaAngle {int} (必需)
|
|
19
|
-
* deltaWidth {int} (必需)
|
|
20
|
-
* deltaHeight {int} (必需)
|
|
20
|
+
* deltaAngle {int} (必需)粒子喷射角度范围(角度)。如设30则粒子喷射范围为div上边法向正负30度
|
|
21
|
+
* deltaWidth {int} (必需)粒子喷射位置宽度范围, 会在左右两侧各deltaWidth的范围内随机出现粒子
|
|
22
|
+
* deltaHeight {int} (必需)粒子喷射位置高度范围, 会在上下两侧各deltaHeight的范围内随机出现粒子
|
|
21
23
|
* pointSizeMin {int} (必需)粒子尺寸下限(像素)
|
|
22
24
|
* pointSizeMax {int} (必需)粒子尺寸上限(像素)
|
|
23
25
|
* speedMin {float} (必需)粒子速度下限
|
|
@@ -26,13 +28,16 @@
|
|
|
26
28
|
* lifeMax {int} (必需)粒子生命周期上限(ms)
|
|
27
29
|
* accelerateX {float} (必需)水平方向加速度
|
|
28
30
|
* accelerateY {float} (必需)垂直方向加速度
|
|
29
|
-
* addNumSpeed {float} 持续喷射时,起始粒子添加速度(个/ms), 默认为0.001
|
|
31
|
+
* addNumSpeed {float} (废弃)持续喷射时,起始粒子添加速度(个/ms), 默认为0.001
|
|
32
|
+
* particleAddSpeed {float} 持续喷射时,起始粒子添加速度(个/ms), 默认为0.001
|
|
30
33
|
* enableFade {boolean} 粒子淡出开关, 默认为false
|
|
31
34
|
* enableShrink {boolean} 粒子缩小开关, 默认为false
|
|
32
|
-
* angularVelocityMin {float}
|
|
33
|
-
* angularVelocityMax {float}
|
|
35
|
+
* angularVelocityMin {float} 角速度最小值(角度/秒), 默认为0
|
|
36
|
+
* angularVelocityMax {float} 角速度最大值(角度/秒), 默认为0
|
|
34
37
|
* alphaMin {float} 透明度最小值, 默认为1
|
|
35
38
|
* alphaMax {float} 透明度最大值, 默认为1
|
|
39
|
+
* angleMin {float} 角度最小值(角度)
|
|
40
|
+
* angleMax {float} 角度最大值(角度)
|
|
36
41
|
-->
|
|
37
42
|
<script>
|
|
38
43
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
@@ -61,9 +66,10 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
|
|
|
61
66
|
);
|
|
62
67
|
}
|
|
63
68
|
const spray_view = new Forge.SprayView(texture_setting);
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
let add_speed = .1;
|
|
70
|
+
if (typeof sprayStyle.particleAddSpeed == "number") {
|
|
71
|
+
add_speed = sprayStyle.particleAddSpeed;
|
|
72
|
+
}
|
|
67
73
|
const accelerate_x =
|
|
68
74
|
typeof sprayStyle.accelerateX !== "undefined" ? sprayStyle.accelerateX : 0;
|
|
69
75
|
const accelerate_y =
|
|
@@ -76,8 +82,8 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
|
|
|
76
82
|
typeof sprayStyle.angularVelocityMin === "number" &&
|
|
77
83
|
typeof sprayStyle.angularVelocityMax === "number"
|
|
78
84
|
) {
|
|
79
|
-
angularVelocityMin = sprayStyle.angularVelocityMin;
|
|
80
|
-
angularVelocityMax = sprayStyle.angularVelocityMax;
|
|
85
|
+
angularVelocityMin = (sprayStyle.angularVelocityMin / 180) * 3.1415;
|
|
86
|
+
angularVelocityMax = (sprayStyle.angularVelocityMax / 180) * 3.1415;
|
|
81
87
|
}
|
|
82
88
|
let alphaMin = 1,
|
|
83
89
|
alphaMax = 1;
|
|
@@ -95,10 +101,19 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
|
|
|
95
101
|
lifeMin = sprayStyle.lifeMin > 50000 ? 50000 : sprayStyle.lifeMin;
|
|
96
102
|
lifeMax = sprayStyle.lifeMax > 50000 ? 50000 : sprayStyle.lifeMax;
|
|
97
103
|
}
|
|
104
|
+
|
|
105
|
+
let angleMin = 0, angleMax = 0;
|
|
106
|
+
if (typeof sprayStyle.angleMin == "number" && typeof sprayStyle.angleMax == "number") {
|
|
107
|
+
if (sprayStyle.angleMin <= sprayStyle.angleMax) {
|
|
108
|
+
angleMin = (sprayStyle.angleMin / 180) * 3.1415;
|
|
109
|
+
angleMax = (sprayStyle.angleMax / 180) * 3.1415;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
98
113
|
spray_view.SetSprayInfo(
|
|
99
114
|
sprayStyle.type,
|
|
100
115
|
sprayStyle.particleNum,
|
|
101
|
-
|
|
116
|
+
add_speed,
|
|
102
117
|
(sprayStyle.deltaAngle / 180) * 3.1415,
|
|
103
118
|
sprayStyle.deltaWidth,
|
|
104
119
|
sprayStyle.deltaHeight,
|
|
@@ -116,7 +131,9 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
|
|
|
116
131
|
angularVelocityMin,
|
|
117
132
|
angularVelocityMax,
|
|
118
133
|
alphaMin,
|
|
119
|
-
alphaMax
|
|
134
|
+
alphaMax,
|
|
135
|
+
angleMin,
|
|
136
|
+
angleMax,
|
|
120
137
|
);
|
|
121
138
|
const view_width =
|
|
122
139
|
sprayStyle.deltaWidth === 0 ? 1 : 2 * sprayStyle.deltaWidth;
|