@shijiu/jsview-vue 2.3.151-test.0 → 2.3.728-alpha.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/browser/BrowserJsvLatex.vue.mjs +9 -90
- package/bin/jsview-vue.mjs +5964 -1833
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +18 -2
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +225 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +225 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +5 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +25 -2
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +7 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +25 -5
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +2 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +1 -1
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +70 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +24 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +19 -0
- package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +42 -0
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +3 -3
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +12 -4
- package/bin/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +9 -7
- package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +17 -7
- package/bin/types/utils/JsViewEngineWidget/index.d.ts +3 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +3 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +29 -2
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +107 -4
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +94 -18
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +24 -23
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +77 -20
- package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +77 -20
- package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
- package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
- package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +10 -3
- package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +43 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +54 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +13 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +76 -26
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +49 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/index.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +12 -22
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +12 -22
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +101 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +61 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +58 -0
- package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +2 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +2 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +3 -1
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +55 -12
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +178 -35
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +119 -17
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +9 -3
- package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
- package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +22 -1
- package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +1 -1
- package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +2 -0
- package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +5 -2
- package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +1 -1
- package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +39 -1
- package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +15 -3
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +22 -96
- package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +6 -0
- package/bin/types/utils/JsViewVueWidget/{JsvPosterDiv.vue.d.ts → TypesDiv/JsvPosterDiv.vue.d.ts} +9 -0
- package/bin/types/utils/JsViewVueWidget/{JsvPosterImage.vue.d.ts → TypesDiv/JsvPosterImage.vue.d.ts} +15 -3
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +90 -0
- package/bin/types/utils/JsViewVueWidget/index.d.ts +6 -3
- package/dist/types/utils/JsViewEngineWidget/CheckType.d.ts +7 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +106 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +128 -0
- package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +25 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +23 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +12 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +9 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +16 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +412 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +751 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +9 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +82 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +31 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +80 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Slide.d.ts +25 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +52 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +69 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +6 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +20 -0
- package/dist/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +21 -0
- package/dist/types/utils/JsViewEngineWidget/RangeModel.d.ts +166 -0
- package/dist/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +74 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +28 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +23 -0
- package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +46 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +42 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/Fence.d.ts +62 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +21 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +103 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +28 -0
- package/dist/types/utils/JsViewEngineWidget/TemplateParser/index.d.ts +8 -0
- package/dist/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +160 -0
- package/dist/types/utils/JsViewEngineWidget/index.d.ts +21 -0
- package/dist/types/utils/JsViewPlugin/JsvAccount/JsvAccount.d.ts +46 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +22 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +212 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/CheckType.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +17 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +22 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +12 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +6 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +9 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/index.d.ts +7 -0
- package/dist/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
- package/{bin/types/utils/JsViewPlugin/JsvLatex → dist/types/utils/JsViewPlugin/JsvAudio}/version.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +17 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +18 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +46 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +8 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +9 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +5 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/index.d.ts +8 -0
- package/dist/types/utils/JsViewPlugin/JsvLatex/version.d.mts +40 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +523 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +119 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +664 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-0.9.vue.d.ts +45 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue.d.ts +597 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +415 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +415 -0
- package/dist/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
- package/dist/types/utils/JsViewPlugin/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueTools/BlobApi.d.ts +42 -0
- package/dist/types/utils/JsViewVueTools/ConstSymbol.d.ts +6 -0
- package/dist/types/utils/JsViewVueTools/DebugContentShellJBridge.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/DebugTool.d.ts +12 -0
- package/dist/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +14 -0
- package/dist/types/utils/JsViewVueTools/FeatureActive.d.ts +15 -0
- package/dist/types/utils/JsViewVueTools/ForgeConstDefine.d.ts +15 -0
- package/dist/types/utils/JsViewVueTools/ForgeHandles.d.ts +11 -0
- package/dist/types/utils/JsViewVueTools/JsvDynamicCssStyle.d.ts +33 -0
- package/dist/types/utils/JsViewVueTools/JsvDynamicKeyFrames.d.ts +40 -0
- package/dist/types/utils/JsViewVueTools/JsvFederationTools.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvHashHistory.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvImpactTracer.d.ts +44 -0
- package/dist/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/JsvPerformance.d.ts +9 -0
- package/dist/types/utils/JsViewVueTools/JsvPreDownloader.d.ts +55 -0
- package/dist/types/utils/JsViewVueTools/JsvRefTaker.d.ts +52 -0
- package/dist/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +378 -0
- package/dist/types/utils/JsViewVueTools/JsvStyleClass.d.ts +35 -0
- package/dist/types/utils/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +35 -0
- package/dist/types/utils/JsViewVueTools/JsvTextTools.d.ts +66 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureDefines.d.ts +10 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +47 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +99 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +20 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +58 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +113 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +17 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +170 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +16 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +31 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +53 -0
- package/dist/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueTools/NinePatchHelper.d.ts +25 -0
- package/dist/types/utils/JsViewVueTools/TextureManagerTools.d.ts +11 -0
- package/dist/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +7 -0
- package/dist/types/utils/JsViewVueTools/index.d.ts +29 -0
- package/dist/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +124 -0
- package/dist/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +148 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +35 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +102 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +37 -0
- package/dist/types/utils/JsViewVueWidget/JsvActorMove/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +77 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +54 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +44 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +17 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +26 -0
- package/dist/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +74 -0
- package/dist/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +34 -0
- package/dist/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +33 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +105 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +65 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +62 -0
- package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +108 -0
- package/dist/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +61 -0
- package/dist/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +91 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +106 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +100 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +108 -0
- package/dist/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +63 -0
- package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.d.ts +4 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +228 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorState.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +106 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +107 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +11 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +12 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +118 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +244 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +169 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +22 -0
- package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +24 -0
- package/dist/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +241 -0
- package/dist/types/utils/JsViewVueWidget/JsvHole.d.ts +19 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +52 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +98 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +20 -0
- package/dist/types/utils/JsViewVueWidget/JsvInput/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +32 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvLine/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +33 -0
- package/dist/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +101 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/Constant.d.ts +13 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/DataTree.d.ts +75 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +72 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +235 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +5 -0
- package/dist/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +44 -0
- package/dist/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +93 -0
- package/dist/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +55 -0
- package/dist/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +68 -0
- package/dist/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +31 -0
- package/dist/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +85 -0
- package/dist/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +37 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +129 -0
- package/dist/types/utils/JsViewVueWidget/JsvRipple/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +28 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +278 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +157 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvScrollBox/index.d.ts +7 -0
- package/dist/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +30 -0
- package/dist/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +76 -0
- package/dist/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +114 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +58 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +18 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +70 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +85 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +15 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +21 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/index.d.ts +9 -0
- package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +141 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +248 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +181 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +121 -0
- package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +121 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +6 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +38 -0
- package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +8 -0
- package/dist/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
- package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +109 -0
- package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +88 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +94 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +115 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +94 -0
- package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +115 -0
- package/dist/types/utils/JsViewVueWidget/index.d.ts +53 -0
- package/dist/types/utils/index.d.ts +8 -0
- package/dist/utils/browser/BrowserAudio.vue.mjs +258 -0
- package/dist/utils/browser/BrowserJsvLatex.vue.mjs +64 -0
- package/dist/utils/export-sfc.mjs +12 -0
- package/dist/utils/index.mjs +29000 -0
- package/dist/utils/jsview-vue-common.mjs +39 -0
- package/package.json +1 -1
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +32 -16
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +24 -2
- package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +193 -89
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +325 -155
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.ts +15 -0
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +1035 -370
- package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +138 -41
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -0
- package/utils/JsViewEngineWidget/MetroWidget/Utils.ts +6 -0
- package/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.ts +2 -1
- package/utils/JsViewEngineWidget/RectUtils.js +1 -1
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue +62 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.ts +260 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.ts +32 -0
- package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.ts +236 -0
- package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +329 -230
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +54 -5
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +109 -41
- package/utils/JsViewEngineWidget/WidgetCommon.ts +17 -7
- package/utils/JsViewEngineWidget/index.ts +7 -2
- package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
- package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
- package/utils/JsViewPlugin/JsvLatex/Color.ts +104 -39
- package/utils/JsViewPlugin/JsvLatex/GetVersion.js +65 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +71 -17
- package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
- package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +14 -2
- package/utils/JsViewPlugin/JsvLatex/PluginLoader.js +63 -31
- package/utils/JsViewPlugin/JsvLatex/version.mjs +26 -13
- package/utils/JsViewPlugin/JsvPlayer/GetVersion.js +2 -1
- package/utils/JsViewPlugin/JsvPlayer/JsvMedia.js +402 -23
- package/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.js +100 -0
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +363 -468
- package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue → JsvPlayerBrowser-wasm.vue} +60 -10
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue +511 -0
- package/utils/JsViewPlugin/JsvPlayer/index-0.9.js +52 -10
- package/utils/JsViewPlugin/JsvPlayer/index.js +58 -9
- package/utils/JsViewPlugin/JsvPlayer/package.json +8 -0
- package/utils/JsViewVueTools/BlobApi.ts +55 -0
- package/utils/JsViewVueTools/FeatureActive.ts +3 -0
- package/utils/JsViewVueTools/ForgeHandles.ts +3 -0
- package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +40 -19
- package/utils/JsViewVueTools/JsvTextTools.ts +9 -1
- package/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.ts +180 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.ts +1 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.ts +304 -0
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -0
- package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +16 -1
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +154 -69
- package/utils/JsViewVueTools/JsvTextureStore/Store.ts +1 -1
- package/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.ts +92 -0
- package/utils/JsViewVueTools/JsvTextureStore/index.js +2 -0
- package/utils/JsViewVueTools/index.js +3 -1
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +111 -86
- package/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.ts +212 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.ts +146 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.ts +748 -0
- package/utils/JsViewVueWidget/JsvDomRenderer/index.ts +1 -0
- package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +10 -1
- package/utils/JsViewVueWidget/JsvEnableRenderBreak.vue +6 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +11 -5
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +23 -11
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +269 -26
- package/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts +2 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.ts +24 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.ts +3 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +5 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.ts +10 -2
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +223 -100
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +245 -64
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +95 -29
- package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +27 -5
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +11 -2
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +29 -2
- package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +24 -7
- package/utils/JsViewVueWidget/JsvMarquee.vue +1 -1
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +12 -10
- package/utils/JsViewVueWidget/JsvNinePatch.vue +22 -12
- package/utils/JsViewVueWidget/JsvPieChart.vue +93 -70
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +32 -29
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +56 -25
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +11 -11
- package/utils/JsViewVueWidget/JsvSector.vue +66 -28
- package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +315 -305
- package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +56 -14
- package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +8 -6
- package/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue +54 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue +88 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue +177 -0
- package/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue +267 -0
- package/utils/JsViewVueWidget/index.js +7 -2
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.d.ts +0 -7
- package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
- package/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.ts +0 -36
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
- package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
- /package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +0 -0
- /package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue.d.ts → JsvFreeMoveActor.vue.d.ts} +0 -0
- /package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
|
@@ -6,6 +6,25 @@
|
|
|
6
6
|
* @Description: file content
|
|
7
7
|
-->
|
|
8
8
|
<script>
|
|
9
|
+
const TexAlignAnchor = {
|
|
10
|
+
LEFT_TOP: 1,
|
|
11
|
+
CENTER_TOP: 2,
|
|
12
|
+
RIGHT_TOP: 3,
|
|
13
|
+
LEFT_MIDDLE: 4,
|
|
14
|
+
CENTER: 5,
|
|
15
|
+
RIGHT_MIDDLE: 6,
|
|
16
|
+
LEFT_BOTTOM: 7,
|
|
17
|
+
CENTER_BOTTOM: 8,
|
|
18
|
+
RIGHT_BOTTOM: 9,
|
|
19
|
+
};
|
|
20
|
+
export { TexAlignAnchor };
|
|
21
|
+
export default {
|
|
22
|
+
TexAlignAnchor,
|
|
23
|
+
};
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<script setup>
|
|
27
|
+
import { ref, shallowRef, watch, onMounted, onBeforeUnmount, onActivated, onDeactivated } from "vue";
|
|
9
28
|
import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
|
|
10
29
|
import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
|
|
11
30
|
import {
|
|
@@ -71,330 +90,321 @@ import {
|
|
|
71
90
|
* start
|
|
72
91
|
* @description 开始动画
|
|
73
92
|
*/
|
|
74
|
-
const TexAlignAnchor = {
|
|
75
|
-
LEFT_TOP: 1,
|
|
76
|
-
CENTER_TOP: 2,
|
|
77
|
-
RIGHT_TOP: 3,
|
|
78
|
-
LEFT_MIDDLE: 4,
|
|
79
|
-
CENTER: 5,
|
|
80
|
-
RIGHT_MIDDLE: 6,
|
|
81
|
-
LEFT_BOTTOM: 7,
|
|
82
|
-
CENTER_BOTTOM: 8,
|
|
83
|
-
RIGHT_BOTTOM: 9,
|
|
84
|
-
};
|
|
85
|
-
export { TexAlignAnchor };
|
|
86
|
-
|
|
87
93
|
const STATE_IDLE = 0;
|
|
88
94
|
const STATE_RUNNING = 1;
|
|
89
95
|
const STATE_PAUSED = 2;
|
|
90
96
|
const STATE_END = 3;
|
|
91
97
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
default: 0,
|
|
109
|
-
},
|
|
110
|
-
delay: {
|
|
111
|
-
type: Number,
|
|
112
|
-
default: 0,
|
|
113
|
-
},
|
|
114
|
-
easing: {
|
|
115
|
-
type: String,
|
|
116
|
-
default: "linear",
|
|
117
|
-
},
|
|
118
|
-
autoStart: {
|
|
119
|
-
type: Boolean,
|
|
120
|
-
default: false,
|
|
121
|
-
},
|
|
122
|
-
texCoord: {
|
|
123
|
-
type: Object,
|
|
124
|
-
},
|
|
98
|
+
const props = defineProps({
|
|
99
|
+
src: String,
|
|
100
|
+
top: Number,
|
|
101
|
+
left: Number,
|
|
102
|
+
width: Number,
|
|
103
|
+
height: Number,
|
|
104
|
+
borderRadius: [String, Number],
|
|
105
|
+
decorate: Object,
|
|
106
|
+
animation: String,
|
|
107
|
+
duration: Number,
|
|
108
|
+
transform: String,
|
|
109
|
+
transformOrigin: String,
|
|
110
|
+
onAnimationEnd: Function,
|
|
111
|
+
repeat: {
|
|
112
|
+
type: Number,
|
|
113
|
+
default: 0,
|
|
125
114
|
},
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
this._updateTexCoord();
|
|
130
|
-
},
|
|
131
|
-
deep: true,
|
|
132
|
-
},
|
|
133
|
-
transform: {
|
|
134
|
-
handler(newValue, oldValue) {
|
|
135
|
-
this.innerView.ResetTextureCssTransform(newValue, this.transformOrigin);
|
|
136
|
-
},
|
|
137
|
-
},
|
|
115
|
+
delay: {
|
|
116
|
+
type: Number,
|
|
117
|
+
default: 0,
|
|
138
118
|
},
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
innerViewId: -1,
|
|
143
|
-
};
|
|
119
|
+
easing: {
|
|
120
|
+
type: String,
|
|
121
|
+
default: "linear",
|
|
144
122
|
},
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
return this._createLayoutViewWithDecorate(
|
|
149
|
-
view_texture,
|
|
150
|
-
decorate_setting
|
|
151
|
-
);
|
|
152
|
-
} else {
|
|
153
|
-
// 无特异修饰类型的view
|
|
154
|
-
let texture_set = new Forge.ExternalTextureSetting(view_texture);
|
|
155
|
-
return new Forge.LayoutView(texture_set);
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
_readRadius(setting) {
|
|
160
|
-
if (typeof setting == "number") {
|
|
161
|
-
return {
|
|
162
|
-
type: DECORATE_BORDER_RADIUS,
|
|
163
|
-
topLeft: setting,
|
|
164
|
-
topRight: setting,
|
|
165
|
-
bottomRight: setting,
|
|
166
|
-
bottomLeft: setting,
|
|
167
|
-
};
|
|
168
|
-
} else if (typeof setting == "string" && setting.length > 0) {
|
|
169
|
-
const pattern = /\d+/g;
|
|
170
|
-
let match = setting.match(pattern);
|
|
171
|
-
if (match?.length > 0) {
|
|
172
|
-
let top_left = match[0];
|
|
173
|
-
let top_right = match.length > 1 ? match[1] : top_left;
|
|
174
|
-
return {
|
|
175
|
-
type: DECORATE_BORDER_RADIUS,
|
|
176
|
-
topLeft: top_left,
|
|
177
|
-
topRight: top_right,
|
|
178
|
-
bottomRight: match.length > 2 ? match[2] : top_left,
|
|
179
|
-
bottomLeft: match.length > 3 ? match[3] : top_right,
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
return null;
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
_createLayoutViewWithDecorate(view_texture, decorate_setting) {
|
|
187
|
-
if (decorate_setting && typeof decorate_setting == "object") {
|
|
188
|
-
switch (decorate_setting.type) {
|
|
189
|
-
case DECORATE_NINEPATCH_ALPHA_MIX: {
|
|
190
|
-
// NinePatch alpha mix view
|
|
191
|
-
return this._createNinePatchAlphaMixView(
|
|
192
|
-
view_texture,
|
|
193
|
-
decorate_setting
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
case DECORATE_BORDER_RADIUS: {
|
|
197
|
-
// 圆角view
|
|
198
|
-
return this._createBorderRadius(view_texture, decorate_setting);
|
|
199
|
-
}
|
|
200
|
-
default:
|
|
201
|
-
console.error("Unknown set=", decorate_setting);
|
|
202
|
-
return null;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
_createNinePatchAlphaMixView(view_texture, decorate_setting) {
|
|
208
|
-
const textureManager = ForgeHandles.TextureManager;
|
|
209
|
-
|
|
210
|
-
// NinePatch alpha mix view
|
|
211
|
-
let texture_set = new Forge.ExternalTextureSetting(view_texture);
|
|
212
|
-
|
|
213
|
-
let nine_patch_view = new Forge.NinePatchView(texture_set);
|
|
214
|
-
|
|
215
|
-
// alpha mix
|
|
216
|
-
if (decorate_setting.url) {
|
|
217
|
-
let converted_url = urlCheckSet(decorate_setting.url);
|
|
218
|
-
let view_texture = textureManager.GetImage2(converted_url);
|
|
219
|
-
nine_patch_view.EnableAlphaMix(view_texture);
|
|
220
|
-
} else {
|
|
221
|
-
console.error("ninepatch url not set");
|
|
222
|
-
return null;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
// calculate padding and repeat
|
|
226
|
-
let view_set = toNinePatchForgeViewSet(
|
|
227
|
-
numberCheckSet(decorate_setting.imageWidth),
|
|
228
|
-
numberCheckSet(decorate_setting.centerWidth),
|
|
229
|
-
decorate_setting.imageDspWidth,
|
|
230
|
-
numberCheckSet(decorate_setting.borderOutset)
|
|
231
|
-
);
|
|
232
|
-
nine_patch_view.SetPadding(view_set.padding, view_set.padding); // 方图横纵一致
|
|
233
|
-
nine_patch_view.SetRepeat(view_set.repeat, view_set.repeat); // 方图横纵一致
|
|
234
|
-
nine_patch_view.SetImageDspSize(
|
|
235
|
-
view_set.imageDspSize,
|
|
236
|
-
view_set.imageDspSize
|
|
237
|
-
); // 方图横纵一致
|
|
238
|
-
|
|
239
|
-
return nine_patch_view;
|
|
240
|
-
},
|
|
241
|
-
|
|
242
|
-
_createBorderRadius(view_texture, decorate_setting) {
|
|
243
|
-
// 圆角view
|
|
244
|
-
let texture_mask = new Forge.ViewRoundCornerMask(
|
|
245
|
-
numberCheckSet(decorate_setting.topLeft),
|
|
246
|
-
numberCheckSet(decorate_setting.topRight),
|
|
247
|
-
numberCheckSet(decorate_setting.bottomLeft),
|
|
248
|
-
numberCheckSet(decorate_setting.bottomRight)
|
|
249
|
-
);
|
|
250
|
-
let texture_set = new Forge.ExternalTextureSetting(
|
|
251
|
-
view_texture,
|
|
252
|
-
texture_mask
|
|
253
|
-
);
|
|
254
|
-
return new Forge.LayoutView(texture_set);
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
_onAnimationEnd(normal_end) {
|
|
258
|
-
if (normal_end) {
|
|
259
|
-
this.runningState = STATE_END;
|
|
260
|
-
}
|
|
261
|
-
this.onAnimationEnd?.(normal_end);
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
_updateTexCoord() {
|
|
265
|
-
if (this.texCoord) {
|
|
266
|
-
if (this.texCoord.width > 0 && this.texCoord.height > 0) {
|
|
267
|
-
const offsetLeft = !isNaN(this.texCoord.left)
|
|
268
|
-
? this.texCoord.left
|
|
269
|
-
: -this.texCoord.width / 2;
|
|
270
|
-
const offsetTop = !isNaN(this.texCoord.top)
|
|
271
|
-
? this.texCoord.top
|
|
272
|
-
: -this.texCoord.height / 2;
|
|
273
|
-
const anchor = Number.isInteger(this.texCoord.alignAnchor)
|
|
274
|
-
? this.texCoord.alignAnchor
|
|
275
|
-
: 5;
|
|
276
|
-
this.innerView.SetTextureCoord(
|
|
277
|
-
offsetLeft,
|
|
278
|
-
offsetTop,
|
|
279
|
-
this.texCoord.width,
|
|
280
|
-
this.texCoord.height,
|
|
281
|
-
anchor
|
|
282
|
-
);
|
|
283
|
-
} else {
|
|
284
|
-
console.error("JsvTextureAnim");
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
|
|
289
|
-
_buildAnimation(a) {
|
|
290
|
-
if (a) {
|
|
291
|
-
let anim = new Forge.CssKeyframeAnimation(
|
|
292
|
-
"@keyframes texAnimDef" + a,
|
|
293
|
-
this.duration,
|
|
294
|
-
Forge.Easing.str2Easing(this.easing),
|
|
295
|
-
1,
|
|
296
|
-
1
|
|
297
|
-
);
|
|
298
|
-
anim.EnableDelay(this.delay).SetRepeat(this.repeat);
|
|
299
|
-
anim.Enable(Forge.AnimationEnable.ReleaseAfterEndCallback);
|
|
300
|
-
anim.SetAnimationListener(
|
|
301
|
-
new Forge.AnimationListener(null, this._onAnimationEnd, null)
|
|
302
|
-
);
|
|
303
|
-
|
|
304
|
-
return anim;
|
|
305
|
-
} else {
|
|
306
|
-
return null;
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
|
|
310
|
-
start(customAnim) {
|
|
311
|
-
if (this.innerView) {
|
|
312
|
-
const a = customAnim ?? this.animation;
|
|
313
|
-
let anim = this._buildAnimation(a);
|
|
314
|
-
if (anim) {
|
|
315
|
-
this.runningState = STATE_RUNNING;
|
|
316
|
-
this.innerView.StartTextureAnimation(anim);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
|
|
321
|
-
getTransition() {
|
|
322
|
-
let transition = "";
|
|
323
|
-
let decorate = this.decorate;
|
|
324
|
-
|
|
325
|
-
if (
|
|
326
|
-
decorate &&
|
|
327
|
-
decorate.type == DECORATE_NINEPATCH_ALPHA_MIX &&
|
|
328
|
-
decorate.animTime > 0
|
|
329
|
-
) {
|
|
330
|
-
// Ninepatch模式可以设置长宽的过渡动画
|
|
331
|
-
let anim_time = decorate.animTime;
|
|
332
|
-
transition = `left ${anim_time}s, top ${anim_time}s, width ${anim_time}s, height ${anim_time}s`;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
return transition;
|
|
336
|
-
},
|
|
123
|
+
autoStart: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: false,
|
|
337
126
|
},
|
|
127
|
+
texCoord: {
|
|
128
|
+
type: Object,
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
const runningState = ref(STATE_IDLE);
|
|
133
|
+
const innerViewId = ref(-1);
|
|
134
|
+
const innerView = shallowRef(null);
|
|
338
135
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
136
|
+
function _readRadius(setting) {
|
|
137
|
+
if (typeof setting == "number") {
|
|
138
|
+
return {
|
|
139
|
+
type: DECORATE_BORDER_RADIUS,
|
|
140
|
+
topLeft: setting,
|
|
141
|
+
topRight: setting,
|
|
142
|
+
bottomRight: setting,
|
|
143
|
+
bottomLeft: setting,
|
|
144
|
+
};
|
|
145
|
+
} else if (typeof setting == "string" && setting.length > 0) {
|
|
146
|
+
const pattern = /\d+/g;
|
|
147
|
+
let match = setting.match(pattern);
|
|
148
|
+
if (match?.length > 0) {
|
|
149
|
+
let top_left = match[0];
|
|
150
|
+
let top_right = match.length > 1 ? match[1] : top_left;
|
|
151
|
+
return {
|
|
152
|
+
type: DECORATE_BORDER_RADIUS,
|
|
153
|
+
topLeft: top_left,
|
|
154
|
+
topRight: top_right,
|
|
155
|
+
bottomRight: match.length > 2 ? match[2] : top_left,
|
|
156
|
+
bottomLeft: match.length > 3 ? match[3] : top_right,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return null;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
function _resolveDecorate() {
|
|
164
|
+
let decorate = props.decorate;
|
|
165
|
+
if (props.borderRadius) {
|
|
166
|
+
decorate = _readRadius(props.borderRadius);
|
|
167
|
+
}
|
|
168
|
+
return decorate;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function _createTextureSetting(view_texture, decorate_setting) {
|
|
172
|
+
if (decorate_setting?.type === DECORATE_BORDER_RADIUS) {
|
|
173
|
+
let texture_mask = new Forge.ViewRoundCornerMask(
|
|
174
|
+
numberCheckSet(decorate_setting.topLeft),
|
|
175
|
+
numberCheckSet(decorate_setting.topRight),
|
|
176
|
+
numberCheckSet(decorate_setting.bottomLeft),
|
|
177
|
+
numberCheckSet(decorate_setting.bottomRight)
|
|
350
178
|
);
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
179
|
+
return new Forge.ExternalTextureSetting(view_texture, texture_mask);
|
|
180
|
+
}
|
|
181
|
+
return new Forge.ExternalTextureSetting(view_texture);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function _createTextureSettingFromSrc(src) {
|
|
185
|
+
if (!src) {
|
|
186
|
+
return null;
|
|
187
|
+
}
|
|
188
|
+
let image_url = urlCheckSet(src);
|
|
189
|
+
let view_texture = textureManager.GetImage2(
|
|
190
|
+
image_url,
|
|
191
|
+
false,
|
|
192
|
+
null,
|
|
193
|
+
"RGB_8888",
|
|
194
|
+
null
|
|
195
|
+
);
|
|
196
|
+
return _createTextureSetting(view_texture, _resolveDecorate());
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function _createBorderRadius(view_texture, decorate_setting) {
|
|
200
|
+
let texture_set = _createTextureSetting(view_texture, decorate_setting);
|
|
201
|
+
return new Forge.LayoutView(texture_set);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
function _createNinePatchAlphaMixView(view_texture, decorate_setting) {
|
|
205
|
+
const textureManager = ForgeHandles.TextureManager;
|
|
206
|
+
|
|
207
|
+
let texture_set = new Forge.ExternalTextureSetting(view_texture);
|
|
208
|
+
let nine_patch_view = new Forge.NinePatchView(texture_set);
|
|
209
|
+
|
|
210
|
+
if (decorate_setting.url) {
|
|
211
|
+
let converted_url = urlCheckSet(decorate_setting.url);
|
|
212
|
+
let alpha_texture = textureManager.GetImage2(converted_url);
|
|
213
|
+
nine_patch_view.EnableAlphaMix(alpha_texture);
|
|
214
|
+
} else {
|
|
215
|
+
console.error("ninepatch url not set");
|
|
216
|
+
return null;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
let view_set = toNinePatchForgeViewSet(
|
|
220
|
+
numberCheckSet(decorate_setting.imageWidth),
|
|
221
|
+
numberCheckSet(decorate_setting.centerWidth),
|
|
222
|
+
decorate_setting.imageDspWidth,
|
|
223
|
+
numberCheckSet(decorate_setting.borderOutset)
|
|
224
|
+
);
|
|
225
|
+
nine_patch_view.SetPadding(view_set.padding, view_set.padding);
|
|
226
|
+
nine_patch_view.SetRepeat(view_set.repeat, view_set.repeat);
|
|
227
|
+
nine_patch_view.SetImageDspSize(
|
|
228
|
+
view_set.imageDspSize,
|
|
229
|
+
view_set.imageDspSize
|
|
230
|
+
);
|
|
231
|
+
|
|
232
|
+
return nine_patch_view;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
function _createLayoutViewWithDecorate(view_texture, decorate_setting) {
|
|
236
|
+
if (decorate_setting && typeof decorate_setting == "object") {
|
|
237
|
+
switch (decorate_setting.type) {
|
|
238
|
+
case DECORATE_NINEPATCH_ALPHA_MIX:
|
|
239
|
+
return _createNinePatchAlphaMixView(view_texture, decorate_setting);
|
|
240
|
+
case DECORATE_BORDER_RADIUS:
|
|
241
|
+
return _createBorderRadius(view_texture, decorate_setting);
|
|
242
|
+
default:
|
|
243
|
+
console.error("Unknown set=", decorate_setting);
|
|
244
|
+
return null;
|
|
355
245
|
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function _createForgeView(view_texture, decorate_setting) {
|
|
250
|
+
if (decorate_setting) {
|
|
251
|
+
return _createLayoutViewWithDecorate(view_texture, decorate_setting);
|
|
252
|
+
}
|
|
253
|
+
return new Forge.LayoutView(_createTextureSetting(view_texture, null));
|
|
254
|
+
}
|
|
356
255
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
256
|
+
function _onAnimationEnd(normal_end) {
|
|
257
|
+
if (normal_end) {
|
|
258
|
+
runningState.value = STATE_END;
|
|
259
|
+
}
|
|
260
|
+
props.onAnimationEnd?.(normal_end);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function _updateTexCoord() {
|
|
264
|
+
if (props.texCoord) {
|
|
265
|
+
if (props.texCoord.width > 0 && props.texCoord.height > 0) {
|
|
266
|
+
const offsetLeft = !isNaN(props.texCoord.left)
|
|
267
|
+
? props.texCoord.left
|
|
268
|
+
: -props.texCoord.width / 2;
|
|
269
|
+
const offsetTop = !isNaN(props.texCoord.top)
|
|
270
|
+
? props.texCoord.top
|
|
271
|
+
: -props.texCoord.height / 2;
|
|
272
|
+
const anchor = Number.isInteger(props.texCoord.alignAnchor)
|
|
273
|
+
? props.texCoord.alignAnchor
|
|
274
|
+
: 5;
|
|
275
|
+
innerView.value.SetTextureCoord(
|
|
276
|
+
offsetLeft,
|
|
277
|
+
offsetTop,
|
|
278
|
+
props.texCoord.width,
|
|
279
|
+
props.texCoord.height,
|
|
280
|
+
anchor
|
|
364
281
|
);
|
|
282
|
+
} else {
|
|
283
|
+
console.error("JsvTextureAnim");
|
|
365
284
|
}
|
|
366
|
-
|
|
285
|
+
}
|
|
286
|
+
}
|
|
367
287
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
Forge.
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
288
|
+
function _buildAnimation(a) {
|
|
289
|
+
if (a) {
|
|
290
|
+
let anim = new Forge.CssKeyframeAnimation(
|
|
291
|
+
"@keyframes texAnimDef" + a,
|
|
292
|
+
props.duration,
|
|
293
|
+
Forge.Easing.str2Easing(props.easing),
|
|
294
|
+
1,
|
|
295
|
+
1
|
|
296
|
+
);
|
|
297
|
+
anim.EnableDelay(props.delay).SetRepeat(props.repeat);
|
|
298
|
+
anim.Enable(Forge.AnimationEnable.ReleaseAfterEndCallback);
|
|
299
|
+
anim.SetAnimationListener(
|
|
300
|
+
new Forge.AnimationListener(null, _onAnimationEnd, null)
|
|
301
|
+
);
|
|
302
|
+
return anim;
|
|
303
|
+
}
|
|
304
|
+
return null;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
function start(customAnim) {
|
|
308
|
+
if (innerView.value) {
|
|
309
|
+
const a = customAnim ?? props.animation;
|
|
310
|
+
let anim = _buildAnimation(a);
|
|
311
|
+
if (anim) {
|
|
312
|
+
runningState.value = STATE_RUNNING;
|
|
313
|
+
innerView.value.StartTextureAnimation(anim);
|
|
387
314
|
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
function getTransition() {
|
|
319
|
+
let transition = "";
|
|
320
|
+
let decorate = props.decorate;
|
|
321
|
+
|
|
322
|
+
if (
|
|
323
|
+
decorate &&
|
|
324
|
+
decorate.type == DECORATE_NINEPATCH_ALPHA_MIX &&
|
|
325
|
+
decorate.animTime > 0
|
|
326
|
+
) {
|
|
327
|
+
let anim_time = decorate.animTime;
|
|
328
|
+
transition = `left ${anim_time}s, top ${anim_time}s, width ${anim_time}s, height ${anim_time}s`;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
return transition;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
watch(
|
|
335
|
+
() => props.texCoord,
|
|
336
|
+
() => {
|
|
337
|
+
_updateTexCoord();
|
|
388
338
|
},
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
339
|
+
{ deep: true }
|
|
340
|
+
);
|
|
341
|
+
|
|
342
|
+
watch(
|
|
343
|
+
() => props.transform,
|
|
344
|
+
(newValue) => {
|
|
345
|
+
innerView.value?.ResetTextureCssTransform(newValue, props.transformOrigin);
|
|
346
|
+
}
|
|
347
|
+
);
|
|
348
|
+
|
|
349
|
+
watch(
|
|
350
|
+
() => props.src,
|
|
351
|
+
(newSrc) => {
|
|
352
|
+
innerView.value?.ResetTexture(_createTextureSettingFromSrc(newSrc));
|
|
353
|
+
}
|
|
354
|
+
);
|
|
355
|
+
|
|
356
|
+
// 初始化 innerView(等价于原 created 钩子)
|
|
357
|
+
const textureManager = ForgeHandles.TextureManager;
|
|
358
|
+
let image_url = urlCheckSet(props.src);
|
|
359
|
+
let view_texture = textureManager.GetImage2(
|
|
360
|
+
image_url,
|
|
361
|
+
false,
|
|
362
|
+
null,
|
|
363
|
+
"RGB_8888",
|
|
364
|
+
null
|
|
365
|
+
);
|
|
366
|
+
let decorate = _resolveDecorate();
|
|
367
|
+
innerView.value = _createForgeView(view_texture, decorate);
|
|
368
|
+
if (props.transform) {
|
|
369
|
+
innerView.value.ResetTextureCssTransform(
|
|
370
|
+
props.transform,
|
|
371
|
+
props.transformOrigin
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
_updateTexCoord();
|
|
375
|
+
innerViewId.value = Forge.sViewStore.add(new Forge.ViewInfo(innerView.value));
|
|
376
|
+
|
|
377
|
+
onBeforeUnmount(() => {
|
|
378
|
+
if (innerViewId.value !== -1) {
|
|
379
|
+
Forge.sViewStore.remove(innerViewId.value);
|
|
380
|
+
innerViewId.value = -1;
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
|
|
384
|
+
onMounted(() => {
|
|
385
|
+
if (props.autoStart) {
|
|
386
|
+
start();
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
onActivated(() => {
|
|
391
|
+
if (innerView.value && runningState.value == STATE_PAUSED) {
|
|
392
|
+
let anim = _buildAnimation(props.animation);
|
|
393
|
+
innerView.value.StartTextureAnimation(anim);
|
|
394
|
+
runningState.value = STATE_RUNNING;
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
|
|
398
|
+
onDeactivated(() => {
|
|
399
|
+
if (innerView.value) {
|
|
400
|
+
innerView.value.StopTextureAnimation();
|
|
401
|
+
if (runningState.value == STATE_RUNNING) {
|
|
402
|
+
runningState.value = STATE_PAUSED;
|
|
395
403
|
}
|
|
396
|
-
}
|
|
397
|
-
};
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
defineExpose({ start });
|
|
398
408
|
</script>
|
|
399
409
|
|
|
400
410
|
<template>
|