@shijiu/jsview-vue 2.2.373 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/jsview-vue-common.mjs +1 -1
- package/bin/jsview-vue.mjs +7678 -7306
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/CheckType.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusBlock.vue.d.ts +0 -34
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusHub.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusManager.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Const.d.ts +0 -4
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +8 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +5 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Dispatcher.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/ListWidget.vue.d.ts +24 -14
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +179 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidgetSetup.d.ts +9 -6
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/PageUpdater.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/RenderItem.d.ts +3 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Slide.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/SlotComponent.vue.d.ts +0 -4
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +64 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/VisibleInfo.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/WidgetRectInfo.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/RangeModel.d.ts +0 -4
- package/bin/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/CommonMetroTemplate.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/Fence.d.ts +2 -6
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/ListMetroTemplate.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/MetroTemplate.d.ts +3 -7
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/TemplateItemAdder.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/index.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/WidgetCommon.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/index.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAccount/JsvAccount.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -8
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/CheckType.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/Events.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudio.vue.d.ts +4 -8
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioBridgeProxy.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioProxy.vue.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/ScreenLockManager.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/index.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/version.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserDomBuilder.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserJsvLatex.vue.d.ts +5 -9
- package/bin/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatex.vue.d.ts +5 -29
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexProxy.vue.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/index.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +13 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/version.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer-0.9.vue.d.ts +45 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue.d.ts +596 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +420 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +57 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +588 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +358 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +358 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/index.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ConstSymbol.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugContentShellJBridge.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugTool.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DefaultKeyMap.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/FeatureActive.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeConstDefine.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeHandles.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicCssStyle.d.ts +0 -17
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicKeyFrames.d.ts +0 -17
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvFederationTools.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvHashHistory.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvImpactTracer.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPerformance.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPreDownloader.d.ts +0 -21
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRefTaker.d.ts +0 -26
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRuntimeBridge.d.ts +6 -8
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleClass.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleSheetsDeclarer.d.ts +0 -18
- package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +61 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureDefines.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureLoadTool.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CommandList.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/Path.d.ts +20 -3
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts +1 -23
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Store.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Texture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/NinePatchHelper.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/TextureManagerTools.d.ts +0 -4
- package/bin/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +3 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/index.d.ts +0 -6
- package/bin/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +120 -0
- package/bin/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +144 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/ActorControlBase.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMoveControl.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts +0 -20
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +50 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -5
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +23 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/GifData.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/Viewer.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/WebpData.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvCommonLoopToolBase.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/JsvClipDiv.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDragBox/JsvDragBox.vue.d.ts +0 -25
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/JsvDriftScope.vue.d.ts +4 -8
- package/bin/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvEnableRenderBreak.vue.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFilterView.vue.d.ts +6 -25
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +78 -0
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +75 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFlexCell/index.d.ts +1 -4
- package/bin/types/{JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts → utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts} +1 -5
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorControl.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/CallbackManager.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ForgeTypeDefine.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +12 -37
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +6 -28
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +7 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/NexusNode.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetAction.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetCondition.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetState.d.ts +1 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SyncLinkManager.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvGrid.vue.d.ts +0 -73
- package/bin/types/utils/JsViewVueWidget/JsvHole.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/Cursor.vue.d.ts +2 -6
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditViewOperator.d.ts +2 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditVisibleArea.d.ts +4 -5
- package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SharedDefine.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SystemTextTools.d.ts +7 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
- package/bin/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvLine/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMaskClipDiv.vue.d.ts +0 -22
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Constant.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/DataTree.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Geometry.d.ts +2 -6
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/JsvMindMap.vue.d.ts +12 -95
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/rtree.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNativeSharedDiv.vue.d.ts +0 -18
- package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +21 -0
- package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterDiv.vue.d.ts +3 -17
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterImage.vue.d.ts +3 -18
- package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
- package/bin/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvQrcode/JsvQrcode.vue.d.ts +1 -26
- package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
- package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
- package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollBox.vue.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollFollow.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollSymbol.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSector.vue.d.ts +0 -18
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSoundPool.d.ts +0 -42
- package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +11 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/FrameBuidler.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +0 -16
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteTools.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/SpriteController.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/JsvSwiper.vue.d.ts +0 -39
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -27
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextBox.vue.d.ts +0 -26
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/CommonType.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/JsvTextureAnim.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTouchModeSwitcher.vue.d.ts +3 -28
- package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +9 -34
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/index.d.ts +9 -13
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/index.d.ts +4 -6
- package/bin/types/{index.d.ts → utils/index.d.ts} +0 -4
- package/index.d.ts +2 -2
- package/package.json +1 -1
- package/tools/jsview-vue-build.mjs +3 -2
- package/tsconfig.json +27 -0
- package/utils/JsViewEngineWidget/CheckType.js +3 -3
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +25 -6
- package/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue +22 -0
- package/utils/JsViewEngineWidget/MetroWidget/DebugTools.ts +37 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +42 -7
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +62 -10
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +177 -77
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +30 -0
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -1
- package/utils/JsViewEngineWidget/TemplateParser/Fence.ts +2 -2
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -4
- package/utils/JsViewPlugin/JsvPlayer/AckEventDefine.ts +82 -0
- package/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue +49 -31
- package/utils/JsViewVueTools/JsvHashHistory.js +26 -29
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +82 -73
- package/utils/JsViewVueTools/JsvTextTools.ts +63 -130
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -2
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +1 -1
- package/utils/JsViewVueTools/TypeCheckAndSet.ts +66 -0
- package/utils/JsViewVueTools/index.js +1 -2
- package/utils/JsViewVueWidget/Jsv3dDiv.vue +85 -0
- package/utils/JsViewVueWidget/Jsv3dStage.vue +50 -0
- package/utils/JsViewVueWidget/JsvApic/JsvApic/index.js +1 -8
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/index.js +1 -8
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +1 -1
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue +151 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +11 -16
- package/utils/JsViewVueWidget/JsvFlexCell/index.js +1 -0
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +4 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/index.js +2 -9
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +8 -0
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +48 -15
- package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +43 -10
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +22 -9
- package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +41 -27
- package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +3 -57
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +57 -71
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +15 -8
- package/utils/JsViewVueWidget/JsvPosterImage.vue +12 -3
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +21 -44
- package/utils/JsViewVueWidget/JsvPreload/index.js +2 -13
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +3 -2
- package/utils/JsViewVueWidget/JsvSoundPool.js +3 -7
- package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +116 -75
- package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +0 -5
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +27 -32
- package/utils/JsViewVueWidget/JsvTextureAnim/index.js +2 -9
- package/utils/JsViewVueWidget/index.js +4 -2
- package/bin/browser/BrowserApic.vue.mjs +0 -114
- package/bin/browser/BrowserApic2.vue.mjs +0 -108
- package/bin/browser/BrowserApicLib.mjs +0 -431
- package/bin/browser/BrowserJsvFragShaderView.vue.mjs +0 -79
- package/bin/browser/BrowserPreload.vue.mjs +0 -139
- package/bin/browser/BrowserQrcode.vue.mjs +0 -176
- package/bin/browser/BrowserSpray.vue.mjs +0 -56
- package/bin/browser/BrowserTextureAnim.vue.mjs +0 -322
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +0 -435
- package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +0 -6
- package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +0 -5
- package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +0 -5
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +0 -7
- package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +0 -5
- package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +0 -6
- package/bin/types/JsViewVueTools/JsvTextTools.d.ts +0 -95
- package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +0 -102
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +0 -51
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +0 -34
- package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +0 -106
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +0 -106
- package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +0 -60
- package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvHole.d.ts +0 -19
- package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +0 -65
- package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +0 -32
- package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +0 -33
- package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +0 -50
- package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +0 -26
- package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +0 -14
- package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +0 -67
- package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +0 -21
- package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +0 -31
- package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +0 -15
- package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +0 -37
- package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +0 -8
- package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +0 -129
- package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +0 -28
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +0 -8
- package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +0 -29
- package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +0 -78
- package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +0 -70
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +0 -155
- package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +0 -18
- package/tools/config/tsconfig.json +0 -16
- package/utils/JsViewVueTools/JsvDemoTester.js +0 -81
- package/utils/JsViewVueTools/TypeCheckAndSet.js +0 -27
- package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +0 -75
- package/utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue +0 -144
- package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +0 -189
- package/utils/JsViewVueWidget/JsvQrcode/index.js +0 -18
- package/utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue +0 -55
- package/utils/JsViewVueWidget/JsvSpray/index.js +0 -17
- package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +0 -359
- /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActionRefObject.d.ts +0 -0
- /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorState.d.ts +0 -0
- /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/CommonType.d.ts +0 -0
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* pointRes {string} (必需)粒子图案 可选值: 绝对路径url|url(相对路径url)|#FFFFFF|rbga(255,0,0,1.0)
|
|
14
14
|
* sprayStyle {object} (必需)粒子效果配置
|
|
15
15
|
* ignoreClip {boolean} 无视clipView描画
|
|
16
|
+
* onStop {() => void} 停止喷射回调
|
|
16
17
|
*
|
|
17
18
|
* prop中的sprayStyle说明:
|
|
18
19
|
* type {int} (必需)喷射类型 0: 一次喷射 1: 持续喷射
|
|
@@ -38,12 +39,56 @@
|
|
|
38
39
|
* alphaMax {float} 透明度最大值, 默认为1
|
|
39
40
|
* angleMin {float} 角度最小值(角度)
|
|
40
41
|
* angleMax {float} 角度最大值(角度)
|
|
42
|
+
* 方法
|
|
43
|
+
* start { () => void }
|
|
44
|
+
* @descripe 开始喷射
|
|
45
|
+
* stop { (immediate: boolean) => void }
|
|
46
|
+
* @descripe 停止喷射
|
|
47
|
+
* @param immediate { boolean } 是否立即消除粒子, false时会停止喷射,等待已有粒子消失
|
|
41
48
|
-->
|
|
42
|
-
<script>
|
|
49
|
+
<script setup>
|
|
43
50
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
44
51
|
import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
52
|
+
import { urlCheckSet } from "../../JsViewVueTools";
|
|
53
|
+
import { ref, onBeforeUnmount, onUpdated, onMounted } from "vue";
|
|
45
54
|
|
|
46
|
-
|
|
55
|
+
const props = defineProps({
|
|
56
|
+
pointRes: {
|
|
57
|
+
type: String,
|
|
58
|
+
required: true,
|
|
59
|
+
},
|
|
60
|
+
sprayStyle: {
|
|
61
|
+
type: Object,
|
|
62
|
+
required: true,
|
|
63
|
+
},
|
|
64
|
+
ignoreClip: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: false,
|
|
67
|
+
},
|
|
68
|
+
onStop: {
|
|
69
|
+
type: Function,
|
|
70
|
+
default: null,
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const widthSize = ref(0);
|
|
75
|
+
const heightSize = ref(0);
|
|
76
|
+
let sprayView = null;
|
|
77
|
+
|
|
78
|
+
function unloadView() {
|
|
79
|
+
if (viewId.value != -1) {
|
|
80
|
+
Forge.sViewStore.remove(viewId.value);
|
|
81
|
+
viewId.value = -1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
let buildForgeView = (
|
|
86
|
+
pointRes,
|
|
87
|
+
sprayStyle,
|
|
88
|
+
ignoreClip,
|
|
89
|
+
widthRef,
|
|
90
|
+
heightRef
|
|
91
|
+
) => {
|
|
47
92
|
if (!pointRes) {
|
|
48
93
|
return -1;
|
|
49
94
|
}
|
|
@@ -54,19 +99,13 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
|
|
|
54
99
|
texture_manager.GetColorTexture(pointRes)
|
|
55
100
|
);
|
|
56
101
|
} else {
|
|
57
|
-
|
|
58
|
-
let image_url = base_url;
|
|
59
|
-
if (base_url && base_url.indexOf("http") === 0) {
|
|
60
|
-
image_url = base_url;
|
|
61
|
-
} else if (window.JsView.Dom.UrlRef) {
|
|
62
|
-
image_url = new window.JsView.Dom.UrlRef(pointRes).href;
|
|
63
|
-
}
|
|
102
|
+
let image_url = urlCheckSet(pointRes);
|
|
64
103
|
texture_setting = new Forge.ExternalTextureSetting(
|
|
65
104
|
texture_manager.GetImage2(image_url, false, null, "RGB_8888", null)
|
|
66
105
|
);
|
|
67
106
|
}
|
|
68
|
-
|
|
69
|
-
let add_speed
|
|
107
|
+
sprayView = new Forge.SprayView(texture_setting);
|
|
108
|
+
let add_speed = 0.1;
|
|
70
109
|
if (typeof sprayStyle.particleAddSpeed == "number") {
|
|
71
110
|
add_speed = sprayStyle.particleAddSpeed;
|
|
72
111
|
}
|
|
@@ -94,23 +133,31 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
|
|
|
94
133
|
alphaMin = sprayStyle.alphaMin;
|
|
95
134
|
alphaMax = sprayStyle.alphaMax;
|
|
96
135
|
}
|
|
97
|
-
let lifeMin = sprayStyle.lifeMin,
|
|
136
|
+
let lifeMin = sprayStyle.lifeMin,
|
|
137
|
+
lifeMax = sprayStyle.lifeMax;
|
|
98
138
|
if (sprayStyle.lifeMax > 50 * 1000) {
|
|
99
|
-
console.warn(
|
|
139
|
+
console.warn(
|
|
140
|
+
"JsvSpray: particle maximum lifetime is 50000ms, current value is",
|
|
141
|
+
sprayStyle.lifeMax
|
|
142
|
+
);
|
|
100
143
|
/**某些设备上float值过大会导致精度问题, 因此粒子生命需要限制范围*/
|
|
101
144
|
lifeMin = sprayStyle.lifeMin > 50000 ? 50000 : sprayStyle.lifeMin;
|
|
102
145
|
lifeMax = sprayStyle.lifeMax > 50000 ? 50000 : sprayStyle.lifeMax;
|
|
103
146
|
}
|
|
104
147
|
|
|
105
|
-
let angleMin = 0,
|
|
106
|
-
|
|
148
|
+
let angleMin = 0,
|
|
149
|
+
angleMax = 0;
|
|
150
|
+
if (
|
|
151
|
+
typeof sprayStyle.angleMin == "number" &&
|
|
152
|
+
typeof sprayStyle.angleMax == "number"
|
|
153
|
+
) {
|
|
107
154
|
if (sprayStyle.angleMin <= sprayStyle.angleMax) {
|
|
108
155
|
angleMin = (sprayStyle.angleMin / 180) * 3.1415;
|
|
109
156
|
angleMax = (sprayStyle.angleMax / 180) * 3.1415;
|
|
110
157
|
}
|
|
111
158
|
}
|
|
112
159
|
|
|
113
|
-
|
|
160
|
+
sprayView.SetSprayInfo(
|
|
114
161
|
sprayStyle.type,
|
|
115
162
|
sprayStyle.particleNum,
|
|
116
163
|
add_speed,
|
|
@@ -133,75 +180,69 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
|
|
|
133
180
|
alphaMin,
|
|
134
181
|
alphaMax,
|
|
135
182
|
angleMin,
|
|
136
|
-
angleMax
|
|
183
|
+
angleMax
|
|
137
184
|
);
|
|
138
185
|
const view_width =
|
|
139
186
|
sprayStyle.deltaWidth === 0 ? 1 : 2 * sprayStyle.deltaWidth;
|
|
140
187
|
const view_height =
|
|
141
188
|
sprayStyle.deltaHeight === 0 ? 1 : 2 * sprayStyle.deltaHeight;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
return Forge.sViewStore.add(new Forge.ViewInfo(
|
|
189
|
+
widthRef.value = view_width;
|
|
190
|
+
heightRef.value = view_height;
|
|
191
|
+
return Forge.sViewStore.add(new Forge.ViewInfo(sprayView, null));
|
|
145
192
|
};
|
|
193
|
+
const viewId = ref(
|
|
194
|
+
buildForgeView(
|
|
195
|
+
props.pointRes,
|
|
196
|
+
props.sprayStyle,
|
|
197
|
+
props.ignoreClip,
|
|
198
|
+
widthSize,
|
|
199
|
+
heightSize
|
|
200
|
+
)
|
|
201
|
+
);
|
|
146
202
|
|
|
147
|
-
|
|
148
|
-
props
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
);
|
|
186
|
-
},
|
|
187
|
-
updated() {
|
|
188
|
-
this.unloadView();
|
|
189
|
-
this.viewId = buildForgeView(
|
|
190
|
-
this.pointRes,
|
|
191
|
-
this.sprayStyle,
|
|
192
|
-
this.size,
|
|
193
|
-
this.ignoreClip
|
|
194
|
-
);
|
|
195
|
-
},
|
|
196
|
-
beforeUnmount() {
|
|
197
|
-
this.unloadView();
|
|
198
|
-
},
|
|
199
|
-
};
|
|
203
|
+
function onStop() {
|
|
204
|
+
props.onStop?.();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
sprayView.RegisterOnStop(onStop);
|
|
208
|
+
sprayView.RegisterEventListener();
|
|
209
|
+
|
|
210
|
+
function start() {
|
|
211
|
+
sprayView.Start();
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
function stop(immediate) {
|
|
215
|
+
sprayView.Stop(immediate);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
onMounted(() => {
|
|
219
|
+
start();
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
onUpdated(() => {
|
|
223
|
+
unloadView();
|
|
224
|
+
viewId.value = buildForgeView(
|
|
225
|
+
props.pointRes,
|
|
226
|
+
props.sprayStyle,
|
|
227
|
+
props.ignoreClip,
|
|
228
|
+
widthSize,
|
|
229
|
+
heightSize
|
|
230
|
+
);
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
onBeforeUnmount(() => {
|
|
234
|
+
unloadView();
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
defineExpose({
|
|
238
|
+
start,
|
|
239
|
+
stop,
|
|
240
|
+
});
|
|
200
241
|
</script>
|
|
201
242
|
|
|
202
243
|
<template>
|
|
203
244
|
<div
|
|
204
|
-
:style="{ width:
|
|
245
|
+
:style="{ width: widthSize, height: heightSize }"
|
|
205
246
|
:data-jsv-vw-innerview="viewId"
|
|
206
247
|
></div>
|
|
207
|
-
</template>
|
|
248
|
+
</template>
|
|
@@ -353,11 +353,6 @@ onUnmounted(() => {
|
|
|
353
353
|
const onAnimEndDelegate = () => {
|
|
354
354
|
// 在onAnimEnd之前进行Stop,以防onAnimEnd内部继续发生别的操作
|
|
355
355
|
if (props.onAnimEnd) {
|
|
356
|
-
if (!window.JsView) {
|
|
357
|
-
console.log(
|
|
358
|
-
"JsvSpriteAnim 结束回调时进行隐藏在PC环境会有一帧残留,盒子环境是正常,可忽略这个问题"
|
|
359
|
-
);
|
|
360
|
-
}
|
|
361
356
|
props.onAnimEnd();
|
|
362
357
|
}
|
|
363
358
|
|
|
@@ -11,7 +11,7 @@ import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
|
11
11
|
import {
|
|
12
12
|
numberCheckSet,
|
|
13
13
|
urlCheckSet,
|
|
14
|
-
} from "../../JsViewVueTools/TypeCheckAndSet";
|
|
14
|
+
} from "../../JsViewVueTools/TypeCheckAndSet.ts";
|
|
15
15
|
import { toNinePatchForgeViewSet } from "../../JsViewVueTools/NinePatchHelper";
|
|
16
16
|
import {
|
|
17
17
|
DECORATE_BORDER_RADIUS,
|
|
@@ -331,41 +331,36 @@ export default {
|
|
|
331
331
|
},
|
|
332
332
|
|
|
333
333
|
created() {
|
|
334
|
-
|
|
335
|
-
const textureManager = ForgeHandles.TextureManager;
|
|
334
|
+
const textureManager = ForgeHandles.TextureManager;
|
|
336
335
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
// 2.创建view
|
|
353
|
-
this.innerView = this._createForgeView(view_texture, decorate);
|
|
354
|
-
// 3.设置texture基本形变
|
|
355
|
-
if (this.transform) {
|
|
356
|
-
this.innerView.ResetTextureCssTransform(
|
|
357
|
-
this.transform,
|
|
358
|
-
this.transformOrigin
|
|
359
|
-
);
|
|
360
|
-
}
|
|
361
|
-
this._updateTexCoord();
|
|
362
|
-
|
|
363
|
-
// 5. inner view标准处理
|
|
336
|
+
// 1.获得主view的展示内容图片 texture
|
|
337
|
+
let image_url = urlCheckSet(this.src);
|
|
338
|
+
let view_texture = textureManager.GetImage2(
|
|
339
|
+
image_url,
|
|
340
|
+
false,
|
|
341
|
+
null,
|
|
342
|
+
"RGB_8888",
|
|
343
|
+
null
|
|
344
|
+
);
|
|
345
|
+
// 1.1 兼容border转为decorate
|
|
346
|
+
let decorate = this.$props.decorate;
|
|
347
|
+
if (this.$props.borderRadius) {
|
|
348
|
+
decorate = this._readRadius(this.$props.borderRadius);
|
|
349
|
+
}
|
|
364
350
|
|
|
365
|
-
|
|
366
|
-
|
|
351
|
+
// 2.创建view
|
|
352
|
+
this.innerView = this._createForgeView(view_texture, decorate);
|
|
353
|
+
// 3.设置texture基本形变
|
|
354
|
+
if (this.transform) {
|
|
355
|
+
this.innerView.ResetTextureCssTransform(
|
|
356
|
+
this.transform,
|
|
357
|
+
this.transformOrigin
|
|
367
358
|
);
|
|
368
359
|
}
|
|
360
|
+
this._updateTexCoord();
|
|
361
|
+
|
|
362
|
+
// 4. inner view标准处理
|
|
363
|
+
this.innerViewId = Forge.sViewStore.add(new Forge.ViewInfo(this.innerView));
|
|
369
364
|
},
|
|
370
365
|
beforeUnmount() {
|
|
371
366
|
if (this.innerViewId !== -1) {
|
|
@@ -3,17 +3,10 @@
|
|
|
3
3
|
* @Date: 2021-10-13 15:14:29
|
|
4
4
|
* @Description: file content
|
|
5
5
|
*/
|
|
6
|
-
import * as JsvTextureAnim from "./JsvTextureAnim.vue";
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
if (window.JsView) {
|
|
10
|
-
_JsvTextureAnim = JsvTextureAnim.default;
|
|
11
|
-
} else {
|
|
12
|
-
const BrowserTextureAnim = await import("./BrowserTextureAnim.vue");
|
|
13
|
-
_JsvTextureAnim = BrowserTextureAnim.default;
|
|
14
|
-
}
|
|
7
|
+
import JsvTextureAnim from "./JsvTextureAnim.vue"
|
|
15
8
|
|
|
16
9
|
export * from "./CommonType";
|
|
17
|
-
export default
|
|
10
|
+
export default JsvTextureAnim;
|
|
18
11
|
const TexAlignAnchor = JsvTextureAnim.TexAlignAnchor;
|
|
19
12
|
export { TexAlignAnchor };
|
|
@@ -17,8 +17,8 @@ export {
|
|
|
17
17
|
buildPreloadInfo,
|
|
18
18
|
buildDownloadInfo,
|
|
19
19
|
} from "./JsvPreload";
|
|
20
|
-
export { default as JsvQrcode } from "./JsvQrcode";
|
|
21
|
-
export { default as JsvSpray } from "./JsvSpray"
|
|
20
|
+
export { default as JsvQrcode } from "./JsvQrcode/JsvQrcode.vue";
|
|
21
|
+
export { default as JsvSpray } from "./JsvSpray/JsvSpray.vue"
|
|
22
22
|
export * from "./JsvSpriteAnim";
|
|
23
23
|
export { default as JsvSwiper } from "./JsvSwiper";
|
|
24
24
|
export { default as JsvSwiper3D } from "./JsvSwiper3D";
|
|
@@ -63,3 +63,5 @@ export * from "./JsvClipDiv"
|
|
|
63
63
|
export * from "./JsvDriftScope"
|
|
64
64
|
export { default as JsvTouchModeSwitcher } from "./JsvTouchModeSwitcher.vue"
|
|
65
65
|
export { default as JsvDragBox } from "./JsvDragBox/JsvDragBox.vue"
|
|
66
|
+
export { default as Jsv3dDiv } from "./Jsv3dDiv.vue";
|
|
67
|
+
export { default as Jsv3dStage } from "./Jsv3dStage.vue";
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { shallowRef, onMounted, openBlock, createElementBlock, normalizeStyle } from 'vue';
|
|
2
|
-
import { W as WebpData, G as GifData, V as Viewer } from './BrowserApicLib.mjs';
|
|
3
|
-
import { L as LoopType } from '../jsview-vue-common.mjs';
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
+ @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue}
|
|
7
|
-
*/
|
|
8
|
-
const _sfc_main = {
|
|
9
|
-
__name: "BrowserApic",
|
|
10
|
-
props: {
|
|
11
|
-
src: String,
|
|
12
|
-
style: Object,
|
|
13
|
-
autoPlay: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: true
|
|
16
|
-
},
|
|
17
|
-
loopType: {
|
|
18
|
-
type: Number,
|
|
19
|
-
default: LoopType.LOOP_DEFAULT
|
|
20
|
-
},
|
|
21
|
-
loopInfo: {
|
|
22
|
-
type: Array,
|
|
23
|
-
default: () => [[-1, -1, -1]]
|
|
24
|
-
},
|
|
25
|
-
onStart: Function,
|
|
26
|
-
onEnd: Function,
|
|
27
|
-
onLoad: Function
|
|
28
|
-
},
|
|
29
|
-
setup(__props, { expose }) {
|
|
30
|
-
const props = __props;
|
|
31
|
-
const renderDocument = window.JsvCode.Dom.RenderDocument ? window.JsvCode.Dom.RenderDocument : window.JsvCode.Dom.BrowserDocument;
|
|
32
|
-
const loadImage = (url) => {
|
|
33
|
-
return new Promise((resolve, reject) => {
|
|
34
|
-
let xhr = new XMLHttpRequest();
|
|
35
|
-
xhr.open("GET", url);
|
|
36
|
-
xhr.responseType = "arraybuffer";
|
|
37
|
-
xhr.onreadystatechange = () => {
|
|
38
|
-
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
39
|
-
if (xhr.status == 200) {
|
|
40
|
-
let apic_data;
|
|
41
|
-
if (url.indexOf(".webp") > 0) {
|
|
42
|
-
apic_data = new WebpData(xhr.response);
|
|
43
|
-
resolve(apic_data);
|
|
44
|
-
} else if (url.indexOf(".gif") > 0) {
|
|
45
|
-
apic_data = new GifData(xhr.response);
|
|
46
|
-
resolve(apic_data);
|
|
47
|
-
} else {
|
|
48
|
-
reject("unsupport file " + url);
|
|
49
|
-
}
|
|
50
|
-
} else {
|
|
51
|
-
reject("get image data failed. " + url + " " + xhr.status);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
xhr.send();
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
const getUrl = (base_url) => {
|
|
59
|
-
let url_trim = base_url.trim();
|
|
60
|
-
if (url_trim.indexOf("http") === 0) {
|
|
61
|
-
return url_trim;
|
|
62
|
-
} else if (url_trim.indexOf("url") === 0) {
|
|
63
|
-
let index_1 = url_trim.indexOf("(");
|
|
64
|
-
let index_2 = url_trim.indexOf(")");
|
|
65
|
-
return url_trim.substring(index_1 + 1, index_2);
|
|
66
|
-
} else {
|
|
67
|
-
return url_trim;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
let viewer = null;
|
|
71
|
-
let canvasProxyRef = shallowRef(null);
|
|
72
|
-
const play = () => {
|
|
73
|
-
viewer?.play(props.loopType, props.loopInfo);
|
|
74
|
-
};
|
|
75
|
-
const stop = (frameCount = -1) => {
|
|
76
|
-
viewer?.stop(frameCount);
|
|
77
|
-
};
|
|
78
|
-
onMounted(() => {
|
|
79
|
-
let domLayoutView = canvasProxyRef.value.jsvGetProxyView();
|
|
80
|
-
domLayoutView.RegisterOnProxyReady(() => {
|
|
81
|
-
let canvas = renderDocument.createElement("canvas");
|
|
82
|
-
canvas.style.width = props.style.width + "px";
|
|
83
|
-
canvas.style.height = props.style.height + "px";
|
|
84
|
-
domLayoutView.HtmlGetElement().appendChild(canvas);
|
|
85
|
-
loadImage(getUrl(props.src)).then((data) => {
|
|
86
|
-
let listener = {
|
|
87
|
-
onstart: props.onStart,
|
|
88
|
-
onend: props.onEnd
|
|
89
|
-
};
|
|
90
|
-
viewer = new Viewer(data, canvas, listener);
|
|
91
|
-
if (props.onLoad) {
|
|
92
|
-
props.onLoad();
|
|
93
|
-
}
|
|
94
|
-
if (props.autoPlay) {
|
|
95
|
-
play();
|
|
96
|
-
}
|
|
97
|
-
}).catch((err) => console.error(err));
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
expose({
|
|
101
|
-
play,
|
|
102
|
-
stop
|
|
103
|
-
});
|
|
104
|
-
return (_ctx, _cache) => {
|
|
105
|
-
return openBlock(), createElementBlock("div", {
|
|
106
|
-
ref_key: "canvasProxyRef",
|
|
107
|
-
ref: canvasProxyRef,
|
|
108
|
-
style: normalizeStyle(props.style)
|
|
109
|
-
}, null, 4);
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export { _sfc_main as default };
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { shallowRef, onMounted, openBlock, createElementBlock, normalizeStyle } from 'vue';
|
|
2
|
-
import { W as WebpData, G as GifData, V as Viewer } from './BrowserApicLib.mjs';
|
|
3
|
-
import { L as LoopType } from '../jsview-vue-common.mjs';
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
+ @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue}
|
|
7
|
-
*/
|
|
8
|
-
const _sfc_main = {
|
|
9
|
-
__name: "BrowserApic2",
|
|
10
|
-
props: {
|
|
11
|
-
src: String,
|
|
12
|
-
style: Object,
|
|
13
|
-
onStart: Function,
|
|
14
|
-
onEnd: Function,
|
|
15
|
-
onLoad: Function
|
|
16
|
-
},
|
|
17
|
-
setup(__props, { expose }) {
|
|
18
|
-
const props = __props;
|
|
19
|
-
let waitForPlayInfo = null;
|
|
20
|
-
const renderDocument = window.JsvCode.Dom.RenderDocument ? window.JsvCode.Dom.RenderDocument : window.JsvCode.Dom.BrowserDocument;
|
|
21
|
-
const loadImage = (url) => {
|
|
22
|
-
return new Promise((resolve, reject) => {
|
|
23
|
-
let xhr = new XMLHttpRequest();
|
|
24
|
-
xhr.open("GET", url);
|
|
25
|
-
xhr.responseType = "arraybuffer";
|
|
26
|
-
xhr.onreadystatechange = () => {
|
|
27
|
-
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
28
|
-
if (xhr.status == 200) {
|
|
29
|
-
let apic_data;
|
|
30
|
-
if (url.indexOf(".webp") > 0) {
|
|
31
|
-
apic_data = new WebpData(xhr.response);
|
|
32
|
-
resolve(apic_data);
|
|
33
|
-
} else if (url.indexOf(".gif") > 0) {
|
|
34
|
-
apic_data = new GifData(xhr.response);
|
|
35
|
-
resolve(apic_data);
|
|
36
|
-
} else {
|
|
37
|
-
reject("unsupport file " + url);
|
|
38
|
-
}
|
|
39
|
-
} else {
|
|
40
|
-
reject("get image data failed. " + url + " " + xhr.status);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
xhr.send();
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
const getUrl = (base_url) => {
|
|
48
|
-
let url_trim = base_url.trim();
|
|
49
|
-
if (url_trim.indexOf("http") === 0) {
|
|
50
|
-
return url_trim;
|
|
51
|
-
} else if (url_trim.indexOf("url") === 0) {
|
|
52
|
-
let index_1 = url_trim.indexOf("(");
|
|
53
|
-
let index_2 = url_trim.indexOf(")");
|
|
54
|
-
return url_trim.substring(index_1 + 1, index_2);
|
|
55
|
-
} else {
|
|
56
|
-
return url_trim;
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
let viewer = null;
|
|
60
|
-
let canvasProxyRef = shallowRef(null);
|
|
61
|
-
onMounted(() => {
|
|
62
|
-
let domLayoutView = canvasProxyRef.value.jsvGetProxyView();
|
|
63
|
-
domLayoutView.RegisterOnProxyReady(() => {
|
|
64
|
-
let canvas = renderDocument.createElement("canvas");
|
|
65
|
-
canvas.style.width = props.style.width + "px";
|
|
66
|
-
canvas.style.height = props.style.height + "px";
|
|
67
|
-
domLayoutView.HtmlGetElement().appendChild(canvas);
|
|
68
|
-
loadImage(getUrl(props.src)).then((data) => {
|
|
69
|
-
let listener = {
|
|
70
|
-
onstart: props.onStart,
|
|
71
|
-
onend: props.onEnd
|
|
72
|
-
};
|
|
73
|
-
viewer = new Viewer(data, canvas, listener);
|
|
74
|
-
if (props.onLoad) {
|
|
75
|
-
props.onLoad();
|
|
76
|
-
}
|
|
77
|
-
if (waitForPlayInfo) {
|
|
78
|
-
viewer.play(...waitForPlayInfo);
|
|
79
|
-
waitForPlayInfo = null;
|
|
80
|
-
}
|
|
81
|
-
}).catch((err) => console.error(err));
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
expose({
|
|
85
|
-
show: (frameIndex = 0) => {
|
|
86
|
-
if (!isNaN(frameIndex)) {
|
|
87
|
-
viewer?.play(LoopType.LOOP_SINGLE, [[0, frameIndex, 0]]);
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
play: (...args) => {
|
|
91
|
-
waitForPlayInfo = args;
|
|
92
|
-
viewer?.play(...args);
|
|
93
|
-
},
|
|
94
|
-
stop: (frameCount = -1) => {
|
|
95
|
-
viewer?.stop(frameCount);
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
return (_ctx, _cache) => {
|
|
99
|
-
return openBlock(), createElementBlock("div", {
|
|
100
|
-
ref_key: "canvasProxyRef",
|
|
101
|
-
ref: canvasProxyRef,
|
|
102
|
-
style: normalizeStyle(props.style)
|
|
103
|
-
}, null, 4);
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export { _sfc_main as default };
|