@shijiu/jsview-vue 2.2.373 → 2.2.426-test.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/jsview-vue.mjs +333 -487
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/CheckType.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusBlock.vue.d.ts +0 -34
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusHub.d.ts +0 -4
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +12 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Const.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Dispatcher.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/ListWidget.vue.d.ts +0 -8
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +161 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidgetSetup.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/PageUpdater.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/RenderItem.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Slide.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/SlotComponent.vue.d.ts +0 -4
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +64 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/VisibleInfo.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/WidgetRectInfo.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/RangeModel.d.ts +0 -4
- package/bin/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/CommonMetroTemplate.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/Fence.d.ts +2 -6
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/ListMetroTemplate.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/MetroTemplate.d.ts +3 -7
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/TemplateItemAdder.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/index.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/WidgetCommon.d.ts +0 -4
- package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/index.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAccount/JsvAccount.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -8
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/CheckType.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/Events.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudio.vue.d.ts +4 -8
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioBridgeProxy.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioProxy.vue.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/ScreenLockManager.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/index.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +13 -0
- package/bin/types/{JsViewPlugin/JsvLatex → utils/JsViewPlugin/JsvAudio}/version.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserDomBuilder.d.ts +0 -4
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserJsvLatex.vue.d.ts +4 -8
- package/bin/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatex.vue.d.ts +4 -28
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexProxy.vue.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/index.d.ts +0 -4
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +13 -0
- package/bin/types/{JsViewPlugin/JsvAudio → utils/JsViewPlugin/JsvLatex}/version.d.ts +0 -5
- package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer-0.9.vue.d.ts +45 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue.d.ts +597 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +420 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +57 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +588 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +358 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +358 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
- package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/index.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ConstSymbol.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugContentShellJBridge.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugTool.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DefaultKeyMap.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/FeatureActive.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeConstDefine.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeHandles.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDemoTester.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicCssStyle.d.ts +0 -17
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicKeyFrames.d.ts +0 -17
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvFederationTools.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvHashHistory.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvImpactTracer.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPerformance.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPreDownloader.d.ts +0 -21
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRefTaker.d.ts +0 -26
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRuntimeBridge.d.ts +0 -8
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleClass.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleSheetsDeclarer.d.ts +0 -18
- package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +61 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureDefines.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureLoadTool.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CommandList.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/Path.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts +0 -22
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Store.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Texture.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/NinePatchHelper.d.ts +0 -4
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/TextureManagerTools.d.ts +0 -4
- package/bin/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +3 -0
- package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/index.d.ts +0 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/ActorControlBase.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMoveControl.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts +0 -20
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -5
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/GifData.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/Viewer.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/WebpData.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvCommonLoopToolBase.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/JsvClipDiv.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
- package/bin/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDragBox/JsvDragBox.vue.d.ts +0 -25
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/JsvDriftScope.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvEnableRenderBreak.vue.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFilterView.vue.d.ts +3 -22
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +75 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFlexCell/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts → utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts} +1 -5
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorControl.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/CallbackManager.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ForgeTypeDefine.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +9 -34
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +3 -25
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +7 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/NexusNode.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetAction.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetCondition.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetState.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SyncLinkManager.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvGrid.vue.d.ts +0 -73
- package/bin/types/utils/JsViewVueWidget/JsvHole.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/Cursor.vue.d.ts +1 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditViewOperator.d.ts +2 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditVisibleArea.d.ts +4 -5
- package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SharedDefine.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SystemTextTools.d.ts +7 -5
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
- package/bin/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvLine/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMaskClipDiv.vue.d.ts +0 -22
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Constant.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/DataTree.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Geometry.d.ts +2 -6
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/JsvMindMap.vue.d.ts +9 -92
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/rtree.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNativeSharedDiv.vue.d.ts +0 -18
- package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +21 -0
- package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterDiv.vue.d.ts +0 -17
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterImage.vue.d.ts +0 -18
- package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
- package/bin/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvQrcode/JsvQrcode.vue.d.ts +1 -26
- package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
- package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
- package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollBox.vue.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollFollow.vue.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollSymbol.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/index.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSector.vue.d.ts +0 -18
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSoundPool.d.ts +0 -42
- package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +38 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/FrameBuidler.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +0 -16
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteTools.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/SpriteController.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/index.d.ts +0 -4
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/JsvSwiper.vue.d.ts +1 -40
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -27
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextBox.vue.d.ts +0 -26
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/CommonType.d.ts +0 -4
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/JsvTextureAnim.vue.d.ts +2 -7
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTouchModeSwitcher.vue.d.ts +3 -28
- package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +6 -31
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/index.d.ts +6 -10
- package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/index.d.ts +2 -6
- package/bin/types/{index.d.ts → utils/index.d.ts} +0 -4
- package/index.d.ts +2 -2
- package/package.json +1 -1
- package/tools/jsview-vue-build.mjs +3 -2
- package/tsconfig.json +27 -0
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.ts +3 -22
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +19 -33
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -1
- package/utils/JsViewEngineWidget/TemplateParser/Fence.ts +2 -2
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -4
- package/utils/JsViewPlugin/JsvAudio/version.js +1 -1
- package/utils/JsViewPlugin/JsvAudio/version.mjs +1 -1
- package/utils/JsViewVueTools/JsvHashHistory.js +26 -29
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +70 -70
- package/utils/JsViewVueTools/JsvTextTools.ts +63 -130
- package/utils/JsViewVueTools/TypeCheckAndSet.ts +66 -0
- package/utils/JsViewVueTools/index.js +1 -1
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +9 -14
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +4 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/index.js +2 -9
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +47 -14
- package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +43 -10
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +22 -9
- package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +41 -27
- package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +3 -48
- package/utils/JsViewVueWidget/JsvPosterImage.vue +1 -2
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +21 -44
- package/utils/JsViewVueWidget/JsvPreload/index.js +2 -13
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
- package/utils/JsViewVueWidget/JsvSoundPool.js +3 -7
- package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +17 -14
- package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +0 -5
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +70 -75
- package/utils/JsViewVueWidget/JsvTextureAnim/index.js +2 -9
- package/utils/JsViewVueWidget/index.js +2 -2
- package/bin/browser/BrowserJsvFragShaderView.vue.mjs +0 -79
- package/bin/browser/BrowserPreload.vue.mjs +0 -139
- package/bin/browser/BrowserQrcode.vue.mjs +0 -176
- package/bin/browser/BrowserSpray.vue.mjs +0 -56
- package/bin/browser/BrowserTextureAnim.vue.mjs +0 -322
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +0 -25
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +0 -435
- package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +0 -6
- package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +0 -5
- package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +0 -5
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +0 -7
- package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +0 -5
- package/bin/types/JsViewVueTools/JsvTextTools.d.ts +0 -95
- package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +0 -102
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +0 -51
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +0 -34
- package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +0 -106
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +0 -106
- package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +0 -60
- package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvHole.d.ts +0 -19
- package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +0 -65
- package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +0 -32
- package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +0 -33
- package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +0 -5
- package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +0 -50
- package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +0 -26
- package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +0 -14
- package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +0 -67
- package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +0 -21
- package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +0 -31
- package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +0 -15
- package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +0 -37
- package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +0 -8
- package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +0 -129
- package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +0 -28
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +0 -8
- package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +0 -29
- package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +0 -78
- package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +0 -70
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +0 -6
- package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +0 -155
- package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +0 -18
- package/tools/config/tsconfig.json +0 -16
- package/utils/JsViewVueTools/TypeCheckAndSet.js +0 -27
- package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +0 -75
- package/utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue +0 -144
- package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +0 -189
- package/utils/JsViewVueWidget/JsvQrcode/index.js +0 -18
- package/utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue +0 -55
- package/utils/JsViewVueWidget/JsvSpray/index.js +0 -17
- package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +0 -359
- /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActionRefObject.d.ts +0 -0
- /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorState.d.ts +0 -0
- /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/CommonType.d.ts +0 -0
|
@@ -71,8 +71,7 @@ export { buildPreloadInfo, buildDownloadInfo };
|
|
|
71
71
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
72
72
|
import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
73
73
|
import { reactive, onBeforeUnmount, watchEffect } from "vue";
|
|
74
|
-
|
|
75
|
-
const CONST_FORMAT_TOKEN = "_JsvP_";
|
|
74
|
+
import { urlCheckSet } from "../../JsViewVueTools";
|
|
76
75
|
|
|
77
76
|
const props = defineProps({
|
|
78
77
|
preloadList: Object,
|
|
@@ -98,37 +97,29 @@ let preloadToken = 1;
|
|
|
98
97
|
let downloadToken = 1;
|
|
99
98
|
|
|
100
99
|
const _releasePreloadView = () => {
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
view_info.callToken
|
|
110
|
-
);
|
|
111
|
-
Forge.sViewStore.remove(id);
|
|
112
|
-
}
|
|
100
|
+
if (loadViewList.preloadViewList.length > 0) {
|
|
101
|
+
for (const view_info of loadViewList.preloadViewList) {
|
|
102
|
+
if (view_info) {
|
|
103
|
+
// 当预加载url为null时view_info为null
|
|
104
|
+
const id = view_info.viewId;
|
|
105
|
+
view_info.textureRef?.DisableBackgroundLoad();
|
|
106
|
+
view_info.textureRef?.UnregisterLoadImageCallback(view_info.callToken);
|
|
107
|
+
Forge.sViewStore.remove(id);
|
|
113
108
|
}
|
|
114
109
|
}
|
|
115
|
-
loadViewList.preloadViewList = [];
|
|
116
|
-
preloadStateList = [];
|
|
117
110
|
}
|
|
111
|
+
loadViewList.preloadViewList = [];
|
|
112
|
+
preloadStateList = [];
|
|
118
113
|
};
|
|
119
114
|
const _releaseDownloadView = () => {
|
|
120
|
-
if (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
view_info.callToken
|
|
129
|
-
);
|
|
130
|
-
Forge.sViewStore.remove(id);
|
|
131
|
-
}
|
|
115
|
+
if (loadViewList.downloadViewList.length > 0) {
|
|
116
|
+
for (const view_info of loadViewList.downloadViewList) {
|
|
117
|
+
if (view_info) {
|
|
118
|
+
// 当预加载url为null时view_info为null
|
|
119
|
+
const id = view_info.viewId;
|
|
120
|
+
view_info.textureRef?.DisableBackgroundLoad();
|
|
121
|
+
view_info.textureRef?.UnregisterLoadImageCallback(view_info.callToken);
|
|
122
|
+
Forge.sViewStore.remove(id);
|
|
132
123
|
}
|
|
133
124
|
}
|
|
134
125
|
}
|
|
@@ -176,14 +167,7 @@ const _getPreloadViewIdList = () => {
|
|
|
176
167
|
"Error:format mismatch, data should comes from function buildPreloadInfo()"
|
|
177
168
|
);
|
|
178
169
|
}
|
|
179
|
-
|
|
180
|
-
let image_url = base_url;
|
|
181
|
-
if (base_url && base_url.indexOf("http") < 0) {
|
|
182
|
-
// 包含http和https两种请求
|
|
183
|
-
if (window.JsView.Dom.UrlRef) {
|
|
184
|
-
image_url = new window.JsView.Dom.UrlRef(base_url).href;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
170
|
+
let image_url = urlCheckSet(item.url);
|
|
187
171
|
let target_size = null;
|
|
188
172
|
if (item.width !== 0 && item.height !== 0) {
|
|
189
173
|
target_size = { width: item.width, height: item.height };
|
|
@@ -267,14 +251,7 @@ const _getDownloadViewIdList = () => {
|
|
|
267
251
|
);
|
|
268
252
|
}
|
|
269
253
|
console.log(`OnDownload get${index} url=${item.url}`);
|
|
270
|
-
|
|
271
|
-
let image_url = base_url;
|
|
272
|
-
if (base_url && base_url.indexOf("http") < 0) {
|
|
273
|
-
// 包含http和https两种请求
|
|
274
|
-
if (window.JsView.Dom.UrlRef) {
|
|
275
|
-
image_url = new window.JsView.Dom.UrlRef(base_url).href;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
254
|
+
let image_url = urlCheckSet(item.url);
|
|
278
255
|
const texture = ForgeHandles.TextureManager.GetDownloadTexture(
|
|
279
256
|
image_url,
|
|
280
257
|
null,
|
|
@@ -6,17 +6,6 @@
|
|
|
6
6
|
* @Description: file content
|
|
7
7
|
*/
|
|
8
8
|
//! 考虑到.vue文件除了export default的component外,还有可能export其他对象,因此使用import * as
|
|
9
|
-
|
|
9
|
+
export * from "./JsvPreload.vue";
|
|
10
|
+
export { default } from "./JsvPreload.vue";
|
|
10
11
|
|
|
11
|
-
let _JsvPreload;
|
|
12
|
-
if (window.JsView) {
|
|
13
|
-
_JsvPreload = JsvPreload.default;
|
|
14
|
-
} else {
|
|
15
|
-
const BrowserPreload = await import("./BrowserPreload.vue");
|
|
16
|
-
_JsvPreload = BrowserPreload.default;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
let buildPreloadInfo = JsvPreload.buildPreloadInfo;
|
|
20
|
-
let buildDownloadInfo = JsvPreload.buildDownloadInfo;
|
|
21
|
-
export default _JsvPreload;
|
|
22
|
-
export { buildPreloadInfo, buildDownloadInfo };
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
23
23
|
import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
24
24
|
import { TextureInstantType } from "../../JsViewVueTools/JsvTextureDefines.ts";
|
|
25
|
+
import { urlCheckSet } from "../../JsViewVueTools/TypeCheckAndSet.ts";
|
|
25
26
|
|
|
26
27
|
export default {
|
|
27
28
|
props: {
|
|
@@ -96,7 +97,7 @@ export default {
|
|
|
96
97
|
if (this.imageSettings && calculatedImageSettings) {
|
|
97
98
|
let url = this.imageSettings.src;
|
|
98
99
|
if (typeof url === "string") {
|
|
99
|
-
url =
|
|
100
|
+
url = urlCheckSet(this.imageSettings.src);
|
|
100
101
|
}
|
|
101
102
|
const img_texture = texture_manager.GetImage(url);
|
|
102
103
|
const img_view = new Forge.LayoutView(
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
* 功能: 设置播放优先级
|
|
41
41
|
*/
|
|
42
42
|
|
|
43
|
+
import { urlCheckSet } from "../JsViewVueTools";
|
|
44
|
+
|
|
43
45
|
const supportSoundPool = !!window.SoundPool;
|
|
44
46
|
class AudioController {
|
|
45
47
|
constructor(soundPool, soundId, url) {
|
|
@@ -165,13 +167,7 @@ class JsvSoundPool {
|
|
|
165
167
|
return;
|
|
166
168
|
}
|
|
167
169
|
|
|
168
|
-
let realUrl;
|
|
169
|
-
if (window.JsView) {
|
|
170
|
-
// jsview上
|
|
171
|
-
realUrl = new window.JsView.Dom.UrlRef(url).href;
|
|
172
|
-
} else {
|
|
173
|
-
realUrl = url;
|
|
174
|
-
}
|
|
170
|
+
let realUrl = urlCheckSet(url);
|
|
175
171
|
if (this._SoundIdMap[realUrl]) {
|
|
176
172
|
this._SoundIdMap[realUrl].referCount++;
|
|
177
173
|
const controller = new AudioController(this._SoundPool, this._SoundIdMap[realUrl].soundId);
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
<script>
|
|
43
43
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
44
44
|
import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
45
|
+
import { urlCheckSet } from "../../JsViewVueTools";
|
|
45
46
|
|
|
46
47
|
let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
|
|
47
48
|
if (!pointRes) {
|
|
@@ -54,19 +55,13 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
|
|
|
54
55
|
texture_manager.GetColorTexture(pointRes)
|
|
55
56
|
);
|
|
56
57
|
} 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
|
-
}
|
|
58
|
+
let image_url = urlCheckSet(pointRes);
|
|
64
59
|
texture_setting = new Forge.ExternalTextureSetting(
|
|
65
60
|
texture_manager.GetImage2(image_url, false, null, "RGB_8888", null)
|
|
66
61
|
);
|
|
67
62
|
}
|
|
68
63
|
const spray_view = new Forge.SprayView(texture_setting);
|
|
69
|
-
let add_speed
|
|
64
|
+
let add_speed = 0.1;
|
|
70
65
|
if (typeof sprayStyle.particleAddSpeed == "number") {
|
|
71
66
|
add_speed = sprayStyle.particleAddSpeed;
|
|
72
67
|
}
|
|
@@ -94,16 +89,24 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
|
|
|
94
89
|
alphaMin = sprayStyle.alphaMin;
|
|
95
90
|
alphaMax = sprayStyle.alphaMax;
|
|
96
91
|
}
|
|
97
|
-
let lifeMin = sprayStyle.lifeMin,
|
|
92
|
+
let lifeMin = sprayStyle.lifeMin,
|
|
93
|
+
lifeMax = sprayStyle.lifeMax;
|
|
98
94
|
if (sprayStyle.lifeMax > 50 * 1000) {
|
|
99
|
-
console.warn(
|
|
95
|
+
console.warn(
|
|
96
|
+
"JsvSpray: particle maximum lifetime is 50000ms, current value is",
|
|
97
|
+
sprayStyle.lifeMax
|
|
98
|
+
);
|
|
100
99
|
/**某些设备上float值过大会导致精度问题, 因此粒子生命需要限制范围*/
|
|
101
100
|
lifeMin = sprayStyle.lifeMin > 50000 ? 50000 : sprayStyle.lifeMin;
|
|
102
101
|
lifeMax = sprayStyle.lifeMax > 50000 ? 50000 : sprayStyle.lifeMax;
|
|
103
102
|
}
|
|
104
103
|
|
|
105
|
-
let angleMin = 0,
|
|
106
|
-
|
|
104
|
+
let angleMin = 0,
|
|
105
|
+
angleMax = 0;
|
|
106
|
+
if (
|
|
107
|
+
typeof sprayStyle.angleMin == "number" &&
|
|
108
|
+
typeof sprayStyle.angleMax == "number"
|
|
109
|
+
) {
|
|
107
110
|
if (sprayStyle.angleMin <= sprayStyle.angleMax) {
|
|
108
111
|
angleMin = (sprayStyle.angleMin / 180) * 3.1415;
|
|
109
112
|
angleMax = (sprayStyle.angleMax / 180) * 3.1415;
|
|
@@ -133,7 +136,7 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
|
|
|
133
136
|
alphaMin,
|
|
134
137
|
alphaMax,
|
|
135
138
|
angleMin,
|
|
136
|
-
angleMax
|
|
139
|
+
angleMax
|
|
137
140
|
);
|
|
138
141
|
const view_width =
|
|
139
142
|
sprayStyle.deltaWidth === 0 ? 1 : 2 * sprayStyle.deltaWidth;
|
|
@@ -204,4 +207,4 @@ export default {
|
|
|
204
207
|
:style="{ width: size.width, height: size.height }"
|
|
205
208
|
:data-jsv-vw-innerview="viewId"
|
|
206
209
|
></div>
|
|
207
|
-
</template>
|
|
210
|
+
</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,
|
|
@@ -84,11 +84,6 @@ const TexAlignAnchor = {
|
|
|
84
84
|
};
|
|
85
85
|
export { TexAlignAnchor };
|
|
86
86
|
|
|
87
|
-
const STATE_IDLE = 0;
|
|
88
|
-
const STATE_RUNNING = 1;
|
|
89
|
-
const STATE_PAUSED = 2;
|
|
90
|
-
const STATE_END = 3;
|
|
91
|
-
|
|
92
87
|
export default {
|
|
93
88
|
props: {
|
|
94
89
|
src: String,
|
|
@@ -133,7 +128,7 @@ export default {
|
|
|
133
128
|
},
|
|
134
129
|
setup() {
|
|
135
130
|
return {
|
|
136
|
-
|
|
131
|
+
forgeAnimation: null,
|
|
137
132
|
innerViewId: -1,
|
|
138
133
|
};
|
|
139
134
|
},
|
|
@@ -249,10 +244,7 @@ export default {
|
|
|
249
244
|
return new Forge.LayoutView(texture_set);
|
|
250
245
|
},
|
|
251
246
|
|
|
252
|
-
_onAnimationEnd(
|
|
253
|
-
if (normal_end) {
|
|
254
|
-
this.runningState = STATE_END;
|
|
255
|
-
}
|
|
247
|
+
_onAnimationEnd() {
|
|
256
248
|
this.onAnimationEnd?.();
|
|
257
249
|
},
|
|
258
250
|
|
|
@@ -281,34 +273,9 @@ export default {
|
|
|
281
273
|
}
|
|
282
274
|
},
|
|
283
275
|
|
|
284
|
-
_buildAnimation() {
|
|
285
|
-
if (this.animation) {
|
|
286
|
-
let anim = new Forge.CssKeyframeAnimation(
|
|
287
|
-
"@keyframes texAnimDef" + this.animation,
|
|
288
|
-
this.duration,
|
|
289
|
-
null,
|
|
290
|
-
1,
|
|
291
|
-
1
|
|
292
|
-
);
|
|
293
|
-
anim.EnableDelay(this.delay).SetRepeat(this.repeat);
|
|
294
|
-
anim.Enable(Forge.AnimationEnable.ReleaseAfterEndCallback);
|
|
295
|
-
anim.SetAnimationListener(
|
|
296
|
-
new Forge.AnimationListener(null, this._onAnimationEnd, null)
|
|
297
|
-
);
|
|
298
|
-
|
|
299
|
-
return anim;
|
|
300
|
-
} else {
|
|
301
|
-
return null;
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
|
|
305
276
|
start() {
|
|
306
|
-
if (this.innerView) {
|
|
307
|
-
|
|
308
|
-
if (anim) {
|
|
309
|
-
this.runningState = STATE_RUNNING;
|
|
310
|
-
this.innerView.StartTextureAnimation(anim);
|
|
311
|
-
}
|
|
277
|
+
if (this.forgeAnimation && this.innerView) {
|
|
278
|
+
this.innerView.StartTextureAnimation(this.forgeAnimation);
|
|
312
279
|
}
|
|
313
280
|
},
|
|
314
281
|
|
|
@@ -331,41 +298,55 @@ export default {
|
|
|
331
298
|
},
|
|
332
299
|
|
|
333
300
|
created() {
|
|
334
|
-
|
|
335
|
-
const textureManager = ForgeHandles.TextureManager;
|
|
301
|
+
const textureManager = ForgeHandles.TextureManager;
|
|
336
302
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
303
|
+
// 1.获得主view的展示内容图片 texture
|
|
304
|
+
let image_url = urlCheckSet(this.src);
|
|
305
|
+
let view_texture = textureManager.GetImage2(
|
|
306
|
+
image_url,
|
|
307
|
+
false,
|
|
308
|
+
null,
|
|
309
|
+
"RGB_8888",
|
|
310
|
+
null
|
|
311
|
+
);
|
|
312
|
+
// 1.1 兼容border转为decorate
|
|
313
|
+
let decorate = this.$props.decorate;
|
|
314
|
+
// if (this.$props.borderRadius) {
|
|
315
|
+
// decorate = this._readRadius(this.$props.borderRadius);
|
|
316
|
+
// }
|
|
351
317
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
// 5. inner view标准处理
|
|
318
|
+
// 2.创建view
|
|
319
|
+
this.innerView = this._createForgeView(view_texture, decorate);
|
|
320
|
+
// 3.设置texture基本形变
|
|
321
|
+
if (this.transform) {
|
|
322
|
+
this.innerView.ResetTextureCssTransform(
|
|
323
|
+
this.transform,
|
|
324
|
+
this.transformOrigin
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
this._updateTexCoord();
|
|
364
328
|
|
|
365
|
-
|
|
366
|
-
|
|
329
|
+
// 4.设置texture的动画形变
|
|
330
|
+
if (this.animation) {
|
|
331
|
+
this.forgeAnimation = new Forge.CssKeyframeAnimation(
|
|
332
|
+
"@keyframes texAnimDef" + this.animation,
|
|
333
|
+
this.duration,
|
|
334
|
+
null,
|
|
335
|
+
1,
|
|
336
|
+
1
|
|
337
|
+
);
|
|
338
|
+
this.forgeAnimation.EnableDelay(this.delay).SetRepeat(this.repeat);
|
|
339
|
+
this.forgeAnimation.Enable(Forge.AnimationEnable.ReleaseAfterEndCallback);
|
|
340
|
+
this.forgeAnimation.SetAnimationListener(
|
|
341
|
+
new Forge.AnimationListener(null, this._onAnimationEnd, null)
|
|
367
342
|
);
|
|
343
|
+
} else {
|
|
344
|
+
this.forgeAnimation = null;
|
|
368
345
|
}
|
|
346
|
+
|
|
347
|
+
// 5. inner view标准处理
|
|
348
|
+
|
|
349
|
+
this.innerViewId = Forge.sViewStore.add(new Forge.ViewInfo(this.innerView));
|
|
369
350
|
},
|
|
370
351
|
beforeUnmount() {
|
|
371
352
|
if (this.innerViewId !== -1) {
|
|
@@ -379,19 +360,33 @@ export default {
|
|
|
379
360
|
}
|
|
380
361
|
},
|
|
381
362
|
activated() {
|
|
382
|
-
if (this.innerView
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
363
|
+
if (this.innerView) {
|
|
364
|
+
if (this.animation && this.forgeAnimation == null) {
|
|
365
|
+
this.forgeAnimation = new Forge.CssKeyframeAnimation(
|
|
366
|
+
"@keyframes texAnimDef" + this.animation,
|
|
367
|
+
this.duration,
|
|
368
|
+
null,
|
|
369
|
+
1,
|
|
370
|
+
1
|
|
371
|
+
);
|
|
372
|
+
this.forgeAnimation.EnableDelay(this.delay).SetRepeat(this.repeat);
|
|
373
|
+
this.forgeAnimation.Enable(
|
|
374
|
+
Forge.AnimationEnable.ReleaseAfterEndCallback
|
|
375
|
+
);
|
|
376
|
+
this.forgeAnimation.SetAnimationListener(
|
|
377
|
+
new Forge.AnimationListener(null, this._onAnimationEnd, null)
|
|
378
|
+
);
|
|
379
|
+
this.innerView.StartTextureAnimation(this.forgeAnimation);
|
|
380
|
+
} else {
|
|
381
|
+
this.forgeAnimation = null;
|
|
382
|
+
}
|
|
386
383
|
}
|
|
387
384
|
},
|
|
388
385
|
deactivated() {
|
|
389
386
|
if (this.innerView) {
|
|
390
387
|
this.innerView.StopTextureAnimation();
|
|
391
|
-
if (this.runningState == STATE_RUNNING) {
|
|
392
|
-
this.runningState = STATE_PAUSED;
|
|
393
|
-
}
|
|
394
388
|
}
|
|
389
|
+
this.forgeAnimation = null;
|
|
395
390
|
},
|
|
396
391
|
};
|
|
397
392
|
</script>
|
|
@@ -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";
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { onMounted, onUnmounted, openBlock, createElementBlock, normalizeStyle } from 'vue';
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
+ @file {@link file://./../../../../utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue}
|
|
5
|
-
*/
|
|
6
|
-
const _sfc_main = {
|
|
7
|
-
__name: "BrowserJsvFragShaderView",
|
|
8
|
-
props: {
|
|
9
|
-
style: {
|
|
10
|
-
type: Object,
|
|
11
|
-
required: true
|
|
12
|
-
},
|
|
13
|
-
duration: {
|
|
14
|
-
type: Number,
|
|
15
|
-
default: -1
|
|
16
|
-
},
|
|
17
|
-
autoplay: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: false
|
|
20
|
-
},
|
|
21
|
-
shaderStr: {
|
|
22
|
-
type: String,
|
|
23
|
-
required: true
|
|
24
|
-
},
|
|
25
|
-
// [{ name: string, value: number }]
|
|
26
|
-
uniforms: {
|
|
27
|
-
type: Array
|
|
28
|
-
},
|
|
29
|
-
// [{ name: string, type: number, resource: object/string }]
|
|
30
|
-
textures: {
|
|
31
|
-
type: Array
|
|
32
|
-
},
|
|
33
|
-
onEnd: {
|
|
34
|
-
type: Function
|
|
35
|
-
},
|
|
36
|
-
onStart: {
|
|
37
|
-
type: Function
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
setup(__props, { expose }) {
|
|
41
|
-
const props = __props;
|
|
42
|
-
let vMounted = false;
|
|
43
|
-
onMounted(() => {
|
|
44
|
-
vMounted = true;
|
|
45
|
-
});
|
|
46
|
-
onUnmounted(() => {
|
|
47
|
-
vMounted = false;
|
|
48
|
-
});
|
|
49
|
-
expose({
|
|
50
|
-
startAnim: () => {
|
|
51
|
-
props.onStart?.();
|
|
52
|
-
setTimeout(() => {
|
|
53
|
-
if (vMounted) {
|
|
54
|
-
props.onEnd?.();
|
|
55
|
-
}
|
|
56
|
-
}, 0);
|
|
57
|
-
},
|
|
58
|
-
stopAnim: () => {
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
return (_ctx, _cache) => {
|
|
62
|
-
return openBlock(), createElementBlock("div", {
|
|
63
|
-
style: normalizeStyle({
|
|
64
|
-
left: __props.style.left,
|
|
65
|
-
top: __props.style.top,
|
|
66
|
-
width: __props.style.width,
|
|
67
|
-
height: __props.style.height,
|
|
68
|
-
backgroundColor: "#00000077",
|
|
69
|
-
fontSize: 50,
|
|
70
|
-
color: "#ffffff",
|
|
71
|
-
textAlign: "center",
|
|
72
|
-
lineHeight: __props.style.height
|
|
73
|
-
})
|
|
74
|
-
}, " 浏览器端未支持JsvFragShaderView ", 4);
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export { _sfc_main as default };
|