@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.
Files changed (432) hide show
  1. package/bin/browser/BrowserJsvLatex.vue.mjs +9 -90
  2. package/bin/jsview-vue.mjs +5964 -1833
  3. package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +18 -2
  4. package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
  5. package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +225 -0
  6. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +225 -0
  7. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +5 -0
  8. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +25 -2
  9. package/bin/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +7 -1
  10. package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +25 -5
  11. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +2 -1
  12. package/bin/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +2 -0
  13. package/bin/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +1 -1
  14. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +70 -0
  15. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +24 -0
  16. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +19 -0
  17. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +42 -0
  18. package/bin/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +3 -3
  19. package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
  20. package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +12 -4
  21. package/bin/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +9 -7
  22. package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +17 -7
  23. package/bin/types/utils/JsViewEngineWidget/index.d.ts +3 -1
  24. package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
  25. package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
  26. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +3 -0
  27. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
  28. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -1
  29. package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +29 -2
  30. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +107 -4
  31. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
  32. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +94 -18
  33. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
  34. package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +24 -23
  35. package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +77 -20
  36. package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +77 -20
  37. package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
  38. package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +1 -0
  39. package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
  40. package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +10 -3
  41. package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +1 -0
  42. package/bin/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +43 -0
  43. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +1 -0
  44. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +54 -0
  45. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +13 -0
  46. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +2 -0
  47. package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +76 -26
  48. package/bin/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +49 -0
  49. package/bin/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +2 -0
  50. package/bin/types/utils/JsViewVueTools/index.d.ts +3 -1
  51. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +12 -22
  52. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +12 -22
  53. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +101 -0
  54. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +61 -0
  55. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +58 -0
  56. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +1 -0
  57. package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +1 -0
  58. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
  59. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +2 -1
  60. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
  61. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +2 -1
  62. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +3 -1
  63. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +55 -12
  64. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +178 -35
  65. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +119 -17
  66. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +9 -3
  67. package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
  68. package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +22 -1
  69. package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +1 -1
  70. package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +2 -0
  71. package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +5 -2
  72. package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +1 -1
  73. package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +39 -1
  74. package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +1 -0
  75. package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +15 -3
  76. package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +22 -96
  77. package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +6 -0
  78. package/bin/types/utils/JsViewVueWidget/{JsvPosterDiv.vue.d.ts → TypesDiv/JsvPosterDiv.vue.d.ts} +9 -0
  79. package/bin/types/utils/JsViewVueWidget/{JsvPosterImage.vue.d.ts → TypesDiv/JsvPosterImage.vue.d.ts} +15 -3
  80. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +72 -0
  81. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +90 -0
  82. package/bin/types/utils/JsViewVueWidget/index.d.ts +6 -3
  83. package/dist/types/utils/JsViewEngineWidget/CheckType.d.ts +7 -0
  84. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +106 -0
  85. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +128 -0
  86. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +25 -0
  87. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +23 -0
  88. package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +12 -0
  89. package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +9 -0
  90. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +16 -0
  91. package/dist/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +412 -0
  92. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +751 -0
  93. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +9 -0
  94. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +82 -0
  95. package/dist/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +31 -0
  96. package/dist/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +80 -0
  97. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Slide.d.ts +25 -0
  98. package/dist/types/utils/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +52 -0
  99. package/dist/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +69 -0
  100. package/dist/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
  101. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +6 -0
  102. package/dist/types/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +20 -0
  103. package/dist/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +21 -0
  104. package/dist/types/utils/JsViewEngineWidget/RangeModel.d.ts +166 -0
  105. package/dist/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
  106. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +74 -0
  107. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +28 -0
  108. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +23 -0
  109. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +46 -0
  110. package/dist/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +42 -0
  111. package/dist/types/utils/JsViewEngineWidget/TemplateParser/Fence.d.ts +62 -0
  112. package/dist/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +21 -0
  113. package/dist/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +103 -0
  114. package/dist/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +28 -0
  115. package/dist/types/utils/JsViewEngineWidget/TemplateParser/index.d.ts +8 -0
  116. package/dist/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +160 -0
  117. package/dist/types/utils/JsViewEngineWidget/index.d.ts +21 -0
  118. package/dist/types/utils/JsViewPlugin/JsvAccount/JsvAccount.d.ts +46 -0
  119. package/dist/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +6 -0
  120. package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +22 -0
  121. package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +212 -0
  122. package/dist/types/utils/JsViewPlugin/JsvAudio/CheckType.d.ts +6 -0
  123. package/dist/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +17 -0
  124. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +22 -0
  125. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +12 -0
  126. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +6 -0
  127. package/dist/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +5 -0
  128. package/dist/types/utils/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +9 -0
  129. package/dist/types/utils/JsViewPlugin/JsvAudio/index.d.ts +7 -0
  130. package/dist/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
  131. package/{bin/types/utils/JsViewPlugin/JsvLatex → dist/types/utils/JsViewPlugin/JsvAudio}/version.d.ts +5 -0
  132. package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -0
  133. package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +17 -0
  134. package/dist/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +5 -0
  135. package/dist/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +18 -0
  136. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +46 -0
  137. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +8 -0
  138. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +9 -0
  139. package/dist/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +5 -0
  140. package/dist/types/utils/JsViewPlugin/JsvLatex/index.d.ts +8 -0
  141. package/dist/types/utils/JsViewPlugin/JsvLatex/version.d.mts +40 -0
  142. package/dist/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
  143. package/dist/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
  144. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +523 -0
  145. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +119 -0
  146. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +664 -0
  147. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-0.9.vue.d.ts +45 -0
  148. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
  149. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue.d.ts +597 -0
  150. package/dist/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +415 -0
  151. package/dist/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +415 -0
  152. package/dist/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
  153. package/dist/types/utils/JsViewPlugin/index.d.ts +7 -0
  154. package/dist/types/utils/JsViewVueTools/BlobApi.d.ts +42 -0
  155. package/dist/types/utils/JsViewVueTools/ConstSymbol.d.ts +6 -0
  156. package/dist/types/utils/JsViewVueTools/DebugContentShellJBridge.d.ts +10 -0
  157. package/dist/types/utils/JsViewVueTools/DebugTool.d.ts +12 -0
  158. package/dist/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +14 -0
  159. package/dist/types/utils/JsViewVueTools/FeatureActive.d.ts +15 -0
  160. package/dist/types/utils/JsViewVueTools/ForgeConstDefine.d.ts +15 -0
  161. package/dist/types/utils/JsViewVueTools/ForgeHandles.d.ts +11 -0
  162. package/dist/types/utils/JsViewVueTools/JsvDynamicCssStyle.d.ts +33 -0
  163. package/dist/types/utils/JsViewVueTools/JsvDynamicKeyFrames.d.ts +40 -0
  164. package/dist/types/utils/JsViewVueTools/JsvFederationTools.d.ts +20 -0
  165. package/dist/types/utils/JsViewVueTools/JsvHashHistory.d.ts +20 -0
  166. package/dist/types/utils/JsViewVueTools/JsvImpactTracer.d.ts +44 -0
  167. package/dist/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +10 -0
  168. package/dist/types/utils/JsViewVueTools/JsvPerformance.d.ts +9 -0
  169. package/dist/types/utils/JsViewVueTools/JsvPreDownloader.d.ts +55 -0
  170. package/dist/types/utils/JsViewVueTools/JsvRefTaker.d.ts +52 -0
  171. package/dist/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +378 -0
  172. package/dist/types/utils/JsViewVueTools/JsvStyleClass.d.ts +35 -0
  173. package/dist/types/utils/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +35 -0
  174. package/dist/types/utils/JsViewVueTools/JsvTextTools.d.ts +66 -0
  175. package/dist/types/utils/JsViewVueTools/JsvTextureDefines.d.ts +10 -0
  176. package/dist/types/utils/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
  177. package/dist/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +47 -0
  178. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +99 -0
  179. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +20 -0
  180. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +58 -0
  181. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +113 -0
  182. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +17 -0
  183. package/dist/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +170 -0
  184. package/dist/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +16 -0
  185. package/dist/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +31 -0
  186. package/dist/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +53 -0
  187. package/dist/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +6 -0
  188. package/dist/types/utils/JsViewVueTools/NinePatchHelper.d.ts +25 -0
  189. package/dist/types/utils/JsViewVueTools/TextureManagerTools.d.ts +11 -0
  190. package/dist/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +7 -0
  191. package/dist/types/utils/JsViewVueTools/index.d.ts +29 -0
  192. package/dist/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +124 -0
  193. package/dist/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +148 -0
  194. package/dist/types/utils/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +35 -0
  195. package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +102 -0
  196. package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +37 -0
  197. package/dist/types/utils/JsViewVueWidget/JsvActorMove/index.d.ts +8 -0
  198. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
  199. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +77 -0
  200. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +54 -0
  201. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
  202. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +44 -0
  203. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +17 -0
  204. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
  205. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
  206. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
  207. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
  208. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
  209. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
  210. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +20 -0
  211. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
  212. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +26 -0
  213. package/dist/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +74 -0
  214. package/dist/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +5 -0
  215. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +5 -0
  216. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +34 -0
  217. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +6 -0
  218. package/dist/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +33 -0
  219. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +105 -0
  220. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +65 -0
  221. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +62 -0
  222. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +5 -0
  223. package/dist/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
  224. package/dist/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +108 -0
  225. package/dist/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +5 -0
  226. package/dist/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +61 -0
  227. package/dist/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +91 -0
  228. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +106 -0
  229. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +100 -0
  230. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +108 -0
  231. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +7 -0
  232. package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +63 -0
  233. package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +5 -0
  234. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.d.ts +4 -0
  235. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +228 -0
  236. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorState.d.ts +6 -0
  237. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +16 -0
  238. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
  239. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +20 -0
  240. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +106 -0
  241. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +107 -0
  242. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +11 -0
  243. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +12 -0
  244. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +118 -0
  245. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +244 -0
  246. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +169 -0
  247. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +22 -0
  248. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +24 -0
  249. package/dist/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +241 -0
  250. package/dist/types/utils/JsViewVueWidget/JsvHole.d.ts +19 -0
  251. package/dist/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +16 -0
  252. package/dist/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +52 -0
  253. package/dist/types/utils/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +30 -0
  254. package/dist/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +98 -0
  255. package/dist/types/utils/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
  256. package/dist/types/utils/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +20 -0
  257. package/dist/types/utils/JsViewVueWidget/JsvInput/index.d.ts +8 -0
  258. package/dist/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +32 -0
  259. package/dist/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +5 -0
  260. package/dist/types/utils/JsViewVueWidget/JsvLine/index.d.ts +6 -0
  261. package/dist/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +33 -0
  262. package/dist/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +101 -0
  263. package/dist/types/utils/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
  264. package/dist/types/utils/JsViewVueWidget/JsvMindMap/Constant.d.ts +13 -0
  265. package/dist/types/utils/JsViewVueWidget/JsvMindMap/DataTree.d.ts +75 -0
  266. package/dist/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +72 -0
  267. package/dist/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +235 -0
  268. package/dist/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +5 -0
  269. package/dist/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +44 -0
  270. package/dist/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +93 -0
  271. package/dist/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +55 -0
  272. package/dist/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +30 -0
  273. package/dist/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +68 -0
  274. package/dist/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +6 -0
  275. package/dist/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +31 -0
  276. package/dist/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +85 -0
  277. package/dist/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +37 -0
  278. package/dist/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +8 -0
  279. package/dist/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +129 -0
  280. package/dist/types/utils/JsViewVueWidget/JsvRipple/index.d.ts +7 -0
  281. package/dist/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +28 -0
  282. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +278 -0
  283. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +157 -0
  284. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +8 -0
  285. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +16 -0
  286. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/index.d.ts +7 -0
  287. package/dist/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +30 -0
  288. package/dist/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +76 -0
  289. package/dist/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +114 -0
  290. package/dist/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +58 -0
  291. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +18 -0
  292. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +70 -0
  293. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +85 -0
  294. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +15 -0
  295. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +21 -0
  296. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/index.d.ts +9 -0
  297. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +6 -0
  298. package/dist/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
  299. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +141 -0
  300. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +248 -0
  301. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +181 -0
  302. package/dist/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +8 -0
  303. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
  304. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +121 -0
  305. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +6 -0
  306. package/dist/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +121 -0
  307. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +6 -0
  308. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +38 -0
  309. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +8 -0
  310. package/dist/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +109 -0
  311. package/dist/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
  312. package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +109 -0
  313. package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +88 -0
  314. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +94 -0
  315. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +115 -0
  316. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +94 -0
  317. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +115 -0
  318. package/dist/types/utils/JsViewVueWidget/index.d.ts +53 -0
  319. package/dist/types/utils/index.d.ts +8 -0
  320. package/dist/utils/browser/BrowserAudio.vue.mjs +258 -0
  321. package/dist/utils/browser/BrowserJsvLatex.vue.mjs +64 -0
  322. package/dist/utils/export-sfc.mjs +12 -0
  323. package/dist/utils/index.mjs +29000 -0
  324. package/dist/utils/jsview-vue-common.mjs +39 -0
  325. package/package.json +1 -1
  326. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +32 -16
  327. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +24 -2
  328. package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
  329. package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +193 -89
  330. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +325 -155
  331. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.ts +15 -0
  332. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +1035 -370
  333. package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
  334. package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +138 -41
  335. package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -0
  336. package/utils/JsViewEngineWidget/MetroWidget/Utils.ts +6 -0
  337. package/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.ts +2 -1
  338. package/utils/JsViewEngineWidget/RectUtils.js +1 -1
  339. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue +62 -0
  340. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.ts +260 -0
  341. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.ts +32 -0
  342. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.ts +236 -0
  343. package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +329 -230
  344. package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
  345. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +54 -5
  346. package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +109 -41
  347. package/utils/JsViewEngineWidget/WidgetCommon.ts +17 -7
  348. package/utils/JsViewEngineWidget/index.ts +7 -2
  349. package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
  350. package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
  351. package/utils/JsViewPlugin/JsvLatex/Color.ts +104 -39
  352. package/utils/JsViewPlugin/JsvLatex/GetVersion.js +65 -0
  353. package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +71 -17
  354. package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
  355. package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +14 -2
  356. package/utils/JsViewPlugin/JsvLatex/PluginLoader.js +63 -31
  357. package/utils/JsViewPlugin/JsvLatex/version.mjs +26 -13
  358. package/utils/JsViewPlugin/JsvPlayer/GetVersion.js +2 -1
  359. package/utils/JsViewPlugin/JsvPlayer/JsvMedia.js +402 -23
  360. package/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.js +100 -0
  361. package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +363 -468
  362. package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue → JsvPlayerBrowser-wasm.vue} +60 -10
  363. package/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue +511 -0
  364. package/utils/JsViewPlugin/JsvPlayer/index-0.9.js +52 -10
  365. package/utils/JsViewPlugin/JsvPlayer/index.js +58 -9
  366. package/utils/JsViewPlugin/JsvPlayer/package.json +8 -0
  367. package/utils/JsViewVueTools/BlobApi.ts +55 -0
  368. package/utils/JsViewVueTools/FeatureActive.ts +3 -0
  369. package/utils/JsViewVueTools/ForgeHandles.ts +3 -0
  370. package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
  371. package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
  372. package/utils/JsViewVueTools/JsvRuntimeBridge.js +40 -19
  373. package/utils/JsViewVueTools/JsvTextTools.ts +9 -1
  374. package/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.ts +180 -0
  375. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.ts +1 -0
  376. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.ts +304 -0
  377. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -0
  378. package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +16 -1
  379. package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +154 -69
  380. package/utils/JsViewVueTools/JsvTextureStore/Store.ts +1 -1
  381. package/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.ts +92 -0
  382. package/utils/JsViewVueTools/JsvTextureStore/index.js +2 -0
  383. package/utils/JsViewVueTools/index.js +3 -1
  384. package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +111 -86
  385. package/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.ts +212 -0
  386. package/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.ts +146 -0
  387. package/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.ts +748 -0
  388. package/utils/JsViewVueWidget/JsvDomRenderer/index.ts +1 -0
  389. package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +10 -1
  390. package/utils/JsViewVueWidget/JsvEnableRenderBreak.vue +6 -0
  391. package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +11 -5
  392. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
  393. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +23 -11
  394. package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +269 -26
  395. package/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts +2 -1
  396. package/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.ts +24 -0
  397. package/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.ts +3 -0
  398. package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +5 -1
  399. package/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.ts +10 -2
  400. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +223 -100
  401. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +245 -64
  402. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +95 -29
  403. package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +27 -5
  404. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +11 -2
  405. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +29 -2
  406. package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +24 -7
  407. package/utils/JsViewVueWidget/JsvMarquee.vue +1 -1
  408. package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +12 -10
  409. package/utils/JsViewVueWidget/JsvNinePatch.vue +22 -12
  410. package/utils/JsViewVueWidget/JsvPieChart.vue +93 -70
  411. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +32 -29
  412. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
  413. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +56 -25
  414. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +11 -11
  415. package/utils/JsViewVueWidget/JsvSector.vue +66 -28
  416. package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
  417. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +315 -305
  418. package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +56 -14
  419. package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +8 -6
  420. package/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue +54 -0
  421. package/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue +88 -0
  422. package/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue +177 -0
  423. package/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue +267 -0
  424. package/utils/JsViewVueWidget/index.js +7 -2
  425. package/bin/types/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.d.ts +0 -7
  426. package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
  427. package/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.ts +0 -36
  428. package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
  429. package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
  430. /package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +0 -0
  431. /package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue.d.ts → JsvFreeMoveActor.vue.d.ts} +0 -0
  432. /package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
@@ -6,6 +6,17 @@ import { NexusNode } from "./NexusNode";
6
6
  interface CmdListCreator {
7
7
  (builders: BuilderFactory): Array<Object>;
8
8
  }
9
+ interface ConditionConfig {
10
+ group?: number;
11
+ multiTimes?: boolean;
12
+ specName?: string | null;
13
+ shoudRenderBreak?: boolean;
14
+ }
15
+ interface ActionConfig {
16
+ xySpeedKeeps?: number;
17
+ xyAccKeeps?: number;
18
+ nexusRecv?: NexusNode | null;
19
+ }
9
20
  declare class BuilderFactory {
10
21
  private _SharedQuickConditionPackBuilder;
11
22
  private _SharedQuickActionPackBuilder;
@@ -16,39 +27,108 @@ declare class BuilderFactory {
16
27
  constructor(owner: ActorControl, callbackManager: CallbackManager, selfNexusRecv: NexusNode);
17
28
  /**
18
29
  * Condition
19
- * 获取创建 ConditionPack 的工厂对象
30
+ * 获取创建 Condition指令 的工厂对象
31
+ * 用法示例:
32
+ * actorControl.run((cmds)=>[ // cmds: 即为 BuilderFactory 的实例
33
+ * cmds.condition(...).条件指令(...).then([ // 条件指令: 例如 wallPosition()
34
+ * cmds.condition(...).其他条件指令(...), // 其他condition创建
35
+ * (actorState)=>{
36
+ * // 条件满足时预设的指令集
37
+ * console.log(
38
+ * "condition triggered",
39
+ * actorState.xPos, actorState.yPos,
40
+ * actorState.xSpd, actorState.ySpd,
41
+ * actorState.xAcc, actorState.yAcc);
42
+ * },
43
+ * ... // 其他command
44
+ * ]),
45
+ * ... // 其他command
46
+ * ]);
47
+ *
20
48
  * ConditionPack对应支持 .then(cmdPackList), 可传入同 Run 的处理队列
21
- * 可用方法见 ./SetCondition.js
22
- * @param {int} group 可选参数,默认为0, 有效值为0~3, 对应默认组, 1组, 2组, 3组, 便于remove时,按组进行清理
49
+ * cmdPackList中是新的由 action(), state(), condition(), (actorState)=>{} 组成的指令集
50
+ * 其中(actorState)=>{} condition().xxxx.then() 中独有的指令类型, 用于对接此condition触发后, 进行js端的回调
51
+ * actorState {
52
+ * xPos: number, // 当前drawX的值
53
+ * yPos: number, // 当前drawY的值
54
+ * xSpd: number, // 当前SpeedX的值
55
+ * ySpd: number, // 当前SpeedY的值
56
+ * xAcc: number, // 当前AccelerationX的值
57
+ * yAcc: number, // 当前AccelerationY的值
58
+ * }
59
+ *
60
+ * 创建condition时, 会记录当时的 baseOffset 坐标, 其设定值在进行比较时会转换成baseX和baseY坐标, 然后进行比较
61
+ * 所以不同担心div的style.top, style.left改变后, condition设置的条件中的坐标会发生偏移导致需要重新设置
62
+ * 比如: wallPosition(), boxPosition() 这种要常驻的condition
63
+ *
64
+ * boxPosition 用法示例(边界框与背景div尺寸一致):
65
+ * // div1 背景: (0, 0) -> (400, 400)
66
+ * cmds.condition({ multiTimes: true })
67
+ * .boxPosition(0, 0, 400, 400)
68
+ * .then([cmds.action().stopMoving(true)]);
69
+ *
70
+ * // div2 背景: (0, 0) -> (200, 200)
71
+ * cmds.condition({ multiTimes: true })
72
+ * .boxPosition(0, 0, 200, 200)
73
+ * .then([cmds.action().stopMoving(true)]);
74
+ *
75
+ * condition创建时, 可以用group和specName进行归类, 以便于后续按需清理, 例如:
76
+ * wallPosition()在一启动的时候有, 后续就没有了, 而还有其他condition存在, 不能使用state().clearConditions()全清理
77
+ *
78
+ * action指令内部也可能自己创建一些associated condition, 这些condition会被action执行完成后自动回收, 不需要通过state指令主动清理
79
+ *
80
+ * 可用方法见 @file://./SetCondition.ts 的 ConditionPackBuilder 类
81
+ * @param {int | ConditionConfig} configOrGroup 可选参数,默认为0, 有效值为0~3, 对应默认组, 1组, 2组, 3组, 便于remove时,按组进行清理, 单个Anim中唯一, Anim之间可重名
82
+ * 也可以传入一个Object, 包含 group, multiTimes, specName, shoudRenderBreak 四个属性
23
83
  * @param {boolean} multiTimes 可选参数,默认为false, 是否要多次执行,
24
84
  * 若为单次, 当group未设定时自动作废,当group设定时,不作废但改为deactive状态
25
- * @param {string} specName 可选参数,默认null, 命名condition, 用于指定名字进行active/deactive动作的场景
85
+ * @param {string} specName 可选参数,默认null, 命名condition, 单个Anim中唯一, Anim之间可重名, 用于指定名字进行active/deactive动作的场景
26
86
  * @param {boolean} shoudRenderBreak 可选参数,默认false, 关联的回调是否会发起RenderBreak
27
- * @return {ConditionPackBuilder} ConditionPack 的工厂对象
87
+ * @return {ConditionPackBuilder} Condition指令的工厂对象
28
88
  */
29
- condition(group?: number, multiTimes?: boolean, specName?: string | null, shoudRenderBreak?: boolean): ConditionPackBuilder;
89
+ condition(configOrGroup?: ConditionConfig | number, multiTimes?: boolean, specName?: string | null, shoudRenderBreak?: boolean): ConditionPackBuilder;
30
90
  /**
31
91
  * Action
32
- * 获取创建 ActionPack 的工厂对象
33
- * 注意: ActionPack 是指会改变 speed 或 accelerate 并自动生成子condition的指令,
34
- * 每个新的Action会覆盖掉前一次的Action设置,包括其关联的condition,
35
- * 以及上一个action中的回调,以及上一个action中规划中的ActionEvent
36
- * 可用方法见 ./SetAction.js
92
+ * 获取创建 Action指令 的工厂对象
37
93
  *
38
- * @param {int} xySpeedKeeps xy轴上的速度是否保持(与新Action不冲突的才会被保留),
94
+ * 用法示例:
95
+ * actorControl.run((cmds)=>[ // cmds: 即为 BuilderFactory 的实例
96
+ * cmds.action(...).动作指令(...), // 动作指令: 例如 teleportOffset()
97
+ * ... // 其他command
98
+ * ]);
99
+ *
100
+ * Action主要是改变speed和accelerate的值,在Action指令中还包含一些综合指令, 例如:
101
+ * brakeToPosition: 通过内部创建一些associated condition来实现减速并停止到目标位置
102
+ * setSpdAndAccel: 同时设置速度和加速度,并提供拐点回调(用于抛物线处理)
103
+ *
104
+ * Action有个重要个规则: 一个FreeMoveActor中, 一个时间只会激活一条Action指令,
105
+ * 当下一条Action指令激活时, 会默认自动重置因为上一条Action而改变的SpeedX/Y(重置为0), AccelerationX/Y(重置为0), 以及其associated condition
106
+ * 但也可以进行主动保持, 通过 xySpeedKeeps 和 xyAccKeeps 参数控制
107
+ *
108
+ * 可用方法见 @file://./SetAction.ts 的 ActionPackBuilder 类
109
+ *
110
+ * @param {int | ActionConfig} configOrSpeedKeeps xy轴上的速度是否保持(与新Action不冲突的才会被保留),
39
111
  * x轴保持为1, y轴保持为2,可"与或"让两个轴都保持
112
+ * 也可以传入一个Object, 包含 xySpeedKeeps, xyAccKeeps, nexusRecv 三个属性
40
113
  * @param {int} xyAccKeeps xy轴上的加速度是否保持(与新Action不冲突的才会被保留),
41
114
  * x轴保持为1, y轴保持为2,可"与或"让两个轴都保持
42
115
  * @param {NexusNode} nexusRecv 此动作发出的 nexusEvent 的接受者
43
- * @return {ActionPackBuilder} ActionPack 的工厂对象
116
+ * @return {ActionPackBuilder} Action指令的工厂对象
44
117
  */
45
- action(xySpeedKeeps?: number, xyAccKeeps?: number, nexusRecv?: NexusNode | null): ActionPackBuilder;
118
+ action(configOrSpeedKeeps?: ActionConfig | number, xyAccKeeps?: number, nexusRecv?: NexusNode): ActionPackBuilder;
46
119
  /**
47
120
  * State
48
- * 获取创建 StatePack 的工厂对象
121
+ * 获取创建 State指令 的工厂对象
122
+ *
123
+ * 用法示例:
124
+ * actorControl.run((cmds)=>[ // cmds: 即为 BuilderFactory 的实例
125
+ * cmds.state(...).状态指令(...), // 状态指令: 例如 clearConditions()
126
+ * ... // 其他command
127
+ * ]);
128
+ *
49
129
  * 在下一帧运行前的设置值,例如清理condition, 或者在下一帧运动的前调整启动运动的位置
50
- * 可用方法见 ./SetState.js
51
- * @return {StatePackBuilder} StatePack 的工厂对象
130
+ * 可用方法见 @file://./SetState.ts 的 StatePackBuilder 类
131
+ * @return {StatePackBuilder} State指令的工厂对象
52
132
  */
53
133
  state(): StatePackBuilder;
54
134
  }
@@ -62,10 +142,43 @@ declare class ActorControl {
62
142
  private _CondCycleEndList;
63
143
  private _Builders;
64
144
  constructor();
145
+ /**
146
+ * 内部API
147
+ *
148
+ * asSizeMode
149
+ */
65
150
  asSizeMode(): void;
151
+ /**
152
+ * 内部API
153
+ *
154
+ * bindForgeView
155
+ * 为普通的div创建ActorControl控制
156
+ *
157
+ * @param {any} bindView forgeView实例
158
+ * @param {boolean} instantActive 是否立即激活动画
159
+ */
66
160
  bindForgeView(bindView: any, instantActive: boolean): void;
67
161
  /**
68
- * run 执行编排好的intent集合
162
+ * run 创建并执行编排好的指令队列
163
+ *
164
+ * 用法为
165
+ * actorControl.run((cmds)=>[ // 指令队列
166
+ * cmds.state(...).状态指令(...),
167
+ * cmds.action(...).动作指令(...),
168
+ * cmds.condition(...).条件指令(...).then([
169
+ * // 条件满足时预设的指令集队列
170
+ * cmds.condition(...).其他条件指令(...),
171
+ * (actorState)=>{
172
+ * console.log(
173
+ * "condition triggered",
174
+ * actorState.xPos, actorState.yPos,
175
+ * actorState.xSpd, actorState.ySpd,
176
+ * actorState.xAcc, actorState.yAcc);
177
+ * },
178
+ * ...
179
+ * ]),
180
+ * ...
181
+ * ]);
69
182
  *
70
183
  * @param {CmdListCreator} commandsCreator
71
184
  * 命令指令队列创建回调
@@ -74,16 +187,36 @@ declare class ActorControl {
74
187
  */
75
188
  run(commandsCreator: CmdListCreator | undefined): void;
76
189
  _WrappedRun(cmdPackList: Array<Object>): void;
190
+ /**
191
+ * 内部API
192
+ *
193
+ * getBindedAnim
194
+ */
77
195
  getBindedAnim(): any;
196
+ /**
197
+ * 内部API
198
+ *
199
+ * getBindedView
200
+ */
78
201
  getBindedView(): any;
79
202
  /**
80
203
  * addCondCycleListener
81
204
  * 追加 cond cycle listener,可以根据start和end来进行callback时序排序
82
205
  *
206
+ * 应对场景为, 在condition的 (ActorState)=>{} 回调中,
207
+ * 当一帧中condition的多个回调发生时(可能复数的condition被触发,也可能是一个condition有多个回调), 协调这些回调的处理逻辑的场景
208
+ *
83
209
  * @param {Function} startCycleCallback 开始执行一帧的js回调(condition的callback)
84
210
  * @param {Function} endCycleCallback 执行一帧的js回调完毕
85
211
  */
86
212
  addCondCycleListener(startCycleCallback: Function, endCycleCallback: Function): void;
213
+ /**
214
+ * removeCondCycleListener
215
+ * 移除由 addCondCycleListener 加入的回调
216
+ *
217
+ * @param {Function} startCycleCallback 开始执行一帧的js回调(condition的callback)
218
+ * @param {Function} endCycleCallback 执行一帧的js回调完毕
219
+ */
87
220
  removeCondCycleListener(startCycleCallback: Function, endCycleCallback: Function): void;
88
221
  _OnEchoEvent(retJson: string): void;
89
222
  _EnsureAnim(): void;
@@ -1,3 +1,4 @@
1
+ import type { CommandType } from "./CmdTypes";
1
2
  declare class CallbackManager {
2
3
  private _CallbackMap;
3
4
  private _IdGen;
@@ -6,6 +7,6 @@ declare class CallbackManager {
6
7
  clearCallback(): void;
7
8
  expiredIds(ids: Array<string>): void;
8
9
  invokeCallback(id: string, actorState: Object, customDataStr: string | null | undefined, nexusCustomDataStr: string | null | undefined): void;
9
- buildCallbackCmd(func: Function): Object;
10
+ buildCallbackCmd(func: Function): CommandType;
10
11
  }
11
12
  export default CallbackManager;
@@ -0,0 +1,16 @@
1
+ export interface CommandType {
2
+ typ: number;
3
+ set?: {};
4
+ }
5
+ export interface ConditionPackType {
6
+ subt: number;
7
+ react?: number;
8
+ cmds?: Array<CommandType>;
9
+ cmdPacks?: Array<CommandPackType>;
10
+ }
11
+ export interface CommandPackType {
12
+ t: number;
13
+ cmd?: CommandType;
14
+ cmds?: Array<CommandType> | null;
15
+ then?: Function;
16
+ }
@@ -11,5 +11,6 @@ declare const ActionCmdBuilder: any;
11
11
  declare const CmdPackBuilder: any;
12
12
  declare const FreeMoveAnimClass: any;
13
13
  declare const RunFreeMoveCmdPacks: Function;
14
+ declare const FireGlobalNexus: Function;
14
15
  declare const FinishRenderBreak: Function;
15
- export { GroupType_ActionAssoc, ActEventDefine, ConditionSetBuilder, ActionCmdBuilder, StateCmdBuilder, CmdPackBuilder, FreeMoveAnimClass, RunFreeMoveCmdPacks, FinishRenderBreak };
16
+ export { GroupType_ActionAssoc, ActEventDefine, ConditionSetBuilder, ActionCmdBuilder, StateCmdBuilder, CmdPackBuilder, FreeMoveAnimClass, RunFreeMoveCmdPacks, FireGlobalNexus, FinishRenderBreak };
@@ -3,4 +3,6 @@ declare class NexusNode {
3
3
  constructor();
4
4
  }
5
5
  declare function newNexus(): NexusNode;
6
- export { NexusNode, newNexus };
6
+ declare function fireGlobalNexus(NexusNode: NexusNode): void;
7
+ declare const GLOBAL_CUSTOM_NEXUS_DETAIL_TYPE = 1001;
8
+ export { NexusNode, GLOBAL_CUSTOM_NEXUS_DETAIL_TYPE, newNexus, fireGlobalNexus };
@@ -1,13 +1,18 @@
1
1
  import CallbackManager from "./CallbackManager";
2
2
  import { NexusNode } from "./NexusNode";
3
- declare class ActorPackBuilder {
3
+ import type { CommandPackType } from "./CmdTypes";
4
+ /**
5
+ * action().XXXXX 可用的API说明
6
+ * 标注"内部API"的API, 应用开发时一定!!不要使用, 因为后续版本可能调整导致失效
7
+ */
8
+ declare class ActionPackBuilder {
4
9
  _CallbackManager: CallbackManager;
5
10
  private _ActionTokenGen;
6
11
  private _SpeedKeeps;
7
12
  private _AccKeeps;
8
13
  private _NexusRecv;
9
14
  private _CommonInfoValid;
10
- private _ContorlSlefNexus;
15
+ private _ContorlSelfNexus;
11
16
  constructor(callbackManager: CallbackManager, selfNexus: NexusNode);
12
17
  isInUsing(): boolean;
13
18
  updateCommonInfo(xySpdEnables: number, xyAccEnables: number, nexusRecv: NexusNode | null): void;
@@ -39,33 +44,71 @@ declare class ActorPackBuilder {
39
44
  * undefined时,若edgeX设置, 则把edge作为运动目标,以另一轴速度反推此速度, 否则不改变该轴速度
40
45
  * @param {double} ySpeed 运行速度,使用时会自动取绝对值,单位(pixel/帧)
41
46
  * undefined时,若targetY设置, 则把edge作为运动目标,以另一轴速度反推此速度, 否则不改变该轴速度
42
- * @param {function} endCallback 参数(x, y) 运动到目标位置后的回调函数, x或者y达到后即回调,以先到为准,回报当前Actor的相对于原始位置的x,y
47
+ * @param {function | Array} endCallback
48
+ * function: js消息通知(异步), 参数(x, y) 运动到目标位置后的回调函数, x或者y达到后即回调,以先到为准,
49
+ * 回报当前Actor的相对于原始位置的x,y
50
+ * Array: 命令集
43
51
  * @return CommandPack(放入run或者then的CmdPackList队列)
44
52
  */
45
- moveTo(edgeX: number | undefined, edgeY: number | undefined, xSpeed: number | undefined, ySpeed: number | undefined, endCallback?: Function | null): any;
46
- altSpeed(xSpeed: number | undefined, ySpeed: number | undefined, spreadFrame: number | undefined, finishCallback?: Function | null): any;
47
- brakeToPosition(targetX: number | undefined, targetY: number | undefined, finishCallback?: Function | null, rejectedCallback?: Function | null): any;
53
+ moveTo(edgeX: number | undefined, edgeY: number | undefined, xSpeed: number | undefined, ySpeed: number | undefined, endCallback?: Function | Array<CommandPackType | Function> | null): any;
54
+ altSpeed(xSpeed: number | undefined, ySpeed: number | undefined, spreadFrame: number | undefined, finishCallback?: Function | Array<CommandPackType | Function> | null): any;
55
+ brakeToPosition(targetX: number | undefined, targetY: number | undefined, finishCallback?: Function | Array<CommandPackType | Function> | null, rejectedCallback?: Function | Array<CommandPackType | Function> | null): any;
48
56
  setSpeed(spdX: number | undefined, spdY: number | undefined): any;
49
- setAccel(accelX: number | undefined, accelY: number | undefined, onRevertX?: Function | null, onRevertY?: Function | null): any;
50
- setSpdAndAccel(spdX: number | undefined, spdY: number | undefined, accelX: number | undefined, accelY: number | undefined, onRevertX?: Function | null, onRevertY?: Function | null): any;
57
+ scaleSpeed(scaleX: number | undefined, scaleY: number | undefined): any;
58
+ setAccel(accelX: number | undefined, accelY: number | undefined, onRevertX?: Function | Array<CommandPackType | Function> | null, onRevertY?: Function | Array<CommandPackType | Function> | null): any;
59
+ /**
60
+ * setSpdAndAccel
61
+ * 同时设置速度和加速度,并提供拐点回调(用于抛物线处理)
62
+ *
63
+ * 参数说明:
64
+ * spdX (double) x 速度有效值,可正可负, 每帧的posX移动量, 可以传入undefined来决定此值不设置
65
+ * spdY (double) y 速度有效值,可正可负, 每帧的posY移动量, 可以传入undefined来决定此值不设置
66
+ * accelX (double) 加速度有效值,可正可负,每帧spdX的调整量,可以传入undefined来决定此值不设置
67
+ * accelY (double) 加速度有效值,可正可负,每帧spdY的调整量,可以传入undefined来决定此值不设置
68
+ * onRevertX (Function | Array) x速度开始反向运动时的处理(例如抛物到达顶点)
69
+ * Function: js消息通知(异步), 不要把新的run需求放这里, 会导致时机控制不准
70
+ * Array: 命令集(会按 then 链路进行翻译处理)
71
+ * onRevertY (Function | Array) y速度开始反向运动时的处理(例如抛物到达顶点)
72
+ * Function: js消息通知(异步), 不要把新的run需求放这里, 会导致时机控制不准
73
+ * Array: 命令集(会按 then 链路进行翻译处理)
74
+ */
75
+ setSpdAndAccel(spdX: number | undefined, spdY: number | undefined, accelX: number | undefined, accelY: number | undefined, onRevertX?: Function | Array<CommandPackType | Function> | null, onRevertY?: Function | Array<CommandPackType | Function> | null): any;
76
+ /**
77
+ * stopMoving
78
+ * 停止运动
79
+ * isExact (boolean) 设置为true时,
80
+ * 如果在positionCondition中会按照condition的位置进行精准停止
81
+ * 从而解决在condition.then中停止时,停止的位置因为上帧的drawX/Y + speedX/Y并不是完全和condition不吻合,而希望吻合的问题
82
+ */
51
83
  stopMoving(isExact?: boolean): any;
84
+ /**
85
+ * alignSpeed
86
+ * 在condition().then()中使用, 只在speed相关的condition中才会响应
87
+ * 用condition的速度设定值,来校准speed值, 相当于用condition的speed值来进行 action().setSpeed()
88
+ * 以解决加速对速度进行改变后,速度值已经超过了condition中设定的阈值时, 想纠正回来的场景
89
+ *
90
+ * 标准的停止加速度但保持速度的方法为: action(FreeMoveDef.KeepFlags.XY, 0).alignSpeed()
91
+ * 即通过action()构建的第二个参数把加速度清除
92
+ */
93
+ alignSpeed(): any;
52
94
  /**
53
95
  * ackMovementSync
54
- * 只能放在 movementSync 的then中,用于将Sync同步信息按比例转化成
96
+ * 只能放在 movementSync 的then中,用于将Sync同步信息按比例转化成自身的freeMoveDiv的位置值
55
97
  * (注意): 如果触发链条上有自己发出的信息,则将不再产生动作,规避循环触发
56
98
  *
57
99
  * @param {int} horizontalStart 横向运动识别区域的0%对应位置, 可以为负
58
100
  * @param {int} horizontalEnd 横向运动识别区域的100%对应位置, 可以为负,可以小于start
59
101
  * @param {int} verticalStart 纵向运动识别区域的0%对应位置, 可以为负
60
102
  * @param {int} verticalEnd 纵向运动识别区域的100%对应位置, 可以为负,可以小于end
61
- * @param {int} xyEnable x,y是否都触发, 0b01对应x, 0b10对应y, 可以或运算在一起
103
+ * @param {int} xyEnable x,y是否都触发, 使用FreeMoveDef.KeepFlags设置x,y,或者xy
62
104
  * @param {int} syncType 换算公式:
63
105
  * 1: 正比公式:selfPercent = givenPercent
64
106
  * 2: 反比公式:selfPercent = (1 - givenPercent)
65
107
  */
66
108
  ackMovementSync(horizontalStart: number, horizontalEnd: number, verticalStart: number, verticalEnd: number, xyEnable: number, syncType: number): any;
67
- _BuildAccelOnPole(builderThis: ActorPackBuilder, cmdList: Array<Object>, nexusRecv: NexusNode | null, onRevertX: Function | null, onRevertY: Function | null): void;
109
+ _BuildAccelOnPole(builderThis: ActionPackBuilder, cmdList: Array<Object>, nexusRecv: NexusNode | null, onRevertX: Function | Array<CommandPackType | Function> | null, onRevertY: Function | Array<CommandPackType | Function> | null): void;
110
+ private _BuildCallbackCmdPackList;
68
111
  _BasicPreProcess(procName: string): boolean;
69
112
  private _TeleportToInner;
70
113
  }
71
- export default ActorPackBuilder;
114
+ export default ActionPackBuilder;
@@ -1,12 +1,18 @@
1
1
  import CallbackManager from "./CallbackManager";
2
2
  import { NexusNode } from "./NexusNode";
3
+ import type { CommandPackType, ConditionPackType } from "./CmdTypes";
3
4
  type UNumber = undefined | number;
5
+ export declare const TranslateCondThenCmdPackList: (callbackManager: CallbackManager, cmdPackList: Array<CommandPackType | Function>) => void;
4
6
  type WallDirection = "left" | "right" | "top" | "bottom";
7
+ /**
8
+ * condition().XXXXX 可用的API说明
9
+ * 标注"内部API"的API, 应用开发时一定!!不要使用, 因为后续版本可能调整导致失效
10
+ */
5
11
  declare class ConditionPackBuilder {
6
12
  _Callbacks: CallbackManager;
7
13
  private _CommonInfo;
8
14
  private _CommonInfoValid;
9
- private _ContorlSlefNexus;
15
+ private _ContorlSelfNexus;
10
16
  private _BuildersFactory;
11
17
  constructor(callbackManager: CallbackManager, selfNexus: NexusNode, buildersFactory: any);
12
18
  isInUsing(): boolean;
@@ -14,74 +20,205 @@ declare class ConditionPackBuilder {
14
20
  /**
15
21
  * reachPosition
16
22
  * 获取 ReachPosition 的condition
17
- * x或y已经处于,或者被越过时触发
23
+ * x或y已经处于,或者被越过时触发,
24
+ * 此接口主要用于途径中途点的监听, 若要定义运动边界, 用positionWall/positionBox更合适
18
25
  *
19
26
  * @param {double} xPosition 位置有效值,可以传入undefined来决定此值不设置
20
27
  * @param {double} yPosition 位置有效值,可以传入undefined来决定此值不设置
21
28
  */
22
- reachPosition(xPosition: number | undefined, yPosition: number | undefined): Object | null;
29
+ reachPosition(xPosition: number | undefined, yPosition: number | undefined): CommandPackType | null;
23
30
  /**
24
- * reachPosition
25
- * 获取 ReachPosition 的condition
31
+ * onSpeedAcross
32
+ * 创建速度跨越阈值检测条件
33
+ * 当速度跨越给定阈值后触发
34
+ *
35
+ * 经典场景是检测抛物运动的拐点(定点),
36
+ * 例如 condition().onSpeedAcross("y", 0).then([(ActorState)=>{}])
37
+ *
38
+ * @param {string} xOrY "x"为x轴,"y"为y轴
39
+ * @param {number} speedVale 速度阈值
40
+ */
41
+ onSpeedAcross(xOrY: string, speedVale: number): CommandPackType | null;
42
+ /**
43
+ * speedBoundary
44
+ * 创建速度阈值检测条件(单个阈值)
45
+ * 当速度超过给定阈值后触发
46
+ *
47
+ * @param {string} boundName 边界名称,可以是 "x-min" | "x-max" | "y-min" | "y-max"
48
+ * @param {Object} speedSet 速度设置,可以是 {speed: number, limit: number}
49
+ */
50
+ speedBoundary(boundName: string, speedVale: number): CommandPackType | null;
51
+ /**
52
+ * speedAllBoundary
53
+ * 创建速度所有阈值检测条件(x,y的max/min阈值,Max=上限,Min=下限)
54
+ * 当速度超过给定阈值后触发
55
+ *
56
+ * @param {number} xMinLimit x轴下限阈值
57
+ * @param {number} xMaxLimit x轴上限阈值
58
+ * @param {number} yMinLimit y轴下限阈值
59
+ * @param {number} yMaxLimit y轴上限阈值
60
+ */
61
+ speedAllBoundary(xMinLimit: number | undefined, xMaxLimit: number | undefined, yMinLimit: number | undefined, yMaxLimit: number | undefined): CommandPackType | null;
62
+ /**
63
+ * positionWall/wallPosition
64
+ * 创建碰墙(单面)检测条件
26
65
  * x或y已经处于,或者被越过时触发
27
66
  *
28
- * @param {double} xPosition 位置有效值,可以传入undefined来决定此值不设置
29
- * @param {double} yPosition 位置有效值,可以传入undefined来决定此值不设置
67
+ * 和reachPosition的最大区别是,
68
+ * reach是有跨过行为才激活,
69
+ * 而wall是初始位置已经超过wall时就会立刻激活
70
+ *
71
+ * @param {string} direction 方向,可以是 "left" | "right" | "top" | "bottom", 标明初始wall位置相对运动物体的方位
72
+ * @param {double} position 位置有效值,direction为left/right时作用于x,direction为top/bottom时作用于y
30
73
  */
31
- wallPosition(direction: WallDirection, xPosition: UNumber, yPosition: UNumber): object | null;
32
- boxPosition(left: UNumber, top: UNumber, right: UNumber, bottom: UNumber): any;
33
- offsetPosition(left: UNumber, top: UNumber, right: UNumber, bottom: UNumber): object | null;
34
- startMove(xEnable: boolean, yEnable: boolean): any;
74
+ positionWall(direction: WallDirection, position: UNumber): CommandPackType | null;
75
+ wallPosition(direction: WallDirection, position: UNumber): CommandPackType | null;
35
76
  /**
36
- * AcrossPosition
37
- * 获取 AcrossPosition 的condition
38
- * x或y被越过时触发
77
+ * positionBox/boxPosition
78
+ * 创建碰墙(4面)检测条件
79
+ * 相当于用4面wallPosition组合起来的box(本物体一般处于box内, 一旦移到box外就激活)
39
80
  *
40
- * @param {double} xPosition 位置有效值,可以传入undefined来决定此值不设置
41
- * @param {double} yPosition 位置有效值,可以传入undefined来决定此值不设置
81
+ * @param {double} left 左边界位置有效值,可以传入undefined来表面此面无wallPosition
82
+ * @param {double} top 上边界位置有效值,可以传入undefined来表面此面无wallPosition
83
+ * @param {double} right 右边界位置有效值,可以传入undefined来表面此面无wallPosition
84
+ * @param {double} bottom 下边界位置有效值,可以传入undefined来表面此面无wallPosition
85
+ */
86
+ positionBox(left: UNumber, top: UNumber, right: UNumber, bottom: UNumber): CommandPackType | null;
87
+ boxPosition(left: UNumber, top: UNumber, right: UNumber, bottom: UNumber): CommandPackType | null;
88
+ /**
89
+ * offsetPosition
90
+ * 当div运动了给定的偏移量后触发
91
+ *
92
+ * @param {double} left 向左移动多少触发,为正整数
93
+ * @param {double} top 向上移动多少触发,为正整数
94
+ * @param {double} right 向右移动多少触发,为正整数
95
+ * @param {double} bottom 向下移动多少触发,为正整数
96
+ */
97
+ offsetPosition(left: UNumber, top: UNumber, right: UNumber, bottom: UNumber): CommandPackType | null;
98
+ /**
99
+ * startMove
100
+ * 当FreeMove块开始移动时触发, 用于探测方块从静止到移动的过程
101
+ *
102
+ * @param {boolean} xEnable x轴是否启用
103
+ * @param {boolean} yEnable y轴是否启用
104
+ */
105
+ startMove(xEnable: boolean, yEnable: boolean): CommandPackType | null;
106
+ /**
107
+ *
108
+ * onCustomNexus
109
+ * 响应由 state.fireCustomNexus 发起的event
110
+ * 是用户事件处理中激发预制命令集的手段
111
+ *
112
+ * @param {NexusNode} nexusRecv 由 FreeMoveFunc.newNexus() 创建, 为通讯匹配的句柄, 类似电话号
42
113
  */
43
- acrossPosition(xPosition: number | undefined, yPosition: number | undefined): Object | null;
114
+ onCustomNexus(nexusRecv: NexusNode): CommandPackType | null;
44
115
  /**
116
+ * 内部API
117
+ *
45
118
  * OnNexusEvent
46
- * 响应 actRef 关联的 action 所发出的内部状态信息
119
+ * 响应由 state.fireNexusEvent 发起的event
120
+ * 是用户事件处理中激发预制命令集的手段
47
121
  *
48
122
  * @param {NexusNode} nexusRecv 由 FreeMoveFunc.newNexus() 创建, 作为通讯句柄,类似电话号,被fireNexusEvent调用
49
123
  * @param {number} detailEventType 监听的事件类型, 类比与分机号,和fireNexusEvent发出的id约定, 自定义内容要求1000以上
50
124
  */
51
- onNexusEvent(nexusRecv: NexusNode, detailEventType: number): any;
125
+ onNexusEvent(nexusRecv: NexusNode, detailEventType: number): CommandPackType | null;
52
126
  /**
127
+ * 内部API
128
+ *
53
129
  * OnHitBlock
54
130
  * 监听Actor关联的LayoutView与blocker碰撞的状态
55
131
  * 碰撞发生后,可以 State.revertWithHitBlock 将LayoutView返回到紧贴到碰撞点的状态
56
132
  *
57
133
  * @param {number} blkGID 想监听的blocker集群的组ID, 例如所有的跳板横向碰撞面,或者所有的跳板边缘的纵向碰撞面, 0为无效值
58
134
  */
59
- onHitBlock(blkGID: number): any;
135
+ onHitBlock(blkGID: number): CommandPackType | null;
60
136
  /**
61
137
  * onNextTick
62
138
  * 用于对一些Condition激活进行延迟,例如teleportTo处理后延迟激活 OnHitBlock 动作,规避teleportTo处理直接触发OnHitBlocker
63
139
  * 特别场景: onNextTick(0) 可用于充当前帧命令执行完毕的回调,相当于为命令执行完毕做一个callback
64
140
  *
65
141
  */
66
- onNextTick(tickGap?: number): any;
142
+ onNextTick(tickGap?: number): CommandPackType | null;
67
143
  /** 指定的swapcount前才能执行 */
68
- onSwapCount(): any;
69
- onDragStart(): any;
70
- onDragEnd(): any;
71
- onTouchDown(): any;
72
- onTouchRelease(): any;
73
- onFlingStart(): any;
74
- onFlingProgress(): any;
75
- onFlingEnd(): any;
76
- onFlingCancel(): any;
77
- onFlingDrop(): any;
78
144
  /**
145
+ * 内部API
146
+ *
147
+ * onSwapCount
148
+ */
149
+ onSwapCount(): CommandPackType | null;
150
+ /**
151
+ * 内部API
152
+ *
153
+ * onDragStart
154
+ * 当拖拽开始时触发
155
+ */
156
+ onDragStart(): CommandPackType | null;
157
+ /**
158
+ * 内部API
159
+ */
160
+ onDragEnd(): CommandPackType | null;
161
+ /**
162
+ * 内部API
163
+ */
164
+ onTouchDown(): CommandPackType | null;
165
+ /**
166
+ * 内部API
167
+ */
168
+ onTouchRelease(): CommandPackType | null;
169
+ /**
170
+ * 内部API
171
+ *
172
+ * onFlingStart
173
+ * 当 fling 开始时触发
174
+ */
175
+ onFlingStart(): CommandPackType | null;
176
+ /**
177
+ * 内部API
178
+ *
179
+ * onFlingProgress
180
+ * 当 fling 过程中触发
181
+ */
182
+ onFlingProgress(): CommandPackType | null;
183
+ /**
184
+ * 内部API
185
+ *
186
+ * onFlingEnd
187
+ * 当 fling 结束时触发
188
+ */
189
+ onFlingEnd(): CommandPackType | null;
190
+ /**
191
+ * 内部API
192
+ *
193
+ * onFlingCancel
194
+ * 当 fling 取消时触发
195
+ */
196
+ onFlingCancel(): CommandPackType | null;
197
+ /**
198
+ * 内部API
199
+ *
200
+ * onFlingDrop
201
+ * 当 fling 拖拽结束时触发
202
+ */
203
+ onFlingDrop(): CommandPackType | null;
204
+ /**
205
+ * 内部API
206
+ *
207
+ * onMouseWheelScrollProgress
208
+ * 当鼠标滚轮滚动时触发
209
+ */
210
+ onMouseWheelScrollProgress(): CommandPackType | null;
211
+ /**
212
+ * 内部API
213
+ *
79
214
  * touchCount
80
215
  * 当touchDown时,Count会++,用于解决多次touchDown引发的时序问题
81
216
  * 当native的count计数等于给定的参数设定的count时,触发condition
82
217
  */
83
- touchCount(count: number): any;
218
+ touchCount(count: number): CommandPackType | null;
84
219
  /**
220
+ * 内部API
221
+ *
85
222
  * onMovement
86
223
  * 当FreeMove块移动时,移动了给定的距离值后触发条件, 给定的距离值由sensitivity定义
87
224
  *
@@ -89,9 +226,15 @@ declare class ConditionPackBuilder {
89
226
  * @param {float} ySensitivity y轴的敏感度设置,表示移动了多少像素时就触发条件, undefined时等于xSensitivity
90
227
  * @param {int} xyEnables x,y两轴哪个生效, 0b1 为x, 0b10 为y, 默认为都enable
91
228
  */
92
- onMovement(xSensitivity: number, ySensitivity?: number | undefined, xyEnables?: number | undefined): any;
93
- movementSync(nexusRef: NexusNode): any;
229
+ onMovement(xSensitivity: number, ySensitivity?: number | undefined, xyEnables?: number | undefined): CommandPackType | null;
230
+ /**
231
+ * 内部API
232
+ *
233
+ * movementSync
234
+ * @param {NexusNode} nexusRef 用于同步运动的nexus节点
235
+ */
236
+ movementSync(nexusRef: NexusNode): CommandPackType | null;
94
237
  _CheckCommonInfo(): boolean;
95
- _BuildPack(conditionSet: Object): any;
238
+ _BuildPack(conditionSet: ConditionPackType): CommandPackType;
96
239
  }
97
240
  export default ConditionPackBuilder;