@shijiu/jsview-vue 2.3.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/BrowserAudio.vue.mjs +4 -1
- package/bin/browser/BrowserJsvLatex.vue.mjs +9 -90
- package/bin/jsview-vue.mjs +13913 -8048
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +39 -3
- 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 +28 -4
- 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 +5 -4
- 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 +27 -14
- 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/ForgeHandles.d.ts +1 -0
- package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
- package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +44 -1
- 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 +5 -3
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +88 -25
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +2 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +4 -0
- 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/JsvDashPath.vue.d.ts +11 -0
- 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 +3 -1
- 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/JsvSmoothSlideContainer.vue.d.ts +72 -0
- package/bin/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +26 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +112 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +142 -0
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +3 -1
- 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 +8 -4
- 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 +51 -3
- package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +193 -89
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +347 -145
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.ts +15 -0
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +1603 -588
- package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +146 -38
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +39 -26
- 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 +434 -264
- 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 +29 -7
- package/utils/JsViewEngineWidget/index.ts +7 -2
- package/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue +4 -0
- package/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue +13 -13
- 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} +61 -11
- 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 +5 -1
- package/utils/JsViewVueTools/ForgeHandles.ts +8 -2
- package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +125 -8
- package/utils/JsViewVueTools/JsvTextTools.ts +12 -2
- 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 +30 -12
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +157 -51
- package/utils/JsViewVueTools/JsvTextureStore/Store.ts +33 -21
- package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +56 -41
- 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/JsvDashPath.vue +150 -0
- 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/JsvFullScrAdjust.vue +3 -1
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +24 -8
- 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 +30 -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 +34 -31
- 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/JsvSmoothSlideContainer.vue +108 -0
- package/utils/JsViewVueWidget/JsvSoundPool.js +75 -12
- package/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue +543 -0
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +3 -3
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue +644 -0
- package/utils/JsViewVueWidget/JsvSwiper/index.js +3 -1
- package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +315 -299
- 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 +9 -3
- package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
- 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
|
@@ -5,39 +5,43 @@
|
|
|
5
5
|
* @Description: file content
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import ActionRefObject from "./ActionRefObject";
|
|
9
8
|
import CallbackManager from "./CallbackManager";
|
|
10
9
|
import { ConditionSetBuilder, StateCmdBuilder, CmdPackBuilder } from "./ForgeTypeDefine"
|
|
11
|
-
import { NexusNode } from "./NexusNode";
|
|
10
|
+
import { NexusNode, GLOBAL_CUSTOM_NEXUS_DETAIL_TYPE } from "./NexusNode";
|
|
11
|
+
import type { CommandPackType, ConditionPackType } from "./CmdTypes";
|
|
12
12
|
|
|
13
13
|
type UNumber = undefined | number;
|
|
14
14
|
|
|
15
|
-
const
|
|
15
|
+
export const TranslateCondThenCmdPackList = (
|
|
16
|
+
callbackManager: CallbackManager,
|
|
17
|
+
cmdPackList: Array<CommandPackType | Function>) => {
|
|
16
18
|
for (let i = 0; i < cmdPackList.length; i++) {
|
|
17
19
|
if (typeof cmdPackList[i] == "function") {
|
|
18
20
|
// 将回调函数更换为对应CommandPack, 内容为 FireEcho 的 stateCommand
|
|
19
|
-
cmdPackList[i] = CmdPackBuilder.InitStateCmdPack(
|
|
21
|
+
cmdPackList[i] = CmdPackBuilder.InitStateCmdPack(
|
|
22
|
+
callbackManager.buildCallbackCmd(cmdPackList[i] as Function));
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
|
-
|
|
23
|
-
// 将此cmdPackList设置给ConditionSet
|
|
24
|
-
ConditionSetBuilder.SetCmdPackList(conditionSet, cmdPackList);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
type WallDirection = "left" | "right" | "top" | "bottom";
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* condition().XXXXX 可用的API说明
|
|
31
|
+
* 标注"内部API"的API, 应用开发时一定!!不要使用, 因为后续版本可能调整导致失效
|
|
32
|
+
*/
|
|
29
33
|
class ConditionPackBuilder {
|
|
30
34
|
public _Callbacks: CallbackManager;
|
|
31
35
|
private _CommonInfo: Object;
|
|
32
36
|
private _CommonInfoValid: boolean;
|
|
33
|
-
private
|
|
37
|
+
private _ContorlSelfNexus: NexusNode;
|
|
34
38
|
private _BuildersFactory: any;
|
|
35
39
|
|
|
36
40
|
constructor(callbackManager: CallbackManager, selfNexus: NexusNode, buildersFactory: any) {
|
|
37
41
|
this._Callbacks = callbackManager;
|
|
38
42
|
this._CommonInfo = ConditionSetBuilder.InitCommonInfo();
|
|
39
43
|
this._CommonInfoValid = false;
|
|
40
|
-
this.
|
|
44
|
+
this._ContorlSelfNexus = selfNexus;
|
|
41
45
|
this._BuildersFactory = buildersFactory;
|
|
42
46
|
}
|
|
43
47
|
|
|
@@ -58,12 +62,13 @@ class ConditionPackBuilder {
|
|
|
58
62
|
/**
|
|
59
63
|
* reachPosition
|
|
60
64
|
* 获取 ReachPosition 的condition
|
|
61
|
-
* x或y
|
|
65
|
+
* x或y已经处于,或者被越过时触发,
|
|
66
|
+
* 此接口主要用于途径中途点的监听, 若要定义运动边界, 用positionWall/positionBox更合适
|
|
62
67
|
*
|
|
63
68
|
* @param {double} xPosition 位置有效值,可以传入undefined来决定此值不设置
|
|
64
69
|
* @param {double} yPosition 位置有效值,可以传入undefined来决定此值不设置
|
|
65
70
|
*/
|
|
66
|
-
reachPosition(xPosition: number | undefined, yPosition: number | undefined):
|
|
71
|
+
reachPosition(xPosition: number | undefined, yPosition: number | undefined): CommandPackType | null {
|
|
67
72
|
// CommonInfo 只能使用一次,规避多次使用问题
|
|
68
73
|
if (!this._CheckCommonInfo()) {
|
|
69
74
|
return null;
|
|
@@ -74,23 +79,106 @@ class ConditionPackBuilder {
|
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
/**
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
82
|
+
* onSpeedAcross
|
|
83
|
+
* 创建速度跨越阈值检测条件
|
|
84
|
+
* 当速度跨越给定阈值后触发
|
|
80
85
|
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
86
|
+
* 经典场景是检测抛物运动的拐点(定点),
|
|
87
|
+
* 例如 condition().onSpeedAcross("y", 0).then([(ActorState)=>{}])
|
|
88
|
+
*
|
|
89
|
+
* @param {string} xOrY "x"为x轴,"y"为y轴
|
|
90
|
+
* @param {number} speedVale 速度阈值
|
|
91
|
+
*/
|
|
92
|
+
onSpeedAcross(xOrY:string, speedVale: number): CommandPackType | null {
|
|
93
|
+
// CommonInfo 只能使用一次,规避多次使用问题
|
|
94
|
+
if (!this._CheckCommonInfo()) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
this._CommonInfoValid = false;
|
|
98
|
+
|
|
99
|
+
let x_speed = undefined;
|
|
100
|
+
let y_speed = undefined;
|
|
101
|
+
if (xOrY == "x") {
|
|
102
|
+
x_speed = speedVale;
|
|
103
|
+
} else {
|
|
104
|
+
y_speed = speedVale;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return this._BuildPack(ConditionSetBuilder.AcrossSpeed(x_speed, y_speed, this._CommonInfo));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* speedBoundary
|
|
112
|
+
* 创建速度阈值检测条件(单个阈值)
|
|
113
|
+
* 当速度超过给定阈值后触发
|
|
114
|
+
*
|
|
115
|
+
* @param {string} boundName 边界名称,可以是 "x-min" | "x-max" | "y-min" | "y-max"
|
|
116
|
+
* @param {Object} speedSet 速度设置,可以是 {speed: number, limit: number}
|
|
117
|
+
*/
|
|
118
|
+
speedBoundary(boundName: string, speedVale: number): CommandPackType | null {
|
|
119
|
+
let x_max_limit = boundName === "x-max" ? speedVale : undefined;
|
|
120
|
+
let x_min_limit = boundName === "x-min" ? speedVale : undefined;
|
|
121
|
+
let y_max_limit = boundName === "y-max" ? speedVale : undefined;
|
|
122
|
+
let y_min_limit = boundName === "y-min" ? speedVale : undefined;
|
|
123
|
+
return this.speedAllBoundary(x_min_limit, x_max_limit, y_min_limit, y_max_limit);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* speedAllBoundary
|
|
128
|
+
* 创建速度所有阈值检测条件(x,y的max/min阈值,Max=上限,Min=下限)
|
|
129
|
+
* 当速度超过给定阈值后触发
|
|
130
|
+
*
|
|
131
|
+
* @param {number} xMinLimit x轴下限阈值
|
|
132
|
+
* @param {number} xMaxLimit x轴上限阈值
|
|
133
|
+
* @param {number} yMinLimit y轴下限阈值
|
|
134
|
+
* @param {number} yMaxLimit y轴上限阈值
|
|
83
135
|
*/
|
|
84
|
-
|
|
136
|
+
speedAllBoundary(xMinLimit:number|undefined, xMaxLimit:number|undefined, yMinLimit:number|undefined, yMaxLimit:number|undefined): CommandPackType | null {
|
|
85
137
|
if (!this._CheckCommonInfo()) {
|
|
86
138
|
return null;
|
|
87
139
|
}
|
|
88
140
|
this._CommonInfoValid = false;
|
|
89
141
|
|
|
90
|
-
return this._BuildPack(ConditionSetBuilder.
|
|
142
|
+
return this._BuildPack(ConditionSetBuilder.SpeedAllBoundary(
|
|
143
|
+
xMaxLimit, xMinLimit, yMaxLimit, yMinLimit, this._CommonInfo));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* positionWall/wallPosition
|
|
148
|
+
* 创建碰墙(单面)检测条件
|
|
149
|
+
* x或y已经处于,或者被越过时触发
|
|
150
|
+
*
|
|
151
|
+
* 和reachPosition的最大区别是,
|
|
152
|
+
* reach是有跨过行为才激活,
|
|
153
|
+
* 而wall是初始位置已经超过wall时就会立刻激活
|
|
154
|
+
*
|
|
155
|
+
* @param {string} direction 方向,可以是 "left" | "right" | "top" | "bottom", 标明初始wall位置相对运动物体的方位
|
|
156
|
+
* @param {double} position 位置有效值,direction为left/right时作用于x,direction为top/bottom时作用于y
|
|
157
|
+
*/
|
|
158
|
+
positionWall(direction: WallDirection, position: UNumber): CommandPackType | null {
|
|
159
|
+
// 复用 box 逻辑: wall 等价于只启用一个边界的 box
|
|
160
|
+
const left = direction === "left" ? position : undefined;
|
|
161
|
+
const top = direction === "top" ? position : undefined;
|
|
162
|
+
const right = direction === "right" ? position : undefined;
|
|
163
|
+
const bottom = direction === "bottom" ? position : undefined;
|
|
164
|
+
|
|
165
|
+
return this.positionBox(left, top, right, bottom);
|
|
166
|
+
}
|
|
167
|
+
wallPosition(direction: WallDirection, position: UNumber): CommandPackType | null {
|
|
168
|
+
return this.positionWall(direction, position);
|
|
91
169
|
}
|
|
92
170
|
|
|
93
|
-
|
|
171
|
+
/**
|
|
172
|
+
* positionBox/boxPosition
|
|
173
|
+
* 创建碰墙(4面)检测条件
|
|
174
|
+
* 相当于用4面wallPosition组合起来的box(本物体一般处于box内, 一旦移到box外就激活)
|
|
175
|
+
*
|
|
176
|
+
* @param {double} left 左边界位置有效值,可以传入undefined来表面此面无wallPosition
|
|
177
|
+
* @param {double} top 上边界位置有效值,可以传入undefined来表面此面无wallPosition
|
|
178
|
+
* @param {double} right 右边界位置有效值,可以传入undefined来表面此面无wallPosition
|
|
179
|
+
* @param {double} bottom 下边界位置有效值,可以传入undefined来表面此面无wallPosition
|
|
180
|
+
*/
|
|
181
|
+
positionBox(left: UNumber, top: UNumber, right: UNumber, bottom: UNumber): CommandPackType | null {
|
|
94
182
|
if (!this._CheckCommonInfo()) {
|
|
95
183
|
return null;
|
|
96
184
|
}
|
|
@@ -98,8 +186,20 @@ class ConditionPackBuilder {
|
|
|
98
186
|
|
|
99
187
|
return this._BuildPack(ConditionSetBuilder.BoxPosition(left, top, right, bottom, this._CommonInfo));
|
|
100
188
|
}
|
|
189
|
+
boxPosition(left: UNumber, top: UNumber, right: UNumber, bottom: UNumber): CommandPackType | null {
|
|
190
|
+
return this.positionBox(left, top, right, bottom);
|
|
191
|
+
}
|
|
101
192
|
|
|
102
|
-
|
|
193
|
+
/**
|
|
194
|
+
* offsetPosition
|
|
195
|
+
* 当div运动了给定的偏移量后触发
|
|
196
|
+
*
|
|
197
|
+
* @param {double} left 向左移动多少触发,为正整数
|
|
198
|
+
* @param {double} top 向上移动多少触发,为正整数
|
|
199
|
+
* @param {double} right 向右移动多少触发,为正整数
|
|
200
|
+
* @param {double} bottom 向下移动多少触发,为正整数
|
|
201
|
+
*/
|
|
202
|
+
offsetPosition(left: UNumber, top: UNumber, right: UNumber, bottom: UNumber): CommandPackType | null {
|
|
103
203
|
if (!this._CheckCommonInfo()) {
|
|
104
204
|
return null;
|
|
105
205
|
}
|
|
@@ -108,7 +208,14 @@ class ConditionPackBuilder {
|
|
|
108
208
|
return this._BuildPack(ConditionSetBuilder.OffsetPosition(left, top, right, bottom, this._CommonInfo));
|
|
109
209
|
}
|
|
110
210
|
|
|
111
|
-
|
|
211
|
+
/**
|
|
212
|
+
* startMove
|
|
213
|
+
* 当FreeMove块开始移动时触发, 用于探测方块从静止到移动的过程
|
|
214
|
+
*
|
|
215
|
+
* @param {boolean} xEnable x轴是否启用
|
|
216
|
+
* @param {boolean} yEnable y轴是否启用
|
|
217
|
+
*/
|
|
218
|
+
startMove(xEnable: boolean, yEnable: boolean): CommandPackType | null {
|
|
112
219
|
if (!this._CheckCommonInfo()) {
|
|
113
220
|
return null;
|
|
114
221
|
}
|
|
@@ -121,31 +228,28 @@ class ConditionPackBuilder {
|
|
|
121
228
|
}
|
|
122
229
|
|
|
123
230
|
/**
|
|
124
|
-
* AcrossPosition
|
|
125
|
-
* 获取 AcrossPosition 的condition
|
|
126
|
-
* x或y被越过时触发
|
|
127
231
|
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
232
|
+
* onCustomNexus
|
|
233
|
+
* 响应由 state.fireCustomNexus 发起的event
|
|
234
|
+
* 是用户事件处理中激发预制命令集的手段
|
|
235
|
+
*
|
|
236
|
+
* @param {NexusNode} nexusRecv 由 FreeMoveFunc.newNexus() 创建, 为通讯匹配的句柄, 类似电话号
|
|
130
237
|
*/
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (!this._CheckCommonInfo()) {
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
|
-
this._CommonInfoValid = false;
|
|
137
|
-
|
|
138
|
-
return this._BuildPack(ConditionSetBuilder.AcrossPosition(xPosition, yPosition, this._CommonInfo));
|
|
238
|
+
onCustomNexus(nexusRecv: NexusNode): CommandPackType | null {
|
|
239
|
+
return this.onNexusEvent(nexusRecv, GLOBAL_CUSTOM_NEXUS_DETAIL_TYPE);
|
|
139
240
|
}
|
|
140
241
|
|
|
141
242
|
/**
|
|
243
|
+
* 内部API
|
|
244
|
+
*
|
|
142
245
|
* OnNexusEvent
|
|
143
|
-
*
|
|
246
|
+
* 响应由 state.fireNexusEvent 发起的event
|
|
247
|
+
* 是用户事件处理中激发预制命令集的手段
|
|
144
248
|
*
|
|
145
249
|
* @param {NexusNode} nexusRecv 由 FreeMoveFunc.newNexus() 创建, 作为通讯句柄,类似电话号,被fireNexusEvent调用
|
|
146
250
|
* @param {number} detailEventType 监听的事件类型, 类比与分机号,和fireNexusEvent发出的id约定, 自定义内容要求1000以上
|
|
147
251
|
*/
|
|
148
|
-
onNexusEvent(nexusRecv: NexusNode, detailEventType: number) {
|
|
252
|
+
onNexusEvent(nexusRecv: NexusNode, detailEventType: number): CommandPackType | null {
|
|
149
253
|
// CommonInfo 只能使用一次,规避多次使用问题
|
|
150
254
|
if (!this._CheckCommonInfo()) {
|
|
151
255
|
return null;
|
|
@@ -162,13 +266,15 @@ class ConditionPackBuilder {
|
|
|
162
266
|
}
|
|
163
267
|
|
|
164
268
|
/**
|
|
269
|
+
* 内部API
|
|
270
|
+
*
|
|
165
271
|
* OnHitBlock
|
|
166
272
|
* 监听Actor关联的LayoutView与blocker碰撞的状态
|
|
167
273
|
* 碰撞发生后,可以 State.revertWithHitBlock 将LayoutView返回到紧贴到碰撞点的状态
|
|
168
274
|
*
|
|
169
275
|
* @param {number} blkGID 想监听的blocker集群的组ID, 例如所有的跳板横向碰撞面,或者所有的跳板边缘的纵向碰撞面, 0为无效值
|
|
170
276
|
*/
|
|
171
|
-
onHitBlock(blkGID: number) {
|
|
277
|
+
onHitBlock(blkGID: number): CommandPackType | null {
|
|
172
278
|
// CommonInfo 只能使用一次,规避多次使用问题
|
|
173
279
|
if (!this._CheckCommonInfo()) {
|
|
174
280
|
return null;
|
|
@@ -184,7 +290,7 @@ class ConditionPackBuilder {
|
|
|
184
290
|
* 特别场景: onNextTick(0) 可用于充当前帧命令执行完毕的回调,相当于为命令执行完毕做一个callback
|
|
185
291
|
*
|
|
186
292
|
*/
|
|
187
|
-
onNextTick(tickGap: number = 1) {
|
|
293
|
+
onNextTick(tickGap: number = 1): CommandPackType | null {
|
|
188
294
|
// CommonInfo 只能使用一次,规避多次使用问题
|
|
189
295
|
if (!this._CheckCommonInfo()) {
|
|
190
296
|
return null;
|
|
@@ -198,7 +304,12 @@ class ConditionPackBuilder {
|
|
|
198
304
|
}
|
|
199
305
|
|
|
200
306
|
/** 指定的swapcount前才能执行 */
|
|
201
|
-
|
|
307
|
+
/**
|
|
308
|
+
* 内部API
|
|
309
|
+
*
|
|
310
|
+
* onSwapCount
|
|
311
|
+
*/
|
|
312
|
+
onSwapCount(): CommandPackType | null {
|
|
202
313
|
// CommonInfo 只能使用一次,规避多次使用问题
|
|
203
314
|
if (!this._CheckCommonInfo()) {
|
|
204
315
|
return null;
|
|
@@ -207,85 +318,146 @@ class ConditionPackBuilder {
|
|
|
207
318
|
return this._BuildPack(ConditionSetBuilder.onSwapCount(0, this._CommonInfo));
|
|
208
319
|
}
|
|
209
320
|
|
|
210
|
-
|
|
321
|
+
/**
|
|
322
|
+
* 内部API
|
|
323
|
+
*
|
|
324
|
+
* onDragStart
|
|
325
|
+
* 当拖拽开始时触发
|
|
326
|
+
*/
|
|
327
|
+
onDragStart(): CommandPackType | null {
|
|
211
328
|
if (!this._CheckCommonInfo()) {
|
|
212
329
|
return null;
|
|
213
330
|
}
|
|
214
331
|
this._CommonInfoValid = false;
|
|
215
332
|
|
|
216
|
-
return this._BuildPack(ConditionSetBuilder.OnDragStart(this._CommonInfo, this.
|
|
333
|
+
return this._BuildPack(ConditionSetBuilder.OnDragStart(this._CommonInfo, this._ContorlSelfNexus.token));
|
|
217
334
|
}
|
|
218
335
|
|
|
219
|
-
|
|
336
|
+
/**
|
|
337
|
+
* 内部API
|
|
338
|
+
*/
|
|
339
|
+
onDragEnd(): CommandPackType | null {
|
|
220
340
|
if (!this._CheckCommonInfo()) {
|
|
221
341
|
return null;
|
|
222
342
|
}
|
|
223
343
|
this._CommonInfoValid = false;
|
|
224
|
-
return this._BuildPack(ConditionSetBuilder.OnDragEnd(this._CommonInfo, this.
|
|
344
|
+
return this._BuildPack(ConditionSetBuilder.OnDragEnd(this._CommonInfo, this._ContorlSelfNexus.token));
|
|
225
345
|
}
|
|
226
346
|
|
|
227
|
-
|
|
347
|
+
/**
|
|
348
|
+
* 内部API
|
|
349
|
+
*/
|
|
350
|
+
onTouchDown(): CommandPackType | null {
|
|
228
351
|
if (!this._CheckCommonInfo()) {
|
|
229
352
|
return null;
|
|
230
353
|
}
|
|
231
354
|
this._CommonInfoValid = false;
|
|
232
|
-
return this._BuildPack(ConditionSetBuilder.OnTouchDown(this._CommonInfo, this.
|
|
355
|
+
return this._BuildPack(ConditionSetBuilder.OnTouchDown(this._CommonInfo, this._ContorlSelfNexus.token));
|
|
233
356
|
}
|
|
234
357
|
|
|
235
|
-
|
|
358
|
+
/**
|
|
359
|
+
* 内部API
|
|
360
|
+
*/
|
|
361
|
+
onTouchRelease(): CommandPackType | null {
|
|
236
362
|
if (!this._CheckCommonInfo()) {
|
|
237
363
|
return null;
|
|
238
364
|
}
|
|
239
365
|
this._CommonInfoValid = false;
|
|
240
|
-
return this._BuildPack(ConditionSetBuilder.OnTouchRelease(this._CommonInfo, this.
|
|
366
|
+
return this._BuildPack(ConditionSetBuilder.OnTouchRelease(this._CommonInfo, this._ContorlSelfNexus.token));
|
|
241
367
|
}
|
|
242
368
|
|
|
243
|
-
|
|
369
|
+
/**
|
|
370
|
+
* 内部API
|
|
371
|
+
*
|
|
372
|
+
* onFlingStart
|
|
373
|
+
* 当 fling 开始时触发
|
|
374
|
+
*/
|
|
375
|
+
onFlingStart(): CommandPackType | null {
|
|
244
376
|
if (!this._CheckCommonInfo()) {
|
|
245
377
|
return null;
|
|
246
378
|
}
|
|
247
379
|
this._CommonInfoValid = false;
|
|
248
|
-
return this._BuildPack(ConditionSetBuilder.OnFlingStart(this._CommonInfo, this.
|
|
380
|
+
return this._BuildPack(ConditionSetBuilder.OnFlingStart(this._CommonInfo, this._ContorlSelfNexus.token));
|
|
249
381
|
}
|
|
250
382
|
|
|
251
|
-
|
|
383
|
+
/**
|
|
384
|
+
* 内部API
|
|
385
|
+
*
|
|
386
|
+
* onFlingProgress
|
|
387
|
+
* 当 fling 过程中触发
|
|
388
|
+
*/
|
|
389
|
+
onFlingProgress(): CommandPackType | null {
|
|
252
390
|
if (!this._CheckCommonInfo()) {
|
|
253
391
|
return null;
|
|
254
392
|
}
|
|
255
393
|
this._CommonInfoValid = false;
|
|
256
|
-
return this._BuildPack(ConditionSetBuilder.OnFlingProgress(this._CommonInfo, this.
|
|
394
|
+
return this._BuildPack(ConditionSetBuilder.OnFlingProgress(this._CommonInfo, this._ContorlSelfNexus.token));
|
|
257
395
|
}
|
|
258
396
|
|
|
259
|
-
|
|
397
|
+
/**
|
|
398
|
+
* 内部API
|
|
399
|
+
*
|
|
400
|
+
* onFlingEnd
|
|
401
|
+
* 当 fling 结束时触发
|
|
402
|
+
*/
|
|
403
|
+
onFlingEnd(): CommandPackType | null {
|
|
260
404
|
if (!this._CheckCommonInfo()) {
|
|
261
405
|
return null;
|
|
262
406
|
}
|
|
263
407
|
this._CommonInfoValid = false;
|
|
264
|
-
return this._BuildPack(ConditionSetBuilder.OnFlingEnd(this._CommonInfo, this.
|
|
408
|
+
return this._BuildPack(ConditionSetBuilder.OnFlingEnd(this._CommonInfo, this._ContorlSelfNexus.token));
|
|
265
409
|
}
|
|
266
410
|
|
|
267
|
-
|
|
411
|
+
/**
|
|
412
|
+
* 内部API
|
|
413
|
+
*
|
|
414
|
+
* onFlingCancel
|
|
415
|
+
* 当 fling 取消时触发
|
|
416
|
+
*/
|
|
417
|
+
onFlingCancel(): CommandPackType | null {
|
|
268
418
|
if (!this._CheckCommonInfo()) {
|
|
269
419
|
return null;
|
|
270
420
|
}
|
|
271
421
|
this._CommonInfoValid = false;
|
|
272
|
-
return this._BuildPack(ConditionSetBuilder.OnFlingCancel(this._CommonInfo, this.
|
|
422
|
+
return this._BuildPack(ConditionSetBuilder.OnFlingCancel(this._CommonInfo, this._ContorlSelfNexus.token));
|
|
273
423
|
}
|
|
274
424
|
|
|
275
|
-
|
|
425
|
+
/**
|
|
426
|
+
* 内部API
|
|
427
|
+
*
|
|
428
|
+
* onFlingDrop
|
|
429
|
+
* 当 fling 拖拽结束时触发
|
|
430
|
+
*/
|
|
431
|
+
onFlingDrop(): CommandPackType | null {
|
|
276
432
|
if (!this._CheckCommonInfo()) {
|
|
277
433
|
return null;
|
|
278
434
|
}
|
|
279
435
|
this._CommonInfoValid = false;
|
|
280
|
-
return this._BuildPack(ConditionSetBuilder.OnFlingDrop(this._CommonInfo, this.
|
|
436
|
+
return this._BuildPack(ConditionSetBuilder.OnFlingDrop(this._CommonInfo, this._ContorlSelfNexus.token));
|
|
281
437
|
}
|
|
282
438
|
|
|
283
439
|
/**
|
|
440
|
+
* 内部API
|
|
441
|
+
*
|
|
442
|
+
* onMouseWheelScrollProgress
|
|
443
|
+
* 当鼠标滚轮滚动时触发
|
|
444
|
+
*/
|
|
445
|
+
onMouseWheelScrollProgress(): CommandPackType | null {
|
|
446
|
+
if (!this._CheckCommonInfo()) {
|
|
447
|
+
return null;
|
|
448
|
+
}
|
|
449
|
+
this._CommonInfoValid = false;
|
|
450
|
+
return this._BuildPack(ConditionSetBuilder.OnMouseWheelScrollProgress(this._CommonInfo, this._ContorlSelfNexus.token));
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* 内部API
|
|
455
|
+
*
|
|
284
456
|
* touchCount
|
|
285
457
|
* 当touchDown时,Count会++,用于解决多次touchDown引发的时序问题
|
|
286
458
|
* 当native的count计数等于给定的参数设定的count时,触发condition
|
|
287
459
|
*/
|
|
288
|
-
touchCount(count: number) {
|
|
460
|
+
touchCount(count: number): CommandPackType | null {
|
|
289
461
|
if (!this._CheckCommonInfo()) {
|
|
290
462
|
return null;
|
|
291
463
|
}
|
|
@@ -294,6 +466,8 @@ class ConditionPackBuilder {
|
|
|
294
466
|
}
|
|
295
467
|
|
|
296
468
|
/**
|
|
469
|
+
* 内部API
|
|
470
|
+
*
|
|
297
471
|
* onMovement
|
|
298
472
|
* 当FreeMove块移动时,移动了给定的距离值后触发条件, 给定的距离值由sensitivity定义
|
|
299
473
|
*
|
|
@@ -303,7 +477,7 @@ class ConditionPackBuilder {
|
|
|
303
477
|
*/
|
|
304
478
|
onMovement(xSensitivity: number,
|
|
305
479
|
ySensitivity: number | undefined = undefined,
|
|
306
|
-
xyEnables: number | undefined = undefined) {
|
|
480
|
+
xyEnables: number | undefined = undefined): CommandPackType | null {
|
|
307
481
|
if (!this._CheckCommonInfo()) {
|
|
308
482
|
return null;
|
|
309
483
|
}
|
|
@@ -327,7 +501,13 @@ class ConditionPackBuilder {
|
|
|
327
501
|
xSensitivity, ySensitivity, xyEnables));
|
|
328
502
|
}
|
|
329
503
|
|
|
330
|
-
|
|
504
|
+
/**
|
|
505
|
+
* 内部API
|
|
506
|
+
*
|
|
507
|
+
* movementSync
|
|
508
|
+
* @param {NexusNode} nexusRef 用于同步运动的nexus节点
|
|
509
|
+
*/
|
|
510
|
+
movementSync(nexusRef: NexusNode): CommandPackType | null {
|
|
331
511
|
if (!this._CheckCommonInfo()) {
|
|
332
512
|
return null;
|
|
333
513
|
}
|
|
@@ -345,20 +525,21 @@ class ConditionPackBuilder {
|
|
|
345
525
|
return true;
|
|
346
526
|
}
|
|
347
527
|
|
|
348
|
-
_BuildPack(conditionSet:
|
|
528
|
+
_BuildPack(conditionSet: ConditionPackType): CommandPackType {
|
|
349
529
|
let cmdPack = CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.NewCondition(conditionSet));
|
|
350
530
|
|
|
351
531
|
// 追加then处理
|
|
352
532
|
let callbackManager = this._Callbacks;
|
|
353
|
-
cmdPack["then"] = (creatorOrArray: Function | Array<
|
|
533
|
+
cmdPack["then"] = (creatorOrArray: Function | Array<CommandPackType | Function> | undefined) => {
|
|
354
534
|
if (creatorOrArray) {
|
|
355
|
-
let childCmdPackList: Array<
|
|
535
|
+
let childCmdPackList: Array<CommandPackType | Function>;
|
|
356
536
|
if (typeof creatorOrArray == "function") {
|
|
357
537
|
childCmdPackList = creatorOrArray(this._BuildersFactory);
|
|
358
538
|
} else {
|
|
359
539
|
childCmdPackList = creatorOrArray;
|
|
360
540
|
}
|
|
361
|
-
|
|
541
|
+
TranslateCondThenCmdPackList(callbackManager, childCmdPackList);
|
|
542
|
+
ConditionSetBuilder.SetCmdPackList(conditionSet, childCmdPackList);
|
|
362
543
|
return cmdPack;
|
|
363
544
|
}
|
|
364
545
|
return cmdPack;
|